Cmgl – list message – Westermo GDW-11 User Manual

Page 95

Advertising
background image

Short Messages commands 95

6615-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=<stat>

Response syntax for text mode:

+CMGL: <index>,<stat>,<da/oa>[,<alpha>] [,<scts>, <tooa/toda>, <length>]
<CR><LF><data> (for SMS-DELIVER and SMS-SUBMIT, may be followed by other <CR>
<LF>+CMGL:<index>...)

+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (for SMS-STATUS-
REPORT only, may be followed by other <CR><LF>+CMGL:<index> . . .)

Response syntax for PDU mode:

+CMGL: <index>,<stat>, [<alpha>], <length> <CR><LF> <pdu> (for SMS-
DELIVER, SMS-SUBMIT and SMS-STATUS-REPORT, may be followed by other
<CR><LF>+CMGL:<index> . . .)

Parameters:

<stat>

Text mode

PDU mode

Possible values (status of messages in

memory)

“REC UNREAD”

0

Received unread messages

“REC READ”

1

Received read messages

“STO UNSENT”

2

Stored unsent messages

“STO SENT”

3

Stored sent messages

“ALL” 4

All

messages

NOTE:

For SMS Status Reports, only “ALL” / 4 and “READ” / 1 values of the <stat> parameter
will list messages ; other values will only return OK.

Advertising
This manual is related to the following products: