OnCell G2150I AT Command Set

Short Message Commands

 

 

 

 

AT+CMGR=1

+CMGR: “REC UNREAD”,”0146290800”,

 

Note: Read the first SMS from the SIM

“98/10/01,18:22:11+00”, <CR><LF>

 

My test message: SMS in the SIM at location 1

 

 

OK

 

AT+WMCP=0,1

OK

 

Note: Copy the SMS at location 1 in the

 

 

SIM to the Flash

 

 

AT+CPMS?

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

 

Note: Read the SMS storage

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”

+CPMS: 1,99,1,99,1,99

 

Note: Select ME for reading, ME for

OK

 

 

 

writing and ME for storing

 

 

AT+CMGR=1

+CMGR: “REC READ”,”0146290800”,

 

Note: Read the first SMS from the Flash

“98/10/01,18:22:11+00”,<CR><LF>

 

My test message: SMS in the SIM at location 1

 

 

OK

 

AT+CMGW=“+33146290800”<CR>

+CMGW: 2

 

Other test message: SMS in the

OK

 

Flash at location 2<ctrl-Z>

Note: Message stored in index 2 in the flash

 

Note: Write a message in text mode

 

 

AT+CPMS?

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

 

Note: Read the SMS storage

OK

 

Note: Read, write…SMS from/to the flash. 2 SMS are

 

 

stored in the flash.

 

AT+WMCP=1,2

OK

 

Note: Copy the SMS at location 2 in the

 

 

flash to the SIM

 

 

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

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

 

Note: Select SM for reading, ME for

OK

 

writing and SM for storing

 

 

AT+CMGR=4

+CMGR: “REC UNREAD”,”+33146290800”,

 

Note: Read the first SMS from the SIM

“98/10/01,18:22:11+00”,<CR><LF>

 

Other test message: SMS in the Flash at location 2

 

 

OK

 

AT+CPMS=“ME”

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

 

Note: Select ME for reading

OK

 

 

 

AT+CMGD=0,4

OK

 

Note: Erase all the SMS stored in the

 

 

Flash

 

 

AT+CPMS?

+CPMS: “ME”,0,99,”ME”,0,99,”SM”,4,10

 

Note: Read the SMS storage

OK

 

Note: No SMS is stored in the flash.

7-20

Page 73
Image 73
Moxa Technologies G2150I manual SIM to the Flash, SIM is the total memory available in SIM SMS, Writing and ME for storing