Use pyGSM to manage SMS

pyGSM is a Python module which uses pySerial to provide a nifty interface to send and receive SMS via a GSM Modem.

Install pyGSM on FOX Board G20

Download the pyGSM project from GitHub repository by typing:

debarm:~# git clone http://github.com/adammck/pygsm.git
Cloning into pygsm...
...

Install the package python-setuptools required by the pygsm setup program.

debarm:~# apt-get update
...
debarm:~# apt-get install python-setuptools
...

The install the pyGSM library by typing:

debarm:~# cd pygsm
debarm:~# python setup.py install
...

Then try this example:

lettercounter.py

Change the serial port to use the right serial port where is wired your GSM modem:

  • /dev/ttyS1 if your are using a FOXGM or FOXGM2 board with the Telit GM862-QUAD
  • /dev/ttyS2 if you are a DAISY-13 data module plugged on D1
  • /dev/ttyS4 if you are a DAISY-13 data module plugged on D6
  • /dev/ttyUSB0 if you are using a Digicom USB Wave GPRS modem on a USB port

Run the lettercounter.py example by typing:

debarm:~# cd playground/python/sms#
debarm:~/playground/python/sms# python lettercounter.py
   debug Booting
   debug Connecting
   write 'ATE0\r'
    read '\r\n'
    read 'OK\r\n'
   write 'AT+CMEE=1\r'
    read '\r\n'
    read 'OK\r\n'
... 

The demo will loop forever. Try to send a SMS from your mobile phone to the SIM number mounted on the FOX Board G20 and see what happen.

Read the Author README to understand how to use the pyGSM API and the licence terms:

Buy

COMBO-M1
EUR 279.00


Basic TERRA-M board kit (GSM/GPRS)

Basic kit to evaluate the Aria G25 SoM or to develop applications on TERRA-M board SBC.

Parts included:

  • One TERRA-M board (Code TERRA) incluted a Quectel M95 GSM module
  • A bootable microSD with Debian Linux preinstalled
  • One Debug port interface (Code DPI)
  • One USB data cable for DPI
  • One wall adapter 12 volt @ 2A switching power supply (Code PS12V2A-EU)
  • GSM antenna with 2 mt cable

| Product description | Terra catalog |

COMBO-M2
EUR 319.00


Enhanced TERRA-M board kit (GSM/GPRS)

Enhanced kit to evaluate the Aria G25 SoM or to develop applications on TERRA-M board SBC.

Parts included:

  • One TERRA-M Board (Code TERRA)
  • A bootable microSD with Debian Linux preinstalled
  • One Debug port interface (Code DPI)
  • One USB data cable for DPI
  • One wall adapter 12 volt @ 2A switching power supply (Code PS12V2A-EU)
  • One Teko Tekal enclosure
  • One Daisy-24 lcd module
  • One Lithium battery model CR1220 at 3 volt for RTC circuitry (Code CH23-1220)
  • GSM antenna with 2 mt cable

| Product description | Terra catalog