RUT240 I/O monitoring

Hello, I’m looking to know if the RUT240 monitors its I/O ports synchronously or asynchronously. Is this configurable? If it does on synchronous mode, what is the read frequency?

Hi
If its what i think it is , it should be possible through some scripts
Here’s the one i used for monitoring the input status, if it’s up High for more than one minute (60 sec) it sends an sms to my phone
#!/bin/bash
DELAY=0
while true; do
DI_STATE=$(ubus call ioman.gpio.din2 status| grep value)
if [ “$DI_STATE” == ““value”: “1”,” ]; then
DELAY=$((DELAY + 1))
Echo DELAY
fi
if [ “$DELAY” -gt “60” ]; then
gsmctl -S -s “00xxxxxxxxxx DI_IN HIGH for more than 60”
DELAY=0
fi
sleep 1
done
00xxxxxxxxxx is where you add you’re number, don’t worry put it in the double quotes itself

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.