HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Short Messages

11.3AT+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

AT+CMGL=?

command

 

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

 

 

 

 

 

 

 

 

 

 

 

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

160

Copyright © Huawei Technologies Co., Ltd.

 

 

 

Page 177
Image 177
Huawei MG323 Checking the Supported Status of Short Messages, AT+CMGF=0, that is, when short messages are in PDU mode