Watchdog script for LoRaWAN concentrator

After years of testing and 365/24/7 usage I see that that my concentrator (nfuse) connected to a Linux box via USB occasionally hangs during all the years.

I don't know if the problem lies on my computer setup or something else.

The solution is this script on crontab and this script saved to /usr/local/bin/ to check and restart the concentrator. Sometimes even the kernel module cdc_acm must reloaded.

You also have to add to sudoers like that YourUser ALL=NOPASSWD:/sbin/modprobe -vr cdc_acm YourUser ALL=NOPASSWD:/sbin/modprobe -v cdc_acm

Crontab entry to check every 15 minutes. */15 * * * * /usr/local/bin/check-lora-nfuse.clv.priv &

ChangeLog

Jan 2025: First publishing. Oct 2025: Some details added.

Τυχαία εικόνα

home-boomers-millenials.jpg

You are here with: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Your IP: 216.73.216.83

Made in Linux :)

Hits: 66

Φόρτος CPU: 0.02 | 0.04 | 0