Rainbow Electronics GM862-GPS User Manual
Page 5

Easy Script
in Python
80000ST10020a Rev.8 - 01/10/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 5 of 100
2.8.9
IIC object method: dev_gen_write(addr, start, string) .......................................................................................50
2.9
SPI built-in module...............................................................................................................................51
2.9.1
SPI.new(SCLK_pin, MOSI_pin, MISO_pin, <SS0>, <SS1>,…<SS7>)...........................................................51
2.9.2
SPI object method: init (CPOL, CPHA, <SSPOL>, <SS>)...............................................................................52
2.9.3
SPI object method: readwrite(string, <read_len>, <SS>) ..................................................................................53
2.9.4
SPI object method: sendbyte(byte, <SS_number>) ...........................................................................................54
2.9.5
SPI object method: readbyte(<SS_number>) ....................................................................................................55
2.9.6
SPI object method: send(string, <SS_number>)................................................................................................55
2.9.7
SPI object method: read(len, <SS_number>) ....................................................................................................55
2.10
GPS built-in module .............................................................................................................................57
2.10.1
GPS. powerOnOff(newStatus) ......................................................................................................................57
2.10.2
GPS.getPowerOnOff()...................................................................................................................................57
2.10.3
GPS.resetMode(mode) ..................................................................................................................................58
2.10.4
GPS.getAntennaVoltage() .............................................................................................................................58
2.10.5
GPS.getAntennaCurrent()..............................................................................................................................58
2.10.6
GPS.getActualPosition() ...............................................................................................................................58
2.10.7
GPS.powerSavingMode(mode, pushToFixPeriod) .......................................................................................59
2.10.8
GPS.powerSavingWakeUp().........................................................................................................................59
2.10.9
GPS.getLastGGA()........................................................................................................................................59
2.10.10
GPS.getLastGLL().........................................................................................................................................60
2.10.11
GPS.getLastGSA() ........................................................................................................................................60
2.10.12
GPS.getLastGSV() ........................................................................................................................................60
2.10.13
GPS.getLastRMC() .......................................................................................................................................61
2.10.14
GPS.getLastVTG() ........................................................................................................................................61
2.10.15
GPS.getPosition() ..........................................................................................................................................61
3.1
Executing a Python script ....................................................................................................................62
3.1.1
Write Python script ............................................................................................................................................62
3.1.2
Download Python script.....................................................................................................................................62
3.1.3
Enable Python script ..........................................................................................................................................65
3.1.4
Execute Python script ........................................................................................................................................65
3.1.5
Reading Python script........................................................................................................................................67
3.1.6
List saved Python scripts ...................................................................................................................................67
3.1.7
Deleting Python script .......................................................................................................................................67
3.1.8
Restart Python script..........................................................................................................................................68
3.2
Run AT Interface and Python at the same time ................................................................................69
3.3
Debug Python script .............................................................................................................................70
3.3.1
Debug Python script on GPS modules using SSC bus.......................................................................................70
3.3.1.1
Installation of the drivers ..........................................................................................................................70
3.3.1.2
Debugging process....................................................................................................................................73
3.3.2
Debug Python script on GPS modules using CMUX ........................................................................................74
3.3.2.1
Installation.................................................................................................................................................74
3.3.2.2
Debugging process....................................................................................................................................74
4.1
Technical characteristics......................................................................................................................79
4.1.1
General...............................................................................................................................................................79
4.2
Python supported features...................................................................................................................80