November 28, 2008 – 12:09 pm
Hardware description:
- Quad band GSM/GPRS module SIM340D
- PIC18F67J60 micro controller
- DTMF decoder
- 4 status LED’s or 4 outputs pins
- 2 Analog input (up to 24V)
- 1 One Wire port
- SPI or I2c port
- SIM card socket
- Antenna SMA connector
- Serial and Audio pins for debugging
- Can be powered from DC source between 9 - 24V DC
- Outside dimension 55/100 mm

.
Module description:
This module was made by modifying a zabbix agent module and attaching a GSM/GPRS modem.
The serial port of the modem is connected to the serial port of the MCU and is used for control (AT Commands, SMS, GPRS).
Also the MCU is connected to the audio port of the GSM (Speaker/Mic) using an ADC and PWM combination. In this way you have total access to the audio path of the call. For extra functionality we added a DTMF decoder connected to the GSM Speaker in order to decode the DTMF sent by the caller. If you want to send DTMF you can do that by issuing AT commands.

In short: you have complete control of a GSM phone: serial, audio, DTMF, SMS, GPRS using a PIC18F MCU over the Internet.
Tested with :
GSM - VoIP gateway
Allows you to make GSM calls from the Internet and also forward Internet calls to your GSM Phone. The audio is sampled at 8KHz and sent via UDP using the IAX2 protocol to an Linux Asterisk PBX.
Software highlights:
- 8 KHz AF sampling in/out
- AF aLaw compression coding/decoding
- AF 2 Kb FIFO buffer
- 3 interrupts (125us interrupt, 1ms interrupt, USART interrupt)
- DTMF decoder
- Ethernet library (IAX2 protocol over UDP)
The software has over 3000 lines of code and was written in Pascal compiled with MikroPascal 7.0. Thanks to Mikroelektronika team.
The VoIP project was a very good testing ground and we were so impressed how a small MCU could perform so many critical time tasks using a high level language like MikroPascal or MikroBasic.
Future possible applications of the Ethernet board with GSM/GPRS module:
- SMS gateway module
- ZABBIX SMS pseudo server (send SMS alerts)
- Remote command via GSM (DTMF or SMS) - control remote devices sending instructions via SMS or DTMF
- VoIP applications
- GSM modem via an Ethernet to Serial driver
- more applications depending of your imagination
Demo software, hex file only:
Hardware Zabbix Agent with GSM module, SMS server and SNMP.
The board work like a standard Hardware Zabbix Agent, only one digital and two analog inputs are available.
In addition at this, you have possibility to send SMS at preferred number, from HTTP page, TELNET, WGET LINUX command line and SNMP.
Informative price of the module without GSM antenna: 139 Euro + shipping
Posted in Welcome | No Comments »