At+cpms Detailed
At+cpms Preferred SMS Message storage
Revision according to GSM 07.05 Version 4.7.0
Test command
At+cpms=?
Response
+cpms: (List of supported <mem1>s), (list of supported <mem2>s), (list
+of
Supported <mem3>s)
Parameter
<mem1>
Memory from which messages is read and deleted
SM SIM Message Storage
ME Mobile Equipment Message storage
MT combination of "ME" and "SM" storages
<mem2> Messages'll is written and sent to this memory storage:
SM SIM Message Storage
ME Mobile Equipment Message storage
MT combination of "ME" and "SM" storages
<mem3> Memory in which received messages is preferred to be stored, if
Routing to TE isn't set (see At+cnmi command with parameter
<mt>=2)
SM SIM Message Storage
ME Mobile Equipment Message storage
MT combination of "ME" and "SM" storages
Read command
At+cpms?
Response
+cpms:
<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<used3> , <total3
>
Parameter
<memx>
Memory from which messages is read and deleted
<usedx> number of messages currently in <memx>
<totalx> total number of messages so can stored in <memx>
Write command
At+cpms= <mem1>[,<mem2>[,<mem3>]]
Parameter
<mem1>
See Test command
<mem2> See Test command
<mem3> See Test command
+cpms: <used1>,<total1>,<used2>,<total2>,<used3>,<total3>
Ok/error/+cms ERROR
Notes 1) The Mobil equipment storage "ME" has capacity for a short messages
2) The storage "MT" is a combination of "ME" and "SM" storage. If "MT" is
Chosen indices < Refer to ME "storage while indices or higher is
Associated with the "SM" storage
3) Incoming short messages with message Class 2 (see GSM 03.38) 'll be
stored in the ' SM ' storage only. Therefore, the at^smgo:2 indication (see
At^smgo command) can occur without a preceding at^smgo:1 indication.
Some concepts:
MEM1: Read and delete the memory space where the SMS is located.
MEM2: The memory space where text messages are written and text messages are sent.
MEM3: The stored location of the received SMS.
Specific usage:
1. Statement:
At+cpms=?
Role:
Test the command. Used to get a list of the storage locations supported by the phone. Back on my Siemens M55 phone:
At+cpms=?
+cpms: ("Mt", "SM", "Me"), ("Mt", "SM", "Me"), ("Mt", "SM", "Me")
Mobile phone support MT (mobile phone terminal), SM (SIM card), ME (mobile device)
2. Statement:
At+cpms= "MT", "ME", "SIM"
Set MEM1 to Mt,mem2 to Me,mem3 as Sim
3. Statement:
At+cpms?
Role:
Get the current settings.
For example, after the setting of the second statement is returned:
At+cpms?
+cpms: "MT", 7,150, "ME", 7,100, "SM", 0,50
There are 7 messages in MT, which can be stored in a total of 150. There are 7 articles in me, which can be stored in a total of 150 articles. 50 can be stored on the SIM card.