User Manual
GM862-GPS Software User Guide
1vv0300729 Rev. 5 - 05/07/07
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 78 of 120
3.5.8 Listing a group of SMSs
The SMS can be grouped into 5 different groups depending on their status:
REC UNREAD - received messages still not read
REC READ - received messages already read
STO UNSENT - written messages not yet sent
STO SENT - written messages already sent
ALL - all types of messages
It is possible to have the list of all the messages in one group:
•
send command
AT+CMGL=<stat><cr>
where:
<stat> - status group of the message
"REC UNREAD" - new message
"REC READ" - read message
"STO UNSENT" - stored message not yet sent
"STO SENT" - stored message already sent
"ALL" - all messages
• wait for response in the format:
For every message in the group:
+CMGL: <index>,<stat>,<oa/da> [,,,<tooa/toda>,<length>]
<CR><LF><text>
where:
<index> - message index position on the storage
<stat> - status of the message
"REC UNREAD" - new message
"REC READ" - read message
"STO UNSENT" - stored message not yet sent
"STO SENT" - stored message already sent
<oa/da> - sender number/destination number
< tooa/toda > - type of number <oa/da>
145 - international number (contains "+" character)
129 - national number
<length> - length of the message text in characters
<text> - message text
NOTE: If status of the message is 'received unread', status in the storage changes to 'received read'.










