6 deleting an sms, At+cmgd=<index><cr – Rainbow Electronics GM862-QUAD-PY User Manual

Page 71

Advertising
background image





GM862-QUAD / PY Software User Guide

1vv0300747 Rev. 3 - 10/07/07

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

page 71 of 96

that the device is not registered
on any network

network registration

+CMS ERROR: 331

No network service

Check for signal strength and
network registration

+CMS ERROR: 1

Unassigned number

The destination address
number does not exist. Check it
and repeat command.

+CMS ERROR: 42

network congestion

Retry later

+CMS ERROR: 96

Mandatory information missing Check for destination address

in the SMS, overwrite it and
retry.

OK

command aborted by user

you issued a ESC char

For example:
1- Let's assume you want to directly send a new SMS to the destination address number
+39338123456789. We suppose you already have set up the device for text SMS mode as described
on the previous paragraphs:

command:
AT+CMGS="+39338123456789"
response:
>
now you can insert the message text in IRA format (note that the IRA format and ASCII format
coincide for the alphabet characters but not for the other).
…. here will be inserted the SMS message text to be sent….

conclude text with the character CTRL-Z
response:
+CMGW: 4

OK

In this case, the new SMS was successfully sent to the SC and its network reference number is 4.
Do not confuse message reference with message index position, the first indicates the network
reference for identifying the sent message (the eventually requested status report will have the same
reference) while the second indicates the position where the message has eventually been stored in
memory.

3.5.6 Deleting an SMS

An already written/received SMS can be deleted from the selected storage (in the current SW version
only "SM" is supported).
To delete the SMS its location index is needed:

send command

AT+CMGD=<index><cr>

where:

<index>: SMS location index

Advertising