User guide

C-GPS Overview and Usage
WM_DEV_C-GPS_APN_001-001
late: WM ACM F 007 level002 A P P L I C A T I O N N O T E A P P L I C A T I O N N O T E A P P L I A T I O N N O T E C
#define RTE_PRODUCT_TYPE
ADL_IO_PRODUCT_TYPE_Q2686
#endif
-> When a Q2687 Wireless CPU is used, use the following code.
/*Constants*/
/***********/
#if defined ( __REMOTETASKS__ )
/* Define the product type only for RTE mode */
/* ADL_IO_PRODUCT_TYPE_Q2686 or
ADL_IO_PRODUCT_TYPE_Q2687 */
#define RTE_PRODUCT_TYPE
ADL_IO_PRODUCT_TYPE_Q2687
#endif
5.1 Query Application
This sample application uses the C-GPS Daughter board and
receives the GPS data from it. The user can send an SMS (called
configuration SMS) to the Wavecom Wireless CPU where the
application is in execution to get the PVT (Position, Velocity and
Time) data. The PVT data is sent using an SMS to the user. The
user has to specify a password (which is configured at the Wireless
CPU where the Query Application Sample is running) to be able to
receive the PVT data. The user can also specify a different phone
number to which the SMS containing the PVT data would be sent.
The application can also be configured to display the NMEA
sentences received from the C-GPS Daughter board (either in
formatted NMEA format or in RAW format) using a customer AT
command (AT+NMEA). These frames can be received over the
Debug UART. Hence, the user can use mapping software to get
the GPS coordinates.
References:
For more information, as to how the sample works,
please refer to the Query Application sample description HTML
document. (This document is present in the /Samples/QueryApp
directory in Open AT
®
installation) This document describes the
custom AT commands which can be used to configure various
parameters for the sample application and the format in which the
PVT information is sent.
NOTE:
To retrieve the PVT information, the user has to send a
configuration SMS to the Wireless CPU where the Query
Application is in execution. The Configuration SMS should have
the following format:
INFO:<Password>:<Phonenumber>
1. <Password>: This is the Password which is configured
using AT+PASSWORD command. The default value of
the password is “CGPS”.
2. <Phonenumber>: This is the optional field which conveys
the phone number to which the PVT information is sent.
If the phone number is missing, the information is sent to
the number from which the configuration SMS has been
received.
For instance,
INFO:CGPS:994587883
5.2 Interval Update Application
This sample application uses the C-GPS Daughter board to
receive the GPS information. The user can send an SMS (called
the configuration SMS) to the Wavecom Wireless CPU where the
application is executing. The configuration SMS is used to
configure the sample to send the PVT information after a fixed
interval of time repeatedly using either SMS or TCP socket as a
bearer. It must be noted that the user must specify the correct
password in the configuration SMS (which is configured on the
Wireless CPU where the sample is in execution). The password is
configured using AT+PASSWORD command. The user also
specifies the bearer to be used (SMS/TCP socket i.e. IP
connection) to repeatedly send the PVT information along with the
update interval (interval after which the PVT information will be
sent). In case, TCP socket is used to send the PVT information,
the user must specify the IP address and Port of the server which
will be used by the sample application to connect to. In addition to
this, the configuration SMS must also specify the Access Point
name, Access Point Username and Access Point Password to be
able to activate the PDP context for GPRS connection. This
application can also be configured to send the GPS frames (either
in formatted NMEA format or in RAW format) over the Debug
UART (using AT+NMEA command). Hence, the user has the
flexibility to receive the NMEA frames locally and hence can use
mapping software to calculate the GPS position of the Wireless
CPU.
References:
For more information, as to how the sample works,
please refer to the Interval Update Sample Description HTML
document. This document is present in the
/Samples/IntervalUpdate directory in Open AT
®
installation). This
document describes the custom AT commands which can be used
to configure various parameters for the sample application and the
format in which the PVT information is sent.
NOTE:
To retrieve the PVT information, the user has to send a
configuration SMS to the Wireless CPU where the Interval Update
Application is in execution. The Configuration SMS should have
the following format:
SMS bearer
INFO:<Password>:SMS:<OptionalPhonenumber>:<Optional
Interval>
For Instance,
INFO:CGPS:SMS:994598883:30
IP Bearer
INFO:<Password>:IP:<IPAddr>:<Port>:<APN>,<Username>,<Pas
sword>:<Optional Interval>
For Instance,
INFO:CGPS:IP:10.15.22.33:80:testapn,myusername,mypwd:20
Stopping a Bearer:
INFO:<Password>:STOP
For Instance,
INFO:CGPS:STOP
Please refer to the Interval Update Sample Description HTML
document form more information on the above mentioned fields in
the configuration SMS.
5.3 TCP Internet Connection application
This sample application depicts a use case scenario in which the
user wants to send the NMEA frames to a TCP server socket
which is using mapping software for GPS to calculate the position
of the Wireless CPU. The application interfaces with C-GPS
Daughter board to receive the GPS information. A configuration
SMS is sent to the Wavecom Wireless CPU where the application
is in execution and configures the IP address, port, access point
name, access point username and access point password for
establishing a TCP socket. The configuration SMS also provides
the update interval (interval after which the NMEA data is sent to
the TCP server). Like the previous samples, this application too
requires the user to give a password in the configuration SMS
which is configured using AT+PASSWORD command. After
receiving the configuration SMS, the sample establishes a TCP
socket and sends the NMEA sentences over the established
socket.
References:
For more information, as to how the sample works,
please refer to the TCP Internet Connection Sample Description
HTML document. This document is present in the /Samples/TCP
Server directory in Open AT
®
installation). This document
describes the custom AT commands which can be used to
configure various parameters for the sample application.
NOTE:
The configuration SMS that is to be sent to the Wireless
CPU should have the following format:
INFO:<Password>:IP:<IPAddr>:<Port>:<APN>,<Username>,<Pas
sword>:<Optional Interval>
For Instance,
INFO:CGPS:IP:10.22.33.44:80:myapn,myun,mypwd:20
To stop the bearer use:
© 2006
All rights reserved Page: 3 / 7
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulged without prior written agreement.
Ce document est la propriété exclusive de WAVECOM. Il ne peut être communiqué ou divulgué à des tiers sans son autorisation préalable.
Temp
INFO:<Password>:STOP