AT+CNMI

 AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>

<mode>
0: Buffer unsolicited result codes in the TA. If 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 TATE
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 inband 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 0.

<mt>
0: No SMS-DELIVER indications are routed.
1: SMS-DELIVERs are routed using unsolicited code : +CMTI: “SM”,<index>
2: SMS-DELIVERs (except class 2 messages) are routed using unsolicited code : +CMT :
[<alpha>,] <length> <CR> <LF> <pdu> (PDU mode) or +CMT : <oa>,[<alpha>,] <scts>
[,<tooa>, <fo>, <pid>, <dcs>, <sca>, <tosca>, <length>] <CR><LF><data> (text mode)
3: Class 3 SMS-DELIVERS are routed directly using code in <mt>=2 ; Message of other
classes result in indication <mt>=1

<bm>
set the rules for storing received CBMs (Cell Broadcast Message) types depend on its
coding scheme, the setting of Select CBM Types (+CSCB command) and
<bm>. Default is 0.

<bm>
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: “BM”, <index>
2: New CBMs are routed directly to the TE using unsolicited result code. +CBM :
<length><CR><LF><pdu> (PDU mode) or +CBM
:<sn>,<mid>,<dcs>,<page>,<pages>(Text mode) <CR><LF> <data>
3: Class 3 CBMs : as <bm>=2. Other classes CBMs : as <bm>=1.

<ds>
for SMS-STATUS-REPORTs. Default is 0.

<ds>
0: No SMS-STATUS-REPORTs are routed.
1: SMS-STATUS-REPORTs are routed using unsolicited code : +CDS : <length> <CR> <LF>
<pdu> (PDU mode) or +CDS : <fo>,<mr>, [<ra>] , [<tora>], <scts>,<dt>,<st> (Text mode)
2: SMS-STATUS-REPORTs are stored and routed using the unsolicited result code :
+CDSI: “SR”,<index>

<bfr>
Default is 0.

<bfr>
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.
posted @ 2006-08-14 17:33  Rookie.Zhang  阅读(876)  评论(0编辑  收藏  举报