Chapter 8 – Short Messages Commands

Message Overwriting +WMGO

Description: The +CMGW command writes an SMS to the first location available. To write an SMS to a specified location, the +WMGO command forces the product to write an SMS (with the +CMGW command) to the location specified with +WMGO, but for just one +CMGW command.

Values:

<loc>: Location number of the record to write or overwrite

Syntax:

Command syntax: AT+WMGO= <loc>

 

Command

Possible Responses

 

 

 

 

AT+WMGO=0

OK

 

 

Note: Next MSG write will be to index 0

 

AT+WMGO=30

+CMS ERROR: 302

 

 

Note: Invalid index (out of range)

 

On the next AT+CMGW command, the record number used will be the one specified by the

 

AT+WMGO command. The location is forgotten and, in order to perform a second overwrite,

 

+WMGO has to be used again.

 

 

If the external application specifies a free location, and if an incoming message is received

 

before the AT+CMGW command, the product may store the incoming message at a location

 

available. This could be the one specified by +WMGO (the product does not prevent from

 

this). If the user then issues an AT+CMGW command without changing the AT+WMGO

 

location, the new message will be overwritten!

 

Note: that this location number is not kept over a software reset.

Change SMS Status +WUSS

Description: The +WUSS command enables or disables a change of the SMS message status following a +CMGR or +CMGL command.

Values:

<mode>:

 

 

0: The SMS Status will change.

 

1: The SMS Status will not change.

Syntax:

Command syntax: AT+WUSS = <mode>

 

Command

Possible Responses

 

 

 

 

AT+WUSS=1

OK

 

 

 

 

AT+WUSS=0

OK

 

 

Note: If lower layer failure, +CMS ERROR: 513

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

66

Page 66
Image 66
Multi-Tech Systems CDMA Wireless Modem manual Message Overwriting +WMGO, Change SMS Status +WUSS