User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
9Short Messages Service
Page 93 of 401
Type Syntax Response Example
Test AT+CSMP=? OK
9.15.3Defined values
Parameter Type Description
<fo> Number First octet of the SMS TPDU (see 3GPP TS 23.040 [8])
<vp> Number Format depending on the values of the bit3/bit4 of the <fo> (SMS-SUBMIT case):
Bit 3 Bit 4 Format
0 0 Validity period not present
0 1 Validity period present,
relative format
1 0 Reserved
1 1 Validity period present,
absolute format
Relative format: validity period, counted from when the SMS-SUBMIT is received by
the SMSC, in range 0-255 (the default value is 167); for more details see the 3GPP
TS 23.040 [8]
<vp> Validity period value
0 to 143 (TP-VP + 1) x 5 minutes (i.e. 5 minutes
intervals up to 12 hours)
144 to 167 12 hours + ((TP-VP -143) x 30 minutes)
168 to 196 (TP-VP - 166) x 1 day
197 to 255 (TP-VP - 192) x 1 week
Absolute format: absolute time of the validity period termination in string format
("yy/MM/dd,hh:mm:ss+zz") (see the 3GPP TS 23.040 [8]); the time zone is
expressed in steps of 15 minutes. The range goes from -48 to +56
<pid> Number TP-Protocol-Identifier (default value: 0); see the 3GPP TS 23.040 [8]
<dcs> Number Data Coding Scheme. The default value is 0
9.16Delete message +CMGD
+CMGD
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial Yes No No < 55 s +CMS Error
9.16.1Description
Deletes the message from the preferred message storage <mem1>, if <flag>=0 or not present, in location
<index>. Otherwise the messages are deleted following the rules specified by <flag>.
If the <index> value is out of range (it depends on AT+CPMS command setting), then the "+CMS ERROR:
Invalid memory index" error result code is returned.
SARA-R4 / SARA-N4
When deleting a message from an empty location, the module returns the "+CMS ERROR: Invalid memory
index" error result code.
9.16.2Syntax
Type Syntax Response Example
Set AT+CMGD=<index>[,<flag>] OK AT+CMGD=3
OK
Test AT+CMGD=? +CMGD: (list of supported
<index>s),(list of supported <flag>s)
OK
+CMGD: (1-350),(0-4)
OK