Hello,
I hope you’re doing well,
Why the scheduler + I/O juggler approach is limited:
The I/O Juggler can only be triggered by a physical input pin state change (e.g. DI1, DI2, Isolated Input, or a Configurable I/O pin set as input). Relay outputs cannot serve as I/O Juggler triggers - they are output-only in this context. This means a fully autonomous, time-driven SMS cannot be reliably achieved through the WebUI alone on the TRB141.
The recommended solution is a lightweight cron script via SSH, which is fully supported on RutOS.
Cron-based SMS script
This method sends an SMS automatically on a schedule without needing any physical input trigger.
- Enable SSH Access
Go to System → Administration → Access Control and enable SSH. Connect to the device using an SSH client (e.g. PuTTY) with your admin credentials.
2, Create the SMS Script
Create a script file on the device:
vi /etc/watchdog_sms.sh
Paste the following content:
#!/bin/sh
gsmctl -S -s “+<recipient_number> Your watchdog message here”
Replace +<recipient_number> with the full international format phone number (e.g. +370XXXXXXXX) and adjust the message text as needed. Save and exit, then make it executable:
chmod +x /etc/watchdog_sms.sh
- Schedule it with Cron
Edit the crontab:
crontab -e
Add a line to run the script daily at 08:00:
0 8 * * * /etc/watchdog_sms.sh
Save the file. The device will now send the watchdog SMS every day at 08:00 automatically.
Check the following before testing:
• Clock & Timezone: Confirm the device clock is correct under System → Administration → Date & Time → Time Synchronization. Cron relies on system time - an incorrect timezone will cause it to fire at the wrong time.
• SMS Test: Verify that SMS sending works independently via Services → Mobile Utilities → Messages → Send Messages before relying on the automated script.
• Firmware: Go to System → Firmware and update to the latest stable release if you are on an older version. Recent releases include fixes for SMS-related functionality.
This cron-based approach is the correct and reliable way to achieve a fully autonomous watchdog SMS on the TRB141.
Please don’t hesitate to reach out if you need any assistance with the setup.
Best regards,
V.