Elproma Elektronika Sp. z o.o.
ul. Szymanowskiego 13
05-092 Łomianki k/Warszawy
E-mail:
office@elproma.com.pl
Tel. +48 (22) 751 76 80
www.teleorigin.com
29
The Python script is executed in a task with the lowest priority on the Telit module, so
it’s execution won’t interfere with GSM/GPRS normal operations. Furthermore, this allows
serial ports, protocol stack etc. to run independently from the Python script. The Python
script interacts with the Telit module functionalities through several built-in interfaces, as
depicted below:
The MDM interface
is the most important one. It allows the Python script to
send AT commands, receive responses and unsolicited indications, send data
to the network and receive data from network during connections. It is quite
similar to the regular serial port interface on the Telit module. The only
difference being that this interface is an internal software bridge between
Python and module internal AT command handling engine, and not a physical
serial port. All AT commands working on the Telit module are working with this
software interface as well.
The MDM2 interface
is the second interface between Python and the module
internal AT command handling. It’s purpose is to send AT commands from the
Python script to the module and receive AT responses from the module to the
Python script when the regular MDM built-in module is already in use.
The SER interface
lets the Python script to read from and write to the
physical serial port ASC0, usually the default port to send AT commands to the
module (e.g. to read information from an external device). When Python is
running, this serial port is free to be use by the Python script since it is not
used as the AT command interface; the AT parser, in fact, is mapped into the
internal virtual serial port. No flow control is available from Python on this port.
The SER2 interface
lets Python script to read from and write to the physical
serial port ASC1, usually the default port for tracing and debugging.
The GPIO interface
lets the Python script to handle general purpose input
output faster than through AT commands, skipping the command parser and
controlling directly the pins.
The MOD interface
is a collection of useful functions
The II2 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 the module’s internal
GPS controller. Its purpose is to handle the GPS controller without the use of
dedicated AT commands through the MDM built-in module.
Visit Python official web site for more information
http://www.python.org/
. More information
can be found also in
Telit_Easy_Script_Python.pdf
[6]