AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page96of233
+CMGW - Write Message To Memory
After this prompt text can be entered; the entered text should be formatted as
follows:
if current
<dcs> (see +CSMP) indicates that GSM03.38/23.038 default alphabet
is used and current
<fo> (see +CSMP) indicates that 3GPP TS 03.40/23.040
TP-User-Data-Header-Indication is not set, then ME/TA converts the entered
text into GSM/WCDMA alphabet, according to 3GPP TS 27.005, Annex A;
backspace can be used to delete last character and carriage returns can be
used.
if current
<dcs> (see +CSMP) indicates that 8-bit or UCS2 data coding scheme
is used or current
<fo> (see +CSMP) indicates that 3GPP TS 03.40/23.040 TP-
User-Data-Header-Indication is set, the entered text should consist of two IRA
character long hexadecimal numbers which ME/TA converts into 8-bit octet
(e.g. the
‘asterisk’ will be entered as 2A (IRA50 and IRA65) and this will be
converted to an octet with integer value
0x2A)
Note: the DCD signal shall be in ON state while text entered.
Note: the echoing of entered characters back from the TA is controlled by echo
command
E
To write the message issue
Ctrl-Z char (0x1A hex).
To exit without writing the message issue
ESC char (0x1B hex).
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 reported.
Note: care will taken to ensure that during the command execution, no other SIM
interacting commands issued.
Note: it is possible to save a concatenation of at most 16 SMs; the maximum
number of chars depends on the <dcs>: 2448 chars; 2144 chars if 8-bit
is used;1072 chars if UCS2 is used
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".