Previously we released a Raspberry PI LCD Adapter Kit, which allows you to connect the LCD module of ITDB02-2.4E and ITDB02-2.8 directly to the Raspberry PI development board and provides a library example which is modified based on Henning's UTFT library. After the release, we received a lot of positive feedback which makes us very happy. Although this is only a quite small thing, not even to speak of technical difficulty, yet this gadget can actually bring convenience to many people.
According to the feedback received, many guys hope to add GSM / GPRS functions on the raspberry pie, which can be achieved with our SIM900 GSM / GPRM module. Therefore, now we would like to introduce a "Raspberry PI SIM900 GSM / GPRS Module Adapter Kit", with which you can connect SIM900 GSM / GPRS module directly to the Raspberry PI and break out pin headers from the pins, allowing you to continue to use other unoccupied pins on the Raspberry PI – SIM900 GSM / GPRS module only uses TX and RX pins on Raspberry PI.
As there is a free operation library for SIM900 GSM / GPRM module in Arduino, it is quite convenient to use, we only need just a few simple functions to let Arduino make calls or send SMS alerts. Now, in order to match the newly released adapter kit, our engineers migrated the library from Arduino to Raspberry PI and deleted some. For specific functions and function prototypes, please refer to our library function manual.
Here we will briefly introduce Raspberry PI SIM900 GSM / GPRS Module Adapter Kit and how to use the library.
First is about hardware connection, link one end of cable directly to pin of Raspberry PI according to the following figure and another end to the adapter board, insert the adapter board directly into the pins of SIM900 GSM / GPRS module, thus connection is done.
Next, we need to make some modifications to the system configuration, because the UART that we will need to use in Raspberry PI is occupied then by the system as default, and we need to release it.
Browse to the file location:
Open and edit the file with administrator privileges：
$ sudo vi /boot/cmdline.txt
After opening, change the following contents:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
The same way to modify / etc / inittab:
$ sudo vi /etc/inittab
Comment out or delete the following line (usually the last line):
# T0: 23: respawn :/ sbin / getty-L ttyAMA0 115200 vt100
Then save and exit, the modification is done. Next, download and unzip the SIM900 GSM / GRPS module operation library that we can provided. If the zipped folder is placed on desktop, enter into the folder:
Install the library：
Thus the library is installed. If you want to use the library later on, you only need to include GSM.h file in your project files and to add lITEADGSM parameters when compiling.
For example, to compile a sample file in the library folder on the desktop:
gcc GSMDemo.c -o GSMDemo -lITEADGSM
After compilation, you can run the program:
We will release this library to google code to facilitate updating to the latest version. If you encounter any problems during use, you can post questions on our forum, and we will try to help you fix them. If you have good suggestions, you can also send us feedback on the forum.
ITEAD RPI SIM900 GSM Library (44.0 KiB, 4,659 hits)