SMS or Page

The SMS approach

We first start with the SMS Server Tools that come with BLËSK to make it send short messages through GSM modems. If your modem is not a GSM, then you cannot use this setting.To be able to send SMS, you will need the following:

  • GSM GPRS modem.
  • A mobile SIM card with data activated to be able to send SMS.

1 . Once the above requirement is respected, connect the GSM modem to your BLËSK server then check on which port the modem is attached by using the following command:

dmesg | grep tty

Note The above command will let you know how the name of your device is detected and called. Note it somewhere because you’ll need it later during modem configuration step.

2 . We use a tool installed on BLËSK called SMSTools to send SMS messages. Make sure that SMSTools has the right configuration setting for your modem in its configuration file located at:  /etc/smsd.conf.

The only parameter that we change in the configuration file is the line related to the port name of the device. (GSM Modem is on ttyACM0 in this example).

3 . The next step is to configure the SMSTools service to automatically start at boot time with the server.

chkconfig smsd on

4 . Then restart the service using this command.

service smsd restart

5 . Now it’s time to test to see if it work by sending an SMS.

smssend 5147265449 'test'
Suggest Edit