User guide

Developers guidelines | AT commands
182 June 2010
AT+CMGL List message (ver. 2)
Description: Returns messages with status value <stat> from preferred message
storage <mem1> to the TE. Entire data units <pdu> are returned. If status
of the message is “received unread”, status in the storage changes to
“received read”.
Execution
command: AT+CMGL[=<stat>]
Execution command
response: +CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>[<CR><LF>
+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu>[...]]
Test command: AT+CMGL=? Shows if the command is supported.
Test command
response: +CMGL: (list of supported <stat>s)
Parameters:
<stat>:
<stat> Description
0 Received unread message, that is, new message.
Default value
1 Received read message
2 Stored unsent message. (Only applicable to SMs)
3 Stored sent message. (Only applicable to SMs)
4 All messages. (Only applicable to +CMGL
command)
<index>:
<index> Description
Integer type Value in the range of location numbers supported
by the associated memory
<alpha>:
<alpha> Description
String type Manufacturing specific. Should be left empty but
not omitted, that is, commas mark the place were it
should be. Used character set should be the one
selected with command AT+CSCS
<length>:
<length> Description
Integer type Value indicating in PDU mode (AT+CMGF=”0”), the
length of the actual TP data unit in octets. The RP
layer SMSC address octets are not counted in the
length
<pdu>: