User's Manual

Telit TRIZIUM Product Description
80264ST10007a Rev. 4– 09/09/04
Reproduction forbidden without DAI Telecom written authorization – All Right reserved – Right of modification reserved page 139 of 202
5.5.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.
Read command
Write command
Test command
Example
Reference
GSM 07.05
SW release
Version A
5.5.4.4 +CMGD - delete message
+CMGD – delete message
Execute command
AT+CMGD =
<index>[,<delflag>]
Deletes from memory the message/messages
Note: if the location to be deleted is empty, an error message is reported.
Parameter:
<index> - message position index in the selected storage <memr>
<delflag> - delete mode selection flag
0 (or not present) - delete message at position <index>
1 - delete all received read messages
2 - delete all received read and all sent messages