OnCell G2150I AT Command Set

Short Message Commands

 

 

 

 

AT+WCBM=“10,100,1000,10000”

OK

 

Note: Write 4 message identifiers in EF- CBMI

Note: CBMIs are stored in EF-CBMI

 

AT+WCBM?

+WCBM=“10,100,1000,100000” OK

 

Note: Read the CBMIs in EF-CBMI

Note: 4 CBMIs are stored in EF-CBMI

Message Status Modification: +WMSC

Description: These commands allow the manipulation of message status. The accepted status changes are from READ to NOT READ and vice versa, and from SENT to NOT SENT and vice versa.

Command syntax:

AT+WMSC=<loc>,<status>

 

 

 

Command

 

Possible responses

AT+CMGR=2

 

+CMGR: “REC READ”,”+336290918”,,”99/05/01

 

 

14:19:44+04” <CR><LF>

 

 

Hello All of you !

 

 

OK

AT+WMSC=2,”REC UNREAD”

 

AT+CMGR=2

 

+CMGR: “REC UNREAD”,”+336290918”,,”99/05/01

 

 

14:19:44+04” <CR><LF>

 

 

Hello All of you !

 

 

OK

Possible responses:

 

 

OK

if the location is valid

+CMS ERROR: 321 if <loc> is invalid or free

+CMS ERROR: 302 if the new <status> and the previous one are incompatible (1) Note: If all the parameters are correct, the product overwrites the whole SMS in SIM. Only the first byte (Status byte) is changed.

Defined values:

<loc> location number of the stored message (integer) <status> new status to be stored, as for +CMGL command:

PDU Mode

0

1

2

Text Mode

“REC UNREAD”

“REC READ”

“STO UNSENT”

Message Overwriting: +WMGO

Description: The +WMGO command is used to specify a location in the SIM or Flash memory, for the next SMS storing with +CMGW command. The defined location is used only once: +WMGO has to be used again to perform another overwrite.

Important notes:

yIf the external application specifies a free location, and an incoming message is received before the AT+CMGW command occurs, the product may store the incoming message at the specified available location. If the user then issues an AT+CMGW command without changing the location with another AT+WMGO, the received message will be overwritten.

yThe location number is not kept over a software reset.

Command syntax: AT+WMGO=<loc>

7-17

Page 70
Image 70
Moxa Technologies G2150I manual Message Status Modification +WMSC, Message Overwriting +WMGO, Possible responses