> 13.12 | AT+CPMS Preferred SMS message storage

> The write command selects memory storages <mem1>,<mem2>, <mem3> to be used for reading, writing, etc.
> Syntax

> Test Command AT+CPMS=?
> Response(s)
> +CPMS: (list of supported <mem1>s), (list of supported <mem2>s), (list of supported <mem3>s)
> OK

> Read Command AT+CPMS?
> Response(s)
> +CPMS: <mem1>, <used1>, <total1>, <mem2>, <used2>, <total2>, <mem3>, <used3>, <total3>
> OK
> ERROR
> +CMS ERROR

> Write Command AT+CPMS=<mem1>[, <mem2>[, <mem3>]]
> Response(s)
> +CPMS: <used1>, <total1>, <used2>, <total2>, <used3>, <total3>
> OK
> ERROR
> ERROR
> +CMS ERROR

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

> Parameter Description

> <used1>(num)

> Number of messages currently in <mem1>

> <used2>(num)

> Number of messages currently in <mem2>

> <used3>(num)

> Number of messages currently in <mem3>

> <total1>(num)

> Number of messages storable in <mem1>

> <total2>(num)

> Number of messages storable in <mem2>

> <total3>(num)

> Number of messages storable in <mem3>
> Notes

> • | The Mobile Equipment storage ''ME'' offers space for 25 short messages, see <mem1>.

> • | ''MT'' is the sum of ''ME'' (= 25 locations) and ''SM'' (capacity varies with SIM card). The indices <index> of the ''MT'' storage are dependent on the order selected with AT^SSMSS

> • | The <mem1>, <mem2> and <mem3> parameter will be stored in non-volatile memory.

> • | The user should be aware that the setting ''MT'' involves ''ME'' and ''SM'', with ''ME'' being filled up first. If the ''ME'' storage is full, TC65 will proceed with the ''SM'' storage. Incoming Class 1 short messages (ME specific) will be preferably stored to ''ME'' and may be transferred to the ''SM'' storage if ''ME'' is used up. Incoming Class 2 messages (SIM specific) will be stored to the SIM card only, no matter whether or not there is free ''ME'' space. As a result, the ^SMGO: 2 indication (see AT^SMGO) may be presented without prior indication of ^SMGO: 1. For more information regarding SIM and ME specific message classes refer to <dcs> and the following specifications: GSM 03.38 and 3GPP TS23038.

> • | Multiplexer: In Multiplex mode or when the two physical serial interfaces are connected, the parameter <mem3> will be the same on all instances, but the settings of <mem1> and <mem2> may vary on each channel / interface. As a result, changes on parameter <mem1> and/or <mem2> befor activating the multiplexer or differences values for other instanes can result in not desired behaviours like different outputs for AT+CMGL and so on.

> • | While <mem3> equals ''SM'' and <mem1> equals ''ME'' it is possible that, after deleting short messages from ''ME'', the freed space on ''ME'' is reclaimed for new incoming short messages, when there is no space left on the ''SM'' storage. As it is often the clients concern to have received short messages stored only to the SIM card, inconsistent settings should be generally avoided. This can be achieved simply by using the same parameter for all memory indices.

> • | Users should be aware that when using this AT command quickly after SIM PIN authentication the SIM data may not yet be accessible, resulting in a short delay before the requested AT command response is returned. See Section 23.1, Restricted access to SIM data after SIM PIN authentication for further detail.

> • | The indices <index> of the storage are dependent on the order selected with AT^SSMSS.