
Chapter 7 – Short Messages Commands
Multi-Tech Systems, Inc. CDMA Wireless AT Commands (PN S000294J)
42
New Message Indication +CNMI
Description:
This command selects the procedure for message reception from the network.
Values <mode>
The <mode> value controls the processing of unsolicited result codes. Only mode 2 is supported at this
time. The other mode values are accepted and return
OK
but the processing of unsolicited result codes
will be the same as with mode value 2.
0
Buffer unsolicited result codes in the TA. If the TA result code buffer is full, indications can be
buffered in some other place or the oldest indications may be discarded and replaced with the new
received indications
1
Discard indication and reject new received message unsolicited result codes when TA-TE link is
reserved. Otherwise forward them directly to the TE
2
Buffer unsolicited result codes in the TA when TA-TE link is reserved and flush them to the TE after
reservation. Otherwise forward them directly to the TE
3
Forward unsolicited result codes directly to the TE. TA-TE link specific in band used to embed result
codes and data when TA is in on-line data mode
<mt>
Sets the result code indication routing for SMS-DELIVERs. Default is 1.
0
No SMS-DELIVER indications are routed.
1
SMS-DELIVERs are routed using unsolicited code: +CMTI: “MT”, <index>
2
or 3
SMS-DELIVERs (except class 2 messages) are routed using unsolicited code: +CMT: <oa>,
<scts>, <tooa>, <lang>, <encod>, <priority>[,<cbn>],<length><CR><LF><data> (text mode)
<bm>
Sets the result code indication routing for received Cell Broadcast Messages. Default is 1.
0
No CBM indications are routed to the TE. The CBMs are stored.
1
The CBM is stored and an indication of the memory location is routed to the customer application
using unsolicited result code: +CBMI: “BC”, <index>
2
or 3
New CBMs are routed directly to the TE using unsolicited result code (format matches that of
+CBM: <oa>, [<alpha>,] <scts> [,<tooa>, <length>] <CR><LF><data> (text mode)
<ds>
sets the routing for SMS-STATUS-REPORTs. Default is 1.
0
No SMS-STATUS-REPORTs are routed.
1
SMS-STATUS-REPORTs are routed using unsolicited code: +CDS: <fo>, <mr>, [<ra>] , [<tora>],
<scts>, <dt>, <st> (Text mode)
2
SMS-STATUS-REPORTs are stored and routed using the unsolicited result ode: +CDSI: “SR”,
<index>
<bfr>
Default is 0.
0
TA buffer of unsolicited result codes defined within this command is flushed to the TE when <mode>
1…3 is entered (OK response shall be given before flushing the codes)
1
TA buffer of unsolicited result codes defined within this command is cleared when <mode> 1…3 is
entered.
Syntax:
Command syntax:
AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>
Command
Possible Responses
AT+CNMI=2,1,0,0,0
Note: <mt>=1
OK
AT+CMTI : “MT”,1
Note: message received
AT+CNMI=2,2,0,0,0
Note: <mt>=2
OK
+CMT : “8585551212”,”98/10/01,12 :30
00”,129,1,2,0,5<CR><LF>
Hello
Note: message received
AT+CNMI=2,0,0,1,0
Note: <ds>=1
OK
AT+CMGS=”8585551212”<CR>
Message to send <ctrl-Z>
Note: Send a message in text mode
+CMGS : 7
OK
Note: Successful transmission
+CDS : 2, 116, ”8585551212”, 129, “98/10/01,12 :30 :07”,
“98/10/01 12 :30 :08”, 32768
Note: message was correctly delivered