Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* genpowerd on Alpha?
@ 2000-05-23  4:00 David Mathog
  2000-05-23  4:00 ` David Mathog
  2000-05-23  4:00 ` David Mathog
  0 siblings, 2 replies; 3+ messages in thread
From: David Mathog @ 2000-05-23  4:00 UTC (permalink / raw)


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 

 % ./gentest -r /dev/ttyS0

also turns it on.  I've tried to monkey around with the device settings but 
those which don't shut off the inverter always cause an immediate shutdown.

Looks like I need a different piece of UPS control software - anybody know 
of one which works with these Tripplites on an Alpha?  

Genpowerd works fine with a lan 2.1 version of this same UPS running on an
Intel Linux box - but that's a different cable/logic.  I've got a lan 2.2
version of this UPS running just fine on my VMS machine - but that's
incompatible software. Tripplite doesn't have any Alpha/Linux software on
their site. :-(.

Thanks,

David Mathog
mathog@seqaxp.bio.caltech.edu
Manager, sequence analysis facility, biology division, Caltech 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: genpowerd on Alpha?
  2000-05-23  4:00 genpowerd on Alpha? David Mathog
  2000-05-23  4:00 ` David Mathog
@ 2000-05-23  4:00 ` David Mathog
  1 sibling, 0 replies; 3+ messages in thread
From: David Mathog @ 2000-05-23  4:00 UTC (permalink / raw)


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] <device> <ups-type>

    <ups-type>    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 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: genpowerd on Alpha?
  2000-05-23  4:00 genpowerd on Alpha? David Mathog
@ 2000-05-23  4:00 ` David Mathog
  2000-05-23  4:00 ` David Mathog
  1 sibling, 0 replies; 3+ messages in thread
From: David Mathog @ 2000-05-23  4:00 UTC (permalink / raw)


In article <8genrh$pok@gap.cco.caltech.edu>, mathog@seqaxp.bio.caltech.edu (David Mathog) writes:

One last thing about the Tripplite Omnismart UPS and lan 2.2 cable.  When
you shutdown the system, on a DS10 at least, the RTS signal appears to go
high more often than not, which tells the UPS to run on batteries alone. 
This won't be a problem if you're just doing a quick reboot, but if you'll
be messing around with SRM or something like that you'd best have a
screwdriver handy so that you can unplug the cable.  It would definitely be
a bad thing to have the UPS put out the lights in the middle of a firmware
upgrade! 

Regards,

David Mathog
mathog@seqaxp.bio.caltech.edu
Manager, sequence analysis facility, biology division, Caltech 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-05-23  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-23  4:00 genpowerd on Alpha? David Mathog
2000-05-23  4:00 ` David Mathog
2000-05-23  4:00 ` David Mathog

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox