80591ST10886A Rev.2 Page 114 of 200 2018-07-02
Test Command AT+CMGW=? OK
Write Command If text mode;
AT+CMGW[=<oa/da>[,<t
ooa/toda>[,<stat>]]]<cr>
text is entered<ctrl+z>
If PDU mode;
AT+CMGW=<length>[,<st
at>]<cr>
PDU is given<ctrl+z>
+CMGW: <index>
Parameter Description
<oa> -
Originating-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, type of address given by <tooa>.
<da>
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, type of address given by <toda>.
<toda> -
TP-Destination-Address, Type-of-Address octet in integer
format. (when first character of <da> is + (IRA 43) default is
145, otherwise default is 129). The range of value is from
128 to 255.
<stat>
Text Mode
“STO UNSENT” stored unsent message
“STO SENT” stored sent message
<stat>
PDU Mode
3
Example
AT+CMGW=”18576408172” Writes message to memory, the index is 0