beautypg.com

Rainbow Electronics GM862-GPS User Manual

Page 13

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


NOTE: Antenna GPS, GPS receiver and GPS Library are available exclusively for GPS modules

GM862-GPS

and

GE863-GPS

. Moreover SER2 Library cannot be used by the GPS modules since

their TRACE port is not available.

The MDM interface is the most important one. It allows Python script to send AT commands,

receive responses and unsolicited indications, send data to the network and receive data from
the network during connections. It is quite the same as the usual serial port interface in the

Telit module

. The difference is that this interface is not a real serial port but just an internal

software bridge between Python and mobile internal AT command handling engine. All AT
commands working in the

Telit module

are working in this software interface as well. Some of

them have no meaning on this interface, such as those regarding serial port settings. The usual
concept of hardware flow control keeps its meaning over this interface, but it's managed
internally.

The MDM2 interface is the second interface between Python and mobile internal AT

command handling. It is used to send AT commands from Python script to mobile and receive
AT responses from mobile to Python script when the classic MDM built-in module already in
use.

The SER interface allows Python script to read from and write to the real physical serial port

ASC0, that is usually used to send the AT commands to the module, for example to read
information from external device. When Python is running this serial port is free to be used by
Python script because it is not used as AT command interface since the AT parser is mapped
into the internal virtual serial port. No flow control is available from Python on this port.

The SER2 interface allows Python script to read from and write to the real physical serial port

ASC1, that is usually available for trace and debug.

The GPIO interface allows Python script to handle general purpose input output faster than

through AT commands, skipping the command parser and going directly to control the pins.

The MOD interface is a collection of useful functions.

The IIC interface is an implementation on the Python core of the IIC bus Master. It allows

Python to create one or more IIC bus on the available GPIO pins.

The SPI interface is an implementation on the Python core of the SPI bus Master. It allows

Python to create one or more SPI bus on the available GPIO pins.

The GPS interface 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.


For the debug, the print command is directly forwarded on the EMMI TX pin (second serial port) at
baud rate115200bps 8N1.