Skip to content

Script to make device with Telit GL868-Dual to work as remote terminal by TCP

Notifications You must be signed in to change notification settings

seik0ixtem/GprsTerminalM

Repository files navigation

Python script for using gprs-modem as remote access-point

Credits

Where it should work

  • It is being tested on Telit GL868-Dual GSM module, so it must work with them.

  • I believe, that it should MAINLY work on most of other Telit modules with python support.

What this script is designed for

Main idea is that GSM-module on its own connects to some server with TCP, makes some authorization and then allows server to manage this GSM-module.

What is "to manage" GSM-module (some features may be not implemented yet, some features may be missing in this list):

  • Change any parameter of the script

  • Put any at-commands to the device, and get results.

  • Open new TCP connections from device to any destination for logging and debugging purposes

  • Read state and change state of GPIO ports of the device

  • Allow remote control by CSD reserve channel (by white list)

  • Allow remote control by SMS (by white list)

  • Send/get data to/from serial port of the device

  • Create transparent bridge from device serial port to TCP connection

  • Reboot

Also, device should do some work on its own:

  • Sync time with server

  • Make some specific operations with devices attached to its serial

How to use

This is not the only option, but it works:

  1. Test this code on your own using, for example, Telit-Loader

  2. Upload this code to device using, for example, Telit-Loader

  3. Make main.py the main script on device using, for example, Telit-Loader

  4. Reboot device in python mode (it differs with each manufacturer, read the manuals). Wait until all scripts compile (first time I waited about an hour).

  5. See it working (or not). It will work differently with different settings.

Notes

Repo may include *.sample files, but script may need that files without .samples suffix. So, change settings in that file and rename it. I made that not to include my private data in configuration files and added private configuration files in .gitignore For example: settings.ini.sample.

About

Script to make device with Telit GL868-Dual to work as remote terminal by TCP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages