Huawei MG323 Recording Equipment User Manual


 
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.
162
11.3.3 Examples
Example 1:
In PDU mode, run the AT+CMGL command to list all short messages.
AT+CMGL=4
+CMGL: 1,1, , 160
…(Short messages in PDU mode)
OK
11.4 AT+CMGR - Command for Reading Short Messages
This command returns the short messages whose storage location is index from
preferred memory <mem1>. If the status of short messages is "Unread short
messages that are received", after the command is successfully executed, the status
of short messages on the memory is changed to "Read short messages that are
received".
11.4.1 Testing Whether the Command for Reading Short
Messages Is Supported
Test
command
AT+CMGR=?
Function
Checks whether the command for reading short messages is
supported.
Response
z
In case of successful execution: <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>