Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set Short Message Commands
7-20
AT+CMG R=1
Note: Read the first SMS from the SIM
+CMGR: “REC UNREAD”,”0146290800”,
“98/10/01,18:22:11+00”, <CR><LF>
My test message: SMS in the SIM at location 1
OK
AT+WMC P=0 ,1
Note: Copy the SMS at location 1 in the
SIM to the Flash
OK
AT+CPM S?
Note: Read the SMS storage
+CPMS: “SM”,3,10,”ME”,1,99,”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. 1 SMS
in Flash
AT+CPMS=“ME”,”ME”,”ME”
Note: Select ME for reading, ME for
writing and ME for storing
+CPMS: 1,99,1,99,1,99
OK
AT+CMG R=1
Note: Read the first SMS from the Flash
+CMGR: “REC READ”,”0146290800”,
“98/10/01,18:22:11+00”,<CR><LF>
My test message: SMS in the SIM at location 1
OK
AT+CMGW=“+33146290800”<CR>
Other test message: SMS in the
Flash at location 2<ctrl-Z>
Note: Write a message in text mode
+CMGW: 2
OK
Note: Message stored in index 2 in the flash
AT+CPM S?
Note: Read the SMS storage
+CPMS: “ME”,2,99,”ME”,2,99,”ME”,2,99
OK
Note: Read, write…SMS from/to the flash. 2 SMS are
stored in the flash.
AT+WMC P=1 ,2
Note: Copy the SMS at location 2 in the
flash to the SIM
OK
AT+CPMS=“SM”,”ME”,”SM”
Note: Select SM for reading, ME for
writing and SM for storing
+CPMS: 4,10,2,99,4,10
OK
AT+CMG R=4
Note: Read the first SMS from the SIM
+CMGR: “REC UNREAD”,”+33146290800”,
“98/10/01,18:22:11+00”,<CR><LF>
Other test message: SMS in the Flash at location 2
OK
AT+CPMS=“ME”
Note: Select ME for reading
+CPMS: 2,99,2,99,4,10
OK
AT+CMGD=0,4
Note: Erase all the SMS stored in the
Flash
OK
AT+CPM S?
Note: Read the SMS storage
+CPMS: “ME”,0,99,”ME”,0,99,”SM”,4,10
OK
Note: No SMS is stored in the flash.