User's Manual
Table Of Contents

Page 142 of 187
TECHNICAL MANUAL
Telit GM862 PCS
Tri Band GPRS Data Terminal System Rev.1
2.6.4.3 +CMGW - write message to memory
+CMGW – write message to memory
Execute command
(PDU Mode)
AT+CMGW = <length>
(Text Mode)
AT+CMGW = [<da>]
(PDU Mode)
Writes in the <memw> memory storage a new SMS message input as
a PDU.
Parameter:
<length> - represents the length of the PDU to be written in bytes.
The device responds to the command with the prompt '>' and awaits
for the number of bytes of PDU specified.
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to
exit without writing the message send ESC char (0x1B hexadecimal).
If message is successfully written in the memory, then the result is
sent in the format:
+CMGW: <index>
where <index> is the message location index in the memory
<memw>("SM").
If message storing fails for some reason, an error code is reported
(Text Mode)
Writes in the <memw> memory storage a new SMS message input as
Text.
Parameter:
<da> - destination address number
The device responds to the command with the prompt '>' and awaits
for the message text ( max 160 characters).
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to
exit without writing the message send ESC char (0x1B hexadecimal).
If message is successfully written in the memory, then the result is
sent in the format:
+CMGW: <index>
where <index> is the message location index in the memory
<memw>("SM").
If message storing fails for some reason, an error code is reported
Note: Care must be taken to ensure that during the command
execution, no other SIM interacting commands are issued.
To avoid malfunctions is suggested to wait for the +CMGS:<mr> or
+CMS ERROR:<err> response before issuing further commands.