GSM/GPRS Module
M35
AT Commands Manual
M35
_AT_Commands_Manual Confidential / Released
97
/
186
Unsolicited result code
+CMTI:
<mem>,<index>
Indicates that new message has been received
+CMT: [<alpha>],<length><CR><LF><pdu>
Short message is output directly
+CBM: <length><CR><LF><pdu>
Cell broadcast message is output directly
Example
AT+CMGF=1
// Set SMS message format as text mode
OK
AT+CSCS=”GSM”
// Set character set as GSM which is used by the TE
OK
AT+CNMI=2,1
// SMS-DELIVER is stored into ME/TA, indication of the
memory location is routed to the TE
1
If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed
to the TE by using unsolicited result code:
+CMTI: <mem>,<index>
2
SMS-DELIVERs (except class 2) are routed directly to the TE using unsolicited
result code:
+CMT: [<alpha>],<length><CR><LF><pdu>
(PDU mode enabled)
or
+CMT: <oa>, [<alpha>],<scts>
[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data>
(Text mode enabled; about parameters in italics, refer to Command Show Text
Mode Parameters
+CSDH
). Class 2 messages result in indication as defined in
<mt>
=1
3
Class 3 SMS-DELIVERs are routed directly to TE by using unsolicited result
codes defined in
<mt>
=2. Messages of other classes result in indication as
defined in
<mt>
=1
<bm>
(The rules for storing received CBMs depend on its data coding scheme (refer to GSM
03.38 [2]), the setting of Select CBM Types (
+CSCB
) and this value):
0
No CBM indications are routed to the TE
2
New CBMs are routed directly to the TE by using unsolicited result code:
+CBM:
<length>
<CR><LF>
<pdu>
(PDU mode enabled) or
+CBM:
<sn>,<mid>,<dcs>,<page>,<pages>
<CR><LF>
<data>
(Text mode enabled)
3
Class 3 CBMs are routed directly to TE by using unsolicited result codes defined
in <
bm
>=2. If CBM storage is supported, messages of other classes result in
indication as defined in <
bm
>=1
<ds>
0
No SMS-STATUS-REPORTs are routed to the TE
1
SMS-STATUS-REPORTs are routed to the TE by using unsolicited result code:
+CDS:
<length>
<CR><LF>
<pdu>
(PDU mode enabled) or
+CDS:
<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
(Text mode enabled)
<bfr>
0
TA buffer of unsolicited result codes defined in this command is flushed to the TE
when
<mode>
1...3 is entered (
OK
response shall be given before flushing the
codes)
NOTE