Backup Router #203
Replies: 1 comment 3 replies
-
Thanks Michael! I guess I'd say that resilience is the main protection. In software, I think the best we can do in case of a failure is to reboot and resume as quickly as possible. The only thng that gets lost on reset is the list of registered ESP-NOW controllers. These are set to re-register periodically, so the loss of service should be brief. You can also set up a timed transmission of stats like battery and solar panel output. From the hardware end... keep it well-powered with a solar panel with an 18650 battery, perhaps a nice big cap to ground if it's powered from a wall (never hurts either way). Since you mentioned it I've been thinking up a scheme for a backup repeater and I think there is a way... The backup gateway would be configured identically to the main gateway, but it would wait in the setup() function while it pings the main gateway. If it stops receiving replies from the main gateway, the backup gateway will then move on to the loop() function and take over routing duties. @aviateur17 I don't think we have the ability for the user to ping from a gateway yet. Any idea if that will be tricky? There might also be issues with hanging between beginFDRS() and loopFDRS() and callbacks still running. This is only a preliminary idea. There are ways to create a tree structure. There's not an ideal way, however: Currently there are two configurable "neighbors" for each interface on a gateway. This allows traffic to be routed upstream or downstream based upon which gateway it was sent from. However, if you are at a gateway where data is changing between different protocols (example: a UART->ESP-NOW gateway), you actually could route data to both neighbors (from Serial to ESPNOW1 and ESPNOW2) creating two branches with identical data. It would be better to have three, which is what I hope to add soon. In ESP-NOW, you can also use |
Beta Was this translation helpful? Give feedback.
-
Hi - this is a really cool project.
How do you deal with hardware failures of repeater nodes? In this case you might loose an great number of sensors and controllers.
Would it be possible to add a second repeater in parallel as a backup in case one breaks?
Another thing I just find: Is it possible to create tree structures with the routers?
Kind regards,
Michael
Beta Was this translation helpful? Give feedback.
All reactions