beautypg.com

3 gps.resetmode(mode), 4 gps.getantennavoltage(), 5 gps.getantennacurrent() – Rainbow Electronics GM862-GPS User Manual

Page 58: 6 gps.getactualposition()

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 58 of 100

2.10.3 GPS.resetMode(mode)

This module resets GPS controller in the same way as AT command: AT$GPSR. Input parameter
mode is a Python integer and can have the following values:

0 for Hardware reset

1 for Coldstart (No Almanac, No Ephemeris);

2 for Warmstart (No Ephemeris);

3 for Hotstart (with stored Almanac and Ephemeris).

Return value is a Python integer which is -1 if an error occurred otherwise is 1.

Example:

res = GPS.resetMode(1)

executes a cold restart of GPS controller, assigning return value to res.

2.10.4 GPS.getAntennaVoltage()

This module gets GPS antenna supply voltage in the same way as AT command: AT$GPSAV.
It has no input parameter.
Return value is a Python integer which represents antenna supply voltage in mV.

Example:

mV = GPS.getAntennaVoltage()

gets GPS antenna supply voltage, assigning return value to mV.

2.10.5 GPS.getAntennaCurrent()

This module gets GPS antenna current consumption in the same way as AT command: AT$GPSAI.
It has no input parameter.
Return value is a Python integer which represents antenna current consumption in mA.

Example:

mA = GPS.getAntennaCurrent()

gets GPS antenna current consumption, assigning return value to mA.

2.10.6 GPS.getActualPosition()

This module gets GPS last position information stored in the same way as with AT command:
AT$GPSACP. It has no input parameter.