![Telit Wireless Solutions GM862GPS Series Скачать руководство пользователя страница 33](http://html1.mh-extra.com/html/telit-wireless-solutions/gm862gps-series/gm862gps-series_technical-manual_1083661033.webp)
TECHNICAL MANUAL
Telit GM862-GPS
Quad Band GPS Data Terminal Module
Pag.33 of 79
Rev. 0
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3.13 Python implementation description
Python scripts are text files, it is possible to run one Python script in the Telit GM862-GPS.
The Python script is stored in NVM inside the Telit GM862-GPS, there's a file system
inside the GM862-GPS that allows to write and read files with different names on one
single level (no subdirectories are supported).
The Python script is executed in a task inside the Telit GM862-GPS at the lowest priority,
making sure this does not interfere with GPRS/GSM normal operations. This allows serial
ports, protocol stack etc. to run independently from the Python script.
The Python script interacts with the Telit GM862-GPS Python functionality through four
build-in interfaces.
Python
engine
MDM
SER
MOD
GPIO
GM862-GPS
Serial port 0
GPIO
Serial port 1
Print command
IIC HW
SPI
IIC HW
IIC
Figure 6 Python script interaction scheme
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 GM862-GPS. 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 GM862-GPS are working in this software interface
as well. Some of them have no meaning on this interface, such as those regarding serial
port settings.