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.
161
Value Description
4 All short messages
11.3.2 Reading the List of Short Messages
Write
command
AT+CMGL[=<stat>]
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-1 Structure 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-2 Data structure of TPDU
1 Oct 2 Oct to
12 Oct
1 Oct
1 Oct 7 Oct 1Oct
TP-MTI MMS 0 0 SRI UDHI RP OA PID DCS SCTS UDL UD
Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7