> 13.16 | AT+CSMP Set SMS text Mode Parameters

> The write command selects values for additional parameters needed when the short message is sent to the network or placed in a storage when text format message mode is selected.
> It is possible to set the validity period starting from the time when the short message is received by the SMSC (<vp> is in range 0... 255) or define the absolute time of the validity period termination (<vp> is a string). The format of <vp> is given by <fo>. If TA supports the enhanced validity period format, see GSM 03.40), it shall be given as a hexadecimal coded string (e.g. <pdu>) with quotes.
> Syntax

> Test Command AT+CSMP=?
> Response(s)
> OK

> Read Command AT+CSMP?
> Response(s)
> +CSMP:<fo>, <vp>/ <scts>, <pid>, <dcs>
> OK

> Write Command AT+CSMP=<fo>[, <vp>/<scts>[, <pid>[, <dcs>]]]
> Response(s)
> +CSMP: <index>
> OK
> If sending fails
> ERROR
> +CMS ERROR

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> GSM 07.05 |  | + |  | + | + | + | + | + | + |  |  | - | + | -

> Parameter Description

> <fo>(num)

> First Octet
> depending on the command or result code: first octet of GSM 03.40 SMS-DELIVER, SMS-SUBMIT (default 17), SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer format
> 0...17(&F)...255

> <vp>(num)

> Depending on SMS-SUBMIT <fo> setting: GSM 03.40 TP-Validity-Period either in integer format or in time-string format (refer <dt>)
> 0...167(&F)...255

> <dcs>(num)

> Data Coding Scheme
> GSM 03.38 SMS Data Coding Scheme, or Cell Broadcast Data Coding Scheme in integer format
> 0(&F)...247

> <pid>(num)

> Protocol Identifier
> GSM 03.40 TP-Protocol-Identifier in integer format
> 0(&F)...255
> Notes

> • | When storing a SMS DELIVER from the TE to the preferred memory storage in text mode (using the AT+CMGW write command), <vp> field can be used for <scts>.

> • | The command writes the parameters to the non-volatile memory.