Read command

The command is used to query how new messages are indicated.

Response syntax:

+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>

The set command parameters and their defined values are the following:

<mode>
0 – Do not forward unsolicited result codes to the Terminal Equipment (TE) (default).
3 – Forward unsolicited result codes directly to the TE.
<mt>
0 – No received message notifications, the modem acts as an SMS client.
2 – SMS-DELIVERs (except class 2 and message waiting indication group) are routed directly to the TE.
<bm>
No CBM notifications are routed to the TE.
<ds>
0 – No SMS-STATUS-REPORTs are routed to the TE.
1 – SMS-STATUS-REPORTs are routed to the TE using unsolicited result code: +CDS: <length><CR><LF><pdu>.
<bfr>
1 – The buffer of unsolicited result codes is cleared when <mode> 1...3 is entered

Example:

AT+CNMI?
+CNMI: 3,2,0,1,1
OK