beautypg.com

Westermo GS-01 User Manual

Page 49

background image

49

6195-2201

+WMGO – Message overwriting

The +CMGW writes a SMS to the first free location. To write a SMS to a specified loca-
tion, the +WMGO specific command forces the module to write a SMS (with +CMGW
command) to the location specified with +WMGO, but just for one +CMGW command.

Command syntax:

AT+WMGO=

location number of the SIM record to write or overwrite

Possible responses:

OK

if is a valid SMS location, for AT+WMGO=? and
for AT+WMGO?

+CME ERROR: 21

if is out of the SIM capacity range.

+WMGO:

for AT+WMGO?

Then on the next AT+CMGW command, the used record number will be that one specifi-
ed by AT+WMGO command. The location is then forgotten, and to make a second over
writing, the +WMGO shall be used again.

If the external application specifies a free location, and if an incoming message is recei-
ved before the AT+CMGW command, the module may store the incoming message in a
free location, which could be unfortunately the one specified by +WMGO (the module
does not prevent this case). Then if the user issues a AT+CMGW command, without
changing the AT+WMGO location, the new message will be overwritten!

Be aware that this location number is not kept over a software reset.

A complete manual with all AT-commands is available at our web site as a PDF-file
(www.westermo.se)