We need to put in place an UPS to gracefully shut down a revpi when the cabinet hosting the RevPi is shut down, and switch it back on when the cabinet is power back on.
Looking at the instructions here https://revolution.kunbus.com/tutorials ... n-connect/ I personally do not understand how to connect the UPS and how that is supposed to work.
Assuming we have the following:
- Vcc: 24V from the main power supply unit
- Vups: 24V from the UPS unit
Now, lets assume that the wiring is taken care, lets discuss about how this is supposed to work.
- Everything is on and running (RevPi, Vcc, Vups)
- Vcc is removed by the power switch
- Vups is still powered
- RevPi detects the power failure
- RevPi gracefully shuts down (?)
Code: Select all
shutdown --halt now
- How to detect the power failure? Do we need a background service running at system level to check the revpi status variable and trigger the shutdown? Is there an example of this service?
- If the RevPi is down but Vups has still some energy left, what happens if Vcc comes back? Will the unit power up again?
Thanks
Mirko