At+Cmgr Read Sms Messages - Multi-Tech MultiModem EDGE Reference Manual

Wireless edge modems
Table of Contents

Advertisement

12.6 AT+CMGR Read SMS Messages

Description:
Test Command Syntax:
Response:
Write Command Syntax:
Response:
Notes:
Response if AT+CMGR is used to read an empty record index: +CMGR: 0,,0.
Response if AT+CMGR is used to read a non-existent record index: +CMS ERROR: invalid memory index
The parameters <ra> and <tora> will only be displayed if parameter <ra> of the AT^SSCONF command is set to
1.
Users should be aware that when using this AT command quickly after SIM PIN authentication, the SIM data
may not yet be accessible, resulting in a short delay before the requested AT command response is returned.
See Section 20.1 Restricted Access to SIM Data after SIM PIN Authentication.
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371G)
The write command returns SMS message with location value <index> from message
storage <mem1> to the TE. If status of the message is 'received unread', status in the
storage changes to 'received read'.
AT+CMGR=?
OK
AT+CMGR=<index>
Output if text mode (AT+CMGF=1) and command successful:
For SMS-DELIVER
+CMGR
stat
oa
alpha
: <
>, <
>, [<
length
<
>]
<data>
[... ]
OK
For SMS-SUBMIT
+CMGR
stat
da
alpha
: <
>, <
>, [<
length
<
>]
<data>
[... ]
OK
For SMS-STATUS-REPORT
+CMGR: <stat>, <fo>, <mr>, [<ra>], [<tora>], <scts>, <dt>, <st>
<data>
[... ]
OK
For SMS-Commands
+CMGR: <stat>, <fo>, <ct>[, <pid>, [<mn>], [<da>], [<toda>], <length>]
<data>
[... ]
OK
Output if PDU mode (AT+CMGF=0) and command successful:
For SMS-SUBMITs and/or SMS-DELIVERs
+CMGR: <stat>, [<alpha>], <length>
<pdu>
[... ]
OK
ERROR
+CMS ERROR
Chapter 12 – Short Message Service (SMS) Commands
scts
tooa
fo
pid
>], <
>[, <
>, <
>, <
toda
fo
pid
dcs
>][, <
>, <
>, <
>, <
dcs
sca
tosca
>, <
>, <
>, <
>,
vp
sca
tosca
>, [<
>], <
>, <
>,
201

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MultiModem EDGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents