DE910-DUAL AT commands reference guide
80392ST10102A Rev.2 – 2012-07-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 109 of 261
+CMGW - Write Message To Memory
16 <data_len: 22>
62626262626262626262626262626262626262626262
<user_data: bbbbbbbbbbbbbbbbbbbbbb>
(Text Mode)
AT+CMGW[=<da>
[,<toda>
[,<stat>]]]
(Text Mode)
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);
ASCII characters in the set (0 9), #,*,(A D);
Note: The maximum length is different with every carrier.
In case of Sprint and Aeris.Net:
Maximum length is 32 characters
In case of Verizon:
Maximum length is 20 characters
<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
"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)
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 is reported.