User Manual

end command with CTRL-Z character (0x1A hexadecimal) or abort command
with ESC character (0x1B hexadecimal)
wait for response:
Response
Reason
Action
+CMGW: <index>
OK
Message has been successfully
written in position number
<index>
proceed ahead
ERROR
some error occurred
Enable the extended error codes
report (see par. 4.4.2.1) and retry.
+CMS ERROR: 330
SMSC address unknown
Insert SMSC address (see par.
5.6.1.3)
+CMS ERROR: 322
Memory Full
Memory is full, hence delete some
records and retry.
if command is aborted with ESC character, then only the OK result code is returned.
For example:
1- Let us assume you want to write a new SMS to the storage and the destination address is
the number +39338123456789. We suppose you already have set up the device for text SMS
mode as described on the previous paragraphs:
command
AT+CMGW="+39338123456789"
response:
>
now you can insert the message text in IRA format (note that the IRA format and ASCII
format coincide for the alphabet characters but not for the other).
…here will be inserted the SMS message text…
conclude text with the character CTRL-Z
response:
+CMGW: 3
OK
In this case, the new SMS was successfully written to the location index 3 of the selected
write memory.
An already written SMS can be sent from the selected storage <memw>.
To send the written SMS its location index is needed: