beautypg.com

Westermo GD-01 User Manual

Page 64

background image

64

6196-2220

+CMGL – List message

Description:

This command allows the application to read stored messages, by indicating the type of
the message to read.The messages are read from the memory selected by the +CPMS
command.

Syntax:

AT+CMGL=

Response syntax for text mode:

+CMGL: ,,[,], [, , ]
(for SMS-DELIVER and SMS-SUBMIT, may be followed by other
+CMGL:...)

+CMGL: ,,,,[],[],,

,
(for SMS-STATUS-REPORT only, may be followed by other
+CMGL:...)

Response syntax for PDU mode:

+CMGL: ,, [],
(for SMS-DELIVER, SMS-SUBMIT and SMS-STATUS-REPORT, may be followed by other
+CMGL:...)

Command example

Possible responses

Note

AT+CMGL=“REC UNREAD”

+CMGL: 1,”REC UNREAD”,

List unread messages in

”0146290800”,

text mode, 2 messages

are

unread, these

Unread message!

messages will then have

+CMGL: 3,

their status changed to

”REC UNREAD”,

“REC READ” (+CSDH:0)

“46290800”,

OK

AT+CMGL=”REC READ”

+CMGL: 2,”REC READ”,

List read messages in text

”0146290800”,

mode

OK

AT+CMGL=”STO SENT”

OK

List stored and sent
messages in text
mode, result: no message
found

AT+CMGL=1

+CMGL: 1,1,,26

List read messages in

07913366003000F3040

PDU mode

B913366920547F4
B913366920547F4
001300119041253040074
1AA8E5A9C5201

OK

B A C K