2 list messages - +cmgl – Rainbow Electronics GM862-QUAD-PY User Manual
Page 196

AT Commands Reference Guide
80000ST10025a Rev. 5 - 09/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 196 of 434
3.5.5.3.2 List Messages - +CMGL
+CMGL - List Messages
SELINT 0 / 1
AT+CMGL
[=<stat>]
Execution command reports the list of all the messages with status value
<stat> stored into <memr> message storage (<memr> is the message
storage for read and delete SMs as last settings of command +CPMS).
The parameter type and the command output depend on the last settings of
command +CMGF (message format to be used)
(PDU Mode)
Parameter:
<stat>
0 - new message
1 - read message
2 - stored message not yet sent
3 - stored message already sent
4 - all messages.
Each message to be listed is represented in the format:
+CMGL: <index>,<stat>,<length><CR><LF><pdu>
where
<index> - message position in the memory storage list.
<stat> - status of the message
<length> - length of the PDU in bytes
<pdu> - message in PDU format according to GSM 3.40
(Text Mode)
Parameter:
<stat>
"REC UNREAD" - new message
"REC READ" - read message
"STO UNSENT" - stored message not yet sent
"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>,,[,<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)