4 delete message - +cmgd – Rainbow Electronics GM862-QUAD-PY User Manual

Page 230

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 230 of 434

+CMGW - Write Message To Memory

SELINT 2

execution, no other SIM interacting commands are issued.

Note: it is possible to save a concatenation of at most 10 SMs; the
maximum number of chars depends on the <dcs>: 1530 chars if GSM
03.38 default alphabet is used, 1340 chars if 8-bit is used, 670 chars if
UCS2 is used. If entered text is longer than this maximum value an
error is raised

AT+CMGW=?

Test command returns the OK result code.

Reference GSM

07.05

Note

To avoid malfunctions is suggested to wait for the +CMGW: <index>
or +CMS ERROR: <err> response before issuing further commands.

3.5.5.4.4 Delete Message - +CMGD

+CMGD - Delete Message

SELINT 0 / 1

AT+CMGD=
<index>
[,<delflag>]

Execution command deletes from memory <memr> the message(s).

Parameter:
<index> - message index in the selected storage <memr> that can have
values form 1 to N, where N depends on the available space (see +CPMS)
<delflag> - an integer indicating multiple message deletion request.
0 (or omitted) - delete message specified in <index>
1 - delete all read messages from <memr> storage, leaving unread

messages and stored mobile originated messages (whether sent or not)
untouched

2 - delete all read messages from <memr> storage and sent mobile

originated messages, leaving unread messages and unsent mobile
originated messages untouched

3 - delete all read messages from <memr> storage, sent and unsent

mobile originated messages, leaving unread messages untouched

4 - delete all messages from <memr> storage.

Note: if <delflag> is present and not set to 0 then <index> is ignored and
ME shall follow the rules for <delflag> shown above.

Note: if the location to be deleted is empty, an error message is reported.

AT+CMGD=?

Test command shows the valid memory locations and optionally the
supported values of <delflag>.

+CMGD: (list of supported <index>s)[,(list of supported <delflag>s)]

Example

AT+CMGD=?
+CMGD: (1,2,3,6,7,17,18,19,20,37,38,39,47),(0-4)

OK

Reference GSM

07.05

Advertising