SMS Text to Raise Cellular Data Connection
Opengear cellular enabled console servers and wireless gateways can accept SMS text messages to trigger the cellular radio signal and connect to the carrier AP. This function is run from our Auto Response feature that calls to a custom script.
To get started, make sure SMS settings for the Cellular Modem are enabled:
Please Select "Cellular Modem" under "SMS Settings" on the SMTP & SMS Page
In the example below we created two files, "cell-up" and "cell-down"
# cat /etc/config/cell-up.sh
config -s config.cellmodem.ppp.dialer.enabled=on -r dialin
# cat /etc/config/cell-down.sh
config -d config.cellmodem.ppp.dialer.enabled -r dialin
Next, run chmod +x /etc/config/cell-up.sh
and chmod +x /etc/config/cell-down.sh to make the scripts executable
Now, create two Auto-Responses - Cellular Up and Cellular Down
Please note the script executable location of
Cellular Down is similar, just change the message pattern to
celldown and the script location to be /etc/config/cell-down.sh
Using the SMS text to raise and lower the cellular radio signal is a simple an effective way to contact sites for remote management.
If an admin or user forgets to SMS text the celldown trigger we also can run an idle timout scrip to watch over the connection for traffic and drop it when not in use to save on data plans.
The Idle timeout article can be found here.
Can the cellup script respond to the sms message acknowledging the request and respond with the Cell IP, signal strength, etc?
Users may find it useful to query the Opengear unit for the dynamically assigned IP address and signal strength and have it sent back via SMS text.
This functionality can be gained by configuring an Auto Response to an SMS text. You will need to run a custom script to get the desired information from the unit i.e.
#ifconfig dialout0 | grep "inet addr"
#cellctl -s | grep rssi
and insert the response into the SMS reply.