Python for m2m Applications

Built-in interfaces developed by Telit are dedicated to the communication between the Python© script and the Telit module.
These interfaces provide the following functionalities:

  • Sending and receiving of the data from the network
  • Reading and writing information from the serial port in the case of GPS or other additional devices connected
  • Faster handling of general purpose I/O and direct control of pins
  • Selecting appropriate timer for customer application

Interfaces

MDM

MDM is the most important interface that allows Python© script to send and receive data from the network during connections. It is similar to the standard serial port interface of the Telit module. The difference is that this interface is not a real serial port but rather an internal software bridge between Python© and the engine handling the internal AT commands.

MDM2

The second interface between Python© and internal AT command handling, necessary for sending AT commands from a Python© script to a mobile device and receiving AT responses when the other interface with this role, standard MDM, is already in use.

SER

This interface allows a Python© script to read and write to the real physical serial port ASC0. When Python© is running, this serial port is available for communication between Python© script and an external device, since it's not being used as AT command interface.

SER2 (non GPS products)

The new interface between Python© and internal serial port ASC1 for direct handling. It is used for sending data from a Python© script to the serial port ASC1 and receiving data from the serial port ASC1. This allows the Python© application to have access to two serial ports ASC1 and ASC0 (with standard SER interface).

GPIO

General Purpose Input/Output (GPIO) with Python© permits direct control over the pin's MOD. This also serves as an interface between Python© and miscellaneous functions of the module such as sleep and counter.

IIC

A custom software IIC bus that can be mapped over any available GPIO pin.

SPI

A custom software Serial Protocol Interface bus that can be mapped over any available GPIO pin.

GPS (GPS products)

Interface between Python© and an internal GPS controller developed to handle a GPS controller directly with a Python© script and without using any dedicated AT commands.

 

NEW Features

Python© Watchdog

Description

Built-in software function that performs an automatic system reboot in case the main Python© program neglects to regularly service the watchdog.

How does it work

It has an implemented counter with a timeout that is measured in seconds and can be set individually. Telit introduced the watchdog feature to protect the system from blocked scripts by performing a software restart and bringing it automatically back to the normal state.

 

Power Saving

Description

Allows Python© to put the system in a power-saving mode for a customer determined period of time.

How does it work

The Python© script will remain blocked until the timeout, measured in seconds, is reached, or when an external event occurs.

Python PopUp