I have a solar powered camera enclosure that uses PTP wireless communication for one of my customers. Because this system is solar powered, web PDUs that run off of 110v AC obviously will not work. I would like the system to automatically power cycle itself upon connection loss to the head end router because the enclosure is in an inaccessible location from the ground.
Anyways, I know you can use the GPIO pins for IO inputs and outputs. I would like to make a normally closed loop, that opens after a connection loss, and then closes after 5 seconds. This output would wire to a relay module that would switch the power to the POE switch (but not the Raspberry pi).
The script would basically just auto ping a specific IP and after X amount of time outs, would trigger the output which in turn would be relayed and switch on and off the power to the POE switch.
Is this something that needs to be done through coding or is there some kind of easy to use drag and drop editor that I could use to make such an idea work? I’ve seen something like that here.