OnCell G2150I AT Command Set Short Message Commands
7-17
AT+WCBM=“10,100,1000,10000”
Note: Write 4 message identifiers in EF- CBMI
OK
Note: CBMIs are stored in EF-CBMI
AT+WCBM?
Note: Read the CBMIs in EF-CBMI
+WCBM=“10,100,1000,100000” OK
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 Text Mode
0 “REC UNREAD”
1 “REC READ”
2 “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:
y If 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.
y The location number is not kept over a software reset.
Command syntax: AT+WMGO=<loc>