S
S
Seryoga2018-07-09 16:18:37
Uninterruptable power source
Seryoga, 2018-07-09 16:18:37

How to emulate a UPS that manages a server shutdown? Where can I get the communication protocol between the UPS and the server via Ethernet?

I am making a homemade 12 volt UPS to power the NAS. Everything is done, but there is no control center - "brains" so to speak. There is a Rasberry scarf, I think to force it to control the battery voltage. And somehow you need to make it emulate a UPS so that the NAS sees this "UPS", can accept commands and shut down correctly before the batteries run out.
I want to do it over the network, not via USB, and exactly the way UPS do it. Now, when the charge level is low, the command to shutdown via ssh flies. Turn on WoL. But it's not pretty in any way. I searched for the data on the protocol myself, I did not find it. In theory, there is an SNMP MIB for both the NAS and the UPS supported by the NAS, but how to send them? No matter how hard I tried, the NAS does not see the UPS. Does anyone know how communication takes place between the UPS and the server over the network? It doesn’t even really matter which UPS and which server, for example, any will do. But, if anything, NAS Synology. Is it possible to do this in Node-Red?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Doc44, 2018-07-09
@Doc44

www.apcupsd.org
See protocol here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question