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 179 of 509
Mod. 0808 2011-07 Rev.2
+CMGW - Write Message To Memory
AT+CMGW[=<da>
[,<toda>
[,<stat>]]]
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).
<toda> - type of destination address.
129 - number in national format
145 - number in international format (contains the "+")
<stat> - message status.
"REC UNREAD" - new received message unread (default for DELIVER
messages)
"REC READ" - received message read
"STO UNSENT" - message stored not yet sent (default for SUBMIT messages)
"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 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; backspace can be used to
delete last character and carriage returns can be used; after every <CR> entered
by the user the sequence <CR><LF><greather_than><space> is sent to the TE.
- 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)
Note: the DCD signal shall be in ON state while text is 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).