5 sms handling, 1 sms device setup, 1 select sms format type – Rainbow Electronics GM862-QUAD-PY User Manual
Page 56: At+cmgf=

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 56 of 96
3.5 SMS handling
The Telit GM862-QUAD / PY supports the Short Message Service, it is possible to store, delete, write,
send and receive a SMS, which is a short text message up to 160 characters long.
3.5.1 SMS device setup
Before accessing the Short Message Service, the device has to be properly set up.
3.5.1.1 Select SMS format type.
The GM862-QUAD / PY supports SMS in two different formats:
•
PDU
•
Text
The difference is that in the PDU mode the device returns and receives SMS encoded in the format
ready to be sent to the network; in TEXT mode the device converts automatically the read PDU into
text and viceversa. By using TEXT mode the PDU data encoding knowledge is not needed and
operations are easier. For this reason, we will use the TEXT mode to explain how to operate with
SMS. If you are familiar with PDU encoding then you can operate with PDU by selecting that format
and using appropriate command syntax.
•
Send command
AT+CMGF=
where:
0 – PDU
1 – Text
•
wait for response
OK
TIP: This setting is stored and remains until the device is turned off. Hence, there's no need to
issue it more than one time. For TEXT mode use
For example:
1- Let's assume you want to set TEXT format for the SMS:
command:
AT+CMGF=1
response:
OK