nrf9160

Set command

The set command sends a new message or delivery status ACK. A client receiving unsolicited notifications for new messages and delivery status is mandated to acknowledge those. This command can be used only when the modem is activated.

Note:
  • This command can be issued only by a client registered with the +CNMI command.
  • After sending cause 22, the %XSMMA command needs to be used when memory is available.

If the User Equipment (UE) does not get an acknowledgement within the required time (network timeout), it should respond as specified in 3GPP TS 24.011, and UE/Terminal Adapter (TA) shall automatically disable routing to the Terminal Equipment (TE) by setting both <mt> and <ds> values of +CNMI to zero, that is, the SMS client gets unregistered. In that case, the Mobile Equipment (ME) informs the TE client with a CMS ERROR: 524 notification.

Syntax:

+CNMA[=<n>[,<length>[<CR>PDU is given<ctrl-Z/ESC>]]]
+CMS ERROR code
300 – ME failure.
302 – Not allowed.

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

<n>
0 – The command operates in the same way as defined for the text mode, see New message ACK, text mode +CNMA
1 – Send RP-ACK
2 – Send RP-ERROR
<length>
ASCII, 1–3 characters. Number of hexadecimal octets in <pdu>.
<pdu>
Hexadecimal numbers containing two International Reference Alphabet (IRA) characters per octet.

The following command example confirms the reception of a message, timestamp 06/11/2071 13:26:31:

AT+CNMA=1,9<CR>010017116031621300<ctrl-z>
OK