User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
14System features
Page 178 of 401
14.10Last gasp configuration +ULGASP
+ULGASP
SARA-R410M-02B SARA-R410M-52B SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
SARA-R412M
Modules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No NVM No < 10 s +CME Error
14.10.1Description
Enables/disables and configures the last gasp feature. The application is automatically triggered by a properly
configured GPIO (see GPIO Introduction, <gpio_mode>=19). The feature supports the sending of a predefined
last notification in case of power outage, just before the power goes off. It is assumed that the cellular module
is registered to the network when the alarm is triggered; however the command just configures the feature
so it is possible to issue it also if PIN is not inserted. It is possible to enable/disable the +UULGASP URC to be
notified about the operation result.
This AT command must be issued after a proper configuration of the GPIO via the +UGPIOC command.
Otherwise, if +UGPIOC is issued after +ULGASP, the last gasp will work only after a reboot.
The parameters will be set to the values stored in the NVM in case they are omitted in the set command.
14.10.2Syntax
Type Syntax Response Example
Set AT+ULGASP=<GPIO_mode>,
<text>,<msg_format>,,<profile_id>,
<IP_protocol>,<IP_addr:PORT>[,
[<method>],,[<urc_enable>],[<nv_
upd_freq>],[<tx_count>]]
OK AT+ULGASP=0,"Power_loss",0,,1,17,
"192.168.100.20:8080"
OK
Read AT+ULGASP? +ULGASP: <GPIO_mode>,<text>,
<msg_format>,,<profile_ID>,
<IP_protocol>,<IP_addr:PORT>,
<method>,,<urc_enable>,<nv_upd_
freq>,<tx_count>
OK
+ULGASP: 0,"Power_loss",0,,1,17,
"192.168.100.20:8080",1,,1,0,1
OK
Test AT+ULGASP=? +ULGASP: (list of supported <GPIO_
mode>'s),,(list of supported <msg_
format>'s),,(list of supported
<profile_id>'s),(list of supported
<IP_protocol>'s),,(list of supported
<method>'s),,(list of supported <
urc_enable>'s),(list of supported
<nv_upd_freq>'s),(list of supported
<tx_count>'s)
OK
+ULGASP: (0-2),,(0-1),,(1),(17),,(1),,(0-
1),(0-3600),(1-10)
OK
URC +UULGASP: <result>,<bearer> +UULGASP: 0,1
14.10.3Defined values
Parameter Type Description
<GPIO_mode> Number Select the interrupt trigger. Allowed values:
0 (factory-programmed value): trigger disabled; the following arguments will be
ignored.
1: falling edge
2: rising edge
<text> String The string that will be sent upon GPIO movement. Text or binary format can be
selected with the <msg_format> parameter. When text format is selected, a
maximum of 256 ASCII characters is allowed. When the binary format is selected,
a maximum of 512 characters (0-9,A-F) is allowed. Every 8-bit octet of the message
must be written as two IRA character long hexadecimal numbers, e.g. an octet with