User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
9Short Messages Service
Page 77 of 308
Type Syntax Response Example
AT+CMGL[=<stat>] +CMGL: <index>,<stat>,[<alpha>],
<length>
<pdu>
[+CMGL: <index>,<stat>,[<alpha>],
<length>]
<pdu> [...]
+CMGL: 305,1,,57 079193432900
1185440ED0D637396C7EBBCB0
000909092708024802A050
003000303DEA0584CE60
205D974791994769BDF3A90
DB759687E9F534FD0DA2C9603419
OK
Test AT+CMGL=? +CMGL: (list of supported <stat>s)
OK
+CMGL: ("REC UNREAD","REC
READ","STO UNSENT","STO SENT",
"ALL")
OK
9.10.3Defined values
Parameter Type Description
<stat> Number or
String
Number type in PDU mode (default value: 4), or string type in text mode (default
value: "ALL"); indicates the status of message in memory:
0: in PDU mode or "REC UNREAD" in text mode: received unread SMS messages
1: in PDU mode or "REC READ" in text mode: received read SMS messages
2: in PDU mode or "STO UNSENT" in text mode: stored unsent SMS messages
3: in PDU mode or "STO SENT" in text mode: stored sent SMS messages
4: in PDU mode or "ALL" in text mode: all SMS messages
<index> Number Storage position
<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 the <dt> parameter
<tooa> Number Type of address of <oa> - octet
<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 This is the TP-User-Data in text mode; the decoding depends on the DCS (Data
Coding Scheme) and the FO (First Octect) of the SMS header 3GPP TS 23.040 [8];
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 the +CSCS AT 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 each
8-bit octet into two IRA character long hexadecimal number (e.g. octet with integer
value 42 is presented to TE as two characters 2A (IRA 50 and 65))
In the case of CBS: 3GPP TS 23.041 [9] CBM Content of Message in text mode
responses; format:
if DCS indicates that 3GPP TS 23.038 [7] GSM 7 bit default alphabet is used:
o if TE character set other than "HEX" (see the +CSCS AT 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 the GSM 7
bit default alphabet into two IRA character long hexadecimal number
if DCS indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each
8-bit octet into two IRA character long hexadecimal number
<da> String Destination address
<toda> Number Type of address of <da> - octet