![Huawei MG323 At Command Interface Specification Download Page 177](http://html.mh-extra.com/html/huawei/mg323/mg323_at-command-interface-specification_167893177.webp)
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
160
11.3 AT+CMGL - Command for Querying the List of Short
Messages
The
AT+CMGL
command queries the list of short messages that are stored on the
preferred memory <mem1>.
11.3.1 Checking the Supported Status of Short Messages
Test
command
AT+CMGL=?
Function
Returns the status of short messages supported by this command.
Response
z
In case of successful execution:
<CR><LF>+CMGL: (list of supported <stat>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<stat>: string, which indicates the status of short messages. The status is classified
into two types.
1. AT+CMGF=1, that is, when short messages are in Text mode (not supported
currently).
Value
Description
REC UNREAD
Unread short messages that are received
REC READ
Read short messages that are received
STO UNSENT
Unsent short messages that are stored
STO SENT
Sent short messages that are stored
ALL
All short messages
2. AT+CMGF=0, that is, when short messages are in PDU mode.
Value
Description
0
Unread short messages that are received
1
Read short messages that are received
2
Unsent short messages that are stored
3
Sent short messages that are stored