FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
598 views 1 comments
by anonymous

We are using custom MQTT client with Lua script and RUT240. For last resort, we want to use /dev/watchdog with supporting hardware watchdog.

In OpenWrt wiki page, OpenWrt supports watchdog with ubus. After I stopped watchdog on RT240, it rebooted after about 20 seconds. So, it seems working on also RUT240.

But I cannot change "timeout" other than 21 seconds. Can I change "timeout" to 1800 seconds ?
 

1 Answer

0 votes
by anonymous
Hi, It can be changed as below:

root@Teltonika-RUT950:~# cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished.

exit 0
root@Teltonika-RUT950:~# ubus call system watchdog '{"timeout":1800}'
{
        "status": "running",
        "timeout": 1800,
        "frequency": 5
}
root@Teltonika-RUT950:~#

Thanks
by anonymous

Thank you information about RUT950.

I want to use with RUT240. But the timeout value was not changed as following.

root@RUT240:~# ubus call system watchdog '{"timeout":1800}'
{
  "status": "running",
  "timeout": 21,
  "frequency": 5
}

root@RUT240:~# ubus call system watchdog 
{
  "status": "running",
  "timeout": 21,
  "frequency": 5
}