User's Manual

Page 138 of 187
TECHNICAL MANUAL
Telit GM862 PCS
Tri Band GPRS Data Terminal System Rev.1
2.6.3.3 +CMGR - read message
+CMGR – read message
Execute command
AT+CMGR = <index>
Reports the message with location value <index> from preferred
message storage <memr> (see +CPMS) in the format:
(PDU Mode)
+CMGR: <stat>,<length><CR><LF><pdu>
where
<stat> - status of the message
0 - new message
1 - read message
2 - stored message not yet sent
3 - store message already sent
<length> - length of the PDU in bytes.
<pdu> - message in PDU format according to GSM 3.40.
(Text Mode)
For the sent messages:
+CMGR: <stat>,<oa>,,<scts> [,<tooa>,<fo>,<pid>,<dcs>,<sca>,
<tosca>,<length>]<CR><LF><text>
For the received messages:
+CMGR: <stat>,<da>[,,<toda>,<fo>,<pid>,<dcs>,,
<sca>,<tosca>,<length>]<CR><LF><testo>
For the message delivery confirm:
+CMGR: <stat>,<fo>,<mr>,,,<scts>,<dt>,<st>
Where:
<stat> - 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
<fo> - first octet of the message PDU
<mr> - message reference number
<scts> - arrival time of the message to the SC
<dt> - sending time of the message