beautypg.com

7 gps.powersavingmode(mode, pushtofixperiod), 8 gps.powersavingwakeup(), 9 gps.getlastgga() – Rainbow Electronics GM862-GPS User Manual

Page 59

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 59 of 100

Return value is a Python string which is the last position information formatted in the same way as for
AT$GPSACP command response.

Example:

lastPosition = GPS.getActualPosition()

gets GPS last position information, assigning return value to lastPosition.

2.10.7 GPS.powerSavingMode(mode, pushToFixPeriod)

This module sets GPS controller power saving mode in the same way as AT command AT$GPSPS.
First input parameter mode is a Python integer and can have the following values:

• 0 for Power Saving disabled – Continuous Power (default);

• 1 for Trickle Power activated;
• 2 for Push To Fix Mode enabled.

Second input parameter pushToFixPeriod is a Python integer which is the value of push to fix period in
seconds used when mode=2. If mode= 0 or mode= 1 this parameter has no meaning and can be set
to any value.
Return value is a Python integer which is -1 if an error occurred otherwise is 1.

Example:

res = GPS.powerSavingMode(2, 15)

sets GPS controller in power saving mode 2 with push to fix period of 15 seconds, assigning return
value to res.

2.10.8 GPS.powerSavingWakeUp()

This command wakes up GPS controller while in power saving mode in the same way as AT
command AT$GPSWK.
It has no input parameter.
Return value is a Python integer which is -1 if an error occurred otherwise is 1.

Example:

res = GPS.powerSavingWakeUp()

wakes up GPS controller while in power saving, assigning return value to res.

2.10.9 GPS.getLastGGA()

This command gets GPS last GGA NMEA sentence stored. It has no input parameter.