beautypg.com

7 reading an sms, At+cmgr=

Page 76

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 76 of 120

3.5.7 Reading an SMS


A new SMS can be read with the command:

send command

AT+CMGR=

where:

: SMS location index

wait for response in the format:

Output format for received messages (the information written in italics will be present depending on
+CSDH last setting):
+CMGR: ,,,[,,,,
,,,]


Output format for sent messages:
+CMGR: ,,[,,,,,,
,,]


Output format for message delivery confirm:
+CMGR: ,,,,,,

,

where:
- status of the message
"REC UNREAD" - new received message unread
"REC READ" - received message read
"STO UNSENT" - message stored not yet sent
"STO SENT" - message stored already sent
- first octet of the message PDU
- message reference number
- arrival time of the message to the SC
- sending time of the message
- message status as coded in the PDU
- Protocol Identifier
- Data Coding Scheme
- Originator address, string type represented in the currently selected character set (see

+CSCS)

- Destination address, string type represented in the currently selected character set (see

+CSCS)

- string type alphanumeric representation of or , corresponding to an entry found

in the phonebook; used character set is the one selected with command +CSCS. NB: this
optional field is currently not supported.

- Service Centre number
,, - type of number ,,
129 - number in national format