How to Send & Receive SMS Messages Using Linux

Located in /usr/local/bin is a sample perl script sendsms to allow testing of SMS message sending

This script uses the perl Device::Gsm library and takes 2 command line parameters to define the target phone number and SMS message content

Here's a screen shot of it in action :

MyPi Industrial Raspberry Pi SMS Demo Step 1

Also included are

/usr/local/bin/readmessages 

This prints a list of messages received with an index number

MyPi Industrial Raspberry Pi SMS Demo Step 2

The perl library the script is calling uses some basic AT commands to read back the messages stored on the modem, you can see the actual commands here :

MyPi Industrial Raspberry Pi SMS Demo Step 3

/usr/local/bin/deletemessage

This deletes the supplied message index number

MyPi Industrial Raspberry Pi SMS Demo Step 4

 

 
 

 

 

Contact us now to discuss your project

Ready to order, contact us today for pricing or samples

Contact Us