beautypg.com

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

Page 51

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 =
+CMGL: , , ,
[, , , ]
data

OK

Parameter Values

See Notes

Memory location integer

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

destination address

alphanumeric representation of or corresponding to the entry found in
MT phonebook

Service center time stamp

Address Type-of-Address octet in integer format

Length of message in octets

Above settings for assume
AT+CMGF=1 (text mode). For
AT+CMGF=0 (PDU mode), the following
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

This manual is related to the following products: