I thought it would be cool to install SMS support on my Raspberry Pi. It would give me some kind of control of my network if there was some issue with my ADSL line. I had some unused 3G modems that I wanted to use. I decided to go for Gammu.
To install Gammu:
sudo apt-get install gammu sudo apt-get install gammu-smsd
Messages can be stored in various formats. I decided to go for sqlite. Messages are stored in a database instead of text files. You will have to install the libdbi driver for sqlite as I discovered the hard way.
To install sqlite support:
sudo apt-get install libdbd-sqlite3
I ran into a bizarre issue: it seems that both the database file and the directory it is in need rw permission for user, group and all. You need to create the database yourself. There is a compressed SQL script for doing this in /usr/share/doc/gammu/examples/sql. So:
sudo gunzip /usr/share/doc/gammu/examples/sql/sqlite.sql.gz cp /usr/share/doc/gammu/examples/sql/sqlite.sql sms.sql cat sms.sql | sqlite3 sms.db
Then change the privileges of sms.db and its parent directory to rw for user, group and all. This may be a security concern for you but this seems to be the simplest solution to access errors. Switch to another database or text files if this bothers you.
One issue I haven’t been able to resolve yet: Delivery reports. I don’t get any and I don’t know why.
I ordered a DFR0094 “Digital IR Receiver Module(Arduino)”. Then I discovered that the Pi’s GPIO works on 3.3V and not 5V. I couldn’t find any info on whether the DFR0094 would work with a 3.3V supply instead of 5V. I took a chance and it seems that the DFR0094 is quite happy running on a 3.3V supply instead of 5V. I basically followed the instructions here.