SMS
3-100 AT Commands Reference Manual June 30, 2008
The following table shows the +CPMS parameters.
Note: The value 'Total' is the total number of messages, of maximal size, that can be stored in
the corresponding 'mem': Total1 for mem1, Total2 for mem2, and Total3 for mem3.
The 'Total' values are not fixed. They are recalculated after any change in message storage
contents. Calculated value is 'size of free storage' divided by 'maximal size of message'.
The maximal message size includes the maximal size of message contents, and the
maximal size of all header fields.
For example, if message storage is empty, the output will be as follows:
AT+CP MS?
+CPMS: "MT",0,76,"ME",0,56,"SM",0,20
When writing five new messages, five characters long each, the output will be as follows:
AT+CP MS?
+CPMS: "MT",5,79,"ME",5,59,"SM",0,20.
In the first example, the ’Total2’ value was 56. In the second example, the ’Total2’ value
is 59. Because new messages are shorter, more memory is available for additional
messages.
Example
AT+CP MS= "SM"
+CPMS: 5,20,5,59,5,20
OK
AT+CP MS?
+CPMS: "SM",5,20,"ME",5,59,"SM",5,20
OK
AT+CP MS= "ME"
+CPMS: 5,59,5,59,5,20
OK
AT+CP MS?
+CPMS: "ME",5,59,"ME",5,59,"SM",5,20
OK
Table 3-52:+CPMS Parameters
<Parameter> Description
<mem1> memory from which messages are read and deleted.
Supported values are: "MT","SM","ME","BM".
The default value at power-up is "MT".
<mem2> memory to which writing operation is made.
Supported value is: "ME".
The default value at power-up is "ME".
<mem3> memory to which received SMS are stored (unless forwarded directly to TE).
Supported value is: "SM".
The default value at power-up is "SM".
"BM" broadcast message storage
"ME" ME message storage
"MT" All storages
"SM" SIM message storage