Telit GE864 and GC864
Product Description
80273ST10008A Rev. 3 - 10/02/06
Reproduction forbidden without DAI Telecom written authorization – All Right reserved – Right of modification reserved
page 56 of 72
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 GE864 / GC864. 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 GE864 / GC864 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 flow control keeps its meaning over this interface, but it's managed internally.
The SER interface allows Python script to read from and write to the REAL, physical serial port
where usually the AT command interface resides, for example to read NMEA information from a
GPS 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 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.
For the debug, the print command is directly forwarded on the EMMI TX pin (second serial port) at
9600 baud 8N1.
5.3.4 Python core supported features
The Python core version is 1.5.2+ (string methods added to 1.5.2).
You can use all Python statements and almost all Python built-in types and functions.
The following are not supported:
complex;
float;
long;
docstring.
Available modules are
marshal,
imp,
__main__,
__builtin__,
sys
md5
All the others are not supported.
5.3.5 Python Build-in Custom Modules
Several build in custom modules have been included in the python core, specifically aimed at the
hardware environment of the module.
The build in modules included are:
MDM
: interface between Python and mobile internal AT command handling;
SER
: interface between Python and mobile internal serial port ASC0 direct handling;
GPIO
: interface between Python and mobile internal general purpose input output direct handling;
MOD
: interface between Python and mobile miscellaneous functions.
IIC
: custom software Inter IC bus that can be mapped on creation over almost any GPIO pin
available.
SPI
: custom software Serial Protocol Interface bus that can be mapped on creation over almost
any GPIO pin available.
More details about the Python modules are available in the reference guide.