[Nut-upsdev] NUT-2.0.5: newhidups on RedHat ES4 ( cont'd )

Patrick Agrain patrick.agrain at alcatel-lucent.fr
Wed Apr 4 07:36:06 UTC 2007


At 15:06 03/04/2007, Charles Lepple wrote:
>On 4/3/07, Patrick Agrain <patrick.agrain at alcatel-lucent.fr> wrote:
>>Hi,
>>
>>At 18:03 02/04/2007, Patrick Agrain wrote:
>> >Hi all,
>> >
>> >I removed the udev rules and put instead the libhidups and libhid.usermap
>> >in the /etc/hotplug/usb directory.
>> >
>> >Plug in the UPS now shows the correct user / permissions on
>> >/proc/bus/usb/BBB/DDD. That's the good news.
>> >--------------
>> >[root at sxb ~]# ls -als /proc/bus/usb/001
>> >total 0
>> >0 dr-xr-xr-x  2 root root  0 avr  3  2007 .
>> >0 drwxr-xr-x  3 root root  0 avr  3  2007 ..
>> >0 -rw-r--r--  1 root root 43 avr  3  2007 001
>> >0 -rw-rw-r--  1 root nut  52 avr  3 09:58 003
>> >--------------
>> >
>> >Unfortunately, the test of the driver still fails and exits with a broken
>> >pipe.
>> >--------
>> >[root at sxb ~]# /sbin/newhidups -u root -a mgeups -DDDDD
>> >Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5)
>> >debug level is '5'
>> >Checking device (0463/FFFF) (001/003)
>> >- VendorID: 0463
>> >- ProductID: ffff
>> >- Manufacturer: MGE UPS SYSTEMS
>> >- Product: EXtreme
>> >- Serial Number: 885B25011
>> >- Bus: 001
>> >Trying to match device
>> >Device matches
>> >HID descriptor, method 1: (9 bytes) => 09 21 00 01 21 01 22 63 06
>> >i=0, extra[i]=09, extra[i+1]=21
>> >HID descriptor, method 2: (9 bytes) => 09 21 00 01 21 01 22 63 06
>> >HID descriptor retrieved (Reportlen = 1635)
>> >Unable to get Report descriptor (-32): Broken pipe
>
>This error doesn't look good.
>
>Can you retrieve the HID Report Descriptor with either Peter
>Selinger's descriptor tool (mentioned in the NUT list archives; email
>me back if you can't find it) or 'lsusb -vvv' run as root?

Hi Charles,

Thanks to have interest to this.

Can this be useful ? It is grepped from another system running NUT 2.0.3.
If not, please ignore it. I'll also try the tool and/or the "lsusb" command.

[root at xa000000 root]# newhidups -u root -a ups_on_usb -DD
Network UPS Tools: New USB/HID UPS driver 0.28a (2.0.3)

debug level is '2'
Checking device (0000/0000) (003/001)
Found Manufacturer Index :3
Found Product Index :2
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.4.17-ll-dhs3 ehci-hcd
- Product: PCI device 8086:25ad
- Serial Number: 00:1d.7
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (002/001)
No Manufacturer string Index
Found Product Index :2
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: USB UHCI-alt Root Hub
- Serial Number: 1420
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0463/FFFF) (002/002)
Found Manufacturer Index :4
Found Product Index :124
- VendorID: 0463
- ProductID: ffff
- Manufacturer: MGE UPS SYSTEMS
- Product: EXtreme
- Serial Number: 885B25011
- 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 = 1635)
Report descriptor retrieved (Reportlen = 1635)
Found HID device
Report Descriptor size = 1635
Detected a UPS: MGE UPS SYSTEMS/EXtreme
Using subdriver: MGE HID 0.8
Path: UPS.PowerSummary.PowerSummaryID, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.FlowID, Type: Feature, Value: 4.000000
Path: UPS.PowerSummary.RemainingCapacityLimitSetting, Type: Feature, Value: 
30.000000
Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, Value: 30.000000
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 124.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value: 76.000000
Path: UPS.PowerSummary.iOEMInformation, Type: Feature, Value: 4.000000
Path: UPS.PowerSummary.iModel, Type: Feature, Value: 36.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 54.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, Value: 4.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value: 100.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, Value: 5031.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, Value: 5031.000000
Path: UPS.PowerSummary.PercentLoad, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary.ffff005f, Type: Feature, Value: 20.000000
Path: UPS.PowerSummary.ffff0048, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 54.000000
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, Value: 48.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, Value: -10.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Input, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.Good, Type: Input, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.OverLoad, Type: Input, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.OverTemperature, Type: Input, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Input, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.Switchable, Type: Input, Value: 1.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.BelowRemainingCapacityLimit, Type: 
Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature, 
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.Good, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, 
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.OverLoad, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.OverTemperature, Type: Feature, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Feature, Value: 
0.000000
Path: UPS.PowerSummary.PresentStatus.Switchable, Type: Feature, Value: 1.000000
Path: UPS.PowerConverter.PowerConverterID, Type: Feature, Value: 1.000000
Path: UPS.PowerConverter.ffff0042, Type: Input, Value: 0.000000
Path: UPS.PowerConverter.ffff0042, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.ffff0041, Type: Feature, Value: 2.000000
Path: UPS.PowerConverter.Input.00ff0001.0084001b, Type: Feature, Value: 
1.000000
Path: UPS.PowerConverter.Input.00ff0001.FlowID, Type: Feature, Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0001.Voltage, Type: Feature, Value: 
223.000000
Path: UPS.PowerConverter.Input.00ff0001.Frequency, Type: Feature, Value: 
50.000000
Path: UPS.PowerConverter.Input.00ff0001.ffff0043, Type: Feature, Value: 
1.000000
Path: UPS.PowerConverter.Input.00ff0001.PresentStatus.Used, Type: Input, 
Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0001.PresentStatus.Good, Type: Input, 
Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0001.PresentStatus.InternalFailure, 
Type: Input, Value: 0.000000
Path: UPS.PowerConverter.Input.00ff0001.PresentStatus.Used, Type: Feature, 
Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0001.PresentStatus.Good, Type: Feature, 
Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0001.PresentStatus.InternalFailure, 
Type: Feature, Value: 0.00000
0
Path: UPS.PowerConverter.Input.00ff0002.0084001b, Type: Feature, Value: 
2.000000
Path: UPS.PowerConverter.Input.00ff0002.FlowID, Type: Feature, Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0002.Voltage, Type: Feature, Value: 
225.000000
Path: UPS.PowerConverter.Input.00ff0002.Frequency, Type: Feature, Value: 
50.000000
Path: UPS.PowerConverter.Input.00ff0002.PresentStatus.Used, Type: Input, 
Value: 0.000000
Path: UPS.PowerConverter.Input.00ff0002.PresentStatus.Good, Type: Input, 
Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0002.PresentStatus.OverLoad, Type: 
Input, Value: 0.000000
Path: UPS.PowerConverter.Input.00ff0002.PresentStatus.Used, Type: Feature, 
Value: 0.000000
Path: UPS.PowerConverter.Input.00ff0002.PresentStatus.Good, Type: Feature, 
Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0002.PresentStatus.OverLoad, Type: 
Feature, Value: 0.000000
Path: UPS.PowerConverter.Input.00ff0002.ffff0054, Type: Feature, Value: 
1.000000
Path: UPS.PowerConverter.Input.00ff0002.ffff0055, Type: Feature, Value: 
1.000000
Path: UPS.PowerConverter.Input.00ff0003.0084001b, Type: Feature, Value: 
3.000000
Path: UPS.PowerConverter.Input.00ff0003.FlowID, Type: Feature, Value: 3.000000
Path: UPS.PowerConverter.Input.00ff0003.ffff0046, Type: Feature, Value: 
0.000000
Path: UPS.PowerConverter.Input.00ff0003.ffff0047, Type: Feature, Value: 
1.000000
Path: UPS.PowerConverter.Input.00ff0003.PresentStatus.Used, Type: Input, 
Value: 0.000000
Path: UPS.PowerConverter.Input.00ff0003.PresentStatus.Good, Type: Input, 
Value: 1.000000
Path: UPS.PowerConverter.Input.00ff0003.PresentStatus.Used, Type: Feature, 
Value: 0.000000
Path: UPS.PowerConverter.Input.00ff0003.PresentStatus.Good, Type: Feature, 
Value: 1.000000
Path: UPS.PowerConverter.Output.0084001d, Type: Feature, Value: 1.000000
Path: UPS.PowerConverter.Output.FlowID, Type: Feature, Value: 4.000000
Path: UPS.PowerConverter.Output.Voltage, Type: Feature, Value: 231.000000
Path: UPS.PowerConverter.Output.Frequency, Type: Feature, Value: 50.000000
Path: UPS.PowerConverter.Output.00840033, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.Output.Current, Type: Feature, Value: 0.000000
Path: UPS.PowerConverter.Output.PresentStatus.Good, Type: Input, Value: 
1.000000
Path: UPS.PowerConverter.Output.PresentStatus.OverLoad, Type: Input, Value: 
0.000000
Path: UPS.PowerConverter.Output.PresentStatus.Good, Type: Feature, Value: 
1.000000
Path: UPS.PowerConverter.Output.PresentStatus.OverLoad, Type: Feature, 
Value: 0.000000
Path: UPS.PowerConverter.Output.ffff0044, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.00840011, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Input.0084001b, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Input.FlowID, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.00840014.00840015, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.00840014.PresentStatus.Good, Type: Input, Value: 
1.000000
Path: UPS.BatterySystem.00840014.PresentStatus.InternalFailure, Type: 
Input, Value: 0.000000
Path: UPS.BatterySystem.00840014.PresentStatus.Good, Type: Feature, Value: 
1.000000
Path: UPS.BatterySystem.00840014.PresentStatus.InternalFailure, Type: 
Feature, Value: 0.000000
Path: UPS.BatterySystem.Output.0084001d, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Output.FlowID, Type: Feature, Value: 3.000000
Path: UPS.BatterySystem.Battery.BatteryID, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Battery.Test, Type: Feature, Value: 6.000000
Path: UPS.BatterySystem.Battery.ffff0090, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Battery.TestPeriod, Type: Feature, Value: 604800.000000
Path: UPS.BatterySystem.Battery.PresentStatus.00840060, Type: Input, Value: 
1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Good, Type: Input, Value: 
1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.00840060, Type: Feature, 
Value: 1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Good, Type: Feature, Value: 
1.000000
Path: UPS.Flow.00ff0001.ConfigVoltage, Type: Feature, Value: 230.000000
Path: UPS.Flow.00ff0001.ConfigFrequency, Type: Feature, Value: 50.000000
Path: UPS.Flow.00ff0001.FlowID, Type: Feature, Value: 1.000000
Path: UPS.Flow.00ff0003.FlowID, Type: Feature, Value: 3.000000
Path: UPS.Flow.00ff0004.FlowID, Type: Feature, Value: 4.000000
Path: UPS.Flow.00ff0004.ConfigVoltage, Type: Feature, Value: 230.000000
Path: UPS.Flow.00ff0004.ConfigFrequency, Type: Feature, Value: 50.000000
Path: UPS.Flow.00ff0004.ConfigCurrent, Type: Feature, Value: 6.000000
Path: UPS.Flow.00ff0004.ConfigApparentPower, Type: Feature, Value: 1500.000000
Path: UPS.Flow.00ff0004.00840044, Type: Feature, Value: 1050.000000
Path: UPS.Flow.00ff0004.00840045, Type: Feature, Value: 110.000000
Path: UPS.OutletSystem.OutletSystemID, Type: Feature, Value: 1.000000
Path: UPS.OutletSystem.Outlet.00ff0001.FlowID, Type: Feature, Value: 4.000000
Path: UPS.OutletSystem.Outlet.00ff0001.OutletID, Type: Feature, Value: 0.000000
Path: UPS.OutletSystem.Outlet.00ff0001.PresentStatus.Switchable, Type: 
Feature, Value: 0.000000
Path: UPS.OutletSystem.Outlet.00ff0002.FlowID, Type: Feature, Value: 4.000000
Path: UPS.OutletSystem.Outlet.00ff0002.OutletID, Type: Feature, Value: 1.000000
Path: UPS.OutletSystem.Outlet.00ff0002.DelayBeforeShutdown, Type: Feature, 
Value: -1.000000
Path: UPS.OutletSystem.Outlet.00ff0002.DelayBeforeStartup, Type: Feature, 
Value: -10.000000
Path: UPS.OutletSystem.Outlet.00ff0002.RemainingCapacityLimit, Type: 
Feature, Value: 0.000000
Path: UPS.OutletSystem.Outlet.00ff0002.ffff005d, Type: Feature, Value: 
65535.000000
Path: UPS.OutletSystem.Outlet.00ff0002.ffff005e, Type: Feature, Value: 3.000000
Path: UPS.OutletSystem.Outlet.00ff0002.PresentStatus.Switchable, Type: 
Feature, Value: 1.000000
Path: UPS.OutletSystem.Outlet.00ff0002.PresentStatus.SwitchOn/Off, Type: 
Input, Value: 1.000000
Path: UPS.OutletSystem.Outlet.00ff0002.PresentStatus.SwitchOn/Off, Type: 
Feature, Value: 1.000000
Path: UPS.OutletSystem.Outlet.00ff0003.FlowID, Type: Feature, Value: 4.000000
Path: UPS.OutletSystem.Outlet.00ff0003.OutletID, Type: Feature, Value: 2.000000
Path: UPS.OutletSystem.Outlet.00ff0003.DelayBeforeShutdown, Type: Feature, 
Value: -1.000000
Path: UPS.OutletSystem.Outlet.00ff0003.DelayBeforeStartup, Type: Feature, 
Value: -10.000000
Path: UPS.OutletSystem.Outlet.00ff0003.RemainingCapacityLimit, Type: 
Feature, Value: 0.000000
Path: UPS.OutletSystem.Outlet.00ff0003.ffff005d, Type: Feature, Value: 
65535.000000
Path: UPS.OutletSystem.Outlet.00ff0003.ffff005e, Type: Feature, Value: 6.000000
Path: UPS.OutletSystem.Outlet.00ff0003.PresentStatus.Switchable, Type: 
Feature, Value: 1.000000
Path: UPS.OutletSystem.Outlet.00ff0003.PresentStatus.SwitchOn/Off, Type: 
Input, Value: 1.000000
Path: UPS.OutletSystem.Outlet.00ff0003.PresentStatus.SwitchOn/Off, Type: 
Feature, Value: 1.000000
entering identify_ups(0x0463, 0xffff)

-> String: 1500C (len = 5/4)
get_model_name(EXtreme, 1500C)

comparing with: ellipse 300
comparing with: ellipse 500
comparing with: ellipse 650
comparing with: ellipse 800
comparing with: ellipse 1200
comparing with: ellipse premium 500
comparing with: ellipse premium 650
comparing with: ellipse premium 800
comparing with: ellipse premium 1200
comparing with: Ellipse 600
comparing with: Ellipse 750
comparing with: Ellipse 1000
comparing with: Ellipse 1500
comparing with: Protection Center 420
comparing with: Protection Center 500
comparing with: Protection Center 675
comparing with: Pulsar Evolution 500
comparing with: Pulsar Evolution 800
comparing with: Pulsar Evolution 1100
comparing with: Pulsar Evolution 1500
comparing with: Pulsar Evolution 2200
comparing with: Pulsar Evolution 3000
comparing with: Pulsar Evolution 3000 XL
comparing with: NOVA 600 AVR
comparing with: NOVA 1100 AVR
comparing with: Pulsar EXtreme 700C
comparing with: Pulsar EXtreme 1000C
comparing with: Pulsar EXtreme 1500C
Found Pulsar EXtreme 1500C

Can't find object UPS.BatterySystem.Battery.Temperature
Can't find object UPS.BatterySystem.ConfigVoltage
Can't find object UPS.PowerSummary.DelayBeforeReboot
Can't find object UPS.PowerSummary.Temperature
process_status_info: online
process_status_info: !dischrg
process_status_info: chrg
process_status_info: !shutdownimm
process_status_info: !lowbatt
process_status_info: !overload
process_status_info: !replacebatt
Can't find object UPS.PowerConverter.Input.[1].PresentStatus.Buck
Can't find object UPS.PowerConverter.Input.[1].PresentStatus.Boost
process_status_info: !off
Can't find object UPS.PowerConverter.Output.LowVoltageTransfer
Can't find object UPS.PowerConverter.Output.LowVoltageBoostTransfer
Can't find object UPS.PowerConverter.Output.HighVoltageBoostTransfer
Can't find object UPS.PowerConverter.Output.LowVoltageBuckTransfer
Can't find object UPS.PowerConverter.Output.HighVoltageTransfer
Can't find object UPS.PowerConverter.Output.HighVoltageBuckTransfer
upsdrv_updateinfo...
<...>

Regards,
Patrick Agrain




More information about the Nut-upsdev mailing list