http://www.wavecom.com/forum Open AT ® Release version: 3.13 |
This sample depends on the following libraries :
This application allows to retrieve Q2501 module GPS chip position data.
As this application uses the MultiApp library, the following start/stop command has to be used to control the application execution.
AT+GPSSTART (GPS start/stop command)
Command | Answers |
AT+GPSSTART? | +GPSSTART:
<state>
OK |
AT+GPSSTART=? | +GPSSTART:
(0-1)
OK |
AT+GPSSTART= <state> | +CME ERROR: 3 or OK |
Parameter | Values range | Description | Default value |
state | 0-1 | The current application running state. This parameter is stored in non-volatile memory. | 0 |
The init entry point sent to the MultiApp library is the gps_init() function. The start/stop entry points linked to the +GPSSTART command are the gps_run() and gps_stop() functions.
This application provides a command set to configure the GPS chip, and to retrieve GPS data.
AT+GPSCFG (GPS settings command)
Command | Answers |
AT+GPSCFG? | +GPSCFG:
<Autostart>
,
<PollingTimer>
,
<State>
OK |
AT+GPSCFG=? | +GPSCFG:
(0-1)
,
(0-255)
OK |
AT+GPSCFG= <Autostart> , <PollingTimer> | +CME ERROR: 3 or OK |
Parameter | Values range | Description | Default value |
Autostart | 0-1 | ADL GPS service autostart | 0 |
PollingTimer | 0-255 | ADL GPS service polling timer (in seconds) | 3 |
State | 0-4 | ADL GPS service state (see adl_gps.h) | NA |
AT+GPSGET (GPS data query command)
Command | Answers |
AT+GPSGET=? | +GPSGET:
(0-2)
OK |
AT+GPSGET | Behaves as AT+GPSGET=0 |
AT+GPSGET= <mode> | +CME ERROR: 3 or +GPSGET: <lat>,<lat_ind>,<long>,<long_ind> OK or +GPSGET: <course>,<speed> OK or +GPSGET: <satnb> OK |
Parameter | Values range | Description | Default value |
mode | 0-2 | 0 : Get Position 1 : Get Speed 2 : Get Satellite View | mandatory |
lat | - | latitude | NA |
lat_ind | - | latitude indicator | NA |
long | - | longitude | NA |
long_ind | - | longitude indicator | NA |
course | - | course (in degrees) | NA |
speed | - | speed (in km/h) | NA |
satnb | - | satellites number | NA |
If the PollingTime parameter of +GPSCFG command is greater than 0, on each polling interval, the following unsolicited result is displayed :
Where time and date parameters are read from the GPS chip.
Updated: Wed Apr 4 13:12:39 CEST 2007;