From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,699e5a81bdb9fe21 X-Google-Attributes: gid111c93,public From: mathog@seqaxp.bio.caltech.edu (David Mathog) Subject: Re: genpowerd on Alpha? Date: 2000/05/23 Message-ID: <8gf3n1$4h8@gap.cco.caltech.edu>#1/1 X-Deja-AN: 626490491 References: <8genrh$pok@gap.cco.caltech.edu> Organization: Biology Division, Caltech, Pasadena CA 91125 Reply-To: mathog@seqaxp.bio.caltech.edu Newsgroups: comp.os.linux.alpha In article <8genrh$pok@gap.cco.caltech.edu>, mathog@seqaxp.bio.caltech.edu (David Mathog) writes: >Hi, > >I'm trying to get a Tripplite Omnismart UPS working with a DS10 using RH 6.2. >I downloaded genpowerd and built it on this system, but this command: > > % ./genpowerd /dev/ttyS0 tripp-nt > >causes the "slashed battery" light to come on on the UPS. I believe that >this means the inverter has been shut off because RTS is high when it >should be low, since this Here are the changes you need to make to get this to work with a "LAN 2.2" "Omni-Smart" Tripp-Lite device (on Alpha or otherwise) using a 73-0724 cable (as supplied by the manufacturer). In genpowerd.h in the section where devices are defined add the lines: /* TrippLite Lan 2.2 */ {"tripp-lan22", {TIOCM_RTS,1}, {TIOCM_DTR,0}, 5, {TIOCM_CTS,0}, {TIOCM_CAR,0}, {0,0}}, In genpowerd.c change setlevel(fd,pups->kill.line,!pups->kill.inverted); setlevel(fd,pups->cablepower.line,!pups->cablepower.inverted); to setlevel(fd,pups->kill.line,!pups->kill.inverted); setlevel(fd,pups->cablepower.line,!pups->cablepower.inverted); sleep(5); /* DRM, wait for it to stabilize */ The first change sets up the logic signals which are needed. The second handles a small delay where CTS and DCD take a little while to change state following a loss of power. Then do a "make" and proceed as per the regular instructions. % genpowerd Usage: genpowerd [-k] cablep. kill t powerok battok cableok ---------------------------------------------------- powerd RTS *DTR 0 CAR --- DSR tripp-class RTS *ST 5 CAR --- --- tripp-lan22 *RTS DTR 5 CTS CAR --- tripp-nt RTS *DTR 5 *CTS *CAR --- apc1-nt RTS *DTR 5 CTS CAR --- apc2-nt RTS *DTR 5 *CTS CAR --- apc-linux DTR *ST 5 *CAR DSR --- (*=active low, ---=unused) Note that The lan22 device has everything reversed the tripp-nt device (fun eh?) I run mine with % genpowerd /dev/ttyS0 tripp-lan22 ttyS0 corresponds to the "1" serial port on a DS10 (the upper one). Note that there is no test on the cable. If you yank it out no warnings or errors will be issued and this will disable UPS checking. This appears to be a limitation of the Tripp-Lite wiring - the UPS checking software I use on OpenVMS behaves exactly the same way. So be careful that the UPS cable is screwed in well! Regards, David Mathog mathog@seqaxp.bio.caltech.edu Manager, sequence analysis facility, biology division, Caltech