LTE Module Series
EC25&EC21 AT Commands Manual
EC25&EC21_AT_Commands_Manual 132 / 231
After the use of Read Command, a delay of 5-10 seconds is required before issuing the Write Command.
Otherwise the
+CMS ERROR: 500
may appear.
9.10. AT+CMGW Write Message to Memory
The Write and Execution Commands store short messages from TE to memory storage
<mem2>
, and
then the memory location
<index>
of the stored message is returned. Message status will be set to
“stored unsent” by default, but parameter
<stat>
also allows other status values to be given.
The syntax of input text is the same as the one specified in
AT+CMGS
Write Command.
Parameter
AT+CMGW Write Message to Memory
Test Command
AT+CMGW=?
Response
OK
Write Command
1) If text mode (
AT+CMGF=1
):
AT+CMGW=<oa/da>[,<tooa/toda>[,<st
at>]]
<CR>
text is entered
<Ctrl+Z/ESC>
<ESC>
quits without sending
2) If PDU mode (
AT+CMGF=0
):
AT+CMGW=<length>[,<stat>]
<CR>
PDU is given
<Ctrl+Z/ESC>
Response
TA transmits SMS message (either SMS-DELIVER or
SMS-SUBMIT) from TE to memory storage
<mem2>
, and
then the memory location
<index>
of the stored message is
returned. By default the
message status will be set to „stored
unsent‟, but parameter
<stat>
also allows other status values
to be given.
If writing is successful:
+CMGW:
<index>
OK
If there is any error related to ME functionality:
+CMS ERROR: <err>
Maximum Response Time
300ms
Reference
3GPP TS 27.005
<da>
Destination address. 3GPP TS 23.040 TP-Destination-Address Address-Value field in
string format. BCD numbers (or GSM 7 bit default alphabet characters) are converted to
characters of the currently selected TE character set (refer to
AT+CSCS
command in
NOTE