3 writing a new sms to storage, At+cmgw="<da>"<cr – Rainbow Electronics GM862-GPS User Manual

Page 70

Advertising
background image





GM862-GPS Software User Guide

1vv0300729 Rev. 5 - 05/07/07

Reproduction forbidden w ithout Telit Communications S.p.A. w ritten authorization - All Rights Reserved

page 70 of 120

3.5.3 Writing a New SMS to storage

A new SMS can be written in the selected storage <memw> (in the current SW version only "SM" is
supported) and then can be sent to the desired destination.
To write the new SMS:

send command

AT+CMGW="<da>"<cr>

where:

<da>: destination address

wait for prompt "

>

"

send SMS text (MAX 160 characters)

end command with CTRL-Z character (0x1A hexadecimal) or abort command with ESC character

(0x1B hexadecimal)

wait for response:

Response

Reason

Action

+CMGW: <index>

OK

Message has been successfully
written in position number
<index>

proceed ahead

ERROR

some error occurred

Enable the extended error
codes report (see par.2.5.2.1)
and retry.

+CMS ERROR: 330

SMSC address unknown

Insert SMSC address (see par.
3.5.1.3)

+CMS ERROR: 322

Memory Full

memory is full, hence delete
some records and retry.

NOTE: if command is aborted with ESC character, then only the OK result code is returned.

Advertising