ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 244 of 545 2020-04-15
3.5.16. AT+CMGW - Write Short Message to Memory
The command is related to writing short messages.
3GPP TS 27.005
3GPP TS 23.040
3GPP TS 23.038
AT+CMGW
Execution command writes a new short message in the <memw> memory storage (see +CPMS).
It can have two syntax formats according to the SMS format: PDU or Text mode (see +CMGF
command). If short message is successfully written the following URC is displayed:
+CMGW: <index>
Additional info:
In PDU mode the +CMGW command has the following syntax:
AT+CMGW=<length>[,<stat>]
After command line is terminated with <CR>, the module responds sending a four-
character sequence prompt:
<CR><LF><greater_than><space> (IRA 13, 10, 62, 32)
and waits for the specified number of bytes.
To write the message issue Ctrl-Z char (0x1A hex). To exit without sending the message
issue ESC char (0x1B hex).
length in bytes of the PDU to be
written
new message new message (received unread message; default
for DELIVER messages (3GPP TS 23.040 SMS-DELIVER
messages))
stored message not sent yet (default for SUBMIT messages
(3GPP TS 23.040 SMS-SUBMIT messages))
stored message already sent