Hi there,

I'm trying to finish the new NUT [1] driver for USB/HID UPSs,
based on libusb, but I'm facing a last problem:
I frequently (seems more with latest kernels / libusb) device
disconnexion upon power failure! I got the message:
"hub <path>: port X disabled by hub (EMI?) re-enabling..."

And all my attempts to reconnect it (through init() / find_busses()
and find_devices(), with various method, hubs, ... ) fails with EPERM
and the like (can't get connect info / operation not permitted), although
the device is visible / ok. If I relaunch manually newhidups, all works
fine. But that lower the high availability principle with UPSs ;-)

I'm not sure wether it's a kernel or libusb (or hardware) issue!
If nothing is using the device, power failure doesn't generate
a disconnexion!

newhidups source is available there :
http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/nut/?cvsroot=nut

the interesting files are (the first one most of all):
drivers/libusb.c (libusb_open(), called again upon disconnexion)
drivers/newhidups.c
drivers/libhid.c

I'm currently running this on:
- Debian Sid
- kernel 2.6.11 (-2 deb)
- libusb 0.1.10a (-8 deb)
Also tested on:
- Mandrakelinux 10.1
- kernel 2.6.8
- libusb 0.1.8

Any help welcomed,
Arnaud
---
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
OpenSource Developer - http://arnaud.quette.free.fr/
Debian Developer - http://people.debian.org/~aquette/
... and much more ...
---
[1] Network UPS Tools : http://eu1.networkupstools.org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to