Specifications
UC864-E/G AT Commands Reference Guide
80304ST10041a Rev. 3 - 18/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 137 of 259
+CMGR - Read Message
<sca>,<tosca>,<length>]<CR><LF><data>
Output format for 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, string type represented in the currently selected
character set (see +CSCS)
<da> - Destination address, string type represented in the currently
selected character set (see +CSCS)
<alpha> - string type alphanumeric representation of <da> or <oa>,
corresponding to an entry found in the phonebook; used
character set is the one selected with command +CSCS.
<sca> - Service Centre number
<tooa>,<toda >,<tosca> - type of number <oa>,<da>,<sca>
129 - number in national format
145 - number in international format (contains the "+")
<length> - text length
<data> - TP-User_data
• If <dcs> indicates that GSM03.38/23.038 default alphabet is used ,
each character of GSM/WCDMA alphabet will be converted into current
TE character set (see +CSCS)
• If <dcs> indicates that 8-bit or UCS2 data coding scheme is used,
each 8-bit octet will be converted into two IRA character long
hexadecimal number (e.g. octet 0x2A will be converted as two
characters 0x32 0x41)
Note: in both cases if status of the message is 'received unread', status in
the storage changes to 'received read'.
Note: an error result code is sent on empty record <index>.
AT+CMGR=? Test command returns the OK result code
Example
AT+CMGF=0
AT+CMGR=1