List messages +cmgl, Syntax, Parameters and values pdu mode – Synaccess Networks NP-0801DTM User Manual
Page 133: Parameters and values text mode

3GPP TS 27.005 AT COMMANDS FOR SMS AND CBS
133
HSPA+ AT Commands Reference Guide
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 there is at least one message to be listed the representation format is:
+CMGL: <index>,<stat>,<alpha>,<length><CR><LF><pdu>[<CR><LF>
+CMGL: <index>,<stat>,<alpha>,<length><CR><LF><pdu>[...]]
where:
<index> ‐ message position in the memory storage list.
<stat> ‐ status of the message
<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.
<length> ‐ length of the PDU in bytes
<pdu> ‐ message in PDU format according to GSM 3.40
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
The representation format for stored messages (either sent or unsent)
or received messages (either read or unread, not message delivery
confirm) is (the information written in italics is present depending on
+CSDH last setting):