AT+CNMI: New Message indication to TE
Command Possible response(s) +CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]] +CNMI?+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr> +CNMI=?+CSCB: (list of supported <mode>s,<mt>s,<bm>s,<ds>s,<bfr>s)
<mode>: 0: buffer in TA;
1: discard indication and reject new SMs when TE-TA link is reserved; otherwise forward
directly;
2: buffer new Sms when TE-TA link is reserved and flush them to TE after reservation;
otherwise forward directly to the TE;
3: forward directly to TE;
<mt>: 0: no SMS-DELIVER are routed to TE;
1: +CMTI: <mem>,<index> routed to TE;
2: for all SMS_DELIVERs except class 2: +CMT: .... routed to TE;
class 2 is indicated as in <mt>=1;
3: Class 3: as in <mt>=2;
other classes: As in <mt>=1;
<bm>: same as <mt>, but for CBMs;
<ds>: 0: No SMS-STATUS-REPORT are routed to TE;
1: SMS-STATUS-REPORTs are routed to TE, using +CDS: ...
<bfr>: 0: TA buffer is flushed to TE (if <mode>=1..3);
1: TA buffer is cleared (if <mode>=1..3);
AT+CNMI=1,1,0,0,0 ; Enable de reception of SM's
+CMTI: "ME",3 ; a SM is received and stored in ME, index 3 (send from modem!)
AT+CPMS="ME" ; Make sure memory is OK
OK
AT+CMGR=3 ; Read message
+CMGR: "REC UNREAD",,,
Hello world