3 writing a new sms to storage, At+cmgw="" Page 68
Page 68

GM862-QUAD / PY Software User Guide
1vv0300747 Rev. 3 - 10/07/07
Reproduction forbidden w ithout Telit Communications S.p.A. w ritten authorization - All Rights Reserved
page 68 of 96
2- Let's assume you have the IRA code 0x6B and you want to find the corresponding character:
From the table you find at the position
- most significant Nibble: 6
- least significant Nibble: B
Hence, the character corresponding to the 0x6B IRA code is 'k'.
TIP: With the command AT+CSCS is possible to select the character set; the available types
are:
“IRA” - ITU-T.50
”8859-1” - ISO 8859 Latin 1
”PCCP437” - PC character set Code Page 437.
”UCS2” - 16-bit universal multiple-octet coded character set (ISO/IEC10646)
Please refer to the AT Commands Reference Guide for the full command description
3.5.3 Writing a New SMS to storage
A new SMS can be written in the selected storage
supported) and then can be sent to the desired destination.
To write the new SMS:
•
send command
AT+CMGW="
where:
•
wait for prompt "
>
"
•
send SMS text (MAX 160 characters)
•
end command with CTRL-Z character (0x1A hexadecimal) or abort command with ESC character
(0x1B hexadecimal)
•
wait for response:
Response
Reason
Action
+CMGW:
OK
Message has been successfully
written in position number
proceed ahead
ERROR
some error occurred
Enable the extended error
codes report (see par.2.5.2.1)
and retry.
+CMS ERROR: 330
SMSC address unknown
Insert SMSC address (see par.
3.5.1.3)
+CMS ERROR: 322
Memory Full
memory is full, hence delete
some records and retry.
NOTE: if command is aborted with ESC character, then only the OK result code is returned.