10 gps built-in module, 1 gps. poweronoff(newstatus), 2 gps.getpoweronoff() – Rainbow Electronics GM862-GPS User Manual
Page 57: 10 gps, Built-in module

Easy Script
in Python
80000ST10020a Rev.8 - 01/10/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 57 of 100
2.10 GPS
19
built-in module
GPS built-in module is the interface between Python and mobile internal GPS controller. It is used in
order to handle GPS controller without dedicated AT commands through MDM built-in module.
If you want to use GPS built-in module you need to import it first:
import GPS
After this you can start using GPS built-in module methods like in the following example:
position = GPS.getActualPosition()
gets a string with position information formatted in the same way as AT$GPSACP response.
More details about GPS built-in module methods can be found in the following paragraphs.
2.10.1 GPS. powerOnOff(newStatus)
This module powers ON/OFF GPS controller in the same way as AT command: AT$GPSP.
Input parameter newStatus is a Python integer and can have the following values:
•
0 to power OFF GPS controller
•
1 to power ON GPS controller.
There is no return value.
Example:
GPS.powerOnOff(0)
GPS controller is powered OFF.
2.10.2 GPS.getPowerOnOff()
This module gets GPS controller current power ON/OFF status. It has no input parameter.
Return value is a Python integer which is 0 if GPS controller is powered off or 1 if GPS controller is
powered on.
Example:
status = GPS.getPowerOnOff()
gets GPS controller current power ON/OFF status, assigning return value to status.
19
Available only for modules with following Order-Num.: GM862GPS***-***, GE863GPS***-*** and the old
3990250657 and 3990250660,