Subject: Re: UPS hookup
To: mark thompson <mark.a.thompson@pobox.com>
From: Joao Carlos Mendes Luis <jonny@gaia.coppe.ufrj.br>
List: port-i386
Date: 11/08/1995 23:32:13
> I want to hook up my shiny new UPS to my NetBSD machine. The nice guys
> at APC pointed me to the Linux UPS-HOWTO page. But before I spend even
> a moment working on porting evil Linux stuff, is there any such thing
> already for BSD?
> 
> -mark

I started making an upsd for netbsd 1.0, but (sigh), when it was
almost done, my UPS presented a short in its input and went back
to the vendor.  This has been 2 months ago, and it has not returned
yet (yeah, we're in Brazil :( ).

So, I cannot ensure it works well at all conditions.  If you like
to give it a chance, send me a personal mail.

OH, the techies: Most of the code was ported from the reboot(8)
sources since I've got to have full control of the system until
I can send the PowerOff signal to the UPS.  One major problem
is that it uses polling to gather info from the serial port.
(Is there any way to generate a signal when there's a MSR or
LSR change ?  Surely, the hardware (8250 et al.) supports it.)
My version is tuned to APC Smart/BackUPS, but I think it can be
ported to others UPSes easily.  And last, all parameters are
still hardcoded, I'd like to do a config file parser.

					Jonny

--
Joao Carlos Mendes Luis			jonny@coe.ufrj.br
+55 21 290-4698 ( Job )			jonny@adc.coppe.ufrj.br
Network Manager				UFRJ/COPPE/CISI
Universidade Federal do Rio de Janeiro