On 02/01/2021 10:53, Chris Green wrote:
On Fri, Jan 01, 2021 at 11:59:53PM +0000, steve-ALUG@hst.me.uk wrote:
As there's no-one to press reset for you (as you say), you'll need some sort of watchdog device.
The Beaglebone doesn't really need a watchdog, it's never died over the many years I've had it running on the boat. All it really needs is a reliable connection to the internet. If I could automate the WiFi Captive Portal login then the Beaglebone could re-connect every 24 hours or every week to keep its connection up. I have searched for "automatic login to Captive Portal" but I've not found anything that seems to fill the bill. The obvious approach of using Lynx (or similar) is no good because the Captive Portal uses loads of Javascript.
OK, I did a quick google. I found this.
https://www.geeksforgeeks.org/automated-login-for-captive-portals-in-linux/
It does say that you need to delve through the script to decode it. It mentions a javascript pretty-fier that may help. This sounds like the way to go to me.
The alternative is some sort of sim, but finding a cheap, persistent deal is the issue obviously.
I think it's probably worth spending some time trying to decode the captive portal code. You're likely trying to find a POST string to send to the server. You could then trigger that, say every day, or if you lost internet connection.
An alternative to a intelligent watchdog could be a simple mechanical or electronic power switch which kills the power for a period
As I said it's not really the Beaglebone that needs a watchdog, I can easily tell it to reboot at daily or weekly intervals, it's the internet connection that needs some sort of reset.
Fair enough. You could run a ping or traceroute to somewhere like google & use this to check for a valid internet connection. If it fails, reconnect to the internet.
Thanks for your long input to this.
Hope you get it sorted.