After some research, some cable tinkering, and some help from Mr. Balcos, I
have finally enabled UPS monitoring in our Linux box!


Here's my setup, just in case anyone would need something like this in the
future:

UPS:  Netstar 600 UPS
OS:  RedHat Linux 6.2
Software Needed:  genpowerd (http://freshmeat.net/projects/genpower),
SysVinit

What's good about genpowerd is that it allows you to customize your own
cable / pin settings.  So even if your UPS is the least popular brand, as
long as you know the pinouts, you'll be able to make use of it.

CUSTOM CABLE:

PC (using DB9)                                      UPS


(pin 1) DCD -----x----------------- Low Battery (pin 5)
                            |
                           R
                            |
(pin 4) DTR -----x
                            |
                           R
                            |
(pin 6) DSR -----x------------------ Power Fail / Battery On (pin 2)

(pin 7) RTS ------------------------- UPS Shutdown (pin 6)

(pin 5) GND ------------------------ ground / common (pin 4)


* Resistor (R) value is 10k ohms, although I've read that anywhere from 4.7k
to 10k ohms is alright.


Since my UPS isn't a common one, it wasn't supported by genpowerd by
default, I had to modify the genpowerd.h file a bit to add my own custom
cable-UPS setup.

For the whole procedure and more, read the genpowerd docs (included with the
tarball).

I still have a problem, though:  the UPS doesn't seem to respond to the UPS
inverter shutdown signal.  I have verified through statserial that the RTS
terminal is  high (+5V?) upon execution of the proper inverter shutdown
command.  Perhaps the voltage isn't enough to trigger the UPS shutdown?
Hmm...

If you have any thoughts about it, please let me know.  Thanks!

Joon




_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to