Remote Node Reset
-
I have a requirement where I will be running a sensor in a remote location that I will not have physical access to for several weeks. I will have remote access via either port forwarding on the remote network or using weaved on the PI.
http://www.weaved.com/in-action/weaved-iot-kit
The issue I have is that from time to time, a node may lock-up and stop communicating (often due to a noisy electrical environment). While it is not a common thing, I cannot afford to lose comms with the node, so I am after a way to either
-
have the node reboot at some specific time or some type of watchdog system on board to do this
-
a way to reboot the node remotely when I see it not responding anymore
Any suggestions, tips and pointers appreciated. If I had to change controller for this specific project I could consider that, but must have the remote access.
Setup
Raspberry PI
Serial Gateway
Moisture Detection Sensor
NRF24 Radio
Domoticz Controller
Weaved (http ssh access) -
-
I have a requirement where I will be running a sensor in a remote location that I will not have physical access to for several weeks. I will have remote access via either port forwarding on the remote network or using weaved on the PI.
http://www.weaved.com/in-action/weaved-iot-kit
The issue I have is that from time to time, a node may lock-up and stop communicating (often due to a noisy electrical environment). While it is not a common thing, I cannot afford to lose comms with the node, so I am after a way to either
-
have the node reboot at some specific time or some type of watchdog system on board to do this
-
a way to reboot the node remotely when I see it not responding anymore
Any suggestions, tips and pointers appreciated. If I had to change controller for this specific project I could consider that, but must have the remote access.
Setup
Raspberry PI
Serial Gateway
Moisture Detection Sensor
NRF24 Radio
Domoticz Controller
Weaved (http ssh access)@diggs Arduino's have built in watch-dog timers which you can activate for your sensor. Just google "Arduino watchdog timer" and you'll see lots of examples. If that won't work for you, you can also build a hardware watchdog timer using a 555 chip, a diode, and a few resistors/capacitors. I've built one one a breadboard and it works great. Here's an example of one of those: http://www.playwitharduino.com/?p=291
Cheers
Al -
-
In addition you should make sure that you take similar measure with the Pi. The chance that it locks up is a lot bigger than a simple node. If you reboot (via watchdog, documented in Domoticz wiki) the gateway will do a reset too. To avoid power issues I usually power these nodes through an USP/ battery. You could use a "Power bank" and make sure to add a solid capacitor (> 470 uF) as these things make al lot of "noise" themselves. (a Pi would need a 1A output minimum).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login