SMS

As a preliminary exercise I “Installed” rpi2 with FreeBSD11.0-Current – i.e. I found a pre-built image and wrote it to an 8Gb SD-card which was subsequently inserted into the rpi.

After the usual changing of default passwords, removal of unwanted user accounts and general hardeningĀ  – I proceeded to the SMS-project :

 

Step 1 :

pkg install smstools

echo ‘smsd_enable=”YES” >> /etc/rc.conf

 

vi /usr/local/etc/smsd.conf :

devices = GSM1
logfile = /var/log/smsd/smsd.log
loglevel = 7

user = uucp
group = dialer

[GSM1]
device = /dev/cuaU0
incoming = yes
#pin = 1111

 

Made sure that den device line contains the correct port.

Now check the log for contents :

tail -f /var/log/smsd/smsd.log &

and start the service :

/usr/local/etc/rc.d/smsd start

The service will shortly empty the sms-memory of the phone into :

/var/spool/sms/incoming/

Where a file will be created for each sms – these can now be parsed.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.