User's Manual
Telit TRIZIUM Product Description
80264ST10007a Rev. 4– 09/09/04
Reproduction forbidden without DAI Telecom written authorization – All Right reserved – Right of modification reserved page 135 of 202
5.5.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
<st> - message status as coded in the PDU
<pid> - Protocol Identifier
<dcs> - Data Coding Scheme
<oa> - Originator address number
<da> - Destination address number
<sca> - Service Centre number
< tooa>,<toda >,<tosca> - type of number <oa>,<da>,<sca>
145 - number in international format (contains the "+")
129 - number in national format
<length> - text length
<text> - message text
The status of the message and entire message data unit <pdu> is returned. If status
of the message is 'received unread', status in the storage changes to 'received
read'.
Parameter: <index>
Note: if record number <index> on message storage memory is empty, then an