[Nut-upsuser] Crash when I start driver

Patrick Nolan Patrick.Nolan at stanford.edu
Wed Dec 5 01:59:01 UTC 2007


It's been a while since I tried to use NUT, so I thought I would give it
another try.  Big trouble.

The UPS is a Tripp-Lite AVR 550U.  It has only a USB connector.
The computer is running Red Hat Enterprise Linux 4.
I just installed NUT version 2.2.0.  I'm going through the steps in
the INSTALL document.

# cat ups.conf
[igor]
         driver = usbhid-ups
         port = auto
         desc = "Igor's computer UPS"
         vendorid = 09ae


When I run the command
# ../bin/usbhid-ups -a igor -DD -u root
it produces the long output which is attached below.
Then the machine crashes.  I think the UPS just turns off
the power.  The log file contains the line
Dec  4 16:05:26 computer kernel: usb 2-2: USB disconnect, address 2

As you might guess, I am out of favor with the guy who uses the
machine.  I won't get to touch it again unless I can convince him
that I know what I'm doing.

Can anyone explain this?

---------------------------------------------------------------------
]# ../bin/usbhid-ups -a igor -DD -u root
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.2.0)

debug level is '2'
Checking device (049F/008D) (002/003)
- VendorID: 049f
- ProductID: 008d
- Manufacturer: Chicony
- Product: HP Wireless Receiver
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (09AE/1003) (002/002)
- VendorID: 09ae
- ProductID: 1003
- Manufacturer: Tripp Lite
- Product: TRIPP LITE UPS
- Serial Number: 692186 A
- Bus: 002
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 retrieved (Reportlen = 459)
Report descriptor retrieved (Reportlen = 459)
Found HID device
Report Descriptor size = 459
Detected a UPS: Tripp Lite /TRIPP LITE UPS
Using subdriver: TrippLite HID 0.1 (experimental)
Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x28, Offset: 
0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x29, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x2b, 
Offset: 0, Size: 8, Value: 3.000000
Path: UPS.PowerSummary.Input.ConfigVoltage, Type: Feature, ReportID: 
0x30, Offset: 0, Size: 8, Value: 120.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 
0x11, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x2a, 
Offset: 0, Size: 8, Value: 24.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x33, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x34, 
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x34, 
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 
0x37, Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, 
ReportID: 0x32, Offset: 0, Size: 1, Value: 0.000000
Can't find object UPS.PowerSummary.PresentStatus.TLACPresent
Path: UPS.PowerSummary.PresentStatus.TLACPresent, Type: Input, ReportID: 
0x32, Offset: 1, Size: 1
Can't find object UPS.PowerSummary.PresentStatus.TLCharging
Path: UPS.PowerSummary.PresentStatus.TLCharging, Type: Input, ReportID: 
0x32, Offset: 2, Size: 1
Can't find object UPS.PowerSummary.PresentStatus.TLDischarging
Path: UPS.PowerSummary.PresentStatus.TLDischarging, Type: Input, 
ReportID: 0x32, Offset: 3, Size: 1
Can't find object UPS.PowerSummary.PresentStatus.TLNeedReplacement
Path: UPS.PowerSummary.PresentStatus.TLNeedReplacement, Type: Input, 
ReportID: 0x32, Offset: 4, Size: 1
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, 
ReportID: 0x32, Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 
0x32, Offset: 1, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 
0x32, Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, 
ReportID: 0x32, Offset: 3, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, 
ReportID: 0x32, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Battery.ConfigVoltage, Type: Feature, ReportID: 
0x04, Offset: 0, Size: 16, Value: 12.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Charging, Type: Feature, 
ReportID: 0x23, Offset: 0, Size: 1, Value: 1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Discharging, Type: 
Feature, ReportID: 0x23, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Battery.PresentStatus.NeedReplacement, Type: 
Feature, ReportID: 0x23, Offset: 2, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Test, Type: Feature, ReportID: 0x10, Offset: 0, 
Size: 8, Value: 1.000000
Path: UPS.Flow.ConfigVoltage, Type: Feature, ReportID: 0x01, Offset: 0, 
Size: 8, Value: 120.000000
Path: UPS.Flow.ConfigFrequency, Type: Feature, ReportID: 0x02, Offset: 
0, Size: 8, Value: 60.000000
Path: UPS.Flow.ConfigApparentPower, Type: Feature, ReportID: 0x03, 
Offset: 0, Size: 16, Value: 550.000000
Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown, Type: Feature, 
ReportID: 0x15, Offset: 0, Size: 16, Value: 65535.000000
Path: UPS.OutletSystem.Outlet.ffff0091, Type: Feature, ReportID: 0x51, 
Offset: 0, Size: 8, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff0092, Type: Feature, ReportID: 0x52, 
Offset: 0, Size: 8, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff00c7, Type: Feature, ReportID: 0x9d, 
Offset: 0, Size: 8, Value: 1.000000
Path: UPS.ffff0010.[1].ffff007d, Type: Feature, ReportID: 0x6c, Offset: 
0, Size: 16, Value: 4099.000000
Path: UPS.ffff0015.[1].ffff00c0, Type: Feature, ReportID: 0x96, Offset: 
0, Size: 8, Value: 255.000000
Path: UPS.ffff0015.[1].ffff00d2, Type: Feature, ReportID: 0xb4, Offset: 
0, Size: 32, Value: 255.000000
Path: UPS.ffff0015.[1].ffff00c1, Type: Feature, ReportID: 0x97, Offset: 
0, Size: 16, Value: 255.000000
Path: UPS.ffff0015.[1].ffff00c2, Type: Feature, ReportID: 0x98, Offset: 
0, Size: 8, Value: 255.000000
Path: UPS.ffff0015.[1].ffff00c3, Type: Feature, ReportID: 0x99, Offset: 
0, Size: 16, Value: 255.000000
Path: UPS.ffff0015.[1].ffff00c5, Type: Feature, ReportID: 0x9b, Offset: 
0, Size: 16, Value: 2.000000
Can't retrieve Report 154 (32): Broken pipe
Path: UPS.ffff0015.[1].ffff00c4, Type: Feature, ReportID: 0x9a, Offset: 
0, Size: 32
Can't find object UPS.PowerSummary.RemainingCapacityLimit
Can't find object UPS.PowerSummary.WarningCapacityLimit
Can't find object UPS.PowerSummary.RunTimeToEmpty
Can't find object UPS.BatterySystem.Battery.Voltage
- Unable to fetch string 24
Can't find object UPS.BatterySystem.Temperature
Can't find object UPS.OutletSystem.Outlet.DelayBeforeStartup
Can't find object UPS.OutletSystem.Outlet.DelayBeforeReboot
Can't find object UPS.OutletSystem.Outlet.ActivePower
Can't find object UPS.PowerConverter.Output.ActivePower
Can't find object UPS.OutletSystem.Outlet.PercentLoad
Can't find object UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit
Can't find object UPS.PowerSummary.PresentStatus.FullyCharged
Can't find object UPS.PowerConverter.PresentStatus.Overload
Can't find object UPS.PowerConverter.PresentStatus.Boost
Can't find object UPS.PowerConverter.PresentStatus.Buck
Can't find object UPS.PowerSummary.PresentStatus.TLACPresent
Can't find object UPS.PowerSummary.PresentStatus.TLDischarging
Can't find object UPS.PowerSummary.PresentStatus.TLCharging
Can't find object UPS.PowerSummary.PresentStatus.TLNeedReplacement
Can't find object UPS.PowerConverter.PresentStatus.OverTemperature
Can't find object UPS.PowerConverter.PresentStatus.AwaitingPower
Can't find object UPS.PowerConverter.PresentStatus.InternalFailure
Can't find object UPS.PowerConverter.PresentStatus.VoltageOutOfRange
Can't find object UPS.PowerConverter.Input.Voltage
Can't find object UPS.PowerConverter.Input.Frequency
Can't find object UPS.PowerConverter.Output.HighVoltageTransfer
Can't find object UPS.PowerConverter.Output.LowVoltageTransfer
Can't find object UPS.PowerSummary.Voltage
Can't find object UPS.PowerConverter.Output.Voltage
Can't find object UPS.PowerConverter.Output.Current
Can't find object UPS.PowerConverter.Output.Frequency
Can't find object UPS.OutletSystem.Outlet.DelayBeforeStartup
upsdrv_updateinfo...
- Unable to fetch string 24
dstate_init: sock /var/state/ups/usbhid-ups-igor open on fd 5
upsdrv_updateinfo...
Waiting for notifications...



More information about the Nut-upsuser mailing list