beautypg.com

Preferred message storage +cpms – Multi-Tech Systems MMCModem GPRS (MTMMC-G) User Manual

Page 63

background image

Chapter 9 – Short Messages Commands

Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I)

63

Preferred Message Storage +CPMS

Description:

This command allows the message storage area to be selected (for reading, writing, etc).

Values:

: Memory used to list, read and delete messages. It can be:

SM

SMS message storage in SIM

(default)

ME

SMS message storage in Flash

BM

CBM message storage (in volatile memory).

SR

Status Report message storage (in SIM if the EF-SMR file exists, otherwise in the ME non
volatile memory)

Note:

SR ME non-volatile memory is cleared when another SIM card is inserted. It is kept,

even after a reset, while the same SIM card is used.

: Memory used to write and send messages
SM

SMS message storage in SIM

(default)

ME

SMS message storage in Flash

: Memory to which received SMS are preferred to be stored
SM

SMS message storage in SIM

(default)

ME

SMS message storage in Flash

If the command is correct, the following message indication is sent:

+CPMS: ,,,,,

When is selected, all following +CMGL, +CMGR and +CMGD commands are related to the
type of SMS stored in this memory.

The maximum number of SMS is Flash is 99.

When the modem is switched on, ,, and are initialized to SM.

Syntax:

Command Syntax: AT+CPMS=,[],[]
Command

Possible responses

AT+CPMS=?

Note: Possible message storages

+CPMS: ((“SM”,”ME”,”BM”,”SR”),(“SM”,”ME”),(“SM”,”ME”))
OK
Note: Read, list, delete: SMS or SMS Status Report
Write, send: SMS

AT+CPMS?

Note: Read

+CPMS: “SM”,3, 10,”SM”,3,10,”SM”,3,10
OK
Note: Read, write…SMS from/to SIM
3 SMS are stored in SIM. 10 is the total memory available in SIM

AT+CPMS= “SM”,”ME”,“SM”
Note: Select SM for reading, ME
for writing and SM for storing

+CPMS: 3,10,3,99,3,10
OK

AT+CPMS=”AM”
Note: Select false message storage

+CMS ERROR: 302

AT+CPMS=”BM”

Note: Select CBM message storage

+CPMS: 2,20,3,10
OK
Note: Read, list, delete CBM from RAM 2 CBM are stored in RAM

AT+CPMS?

Note: Read

+CPMS: “SM”,3,10,”ME”,3,99,“SM”,3,10,
OK
Note: Read, store...SMS from/to flash, write SMS to flash. 3SMS
are stored in flash. 99 is the total memory available in flash

CMTI:

“SM”,4

AT+CPMS= “ME”,”ME”,“ME”
Note: Select ME for reading, ME
for writing and ME for storing

+CPMS: 3,99,3,99,3,99
OK

AT+CPMS?

Note: Read

+CPMS: “ME”,3,99,”ME”,3,99,”ME”,3,99
OK
Note: Read, write, store SMS from/to flash. 3 SMS are stored in
flash. 99 is the total memory available in flash

CMTI:

“ME”,4

Note: Receive an SMS stored in flash at location 4

AT+CPMS= “AM”
Note: Select wrong message
storage

+CMS ERROR: 302

This manual is related to the following products: