Rainbow Electronics GM862-QUAD-PY User Manual

Page 206

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 206 of 434

+CMGR - Read Message

SELINT 0 / 1

delete SMs as last settings of command +CPMS).


Parameter:
<index> - message index.

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>,<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
<length> - length of the PDU in bytes.
<pdu> - message in PDU format according to GSM 3.40.

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>,,<scts> [,<tooa>,<fo>,<pid>,<dcs>,<sca>,
<tosca>,<length>]
<CR><LF><data>

Output format for either sent or unsent messages:
+CMGR: <stat>,<da>,[,<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

Advertising