From owner-freebsd-hackers Thu May 23 23:23:58 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA01385 for hackers-outgoing; Thu, 23 May 1996 23:23:58 -0700 (PDT) Received: from Fieber-John.campusview.indiana.edu (Fieber-John.campusview.indiana.edu [149.159.1.34]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA01369 for ; Thu, 23 May 1996 23:23:52 -0700 (PDT) Received: from localhost (jfieber@localhost) by Fieber-John.campusview.indiana.edu (8.7.5/8.7.3) with SMTP id BAA01164; Fri, 24 May 1996 01:23:21 -0500 (EST) X-Authentication-Warning: Fieber-John.campusview.indiana.edu: jfieber owned process doing -bs Date: Fri, 24 May 1996 01:23:21 -0500 (EST) From: John Fieber X-Sender: jfieber@Fieber-John.campusview.indiana.edu To: Joerg Wunsch cc: FreeBSD hackers , sns@viaduk.net, Charles Green , alexis@dawn.ww.net Subject: Re: APC Powerchute In-Reply-To: <199605231939.VAA18623@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 23 May 1996, J Wunsch wrote: > I had to install PowerChute on the SCO box of a customer some time > ago. The scripts accompanying the software looked so terrible that i > would never install it on a system of my own. I actually tried this just today, seing as how I just got a UPS yesterday. The SCO disks are supposedly cpio, but I have not been able to get anything off of them, even after careful examination of the horrendous install script. > Alexis Yushin's upsd at least has a thoughtful and extensible design. > If there are features missing for you, why not try to extend it? I just spent the afternoon working on this. I got a SmartUPS v/s which is a lobotomized SmartUPS. I spent a bunch of time watching the bytes flow between the ups and the os/2 version of powerchute v/s. I added a second type of ups to upsd that seems to work well. The two commands that I don't understand are G and 9. During normal operation powerchute sends the commands Q, 9, and X to the UPS once per second. If the power power goes off, the sequence changes to Q, G, and X. 9 always returns FF while G always returns T. Clues? Also, for someone with a real SmartUPS (or any other APC), does Control-A return a model number? If so, it may be possible to have a more generic APC module. -john == jfieber@indiana.edu =========================================== == http://fallout.campusview.indiana.edu/~jfieber ================