beautypg.com

8 listing a group of smss, At+cmgl=

Page 78

background image





GM862-GPS Software User Guide

1vv0300729 Rev. 5 - 05/07/07

Reproduction forbidden w ithout Telit Communications S.p.A. w ritten 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=

where:

- 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: ,, [,,,,]


where:

- message index position on the storage
- 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

- sender number/destination number
< tooa/toda > - type of number

145 - international number (contains "+" character)
129 - national number

- length of the message text in characters
- message text


NOTE: If status of the message is 'received unread', status in the storage changes to 'received read'.