G5/G6-Family AT Commands User Manual Page
If text mode (+CMGF=1):
+CMGW[=<da>[,<toda>[,<stat>]]]<CR>te
xt is entered<ctrl-Z/ESC>
if PDU mode (+CMGF=0):
+CMGW=<length>[,<stat>]<CR> PDU is
given<ctrl-Z/ESC>
+CMGW: <index>
or:
+CMS ERROR: <err>
The Set command
writes a message and
stores it.
The following table shows the +CMGW parameters. Layout of SMS-SUBMIT in PDU Mode: (according to
GSM03.40)
Destination address in quoted string. This field contains a single phone number.
Type of DA. Value range is 128-255 (according to GSM 03.40, 9.1.2.5). If this field is
not given and first character of <da> is '+' , <toda> will be 145, otherwise 129.
Status of new message
In text mode: “STO UNSENT” (default) or “STO SENT” In PDU mode: 2 (default) or 3
Size of message in PDU mode format, in octects, excluding SMSC data.
1-352 Index in storage of the stored message.
Message header and contents in PDU mode format. See description in the tables
below.
Service Center address:
1 BYTE: length (number of followed octets). Mandatory
1 BYTE: <tosca> - value between 128-255
1, 3-12 BYTES
(When length is 1,
length BYTE = 0)
First Octet. See the table below.
Message Reference. An integer representation of a
reference number of the SM submitted to the SC by the
MS.
Values between 0-255.
Destination address formatted according to the formatting