[Nut-upsuser] CyberPower CP1200AVR/BC1200D problems

Rob lists at midsummerdream.org
Sat Jul 29 17:59:40 UTC 2006


Charles Lepple wrote:
> On 7/27/06, Rob <lists at midsummerdream.org> wrote:
>> Device matches
>> failed to claim USB device, trying 2 more time(s)...
>> detaching kernel driver from USB device...
>> trying again to claim USB device...
>> Unable to get HID descriptor (error sending control message: Connection
>> timed out)
>>
>> Running the driver seems to cause issues with the 2.6.17 kernel as the
>> /dev/usb/hiddev0 device disappears after the failed attempt to access
>> the UPS.  This doesn't happen with the 2.0.3 version of the driver (but
>> that version also doesn't even recognize the UPS.

Yep, that's exactly what happens.  When I re-connect the USB cable the 
device node re-appears.  Glad to know it's not a kernel issue.

> If newhidups recognizes an UPS, it will detach the kernel usbhid
> driver from the UPS (3rd line quoted above). That should explain the
> disappearance of /dev/usb/hiddev0. It will reappear if you unplug and
> replug the UPS into the USB port.
> 
>> The failure to claim the USB device seems troubling to me, unless that
>> error is because the device node is disappearing after the device check
>> (which itself it troubling).
> 
> The first time we try to claim the device, the kernel usbhid driver is
> still in control. After detaching the driver, the claim succeeds
> 
> The timeout afterwards is what concerns me.

Do you have any suggestions for how to debug it further?  I have a 
working cpsups driver, and I was hoping to try to merge the working 
knowledge there into the newhidups driver so the the USB connection 
would be supported.  That's, of course, making an assumption (that is 
more than likely incorrect) that the same protocol is used over both 
connection types.

I have taken the cpsups driver from Doug Renolds and ported it to 2.0.4 
and tried to make it more generic so that it will work with the 
CP1200AVR as well as the other models it normally works with, and if he 
has no problems with it then I plan to submit to the list for comment 
and/or possible inclusion into the mainline.

Rob



More information about the Nut-upsuser mailing list