Technical data

WMO2 G900 / G1800 / G1900
WCOM/GSM/WMO2/WMO2ATDOC Friday 21 May 1999
WAVECOM confidential © 54
4.6.10 List message +CMGL
This command allows the application to read stored messages, by
indicating the type of the message to read.
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>…)
Response syntax for PDU mode:
+CMGL: <index>,<stat>, [<alpha>], <length> <CR><LF> <pdu>
(for SMS-DELIVER and SMS-SUBMIT,
may be followed by other <CR><LF>+CMGL:<index>…)
<stat> possible values (status of message in memory):
PDU mode Text mode
0 "REC UNREAD" ( received unread message )
1 "REC READ" ( received read message )
2 "STO UNSENT" ( stored unsent message )
3 "STO SENT" ( stored sent message )
4 "ALL" ( all messages )
Application to GSM AT+CMGL=”REC UNREAD” List unread messages in text
mode
GSM to application +CMGL: 1, "REC UNREAD", "0146290800",
<CR><LF>
Unread Message!
+CMGL: 3, "REC UNREAD", "46290800",
<CR><LF>
Another Unread Message!
OK
2 messages are unread, these
messages will then have their
status changed to “REC
READ”.
(+CSDH: 0)
Application to GSM AT+CMGL=”REC READ” List read messages in text
mode
GSM to application +CMGL: 2, "REC READ", "0146290800",
<CR><LF>
Keep cool
OK
Application to GSM AT+CMGL="STO SENT" read stored and sent
messages
GSM to application +CMS ERROR: 322 No message found