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

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
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:
or +CMS ERROR:
3.5.5.4.4 Delete Message - +CMGD
+CMGD - Delete Message
SELINT 0 / 1
AT+CMGD=
[,
Execution command deletes from memory
Parameter:
values form 1 to N, where N depends on the available space (see +CPMS)
0 (or omitted) - delete message specified in
1 - delete all read messages from
messages and stored mobile originated messages (whether sent or not)
untouched
2 - delete all read messages from
originated messages, leaving unread messages and unsent mobile
originated messages untouched
3 - delete all read messages from
mobile originated messages, leaving unread messages untouched
4 - delete all messages from
Note: if
ME shall follow the rules for
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
+CMGD: (list of supported
Example
AT+CMGD=?
+CMGD: (1,2,3,6,7,17,18,19,20,37,38,39,47),(0-4)
OK
Reference GSM
07.05