More information Re: [Nut-upsdev] TrippLite OMNI1000LCD hiddev
Joel Peshkin
joel at peshkin.net
Mon Nov 7 19:37:12 UTC 2005
This is looking a lot more like it...
With the 2 source changes (buffer length) and forcing the driver and upsd to both remain running as root, I get this... [I suspect that this is because the rest of the code does not know about the misleading length field]
root at gate:~# /usr/local/ups/bin/upsc myups at localhost
driver.name: newhidups
driver.parameter.generic: 1
driver.parameter.port: /dev/usb/hiddev0
driver.parameter.vendorid: 09AE
driver.version: 2.1.0
driver.version.data: GENERIC HID 0.1
driver.version.internal: 0.28
ups.mfr: Tripp Lite
ups.model: TRIPP LITE UPS
ups.serial: 692185 A
/usr/local/ups/bin/newhidups -u root -x vendorid=09AE -x generic -
DD auto
Network UPS Tools: New USB/HID UPS driver 0.28 (2.1.0)
debug level is '2'
Checking device (0000/0000) (005/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.12-9-amd64-generic ehci_hcd
- Product: VIA Technologies, Inc. USB 2.0
- Serial Number: 0000:00:10.4
- Bus: 005
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (004/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.12-9-amd64-generic uhci_hcd
- Product: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#4)
- Serial Number: 0000:00:10.3
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (003/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.12-9-amd64-generic uhci_hcd
- Product: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#3)
- Serial Number: 0000:00:10.2
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.12-9-amd64-generic uhci_hcd
- Product: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)
- Serial Number: 0000:00:10.1
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (09AE/2005) (001/003)
- VendorID: 09ae
- ProductID: 2005
- Manufacturer: Tripp Lite
- Product: TRIPP LITE UPS
- Serial Number: 692185 A
- Bus: 001
Trying to match device
Device matches
HID descriptor retrieved (Reportlen = 459)
Report descriptor retrieved (Reportlen = 459)
Found HID device
Report Descriptor size = 618
Detected a UPS: Tripp Lite /TRIPP LITE UPS
Using subdriver: GENERIC HID 0.1
Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, Value: 3.000000
Path: UPS.PowerSummary.Input.ConfigVoltage, Type: Feature, Value: 120.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value: 24.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value: 95.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value: 95.000000
Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, Value: 100.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, Value: 0.000000
Can't find object UPS.PowerSummary.PresentStatus.008400d0
Path: UPS.PowerSummary.PresentStatus.008400d0, Type: Input
Can't find object UPS.PowerSummary.PresentStatus.ConfigActivePower
Path: UPS.PowerSummary.PresentStatus.ConfigActivePower, Type: Input
Can't find object UPS.PowerSummary.PresentStatus.ConfigPercentLoad
Path: UPS.PowerSummary.PresentStatus.ConfigPercentLoad, Type: Input
Can't find object UPS.PowerSummary.PresentStatus.0084004b
Path: UPS.PowerSummary.PresentStatus.0084004b, Type: Input
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, Value: 0.000000
Path: UPS.BatterySystem.Battery.ConfigVoltage, Type: Feature, Value: 12.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Charging, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Discharging, Type: Feature, Value: 0.000000
Path: UPS.BatterySystem.Battery.PresentStatus.NeedReplacement, Type: Feature, Value: 0.000000
Path: UPS.BatterySystem.Test, Type: Feature, Value: 1.000000
Path: UPS.Flow.ConfigVoltage, Type: Feature, Value: 120.000000
Path: UPS.Flow.ConfigFrequency, Type: Feature, Value: 60.000000
Path: UPS.Flow.ConfigApparentPower, Type: Feature, Value: 1000.000000
Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown, Type: Feature, Value: 65535.000000
Path: UPS.OutletSystem.Outlet.ffff0091, Type: Feature, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff0092, Type: Feature, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff00c7, Type: Feature, Value: 1.000000
Path: UPS.ffff0010.00ff0001.ffff007d, Type: Feature, Value: 8197.000000
Path: UPS.ffff0015.00ff0001.ffff00c0, Type: Feature, Value: 255.000000
Path: UPS.ffff0015.00ff0001.ffff00d2, Type: Feature, Value: -57089.000000
Path: UPS.ffff0015.00ff0001.ffff00c1, Type: Feature, Value: -1.000000
Path: UPS.ffff0015.00ff0001.ffff00c2, Type: Feature, Value: 255.000000
Path: UPS.ffff0015.00ff0001.ffff00c3, Type: Feature, Value: -1.000000
Path: UPS.ffff0015.00ff0001.ffff00c5, Type: Feature, Value: 3.000000
Can't retrieve Report 154 (-32/32): Broken pipe
Path: UPS.ffff0015.00ff0001.ffff00c4, Type: Feature
Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 143.000000
Path: UPS.BatterySystem.Battery.Voltage, Type: Feature, Value: 134.000000
Path: UPS.PowerConverter.Input.Voltage, Type: Feature, Value: 116.000000
Path: UPS.PowerConverter.Input.Frequency, Type: Feature, Value: 59.000000
Path: UPS.PowerConverter.PresentStatus.VoltageOutOfRange, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Buck, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Boost, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Overload, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Used, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.OverTemperature, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.InternalFailure, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.AwaitingPower, Type: Feature, Value: 0.000000
Path: UPS.OutletSystem.Outlet.DelayBeforeReboot, Type: Feature, Value: 65535.000000
entering identify_ups(0x09ae, 0x2005)
upsdrv_updateinfo...
dstate_init: sock /var/state/ups/newhidups-auto open on fd 5
upsdrv_updateinfo...
Waiting for notifications...
=>Got 5 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigPercentLoad
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigActivePower
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ShutdownImminent
upsdrv_updateinfo...
Waiting for notifications...
=>Got 1 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity
upsdrv_updateinfo...
Waiting for notifications...
=>Got 5 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigPercentLoad
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigActivePower
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ShutdownImminent
upsdrv_updateinfo...
Waiting for notifications...
=>Got 1 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity
upsdrv_updateinfo...
Waiting for notifications...
=>Got 5 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigPercentLoad
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigActivePower
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ShutdownImminent
upsdrv_updateinfo...
Waiting for notifications...
=>Got 1 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity
upsdrv_updateinfo...
Waiting for notifications...
=>Got 5 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigPercentLoad
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigActivePower
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ShutdownImminent
upsdrv_updateinfo...
Waiting for notifications...
=>Got 1 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity
upsdrv_updateinfo...
Waiting for notifications...
=>Got 5 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.0084004b
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigPercentLoad
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ConfigActivePower
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.008400d0
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.ShutdownImminent
upsdrv_updateinfo...
Waiting for notifications...
=>Got 1 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.RemainingCapacity
upsdrv_updateinfo...
Waiting for notifications...
More information about the Nut-upsdev
mailing list