AT Command

Description

AT+CPMS command is used to select preferred storage for SMS messages.


Support

Module Tutorial

Examples

KeywordsAT+CPMS syntax, examples, parameters, error, input, response.

Try the below script in the AT Command Tester tool

//Script: at_cpms.at
//Use this script to AT+CPMS AT command


//Get the command support
AT+CPMS=?

WAIT=2

//Get the current assignment for mem1, mem2, m3m3
//This command also return used and total available for each memory
//"ME" and "MT" - Flash message storage
//"SM" SIM message storage
//"SR" Status report storage
AT+CPMS?

WAIT=1

//SMS AT command is compatible with GSM phase 2+
//Configure mem1 for SIM, mem2 for flash storage and mem3 for SIM
AT+CPMS="SM","ME","SM"

Output of the above script in the AT Command Tester tool
tool.

AT+CPMS=?

+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","SM")

OK
AT+CPMS?

+CPMS: "SM",0,3,"ME",0,255,"SM",0,3

OK
AT+CPMS="SM","ME","SM"

+CPMS: 0,3,0,255,0,3

OK