AT Commands Reference
134 98-08901C68-O
4.5.1.16 +CMGW, Write Message to Memory
This command is used to write and save a message in the device memory. The user can type the message text only, or specify
other optional parameters such as DA, TODA, and message status. The message text is saved in the memory, and the message
index is displayed to the user.
Set Command
The Set command writes a message.
Read Command
The Read command for +CMGW is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
Test Command
The Test command for +CMGW is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
The following table shows the +CMGW parameters.
Example
AT+CMGW="5124335432"
This is the message body. ^Z
+CMGW: 7
OK
Note
An email address cannot contain the `#' character, according to Section 3.8.2 in “GSM: Technical Realization of the
Short Messaging Service (GSM 03.40) v7.1.0.”
Command Response/Action
+CMGW[=<oa/da>[,<tooa/toda>
[,<stat>]]]<CR>
(text is entered using <ctrl-Z/ESC>)
+CMGW: <index>
or:
+CMS ERROR: <err>
Table 57. +CMGW Parameters
<Parameter> Description
<da> Destination address in quoted string. This field contains a
single MIN number.
<ctrl-Z> Indicates the end of the message body.
<ESC> Cancels the command processing.