Howto get a TRB246 sending SMS when triggered by a DI signal

Hi,

I bought a TRB246 because it is a reasonably priced product and it had the number of DI ports that I needed in my application. I have planned to use it as a signal transmitter but the webUI is not really designed for this function which means I have had to write a script that sends SMS to all numbers in a text file, which works if run from the shell.

Unfortunately I can’t get my configuration in the web interface to work, or rather I haven’t managed to test if it works as I want. Is it possible to simulate that a signal goes high and triggers the script, otherwise I have to wait with the testing until I am on site and have installed the device where it will be located.

Hello,

Using I/O Juggler, you can configure a rule via WebUI to send an SMS based on a specific condition.

I recommend checking this wiki page for more information: TRB246 Input/Output - I/O Juggler

Please let me know if you have any further questions.

Best regards,

I have done a rule but I don’t know if it is working before the device is installed. Is it possible to test it and run the rule programatically?

I’m not able to get it to work. A sms sending action on rising edge is configured and the port is configured as output and then set to high but there is no sms sent.

How to test (executed) an action from the webui or at least from shell?

Hello,

You can monitor logs in real time by executing logread -f via SSH/CLI. This will allow you to track actions, router changes, and identify any potential causes of the issue.

Please let me know if you need any assistance with log analysis or configuration.

Best regards,

I have tested it and the message I got was following when I set the io pin to high in the the webui:
455 Mon Mar 3 13:13:42 2025 daemon.err iojuggler: dio1 is not currently set to input, skipping.

It is almost useless information. What does that actually mean? That it is not possible to configure an action for output signals.

Hello,

Please ensure that you have installed the latest firmware version (7.13) for your TRB246. You can download it here: TRB246 Firmware Downloads.

I have tested the setup where when input (3) is high, the device executes a script, and in the logs, the word “test” is displayed. Below are my configurations:

Conditions:

Actions:

General:

Script:

#!/bin/sh

logger "test"

After triggering input (3) to be high, I receive the following log in the logread:
image

Please update your device to the latest RutOS version and try configuring your settings by following the screenshots I provided. Let me know how it goes and if you still require further assistance.

Best regards,