User guide

3GPP TS 27.005 AT COMMANDS FOR SMS AND C
BS
AT Commands for EV-DO-EV3 Modems
86
List Messages +CMGL
Execute 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).
Test command returns a list of supported <stat>s.
Syntax
Command Command type
AT+CMGL[=<stat>] Execute
AT+CMGL=? Test
Parameters and Values PDU Mode
PDU mode is used when the device is set to PDU mode by command AT+CMGF=0.
<stat>
0 New message.
1 Read message.
2 Stored message not yet sent.
3 Stored message already sent.
4 All messages.
If a received or storage message is present the message displays in the following
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.
Parameters and Values Text Mode
Text mode is used when the device is set to PDU mode by command AT+CMGF=1.
<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 (information in italics depends on the
last +CSDH setting):
If there is a Received message, it displays in the following format:
+CMGL:
<index>,<stat>,<orig_num>,<callback>,<date>[,<tooa>,<tele_id>,<priority>,<enc_type>,<len
gth>]<CR><LF> <data>