HE863 family AT commands reference guide
80377ST10083a Rev.6 ā 2012-11-12
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved. Page 120 of
229
+CMGR - Read Message
The output depends on the last settings of command +CMGF (message format to
be used)
(PDU Mode)
The output has the following format:
+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> is 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>,,
<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