[Nut-upsdev] Help with USB support for a Kebo UPS-650D

Peter Selinger selinger at mathstat.dal.ca
Tue Sep 27 21:26:57 UTC 2005


Andrew Dancy wrote:
> 
> Peter,
> 
> Thanks for that. Managed to recompile the drivers after hacking about with
> Makefiles a bit (brings back all the bad memories from my younger days when
> I was mad enough to try playing around with C compilation on Linux for fun!)

Excellent. I forgot to mention that you should have run "make depend"
in the drivers/ directory after you made the changes to the source
files.
 
> I now get the following...
> 
> [root at beeblebrox nut]# /usr/local/ups/bin/newhidups -DDDDD /dev/usb/hiddev0
> Network UPS Tools: New USB/HID UPS driver 0.28 (2.1.0)
> 
> debug level is '5'
> Checking device (0925/1234) (001/010)
> - VendorID: 0925
> - ProductID: 1234
> - Manufacturer: unknown
> - Product: unknown
> - Serial Number: unknown
> - Bus: 001
> Trying to match device
> Device matches
> failed to claim USB device, trying 2 more time(s)...
> detaching kernel driver from USB device...
> failed to detach kernel driver from USB device...
> trying again to claim USB device...
> failed to claim USB device, trying 1 more time(s)...
> detaching kernel driver from USB device...
> failed to detach kernel driver from USB device...
> trying again to claim USB device...
> failed to claim USB device, trying 0 more time(s)...
> detaching kernel driver from USB device...
> failed to detach kernel driver from USB device...
> trying again to claim USB device...
> Unable to get HID descriptor (error sending control message: Operation not
> permitted)
> Checking device (0000/0000) (001/001)
> - VendorID: 0000
> - ProductID: 0000
> - Manufacturer: unknown
> - Product: unknown
> - Serial Number: unknown
> - Bus: 001
> Trying to match device
> Device does not match - skipping
> No appropriate HID device found
> No matching USB/HID UPS found
> 
> 
> I've followed the instructions at
> http://lists.alioth.debian.org/pipermail/nut-upsuser/2005-July/000084.html
> to ensure it's not a hotplug issue and I still get the same problem.

OK, but I'd **still** like you to run it with "-u root". Only if I see
the output from that and it still doesn't work will I be convinced
that it's broken. I don't trust that hotplugging stuff.

The "/dev/usb/hiddev0" parameter is actually ignored; you could put
anything there (but you can't put nothing). 
 
> Any ideas? I'm considering solving the problem by buying another UPS which
> does have proper Linux support and then using the Kebo UPS on my Windows
> kit, where I can use the PowerManager software. However, I'm a cheapskate so
> if there's a way of getting the current UPS to work with Linux then I'll
> take it!

Don't give up! If Windows can connect to this device, then so can
Linux.  Please also try the program from this post:

http://lists.alioth.debian.org/pipermail/nut-upsdev/2005-September/000144.html

This is just a simple program that connects to USB devices and prints
some information about them. Nothing fancy and nothing UPS specific,
but if this works then there's no reason NUT could not connect to
it. They must be run as root. Please post the output. 

Thanks, -- Peter




More information about the Nut-upsdev mailing list