*BSD News Article 37681


Return to BSD News archive

Xref: sserve comp.os.linux.development:19042 comp.os.linux.misc:29258 comp.os.386bsd.questions:14334 comp.os.386bsd.misc:4027 sci.electronics:83656
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!koriel!lll-winken.llnl.gov!sol.ctr.columbia.edu!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!ncar!csn!boulder!yomama!vilhuber
From: vilhuber@yomama.com (Jan Vilhuber)
Newsgroups: comp.os.linux.development,comp.os.linux.misc,comp.os.386bsd.questions,comp.os.386bsd.misc,sci.electronics
Subject: Re: APC SmartUPS series serial-port protocol anyone?
Date: 31 Oct 1994 19:07:29 GMT
Organization: University of Colorado at Boulder
Lines: 35
Distribution: world
Message-ID: <393f9h$k0u@lace.Colorado.EDU>
References: <TAMSKY.94Oct29191638@avarice.ugcs.caltech.edu> <TAMSKY.94Oct31040230@avarice.ugcs.caltech.edu>
NNTP-Posting-Host: tigger.cs.colorado.edu
X-Newsreader: TIN [version 1.2 PL2]

Marc Tamsky (tamsky@avarice.ugcs.caltech.edu) wrote:
: I wouldn't hold your breath there Jan.... I'm almost positive it's not
: going to give you _any_ access to their "Smart" features which is what
: I want.  I already have a simple shutdown daemon -- it comes standard
: in Slackware -- the SysV powerd.  (If it does.... please post.)

You are, of course, absolutely right. The previous poster also pointed out
that he had a SmartUPS 600, and before I went into flame-mode (which, as we
all know, is mutually exclusive with think-mode) I had meant to ask if all he
wanted was a kind of shutdown daemon, or something more fancy.  Since I have
a 400, which only does the simple signalling, I forgot about the smart
signalling protocol.
And, no, the stuff I got from APC is only for simple signalling. I knew that
even without looking at the code.
So apologies to the net for flying off the handle.

: What they're probably going to send you is something that monitors the
: DCD line and sends a SIGPWR to the init process if it drops.  (It's
: already been written... see above.)

I believe this is correct, although I can not make powerd work. I have the
UPS on serial port 2, and I tried 'powerd /dev/cua1' and 'powerd /dev/ttyS1'
and neither worked, so I'll have to port the code that APC sent me anyway.
(of course it is in C++, which I have not the slightest knowledge about, so
any help would be appreciated.)

If I recall, though, when I talked to their head of software development, and
asked him about getting the specs so I could write something for Linux, he
mentioned that they could license me their stuff, and I could do that, but of
course that is expensive, and not at all consistent with the whole idea of
free software. 

Sorry,
Jan
vilhuber@cs.colorado.edu