HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Short Messages

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.1Testing Whether the Command for Reading Short Messages Is Supported

Test

AT+CMGR=?

command

 

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>

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

162

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 179
Image 179
Huawei MG323 11.4 AT+CMGR Command for Reading Short Messages, AT+CMGL=4, +CMGL 1,1 …Short messages in PDU mode, At+Cmgr=?