User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
9Short Messages Service
Page 73 of 308
9.8.2Syntax
Type Syntax Response Example
SMS-DELIVER
+CMGR: <stat>,<oa>,[<alpha>],
<scts>[,<tooa>,<fo>,<pid>,<dcs>,
<sca>,<tosca>,<length>]
<data>
OK
SMS-SUBMIT
+CMGR: <stat>,<da>,[<alpha>][,
<toda>,<fo>,<pid>,<dcs>,[<vp>],
<sca>,<tosca>,<length>]
<data>
OK
SMS-STATUS-report
+CMGR: <stat>,<fo>,<mr>,[<ra>],
[<tora>],<scts>,<dt>,<st>
OK
SMS-COMMAND
+CMGR: <stat>,<fo>,<ct>[,<pid>,
[<mn>],[<da>],[<toda>],<length>
[<cdata>]]
OK
Text mode (+CMGF=1):
AT+CMGR=<index>
CBM storage
+CMGR: <stat>,<sn>,<mid>,<dcs>,
<page>,<pages>
<data>
OK
AT+CMGR=303
+CMGR: "REC READ",
"+393488535999",,"07/04/05,18:0
2:28+08",145,4,0,0,"+393492000
466",145,93
You have a missed called. Free
information provided by your
operator.
OK
Set
PDU mode (+CMGF=0):
AT+CMGR=<index>
+CMGR: <stat>,[<alpha>],<length>
<pdu>
OK
AT+CMGR=1
+CMGR: 1,,40
0791934329002000040
C9193230982661400008070
328045218018D4F29CFE0
6B5CBF379F87C4EBF41E4340
82E7FDBC3
OK
Test AT+CMGR=? OK
9.8.3Defined values
Parameter Type Description
<index> Number Storage position
<stat> Number
0: in PDU mode or "REC UNREAD" in text mode: received unread SMS
1: in PDU mode or "REC READ" in text mode: received read SMS
2: in PDU mode or "STO UNSENT" in text mode: stored unsent SMS
3: in PDU mode or "STO SENT" in text mode: stored sent SMS
<oa> String Originator address
<alpha> String Alphanumeric representation of <da> or <oa> corresponding to the entry found in the
phonebook 3GPP TS 24.008 [12]. The parameter is not managed.
<scts> String Service center time stamp in time-string format, see <dt>
<tooa> Number Type of address of <oa> - octet
<fo> Number First octet of the SMS TPDU (see 3GPP TS 23.040 [8])
<pid> Number TP-Protocol-Identifier (default 0); see the 3GPP TS 23.040 [8]
<dcs> Number Data Coding Scheme
<sca> String Service center address field