AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page90of233
+CMGR - Read Message
+CMGR: <stat>,<alpha>,<length><CR><LF><pdu>
Where:
<stat>
- status of the message
0 - new message
1 - read message
2 - stored message not yet sent
3 - stored message already sent
<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.
<length> - length of the PDU in bytes.
<pdu> - message in PDU format according to 3GPP TS 3.40/23.040.
The status of the message and entire message data unit
<pdu> returned.
(Text Mode)
Output format for received messages (the information written in italics will be
present depending on
+CSDH last setting):
+CMGR: <stat>,<oa>,<alpha>,<scts>[,<tooa>,<fo>,<pid>,
<dcs>,<sca>,<tosca>,<length>]
<CR><LF><data>
Output format for sent messages:
+CMGR: <stat>,<da>,<alpha>[,<toda>,<fo>,<pid>,<dcs>,[
<vp>],<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)