Notice: Undefined offset: 0 in /var/www/html/qa-plugin/custom-override/pages/question.php on line 258

Notice: Trying to access array offset on value of type null in /var/www/html/qa-plugin/custom-override/pages/question.php on line 258
 How can I change timeout with "ubus call watchdog" ? - Crowd Support Forum | Teltonika Networks

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
509 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 ?
 


Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1604

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1605

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

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1604

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1605
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
}