0% found this document useful (0 votes)
62 views24 pages

Quectel EC2xEG9xEG2x-G Series LwM2M Application Note V1.0

Uploaded by

Caio Cruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views24 pages

Quectel EC2xEG9xEG2x-G Series LwM2M Application Note V1.0

Uploaded by

Caio Cruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

EC2x&EG9x&EG2x-G Series

LwM2M Application Note

LTE Standard Module Series

Version: 1.0

Date: 2020-10-12

Status: Released

www.quectel.com
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

Our aim is to provide customers with timely and comprehensive service. For any assistance,
please contact our company headquarters:

Quectel Wireless Solutions Co., Ltd.


Building 5, Shanghai Business Park Phase III (Area B), No.1016 Tianlin Road, Minhang District, Shanghai
200233, China
Tel: +86 21 5108 6236
Email: [email protected]

Or our local office. For more information, please visit:


http://www.quectel.com/support/sales.htm.

For technical support, or to report documentation errors, please visit:


http://www.quectel.com/support/technical.htm
Or email to [email protected].

General Notes
Quectel offers the information as a service to its customers. The information provided is based upon
customers’ requirements. Quectel makes every effort to ensure the quality of the information it makes
available. Quectel does not make any warranty as to the information contained herein, and does not
accept any liability for any injury, loss or damage of any kind incurred by use of or reliance upon the
information. All information supplied herein is subject to change without prior notice.

Disclaimer
While Quectel has made efforts to ensure that the functions and features under development are free
from errors, it is possible that these functions and features could contain errors, inaccuracies and
omissions. Unless otherwise provided by valid agreement, Quectel makes no warranties of any kind,
implied or express, with respect to the use of features and functions under development. To the maximum
extent permitted by law, Quectel excludes all liability for any loss or damage suffered in connection with
the use of the functions and features under development, regardless of whether such loss or damage
may have been foreseeable.

Duty of Confidentiality
The Receiving Party shall keep confidential all documentation and information provided by Quectel,
except when the specific permission has been granted by Quectel. The Receiving Party shall not access
or use Quectel’s documentation and information for any purpose except as expressly provided herein.
Furthermore, the Receiving Party shall not disclose any of the Quectel's documentation and information
to any third party without the prior written consent by Quectel. For any noncompliance to the above
requirements, unauthorized use, or other illegal or malicious use of the documentation and information,
Quectel will reserve the right to take legal action.

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 1 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

Copyright
The information contained here is proprietary technical information of Quectel Wireless Solutions Co., Ltd.
Transmitting, reproducing, disseminating and editing this document as well as using the content without
permission are forbidden. Offenders will be held liable for payment of damages. All rights are reserved in
the event of a patent grant or registration of a utility model or design.

Copyright © Quectel Wireless Solutions Co., Ltd. 2020. All rights reserved.

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 2 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

About the Document

Revision History

Version Date Author Description

- 2020-09-02 Herry GENG Creation of the document

1.0 2020-10-12 Herry GENG First official release

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 3 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

Contents

About the Document .................................................................................................................................. 3


Contents ...................................................................................................................................................... 4
Table Index .................................................................................................................................................. 5

1 Introduction ......................................................................................................................................... 6
1.1. Applicable Modules .................................................................................................................... 6

2 Description of LwM2M AT Commands ............................................................................................. 7


2.1. AT Command Syntax ................................................................................................................. 7
2.1.1. Definitions........................................................................................................................ 7
2.1.2. AT Command Syntax ...................................................................................................... 7
2.2. Description of AT Commands .................................................................................................... 8
2.2.1. AT+QLWCFG Configure Optional Parameters of LwM2M........................................... 8
2.2.2. AT+QLWREG Send a Register Request to the LwM2M Server ................................ 14
2.2.3. AT+QLWUPDATE Send an Update Request to the LwM2M Server ......................... 14
2.2.4. AT+QLWDEREG Send a Deregister Request to the LwM2M Server ........................ 15
2.2.5. AT+QLWSTAT Get the State of LwM2M Client .......................................................... 15

3 LwM2M Related URCs ...................................................................................................................... 16


3.1. +QLWURC: "pdp active" The PDP Activation Indication ....................................................... 16
3.2. +QLWURC: "initial" The Initialization Indication .................................................................... 16
3.3. +QLWURC: "dtls" The DTLS Handshake Indication ............................................................. 17
3.4. +QLWURC: "bootstraping" The Bootstrap Working Indication ............................................. 17
3.5. +QLWURC: "bootstrap" The Bootstrap Indication................................................................. 18
3.6. +QLWURC: "registering" Start Registration Indication.......................................................... 18
3.7. +QLWURC: "ready" The Registration Indication ................................................................... 18
3.8. +QLWURC: "update" The Update Indication ........................................................................ 19
3.9. +QLWURC: "deregister" The Deregistration Indication ........................................................ 19

4 Examples ........................................................................................................................................... 20
4.1. Login to the LwM2M Server ..................................................................................................... 20

5 Appendix A References.................................................................................................................... 23

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 4 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

Table Index

Table 1: Applicable Modules......................................................................................................................... 6


Table 2: Type of AT Commands and Responses ......................................................................................... 7
Table 3: Terms and Abbreviations .............................................................................................................. 23

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 5 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

1 Introduction
OMA Lightweight M2M (LwM2M) is a device management protocol designed for sensor networks and the
demands of a machine-to-machine (M2M) environment. The LwM2M protocol, designed for remote
management of M2M devices and related service enablement, features a modern architectural design
based on REST, defines an extensible resource and data model and builds on an efficient secure data
transfer standard called the Constrained Application Protocol (CoAP).

This document mainly introduces how to use the LwM2M feature with the following Quectel LTE standard
modules through AT commands.

1.1. Applicable Modules

Table 1: Applicable Modules

Module Series Module

EC21 series

EC2x series EC25 series

EC20 R2.1

EG91 series
EG9x series
EG95 series

EG21-G
EG2x-G
EG25-G

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 6 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

2 Description of LwM2M AT Commands

2.1. AT Command Syntax

2.1.1. Definitions

 <CR> Carriage return character.


 <LF> Line feed character.
 <...> Parameter name. Angle brackets do not appear on command line.
 [...] Optional parameter of a command or an optional part of TA information response.
Square brackets do not appear on command line. When an optional parameter is
omitted, the new value equals its previous value or its default setting, unless otherwise
specified.
 Underline Default setting of a parameter.

2.1.2. AT Command Syntax

The AT or at prefix must be added at the beginning of each command line. Entering <CR> will terminate a
command line. Commands are usually followed by a response that includes
<CR><LF><response><CR><LF>. Throughout this document, only the response <response> will be
presented, <CR><LF> are omitted intentionally.

Table 2: Type of AT Commands and Responses

This command returns the list of parameters and value


Test Command AT+<cmd>=? ranges set by the corresponding Write Command or
internal processes.
This command returns the currently set value of the
Read Command AT+<cmd>?
parameter or parameters.
AT+<cmd>=<p1>
Write Command This command sets the user-definable parameter values.
[,<p2>[,<p3>[...]]]
This command reads non-variable parameters affected
Execution Command AT+<cmd>
by internal processes in the module.

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 7 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

2.2. Description of AT Commands

2.2.1. AT+QLWCFG Configure Optional Parameters of LwM2M

This command configures optional parameters of LwM2M.

AT+QLWCFG Configure Optional Parameters of LwM2M


Test Command Response
AT+QLWCFG=? +QLWCFG: "security",(range of supported <serverID>s),(range
of supported <SSID>s),<server_addr>,(list of supported <boots
trap>s),(list of supported <security_mode>s),<pskID>,<psk_ke
y>
+QLWCFG: "server",(range of supported <serverID>s),(range
of supported <life_time>s),(range of supported <pmin>s),(range
of supported <pmax>s),(range of supported <disable_timeout>
s),(list of supports <storing>s),(list of supported <binding_mod
e>s)
+QLWCFG: "epname/mode",(list of supported <mode>s)
+QLWCFG: "urc",(list of supported <URC_onoff>s)
+QLWCFG: "startup",(list of supported <auto_startup>s)
+QLWCFG: "fota",(list of supported <download>s),(list of
supported <update>s)
+QLWCFG: "hostdevice",(list of supported <hostID>s),<device
ID>,<manufacturer>,<model>,<sw_version>,<fw_version>,<hw
_version>,<upgrade_time>
+QLWCFG: "reset"
+QLWCFG: "nettype",(range of supported <net_type>s)
+QLWCFG: "maxreconntime",(range of supported
<unitreconntime>s),(range of supported
<multreconntime>s),(range of supported <maxdelaytime>s)
+QLWCFG: "apnretry",(list of supported <APN_ID>s),(range of
supported <retry_time>s),(range of supported <period>s)

OK
Write Command Response
Read/configure the LwM2M If the optional parameters are omitted, query the current
server property configuration:
AT+QLWCFG="security"[,<serv +QLWCFG: "security",<serverID>,<SSID>,<server_addr>,<boo
erID>[,<SSID>,<server_addr>,< tstrap>,<security_mode>
bootstrap>,<security_mode>[,< …
pskID>,<psk_key>]]]
OK

If only <serverID> is specified and other optional parameters are

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 8 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

omitted, delete the property data of the specified <serverID>:


OK
Or
ERROR

If any of the other optional parameters are specified, configure the


specified server property:
OK
Or
ERROR
Write Command Response
Read/configure the LwM2M If the optional parameters are omitted, query the current
server attribute configurations:
AT+QLWCFG="server"[,<server +QLWCFG: "server",<serverID>,<life_time>,<pmin>,<pmax>,<
ID>,<life_time>[,<pmin>[,<pma disable_timeout>,<storing>,<binding_mode>
x>[,<disable_timeout>[,<storin …
g>[,<binding_mode>]]]]]]
OK

If any of the optional parameters are specified, configure the server


attribute:
OK
Or
ERROR
Write Command Response
Read/configure mode of end point If the optional parameter is omitted, query the current configuration:
name +QLWCFG: "epname/mode",<mode>
AT+QLWCFG="epname/mode"[
,<mode>] OK

If the optional parameter is specified, configure the mode of end


point name:
OK
Or
ERROR
Write Command Response
Read/configure LwM2M URC If the optional parameter is omitted, query the current configuration:
enablement +QLWCFG: "urc",<URC_onoff>
AT+QLWCFG="urc"[,<URC_on
off>] OK

If the optional parameter is specified, configure whether to enable


URC report:
OK

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 9 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

Or
ERROR
Write Command Response
Read/configure the startup mode If the optional parameter is omitted, query the current configuration:
of LwM2M client +QLWCFG: "startup",<auto_startup>
AT+QLWCFG="startup"[,<auto_
startup>] OK

If the optional parameter is specified, configure the startup mode:


OK
Or
ERROR
Write Command Response
Read/configure FOTA mode If the optional parameters are omitted, query the current
AT+QLWCFG="fota"[,<downloa configuration:
d>,<update>] +QLWCFG: "fota",<download>,<update>

OK

If the optional parameters are specified, configure the FOTA mode:


OK
Or
ERROR
Write Command Response
Read/configure host device If the optional parameters are omitted, query the current
information if the network is not configurations:
Verizon +QLWCFG: "hostdevice",<hostID>,<deviceID>,<manufacture
AT+QLWCFG="hostdevice"[,<h r>,<model>,<sw_version>
ostID>,<deviceID>,<manufactur
er>,<model>,<sw_version>] OK

If the optional parameters are specified, configure host device


information:
OK
Or
ERROR
Write Command Response
Read/configure host device If the optional parameters are omitted, query the current
information under Verizon configurations:
network +QLWCFG: "hostdevice",<hostID>,<deviceID>,<manufacture
AT+QLWCFG="hostdevice"[,<h r>,<model>,<sw_version>,<fw_version>,<hw_version>,<upgra
ostID>[,<deviceID>[,<manufact de_time>
urer>[,<model>[,<sw_version>[
,<fw_version>[,<hw_version>[, OK

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 10 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

<upgrade_time>]]]]]]]]
If the optional parameters are specified, configure host device
information:
OK
Or
ERROR
Execution Command Response
Erase LwM2M client running OK
record Or
AT+QLWCFG="reset" ERROR
Write Command Response
Read/configure the net type of If the optional parameter is omitted, query the current configuration:
LwM2M client +QLWCFG: "nettype",<net_type>
AT+QLWCFG="nettype"[,<net_t
ype>] OK

If the optional parameter is specified, configure the net type:


OK
Or
ERROR
Write Command Response
Read/configure the reconnection If the optional parameters are omitted, query the current
attribute configuration:
AT+QLWCFG="maxreconntime +QLWCFG: "maxreconntime",<unitreconntime>,<multreconnti
"[,<unitreconntime>,<multreco me>,<maxdelaytime>
nntime>,<maxdelaytime>]
OK

If the optional parameters are specified, configure the specified


reconnection:
OK
Or
ERROR
Write Command Response
Read/configure the APN retry If the optional parameters are omitted, query the current
attribute configuration:
AT+QLWCFG="apnretry"[,<AP +QLWCFG: "apnretry",<APN_ID>,<retry_time>,<period>
N_ID>,<retry_time>,<period>] …

OK

If the optional parameters are specified, configure the specified


APN retry attribute:
OK

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 11 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

Or
ERROR
Maximum Response Time /
The commands take effect immediately.
Characteristics The configurations will be saved automatically while the <net_t
ype> will not be saved.

Parameter

<serverID> Integer type. Server type.


0 Bootstrap server
1 DM server
2 Diagnostics server
3 Repository server
<SSID> Integer type. Short server ID. Custom parameter. Range: 1–65535.
For Verizon network, the valid values are:
100 Bootstrap server
101 Diagnostics server
102 DM server
1000 Repository server
<server_addr> String type. Server address. The format is "address:port".
<bootstrap> Integer type. Bootstrap server flag.
0 Not bootstrap (Only valid when <serverID> is not 0)
1 Bootstrap (Only valid when <serverID>=0)
<security_mode> Integer type. Encryption method.
0 Pre-share key mode
3 No security mode
<pskID> String type. Pre-shared key identity. Only valid when <security_mode>=0.
<psk_key> String type in hexadecimal. Pre-share key. Only valid when <security_mode>=0.
<life_time> Integer type. The lifetime of receiving heartbeat package by server. Range:
1–86400. Default: 60. Unit: second.
<pmin> Integer type. The minimum response period. Range: 1–86400. Default: 1. Unit:
second.
<pmax> Integer type. The maximum response period. Range: 1–86400. Default: 60. Unit:
second.
<disable_timeout> Integer type. The interval to the next connection after disconnecting from the
LwM2M server. Range: 1–86400. Default: 86400. Unit: second.
<storing> Integer type. Whether to save the server information.
0 Do not save
1 Save
<binding_mode> String type. The binding mode used to connect the LwM2M server.
"U" UDP

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 12 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

"UQ" UDP with Queue mode


"S" SMS
"SQ" SMS with Queue mode
"US" UDP and SMS
"UQS" UDP and SMS with Queue mode
<mode> Integer type. The format of endpoint name.
3 The endpoint name format: urn:imei:xxxxx
6 The endpoint name format: urn:imei-msisdn:xxxxx-xxx
7 The endpoint name format: urn:imei-imsi:xxxxx-xxx
8 China Mobile DM endpoint name
<URC_onoff> Integer type.
0 Disable LwM2M URC report
1 Enable LwM2M URC report
<auto_startup> Integer type.
0 LwM2M will not be started automatically when the module is powered on
1 LwM2M will be started automatically when the module is powered on
<download> Integer type. The mode of downloading delta firmware package.
0 Download package manually
1 Download package automatically
<update> Integer type. The update mode of FOTA.
0 Update manually
1 Update automatically
<hostID> Integer type. The identity of host device. Range: 0–1.
<deviceID> String type. The device ID of host device.
<manufacturer> String type. The manufacturer name of host device.
<model> String type. The model of host device.
<sw_version> String type. The software version number of host device.
<fw_version> String type. The firmware version number of host device.
<hw_version> String type. The hardware version number of host device.
<upgrade_time> Integer type. The seconds from January 1,1970 00:00:00 to the last firmware or
software update time. If no time stamp is available, 0 is returned.
<net_type> Integer type. The network type.
0 Others
1 Verizon
2 AT&T
<unitreconntime> Integer type. The coefficient of the wait time before retrying. Range: 1–86400.
Default: 1 (300 under AT&T network). Unit: second.
<multreconntime> Integer type. Base number of the wait time before retrying. Range: 2–86400.
Default: 2 (5 under AT&T network).
<maxdelaytime> Integer type. The max delay time of the wait time before retrying. Range:
0–86400. Default: 0 (86400 under AT&T network). Unit: second. The module will
retry to connect if <maxdelaytime> is greater than the delay time calculated by
the following formula, otherwise, it will end reconnection.

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 13 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

Delay time = <unitreconntime> x <multreconntime> ^ reconnection times


<APN_ID> Integer type. The ID of the APN to be reactivated. Range: 0–1.
<retry_time> Integer type. The retry times to reactivate the APN. Range: 0–16. Default: 0 (2
under AT&T network).
<period> Integer type. The retry period to reactivate the APN. Range: 0–86400. Default: 0
(86400 under AT&T network). Unit: second.

2.2.2. AT+QLWREG Send a Register Request to the LwM2M Server

This command sends a register request to the LwM2M Server.

AT+QLWREG Send a Register Request to the LwM2M Server


Test Command Response
AT+QLWREG=? OK
Execution Command Response
AT+QLWREG OK
Or
ERROR

2.2.3. AT+QLWUPDATE Send an Update Request to the LwM2M Server

This command sends an update request to the LwM2M Server.

AT+QLWUPDATE Send an Update Request to the LwM2M Server


Test Command Response
AT+QLWUPDATE=? OK
Write Command Response
AT+QLWUPDATE=<SSID> OK
Or
ERROR

Parameter

<SSID> Integer type. Short server ID.


0 All servers
Others Other specified server

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 14 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

2.2.4. AT+QLWDEREG Send a Deregister Request to the LwM2M Server

This command launches a deregister request to the LwM2M Server.

AT+QLWDEREG Send a Deregister Request to the LwM2M Server


Test Command Response
AT+QLWDEREG=? OK
Execution Command Response
AT+QLWDEREG OK
Or
ERROR

2.2.5. AT+QLWSTAT Get the State of LwM2M Client

This command queries the state of the specified LwM2M client.

AT+QLWSTAT Get the State of LwM2M Client


Test Command Response
AT+QLWSTAT=? OK
Read Command Response
AT+QLWSTAT? +QLWSTAT: <stat>

OK
Or
ERROR

Parameter

<stat> Integer type. Indicates the state of LwM2M client.


0 Not registered
1 Registering
2 Registered
3 Deregistering

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 15 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

3 LwM2M Related URCs


This chapter gives LwM2M related URCs and descriptions.

3.1. +QLWURC: "pdp active" The PDP Activation Indication

The activation result of PDP. The PDP should be activated before sending register request to the LwM2M
server.

+QLWURC: "pdp active" The PDP Activation Indication


This URC is reported to indicate the PDP activation
+QLWURC: "pdp active",<result>,<APN>
result.

Parameter

<result> String type. The result of PDP activation.


"successfully"
"failed"
<APN> String type. APN name.

3.2. +QLWURC: "initial" The Initialization Indication

The initialization result of connection between client and the LwM2M server.

+QLWURC: "initial" The Initialization Indication


This URC is reported to indicate the connection
+QLWURC: "initial",<result>,<SSID>
initialization result.

Parameter

<result> String type. The initialization result.


"successfully"
"failed"

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 16 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

<SSID> Integer type. Short server ID.


0 All servers
Others Specified servers

3.3. +QLWURC: "dtls" The DTLS Handshake Indication

This URC is reported to indicate the DTLS handshake result if the encryption method is used.

+QLWURC: "dtls" The DTLS Handshake Indication


This URC is reported to indicate the DTLS
+QLWURC: "dtls",<result>,<SSID>
handshake result.

Parameter

<result> String type. DTLS handshake result.


"successfully"
"failed"
<SSID> Integer type. Short server ID.
0 All servers
Others Specified servers

3.4. +QLWURC: "bootstraping" The Bootstrap Working Indication

This URC will be reported when Bootstrap is working.

+QLWURC: "bootstraping" The Bootstrap Working Indication


This URC is reported to indicate that the Bootstrap
+QLWURC: "bootstraping"
is working.

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 17 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

3.5. +QLWURC: "bootstrap" The Bootstrap Indication

The working result of Bootstrap.

+QLWURC: "bootstrap" The Bootstrap Indication


This URC is reported to indicate the Bootstrap
+QLWURC: "bootstrap",<result>,<SSID>
working result.

Parameter

<result> String type. The working result of Bootstrap.


"successfully"
"failed"
<SSID> Integer type. Short server ID.
0 All servers
Others Specified servers

3.6. +QLWURC: "registering" Start Registration Indication

This URC will be reported when the client is registering on the LwM2M server.

+QLWURC: "registering" Start Registration Indication


This URC is reported to indicate that the client is
+QLWURC: "registering"
registering.

3.7. +QLWURC: "ready" The Registration Indication

This URC is reported to indicate the registration result after sending the register request to the LwM2M
server.

+QLWURC: "ready" The Registration Indication


This URC is reported to indicate the registration
+QLWURC: "ready",<result>,<SSID>
result.

Parameter

<result> String type. The registration result.

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 18 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

"successfully"
"failed"
<SSID> Integer type. Short server ID.
0 All servers
Others Specified servers

3.8. +QLWURC: "update" The Update Indication

This URC is reported to indicate the update result after sending the update request to the LwM2M server.

+QLWURC: "update" The Update Indication


+QLWURC: "update",<result>,<SSID> This URC is reported to indicate the update result.

Parameter

<result> String type. Update result.


"successfully"
"failed"
<SSID> Integer type. Short server ID.
0 All servers
Others Specified servers

3.9. +QLWURC: "deregister" The Deregistration Indication

This URC is reported to indicate the deregistration result after sending deregister request to the LwM2M
server.

+QLWURC: "deregister" The Deregistration Indication


This URC is reported to indicate the deregistration
+QLWURC: "deregister",<SSID>
result.

Parameter

<SSID> Integer type. Short server ID.


0 All servers
Others Specified servers

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 19 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

4 Examples
This chapter gives the examples to explain how to use LwM2M related AT commands.

4.1. Login to the LwM2M Server

AT+QLWCFG=?

+QLWCFG: "security",(0-3),(1-65535),<server_addr>,(0,1),(0,3),<pskID>,<psk_key>
+QLWCFG: "server",(0-3),(1-86400),(1-86400),(1-86400),(1-86400),(0,1),("U","UQ","S","SQ","US""U
QS")
+QLWCFG: "epname/mode",(3,6,7,8)
+QLWCFG: "urc",(0,1)
+QLWCFG: "startup",(0,1)
+QLWCFG: "fota",(0,1),(0,1)
+QLWCFG: "hostdevice",(0,1),<deviceID>,<manufacturer>,<model>,<sw_version>,<fw_version>,
<hw_version>,<upgrade_time>
+QLWCFG: "reset"
+QLWCFG: "nettype",(0-2)
+QLWCFG: "maxreconntime",(1-86400),(2-86400),(0-86400)
+QLWCFG: "apnretry",(0,1),(0-16),(0-86400)

OK
AT+QLWCFG="security",0,100,"coaps://InteropBootstrap.dm.iot.att.com:5694",1,0,"urn:imei:8644
30010001095","313233343536"
OK
AT+QLWCFG="security"
+QLWCFG: "security",0,100,"coaps://InteropBootstrap.dm.iot.att.com:5694",1,0

OK
AT+QLWCFG="epname/mode",3
OK
AT+QLWCFG="epname/mode"
+QLWCFG: "epname/mode",3

OK
AT+QLWCFG="urc",1

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 20 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

OK
AT+QLWCFG="urc"
+QLWCFG: "urc",1

OK
AT+QLWCFG="startup",1
OK
AT+QLWCFG="startup"
+QLWCFG: "startup",1

OK
AT+QLWCFG="fota",1,1
OK
AT+QLWCFG="fota"
+QLWCFG: "fota",1,1

OK
AT+QLWCFG="hostdevice",0,"HUID0","HMAN0","HMOD0","HSW0" //Configure host device
information if the network is not
Verizon.
OK
AT+QLWCFG="hostdevice" //Read host device information if the network is not Verizon.
+QLWCFG: "hostdevice",0,"HUID0","HMAN0","HMOD0","HSW0"
+QLWCFG: "hostdevice",1,"HUID1","HMAN1","HMOD1","HSW1"

OK
AT+QLWCFG="reset"
OK
AT+QLWCFG="nettype",2
OK
AT+QLWCFG="nettype"
+QLWCFG: "nettype",2

OK
AT+QLWSTAT?
+QLWSTAT: 0

OK
AT+QLWREG
OK

+QLWURC: "pdp active","successfully","attm2mglobal"

+QLWURC: "initial","successfully",100

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 21 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

+QLWURC: "dtls","successfully",100

+QLWURC: "bootstraping"

+QLWURC: "bootstrap","successfully",100

+QLWURC: "initial","successfully",1

+QLWURC: "dtls","successfully",1

+QLWURC: "registering"

+QLWURC: "ready","successfully",1
AT+QLWUPDATE=0
OK

+QLWURC: "update","successfully",1
AT+QLWSTAT?
+QLWSTAT: 2

OK
AT+QLWDEREG
OK

+QLWURC: "deregister",0
AT+QLWSTAT?
+QLWSTAT: 0

OK

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 22 / 23
LTE Standard Module Series
EC2x&EG9x&EG2x-G Series LwM2M Application Note

5 Appendix A References

Table 3: Terms and Abbreviations

Abbreviation Description

APN Access Point Name

CoAP Constrained Application Protocol

DM Device Management

DTLS Datagram Transport Layer Security

ID Mostly refers to Identifier in terms of software

LTE Long Term Evolution

LwM2M Lightweight Machine to Machine

PDP Packet Data Protocol

REST Representational State Transfer

SMS Short Message Service

SSID Service Set Identifier

UDP User Datagram Protocol

URC Unsolicited Result Code

EC2x&EG9x&EG2x-G_Series_LwM2M_Application_Note 23 / 23

You might also like