[Nut-upsuser] Powercom BNT-800AP

2010-02-04 Thread cooleyr
While fundamentally working, I'm having a few issues with the driver...

The default voltage quads (for every model) are way off...  Showing
~95v when it should be ~117V.  I've changed the 4th/final coefficient
to +5.0, but haven't tested extensively (with fluctuating voltages).

The input/output voltage appears to be swapped _most of the time_.
When doing a battery test, or when unplugged, the input stays steady,
and the _output_ voltage reports a drop to ~15V.  OTOH, when the UPS
is shutdown, the ordering appears correct, as the input stays steady,
and the output shows ~5V.

For the above, the Powercom upsmon software appears to special-case
those ~5/15V results, and on the next update, report it as 0V.  I have
no idea how to even special-case the screwy input/output-swapping
behavior...


./powercom -a ups0 -DDD
Network UPS Tools - PowerCom protocol UPS driver 0.12 (2.4.1-2308)
   0.00 debug level is '3'
   0.001406 Flow control disable
   0.150003 Detected: BNT-other-500AP , 120V
   0.153986 Values of arguments:
   0.154001  manufacturer: 'PowerCom'
   0.154009  model name  : 'BNT-other-500AP'
   0.154015  serial number   : 'Unknown'
   0.154022  line voltage: '120'
   0.154029  type: 'BNT-other'
   0.154036  number of bytes from UPS: '16'
   0.154042  method of flow control  : 'no_flow_control'
   0.154051  validation sequence: '{{8,0},{8,0},{8,0}}'
   0.154059  shutdown arguments: '{{1,30},y}'
   0.154073  frequency calculation coefficients: '{0.000208,0.00}'
   0.154084  load percentage calculation coefficients:
'{1.447400,0.00,0.859400,0.00}'
   0.154101  battery percentage calculation coefficients:
'{5.00,0.326800,-825.00,0.465110,0.00}'
   0.154110  voltage calculation coefficients: '{0.954500,5.00}'
   0.305927 input.frequency   (raw data): [raw: 80]
   0.305966 input.frequency: 60.09
   0.305974 output.frequency   (raw data): [raw: 80]
   0.305987 output.frequency: 60.09
   0.305994 ups.load  (raw data): [raw: 0]
   0.306008 ups.load: 0.0
   0.306015 battery.charge (raw data): [raw: 197]
   0.306027 battery.charge: 100.0
   0.306035 input.voltage (raw data): [raw: 119]
   0.306048 input.voltage: 118.6
   0.306055 output.voltage (raw data): [raw: 26]
   0.306067 output.voltage: 29.8
   0.306079 STATUS: OB TEST
   0.306338 dstate_init: sock /var/state/ups/powercom-ups0 open on fd 5
   0.453868 input.frequency   (raw data): [raw: 80]
   0.453907 input.frequency: 60.09
   0.453914 output.frequency   (raw data): [raw: 80]
   0.453925 output.frequency: 60.09
   0.453931 ups.load  (raw data): [raw: 0]
   0.453944 ups.load: 0.0
   0.453950 battery.charge (raw data): [raw: 195]
   0.453961 battery.charge: 100.0
   0.453968 input.voltage (raw data): [raw: 119]
   0.453979 input.voltage: 118.6
   0.453986 output.voltage (raw data): [raw: 26]
   0.453997 output.voltage: 29.8
   0.454008 STATUS: OB TEST
   1.853474 new connection on fd 6
   2.457023 input.frequency   (raw data): [raw: 80]
   2.457070 input.frequency: 60.09
   2.457077 output.frequency   (raw data): [raw: 80]
   2.457088 output.frequency: 60.09
   2.457095 ups.load  (raw data): [raw: 0]
   2.457108 ups.load: 0.0
   2.457115 battery.charge (raw data): [raw: 191]
   2.457140 battery.charge: 95.0
   2.457147 input.voltage (raw data): [raw: 119]
   2.457159 input.voltage: 118.6
   2.457167 output.voltage (raw data): [raw: 25]
   2.457185 output.voltage: 28.9
   2.457197 STATUS: OB TEST
   4.456188 input.frequency   (raw data): [raw: 80]
   4.456240 input.frequency: 60.09
   4.456248 output.frequency   (raw data): [raw: 80]
   4.456259 output.frequency: 60.09
   4.456266 ups.load  (raw data): [raw: 0]
   4.456279 ups.load: 0.0
   4.456286 battery.charge (raw data): [raw: 193]
   4.456656 battery.charge: 100.0
   4.456673 input.voltage (raw data): [raw: 119]
   4.456686 input.voltage: 118.6
   4.456693 output.voltage (raw data): [raw: 119]
   4.456849 output.voltage: 118.6
   4.456978 STATUS: OL
   6.455365 input.frequency   (raw data): [raw: 80]
   6.455420 input.frequency: 60.09
   6.455428 output.frequency   (raw data): [raw: 80]
   6.455439 output.frequency: 60.09
   6.455445 ups.load  (raw data): [raw: 0]
   6.455458 ups.load: 0.0
   6.455465 battery.charge (raw data): [raw: 193]
   6.455476 battery.charge: 100.0
   6.455483 input.voltage (raw data): [raw: 119]
   6.455494 input.voltage: 118.6
   6.455500 output.voltage (raw data): [raw: 119]
   6.455511 output.voltage: 118.6
   6.455522 STATUS: OL

For anyone wondering, I wouldn't recommend these units to anyone else.
 A 400W dumb/personal UPS from 

[Nut-upsuser] USB permission problem

2010-02-04 Thread Karl Dalen

I have just compiled and installed nut-2.4.1 and I get
the following errors when I try it: There is no difference
if I run it as root or normal user. Any help would be
appreciated.

# usbhid-ups -DDD -a SMART1000LCD

Network UPS Tools - Generic HID driver 0.34 (2.4.1)
USB communication driver 0.31
debug level is '3'
upsdrv_initups...
Checking device (1D6B/0002) (001/001)
libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
libusb requires write access to USB device nodes.
Failed to open device, skipping. (Permission denied)
Checking device (05E3/0605) (001/003)
libusb couldn't open USB device /dev/bus/usb/001/003: Permission denied.
libusb requires write access to USB device nodes.
Failed to open device, skipping. (Permission denied)
Checking device (09AE/2007) (001/009)
libusb couldn't open USB device /dev/bus/usb/001/009: Permission denied.
libusb requires write access to USB device nodes.
Failed to open device, skipping. (Permission denied)
:
No appropriate HID device found
No matching HID UPS found


I have a tripp lite 1000LCD and my etc/ups.conf looks like:
[SMART1000LCD]
driver = usbhid-ups
port = auto
desc = Tripp Lite SMART1000LCD USB

The device is identified in dmesg as:

usb 1-4.1: new low speed USB device using ehci_hcd and address 9
usb 1-4.1: New USB device found, idVendor=09ae, idProduct=2007
usb 1-4.1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 1-4.1: Product: TRIPP LITE UPS 
usb 1-4.1: Manufacturer: Tripp Lite 
usb 1-4.1: SerialNumber: FW-2263 E 
usb 1-4.1: configuration #1 chosen from 1 choice
generic-usb 0003:09AE:2007.0007: hiddev0,hidraw2: USB HID v1.10 Device [Tripp 
Lite  TRIPP LITE UPS ] on usb-:00:10.3-4.1/input0

% lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 05e3:0605 Genesys Logic, Inc. USB 2.0 Hub [ednet]
Bus 001 Device 009: ID 09ae:2007 Tripp Lite 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser