5 sms handling, 1 sms device setup, 1 select sms format type – Rainbow Electronics GM862-GPS User Manual

Page 58: At+cmgf=<mode><cr

Advertising
background image





GM862-GPS Software User Guide

1vv0300729 Rev. 5 - 05/07/07

Reproduction forbidden w ithout Telit Communications S.p.A. w ritten authorization - All Rights Reserved

page 58 of 120

3.5 SMS handling


The Telit GM862-GPS 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-GPS 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=<mode><cr>

where:
<mode> is the SMS format type:

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 <mode>=1.

For example:
1- Let's assume you want to set TEXT format for the SMS:
command:
AT+CMGF=1<cr>
response:
OK

Advertising