Post by impactoz on Oct 30, 2020 15:52:22 GMT -8
So in my ever evolving quest of a remote system and reliability... I noticed my test bed did hang once while getting it all properly configured - which would have been disastrous for me - as it could have been weeks before I actually physically visit the unit. On the hang - there was no way to connect with VNC / SSH or anything to reboot it...
So reluctantly I started investigating a hardware watchdog (knowing that the Pi has something - but unreliable for all situations)...
Looked at the switchdoc solution... yup thats what I want - but it just seemed messy - soldering / wires etc... So kept on googling...
Found this elegant solution! PiWatcher -> www.omzlo.com/articles/the-piwatcher
Love the simplicity - its a miniture hat - just connects tto 6 pins - Pins 2/4/6 (+5V/+5V/Gnd) and Pins 1/3/5 (+3V/GPIO2/GPIO3). The GPIO Pins being also really used in this situation as I2CA SDA and I2CA SDL
SO its controllable using I2C - something we are all familiar with on the SkyWeather
Lots of features on this unit - but the only one I am interested in is to power cycle the Raspberry Pi if it misses a heart beat. Which sounds simple enough - pat the dog routine could just send a heart beat, and if the SkyWeather hangs, no pat the dog, no heartbeat, and the piwatcher cuts the power to reboot the PI - Perfect!
What I like about this unit is the thinking out of the circle... instead of using the GPIO pins to receive power - its actually powering the unit through those pins - its kind of reversed - and I just think that was brilliant thinking so that pi watcher gets the opportunity to control the power to the raspberry pi... And the unit is so cheap!!! And very easy to install and use!
Maybe SDL could redesign their hardware watchdog to a similar design !!!
I need to investigate what I2C channels its using in the software / how it works to see how compatible it is with the SkyWeather - first glance seems no issues - PiWatcher is not compatible with Pi4..... and it uses at I2C address 0x62 which I think is safe... Will keep looking at the code....
But I wanted to mention it... I just thought it was a brilliant design!
So reluctantly I started investigating a hardware watchdog (knowing that the Pi has something - but unreliable for all situations)...
Looked at the switchdoc solution... yup thats what I want - but it just seemed messy - soldering / wires etc... So kept on googling...
Found this elegant solution! PiWatcher -> www.omzlo.com/articles/the-piwatcher
Love the simplicity - its a miniture hat - just connects tto 6 pins - Pins 2/4/6 (+5V/+5V/Gnd) and Pins 1/3/5 (+3V/GPIO2/GPIO3). The GPIO Pins being also really used in this situation as I2CA SDA and I2CA SDL
SO its controllable using I2C - something we are all familiar with on the SkyWeather
Lots of features on this unit - but the only one I am interested in is to power cycle the Raspberry Pi if it misses a heart beat. Which sounds simple enough - pat the dog routine could just send a heart beat, and if the SkyWeather hangs, no pat the dog, no heartbeat, and the piwatcher cuts the power to reboot the PI - Perfect!
What I like about this unit is the thinking out of the circle... instead of using the GPIO pins to receive power - its actually powering the unit through those pins - its kind of reversed - and I just think that was brilliant thinking so that pi watcher gets the opportunity to control the power to the raspberry pi... And the unit is so cheap!!! And very easy to install and use!
Maybe SDL could redesign their hardware watchdog to a similar design !!!
I need to investigate what I2C channels its using in the software / how it works to see how compatible it is with the SkyWeather - first glance seems no issues - PiWatcher is not compatible with Pi4..... and it uses at I2C address 0x62 which I think is safe... Will keep looking at the code....
But I wanted to mention it... I just thought it was a brilliant design!