Compaq R3000 cable & UPScode-II protocol

"T. Weyergraf"
Thu, 24 Oct 2002 14:44:35 +0200


Hi list.

I finally got my system and my Compaq R3000 USV talking to
each other. Just in case, someone needs to make a cable for that beast
for using the Smart-Mode with the UPS. In Smart-Mode, the UPS talks
Upscode-II protocol according to the documentation provided by
Powerware ( The UPS is actually a Powerware 5119 ).

The Cable should look like:

UPS ( DB-9, female )            Computer ( DB-9, male )
-------------------------------------------------------
Pin Signal Direction            Pin Signal Direction
 1  RD     in         -->       3   TD     out
 2  TD     out        -->       2   RD     in
 6  RTS    in         -->       7   RTS    out 
 4  SigGND --         -->       5   SigGND --

See one of my previous mails for the link to the Powerware 5119
documentation.

In Smart-Mode, the upscode2 driver written by Havard Lygre ( which
hopefully forgives me for not writing his name with the proper charset in
place ) starts talking to the UPS and gives *loads* of output to the
syslog. This is, what's being found.

The following section is printed on the controlling tty:
   Network UPS Tools - UPSCode II UPS driver -0.99 (1.0.0)
   Copyright (C) 2001-2002 H嶡rd Lygre, <hklygre@online.no>
   Sending 'UPTP'
   Received 0 bytes:       ''
   Received 5 bytes:       'NNAME'
   Received 20 bytes:      'UPS 3000 VA FW -0039'
   Unknown UPS - please report this: 'UPS 3000 VA FW -0039'
   Sending 'UPSN'
   Unexpected UPS output [\012]
   upsflushin: read char \012Sending '0'
   Received 0 bytes:       ''
   Received 4 bytes:       'ACSN'
   Received 20 bytes:      'TS415A0617          '

This is, what ups2code logs to syslog during normal operation:
   Unexpected UPS output [\012]
   Unknown status received: 'STOK'
   Unknown status received: '00'
   Unknown status received: 'STBO'
   Unknown status received: '00'
   Unknown status received: 'STBM'
   Unknown status received: 'FT'
   Unknown status received: 'STLR'
   Unknown status received: 'NO'
   Unknown status received: 'BTIME'
   Unknown status received: '0044.00'
   Unknown status received: 'MOPL1'
   Unknown status received: '0000.00'

This is what upscode2 logs to syslog, if the external power to the UPS is
disconnected:
   Unexpected UPS output [\012]
   Unknown status received: 'STOK'
   Unknown status received: '11'
   Unknown status received: 'STBO'
   Unknown status received: '11'
   Unknown status received: 'STBM'
   Unknown status received: 'DI'
   Unknown status received: 'BTIME'
   Unknown status received: '0044.00'
   Unknown status received: 'MOPL1'
   Unknown status received: '0000.00'


After reconnecting power, upscode2 returns to logging the section
given in normal operation.
Please note, that most likely, the batteries in the unit need to be replaced.

Currently, I need to fiddle the driver into the nut-1.0.0 framework,
which is most likely a mistakte by me ( hints welcome ;-). Currently, I 
cannot obtain information using the "upsc localhost" command - it
reports the data being stale for my driver ( The upsd is running, and
upsd.conf and ups.conf have been configured at a very basic level ).

Is there any chance to get some sort of docs on the UPScode-II protocol ?
>From what i've learned from the list, is not open and subject at least to
an NDA.

Regards,
T. Weyergraf



-- 
Thomas Weyergraf                                                kirk@colinet.de
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.