Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set Short Message Commands
7-5
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=?
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+CPM S?
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+CPM S?
Note: Read
+CPMS: “SM”,3,10,”ME”,3,99,”SM”,3,10
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”
Note: Select ME for reading, ME for writing
and ME for storing
+CPMS: 3,99,3,99,3,99
OK
AT+CPM S?
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
AT+CPMS=“SM”
Note: Select SM for reading, writing and
storing memory are not changed
+CPMS: 4,10,4,99,4,99
OK