41110590
Rev 6.1
January 28, 2019
36
Product Technical Specification and
User Guide
Last Gasp Configuration
+LASTGASPUDP Command: Last Gasp Configuration Command for UDP Content
Read command
Syntax
AT+
LASTGASPUDP?
Response
If configuration is not empty:
+LASTGASPUDP: <ipa>,<port>,<msg>
OK
If configuration is empty:
+LASTGASPUDP: ""
Write command
Syntax
AT+
LASTGASPUDP=
<ipa>[,<port>,
<msg>]
Response
OK
Parameters
<ipa>
Destination IP address. String quoted type. IPV4 and IPV6 formats are
accepted. Maximum length = 45 bytes. Empty string ("") erases the last gasp UDP
configuration.
<port>
Destination UDP port. String-quoted type. Maximum length = 5 characters
<msg>
Message text. String quoted type. Maximum length = 134 characters
Reference
Sierra Wireless
Proprietary
Notes
•
Configurations are not saved in non-volatile memory and lost when the module
boots. Configuration is needed each time the module boots up.
•
The module uses PDP context 1 (CID 1) to send the message. No check is done
between the address type and the PDP context type; only valid address syntax is
checked.
•
Messages are concatenated with the current time in ISO 8601 format when sent:
"<date>T<time><timezone> / YYYY-MM-DDThh:mm:ss±hh:mm".
Example: "TEST MESSAGE" is concatenated as "TEST MESSAGE 1997-07-
16T19:20:30+01:00"
•
The total length of the UDP sent is less than or equal to 160 characters. It is
recommended to configure the current time using the
+CCLK
command.
•
The last gasp UDP feature is only effective when CID 1 is activated.
•
The device shuts down immediately if there is no UDP configuration.
•
The device shuts down with a 2-second timeout in case of UDP sending failure due
to PDP bring-up failure or socket failure.
Examples
AT+LASTGASPUDP?
+LASTGASPUDP: ""
OK
AT+LASTGASPUDP="192.168.0.1","32","TEST MESSAGE"
OK
AT+LASTGASPUDP?
+LASTGASPUDP: "192.168.0.1","32","TEST MESSAGE"
OK
AT+LASTGASPUDP=""
OK
AT+LASTGASPUDP?
+LASTGASPUDP: ""
OK