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 321 of 509
Mod. 0808 2011-07 Rev.2
#CMGW - Write Message To Memory
#CMGW: <index>
where:
<index> - message location index in the memory <memw>.
If message storing fails for some reason, an error code is reported.
AT#CMGW=<da>
,<text>
Execution command writes in the <memw> memory storage a new message.
Parameters:
<da> - destination address, string type represented in the currently selected
character set (see +CSCS).
<text> - text to write
The entered text should be enclosed between double quotes and formatted as
follows:
- if current <dcs> (see +CSMP) indicates that GSM03.38 default alphabet is
used and current <fo> (see +CSMP) indicates that 3GPP TS 23.040 TP-
User-Data-Header-Indication is not set, then ME/TA converts the entered
text into GSM alphabet, according to 3GPP TS 27.005, Annex A.
- 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 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)
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.
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.