AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page88of233
+CMGL - List Messages
"STO SENT" - stored message already sent
"ALL" - all messages.
Each message to be listed is represented in the format (the information written in
italics will be present depending on +CSDH last setting):
+CMGL: <index>,<stat>,<oa/da>,<alpha>,<scts>[,<tooa/toda>,
<length>]
<CR><LF> <data>
Where:
<index>
- message position in the storage
<stat> - message status
<oa/da> - originator/destination address, string type , represented in the currently
selected character set (see +CSCS)
<alpha> - string type alphanumeric representation of <da> or <oa>, corresponding
to an entry found in the phonebook; used character set is the one
selected with command +CSCS.
<scts> - TP-Service Centre Time Stamp in Time String Format
<tooa/toda> - type of number
<oa/da>
129 - number in national format
145 - number in international format (contains the "
+")
<length> - text length
<data> - TP-User-Data
If
<dcs> indicates that GSM03.38/23.038 default alphabet is used , each
character of GSM/WCDMA alphabet will be converted into current TE
character set (see +CSCS)
If
<dcs> indicates that 8-bit or UCS2 data coding scheme is used, each 8-bit
octet will be converted into two IRA character long hexadecimal number (e.g.
octet 0x2A will be converted as two characters 0x32 0x41)
Each message delivery confirm is represented in the format
:
+CMGL: <index>,<stat>,<fo>,<mr>,,,<scts>,<dt>,<st>
Where:
<index>
- message position in the storage
<stat> - message status
<fo> - first octet of the message PDU
<mr> - message Reference number
<scts> - arrival time of the message to the SC
<dt> - sending time of the message
<st> - message status as coded in the PDU
Note: If parameter is omitted the command returns the list of sms with “REC
UNREAD
” status.
AT+CMGL=?
Test command returns a list of supported <stat>s