OnCell G2150I AT Command SetShort Message Commands

Preferred Message Storage: +CPMS

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

Command syntax: AT+CPMS=<mem1>,[<mem2>,[<mem3>]]

Command

Possible responses

AT+CPMS=?

+CPMS: ((“SM”,”ME”,”BM”,”SR”),

 

(“SM”,”ME”), (“SM”,”ME”))

Note: Possible message storages

OK

Note: Read, list, delete: SMS or SMS Status

 

Report

 

Write, send: SMS

AT+CPMS?

+CPMS: “SM”,3,10,”SM”,3,10,”SM”,3,10

 

OK

Note: Read

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”

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

Note: Select SM for reading, ME for writing

OK

 

and SM for storing

 

AT+CPMS?

+CPMS: “SM”,3,10,”ME”,3,99,”SM”,3,10

Note: Read

OK

Note: Read, store…SMS from/to flash, write SMS

 

to flash. 3 SMS are stored in flash. 99 is the total

 

memory available in flash

 

+CMTI: “SM”,4

 

Note: Receive a SMS stored in SIM at location 4

AT+CPMS=“ME”,”ME”,”ME”

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

Note: Select ME for reading, ME for writing

OK

and ME for storing

 

AT+CPMS?

+CPMS: “ME”,3,99,”ME”,3,99,”ME”,3,99

 

OK

Note: Read

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”

+CMS ERROR: 302

Note: Select wrong message storage

 

AT+CPMS=“SM”

+CPMS: 4,10,4,99,4,99

Note: Select SM for reading, writing and

OK

storing memory are not changed

 

7-5

Page 58
Image 58
Moxa Technologies G2150I manual Preferred Message Storage +CPMS