At+cmgl list messages – Horner APG XLt OCS HE-GSM04 User Manual

Page 51

Advertising
background image

MAN4005-04-EN

GPRS / GSM MODEM Configuration

PAGE 51


11. AT+CMGL List Messages

AT+CMGL

List Messages

Command Function

List messages from storage.

Command Functional Group

Short Message Services

Command Format Query
Response

AT+CMGL=?
+CMGL: (“REC UNREAD”,”REC
READ”,”STO UNSENT”,”STO
SENT”,”ALL”)
OK

Write Format
Response

N/A
N/A

Read Format
Response

N/A
N/A

Execution Format
Response

AT+CMGL =<stat>
+CMGL: <index>, <stat>, <da/oa>,
[<alpha>, <scts>, <tooa/toda>, <length>]
<CR><LF> data

OK

Parameter Values

See Notes

<index>

Memory location integer

<stat>

Status of message
“REC UNREAD”
“REC READ”
“STO UNREAD”
“STO READ”
“ALL”

<do/oa>

destination address

<alpha>

alphanumeric representation of <da> or <oa> corresponding to the entry found in
MT phonebook

<scts>

Service center time stamp

<tooa/toda>

Address Type-of-Address octet in integer format

<length>

Length of message in octets

Above settings for <stat> assume
AT+CMGF=1 (text mode). For
AT+CMGF=0 (PDU mode), the following
<stat> values are supported: 0,1,2,3,4.
Parameters in [] may or may not be reported dependent upon the setting
of AT+CMGF.

0

“Rec Unread”

1

“Rec Read”

2

“Sto Unsent”

3

“Sto Sent”

Notes

4

“ALL”

Page 51 of 62 ECN # 956

Advertising
This manual is related to the following products: