Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
21
AT+CNMI?
+CNMI: 1, 1, 0, 0, 0
OK
Query the current setting of the parameters.
Remarks
The default settings of this command are
0, 2, 0, 0,0
.
The recommended setting is
+CNMI: 2,1,0,0,0
(new messages are stored on SIM
card rather than displayed directly) or
+CNMI:2,2,0,0,0
(new messages are
displayed directly rather than stored on SIM card).
SMS messages are classified into four classes based on the storing:
Class 0: displayed only
Class 1: Stored in the ME memory
Class 2: Stored in the SIM card
Class 3: Directly transmitted to TE
2.5
Reading SMS Messages: +CMGR
Description
To read SMS messages stored in current memory (use the
AT+CPMS
command to
specify the current memory)
Format
AT+CMGR=<index><CR>
Parameter
<index>:location value <index> from preferred message storage <mem1> to the TE
Return Value
if text mode (+CMGF=1), command successful:
<CR><LF>+CMGR:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,<tosca>,<length>]
<CR><LF><data><CR><LF><CR><LF>OK<CR><LF>
if PDU mode (+CMGF=0) and command successful:
<CR><LF>+CMGR:
<stat>,[<alpha>],<length><CR><LF><pdu><CR><LF><CR><LF>OK<CR><LF>
<alpha>: Name of <da> or <oa> on MT
<stat>: Message status in store
<oa>: character string of source number
<scts>: character string of SMSC time
<length>: data length in text mode; TPUD bytes in PDU mode.
<pdu>: hexadecimal value of ME/TA
<data>: SMS data
Example
AT+CMGR=12
+CMGR: "REC
READ","13410995077","","14/07/02,14:06:25+32"
asdf?@123
OK
Read the 12
th
message in text
mode.
AT+CMGR=12
+CMGR: 1,,27
0891683110808805F0240BA13114905970F7000041
Read the 12
th
message in PDU
mode.