Telit LE910 V2 Series AT Commands
80446ST10707A Rev. 0– 2015-11-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 180 of 509
Mod. 0808 2011-07 Rev.2
+CMGW - Write Message To Memory
If message is successfully written in the memory, then the result is sent in the
format:
+CMGW: <index>
where:
<index> - message location index in the memory <memw>.
If message storing fails for some reason, an error code is reported.
Note: care must be taken to ensure that during the command 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 3GPP TS 23.038 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.
Note: in text mode, not only SUBMIT messages can be stored in SIM, but also
DELIVER messages.
The type of saved message depends upon the current <fo> parameter (see +CSMP).
For a DELIVER message, current <vp> parameter (see +CSMP) is used to set the
message Service Centre Time Stamp <scts>, so it has to be an absolute time string,
e.g. "09/01/12,11:15:00+04".
SUBMIT messages can only be stored with status "STO UNSENT" or "STO
SENT"; DELIVER messages can only be stored with status "REC UNREAD" or
"REC READ".
Test command returns the OK result code.
To avoid malfunctions is suggested to wait for the +CMGW: <index> or +CMS
ERROR: <err> response before issuing further commands.
Delete Message - +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>