Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
30
Example
AT+CNMI=1,1,0,0,0
OK
AT+CNMI=?
+CNMI: (0-3), (0-3), (0,2,3), (0,1), (0,1)
OK
+CNMI: (list of supported <mode>s),(list of
Supported <mt>s),(list of supported <bm>s),
(list of supported <ds>s),(list of supported
<bfr>s)
AT+CNMI?
+CNMI: 1, 1, 0, 0, 0
OK
+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>
OK
Remarks
SMS messages are classified into four classes based on the storing:
Class0: displayed only
Class 1: Stored in the ME memory
Class 2: Stored in the SIM card
Class 3: Directly transmitted to TE
5.6 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 and SMS-DELIVER:
+CMGR:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,<tosca>,<length>]
<CR><LF><data>
if text mode (+CMGF=1), command successful and SMS-SUBMIT:
+CMGR:
<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>], <sca>,<tosca>,<length>]
<CR><LF><data>
if text mode (+CMGF=1),command successful and SMS-STATUS-REPORT:
+CMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
if text mode (+CMGF=1), command successful and SMS-COMMAND:
+CMGR:
<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length><CR><LF><cdata>]