.. _SLM_AT_CARRIER: LwM2M carrier library AT commands ********************************* .. contents:: :local: :depth: 2 The following commands list contains AT commands related to the LwM2M carrier library. Carrier event #XCARRIEREVT ========================== The ``#XCARRIEREVT`` is an unsolicited notification that indicates the event of the LwM2M carrier library. Unsolicited notification ------------------------ It indicates the event of the LwM2M carrier library. Syntax ~~~~~~ :: #XCARRIEREVT: , * The ```` value is an integer indicating the type of the event. It can return the following values: * ``1`` - LwM2M carrier library initialized. * ``2`` - Request to set modem to full functional mode. * ``3`` - Request to set modem to flight functional mode. * ``4`` - Request to set modem to minimum functional mode. * ``6`` - Bootstrap sequence complete. * ``7`` - Device registered successfully to the device management servers. * ``8`` - Connection to the server failed. * ``9`` - Firmware update started. * ``10`` - Request application reboot. * ``12`` - Modem domain event received. * ``13`` - Data received through the App Data Container object. * ``20`` - LwM2M carrier library error occurred. * The ```` value is an integer providing additional information about the event. It can return the following values: * ``0`` - Success or nothing to report. * *Negative value* - Failure or request to defer an application reboot or modem functional mode change. * *Positive value* - Number of bytes received through the App Data Container object. * The ```` parameter is a string that contains the data received through the App Data Container object. The events of type ``2``, ``3`` and ``4`` will typically be followed by an error event of type ``20``. This indicates to the application that the library is waiting for the appropriate modem functional mode change. LwM2M Carrier library #XCARRIER =============================== The ``#XCARRIER`` command allows you to send LwM2M carrier library commands. Set command ----------- The set command allows you to send LwM2M carrier library commands. Syntax ~~~~~~ :: AT#XCARRIER=[,[`` command is a string, and can be used as follows: * ``AT#XCARRIER="app_data"[,]`` * ``AT#XCARRIER="battery_level",`` * ``AT#XCARRIER="battery_status",`` * ``AT#XCARRIER="current",,`` * ``AT#XCARRIER="error","add|remove",`` * ``AT#XCARRIER="link_down"`` * ``AT#XCARRIER="link_up"`` * ``AT#XCARRIER="memory_free","read|write"[,]`` * ``AT#XCARRIER="memory_total",`` * ``AT#XCARRIER="portfolio","create|read|write",[,[,]]`` * ``AT#XCARRIER="power_sources"[,[,[,...[,]]]]`` * ``AT#XCARRIER="position",,,,,`` * ``AT#XCARRIER="reboot"`` * ``AT#XCARRIER="time"`` * ``AT#XCARRIER="timezone","read|write"[,]`` * ``AT#XCARRIER="utc_offset","read|write"[,]`` * ``AT#XCARRIER="utc_time","read|write"[,]`` * ``AT#XCARRIER="velocity",,,,,`` * ``AT#XCARRIER="voltage",,`` The values of the parameters depend on the command string used. When using the ``app_data`` command, if the ```` attribute is not specified, SLM enters ``slm_data_mode``. Response syntax ~~~~~~~~~~~~~~~ The response syntax depends on the commands used. Examples ~~~~~~~~ :: AT#XCARRIER="time","read" #XCARRIER: UTC_TIME: 2022-12-30T14:56:46Z, UTC_OFFSET: 60, TIMEZONE: Europe/Paris OK :: AT#XCARRIER="error","add",5 OK AT#XCARRIER="error","remove",5 OK :: AT#XCARRIER="power_sources",1,2,6 OK :: AT#XCARRIER="portfolio","read",2,3 #XCARRIER: LwM2M carrier 3.1.0 OK :: AT#XCARRIER="reboot" OK Read command ------------ The read command is not supported. Test command ------------ The test command is not supported.