HE863 family AT commands reference guide
80377ST10083a Rev.6 – 2012-11-12
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved.
Page 129 of
229
+CMGW - Write Message To Memory
"REC READ" - received message read
"STO UNSENT" - message stored not yet sent (default)
"STO SENT" - message stored already sent
After command line is terminated with
<CR>
, the device responds sending a four
character sequence prompt:
<CR><LF><greater_than><space> (IRA 13, 10, 62, 32)
After this prompt text can be entered;
the entered text should be formatted as
follows:
-
if
<dcs>
(set with +CSMP) indicates that 3GPP TS 23.038 [2] GSM 7 bit
default alphabet is used and
<fo>
indicates that 3GPP TS 23.040 [3] TP-User-
Data-Header-Indication is not set:
-
if TE character set other than “HEX” (refer command Select TE Character Set
+CSCS in 3GPP TS 27.007 [9]): ME/TA converts the entered text into the GSM
7 bit default alphabet according to rules of Annex A; backspace can be used to
delete last character and carriage returns can be used (previously mentioned
four character sequence shall be sent to the TE after every carriage return
entered by the user);
-
if TE character set is “HEX”: the entered text should consist of two IRA
character long hexadecimal numbers which ME/TA converts into the GSM 7 bit
default alphabet characters. (e.g. 17 (IRA 49 and 55) will be converted to
character
Π
(GSM 7 bit default alphabet 23)).
-
if
<dcs>
indicates that 8-bit or UCS2 data coding scheme is used or
<fo>
indicates that 3GPP TS 23.040 [3] 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. two characters 2A (IRA 50 and 65)
will be converted to an octet with integer value 42).
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
<mem2>
.
If message storing fails for some reason, an error code is reported.
AT+CMGW=?
Test command returns the
OK
result code.