HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Short Messages

 

 

 

 

 

Value

Description

 

 

 

 

 

 

4

All short messages

 

 

 

 

 

11.3.2 Reading the List of Short Messages

Write

AT+CMGL[=<stat>]

command

 

Function

Reads the list of short messages whose status is <stat>.

Response

z When short messages are in PDU mode (+CMGF=0) and the

 

command is successfully executed:

 

z [<CR><LF>+CMGL:

 

<index>,<stat>,[<reserved>],<length><CR><LF><pdu><CR><LF

 

>

 

[<CR><LF>+CMGL:<index>,<stat>,[<reserved>],<length><CR><

 

LF><pdu>[...]]<CR><LF>]

 

<CR><LF>OK<CR><LF>

 

z In case of an error: <CR><LF>ERROR<CR><LF>

 

z In case of an error related to the MS: <CR><LF>+CMS ERROR:

 

<err><CR><LF>

Note:

If no parameters of this command are set, AT+CMGL is equivalent to AT+CMGL=0.

Parameter description

Table 11-1Structure of <pdu>

[<SCA>]

<sc_len>

<type_addr>

<numbers>

TPDU

 

 

 

 

In the preceding table, for the <SCA>, <sc_len>, <type_addr>, and <numbers> fields, see the AT+CMGS Command.

For a sent short message, the data structure of TPDU has the same definition as that described in the section AT+CMGS Command. For a received short message, the data structure of TPDU is as follows:

Table 11-2Data structure of TPDU

 

1 Oct

 

 

 

 

 

 

 

2 Oct to

1 Oct

 

1 Oct

7 Oct

1Oct

 

 

 

 

 

 

 

 

 

 

 

12 Oct

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TP-MTI

MMS

0

0

 

SRI

UDHI

RP

OA

PID

 

DCS

SCTS

UDL

UD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit0

Bit1

Bit2

Bit3

Bit4

 

Bit5

Bit6

Bit7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Issue 02 (2010-11-23)

 

 

Huawei Proprietary and Confidential

 

 

161

 

 

Copyright © Huawei Technologies Co., Ltd.

 

 

 

 

 

 

 

 

 

 

 

 

Page 178
Image 178
Huawei MG323 manual Reading the List of Short Messages, Sca, Oct Oct to 1Oct 12 Oct