SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09

9Short Messages Service
Page 74 of 307
Type Syntax Response Example
OK
SMS-COMMAND
+CMGR: <stat>,<fo>,<ct>[,<pid>,
[<mn>],[<da>],[<toda>],<length>
[<cdata>]]
OK
CBM storage
+CMGR: <stat>,<sn>,<mid>,<dcs>,
<page>,<pages>
<data>
OK
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
<tosca> Number Type of address of <sca> - octet in Number format (for more details see the 3GPP TS
24.008 [12]); default 145 when string includes '+', otherwise default 129
<length> Number Two meanings:
• in text mode: number of characters
• in PDU mode: PDU's length in octets without the Service Center's address. In
example 039121430100038166F6000004E374F80D: this is a PDU with Service
Center's number +1234, that generates the address 03912143 (4 octets). Thus in
this case <length> = 13.
<data> String In the case of SMS: 3GPP TS 23.040 [8] TP-User-Data in text mode responses;
format:
• if <dcs> indicates that 3GPP TS 23.038 [7] GSM 7 bit default alphabet is used and
<fo> indicates that 3GPP TS 23.040 [8] TP-User-Data-Header-Indication is not set:
o if TE character set other than "HEX" (see +CSCS command description): ME/
TA converts GSM alphabet into current TE character set according to rules of
Annex A
o if TE character set is "HEX": ME/TA converts each 7-bit character of GSM
7 bit default alphabet into two IRA character long hexadecimal number (e.g.
character Æ (GSM 7 bit default alphabet 28) is presented as 1C (IRA 49 and 67))
• if <dcs> indicates that 8-bit or UCS2 data coding scheme is used, or <fo> indicates
that 3GPP TS 23.040 [8] TP-User-Data-Header-Indication is set: ME/TA converts