Peter Selinger
2006-Aug-08 04:18 UTC
[Nut-upsuser] Re: Tripp Lite LCD models w/ NUT (DETAILS)
James, thanks, this is useful info. Comments below. -- Peter James Pooton wrote:> > > I saw on the list that you were looking for some details. Sorry I'm not > part of the list, but here are my results: > > > [root@blackhole bin]# ./newhidups -DDD -u root ups@127.0.0.1 > Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0) > > debug level is '3' > Checking device (09AE/2005) (004/008) > - VendorID: 09ae > - ProductID: 2005 > - Manufacturer: Tripp Lite > - Product: TRIPP LITE UPS > - Serial Number: 692199 B > - Bus: 004 > Trying to match device > Device matches > failed to claim USB device, trying 2 more time(s)... > detaching kernel driver from USB device... > trying again to claim USB device... > HID descriptor, method 1: (9 bytes) => 09 21 10 01 00 01 22 cb 01 > HID descriptor, method 2: (9 bytes) => 09 21 10 01 00 01 22 6a 02 > Warning: two different HID descriptors retrieved (Reportlen = 459 vs. 618)Ah, good, my bug fix is working! The driver now notices that the UPS is buggy, and then uses the more likely value, in this case, 618.> HID descriptor retrieved (Reportlen = 618) > Report descriptor retrieved (Reportlen = 618) > Found HID device > Report Descriptor size = 618 > Report Descriptor: (200 bytes) => 05 84 09 04 a1 01 09 24 a1 02 05 84 85 28 > 09 fe 75 08 95 01 26 ff 00 15 00 b1 03 85 29 09 ff b1 03 85 2b 09 fd b1 03 > 09 1a a1 02 09 40 85 30 b1 83 c0 75 08 95 01 26 ff 00 85 11 09 5a b1 82 05 > 85 95 01 75 08 26 ff 00 15 00 85 2a 09 89 b1 03 85 33 09 2c b1 03 25 64 85 > 34 09 66 81 a2 85 34 09 66 b1 a2 85 37 09 67 b1 03 05 84 09 02 a1 02 25 01 > 75 01 85 32 05 84 95 01 09 69 81 a2 09 d0 81 a2 95 03 09 44 09 45 09 4b 81 > a2 95 03 81 01 85 32 05 84 75 01 95 01 09 69 b1 a2 05 85 09 d0 b1 a2 95 03 > 09 44 09 45 09 4b b1 a2 95 03 b1 01 c0 c0 05 84 09 10 a1 02 09 12 a1 02 85 > 04 09 40 75 10 95 01 27 ff ff 00I'll have to study this one tomorrow!> Detected a UPS: Tripp Lite /TRIPP LITE UPS > Using subdriver: TrippLite HID 0.1 (experimental)snip...> Report: (3 bytes) => 31 9c 04 > Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 156.000000This one is wrong. Probably a miscalculation by the driver. The raw hexadecimal value is 0x049c, which is 1180, which very likely means 118V. I will need to track down the reason the driver reports 156V; perhaps a problem with units.> Report: (3 bytes) => 20 0d 01 > Path: UPS.BatterySystem.Battery.Voltage, Type: Feature, Value: 269.000000This is equally strange. Here, the reported raw value (269.00) very likely means 26.9V, which would be correct. However, upsc reports> battery.voltage: 0.0What this shows is that the UPS is likely functioning properly; hopefully with a few driver touch-ups, I will be able to coax it into reporting the correct values. Gotta go to bed. More in the next few days... -- Peter