On Fri, Jan 2, 2009 at 3:27 PM, Hannu Vuolasaho <vuo...@msn.com> wrote: > >> >> We are still in the process of collecting all the NUT/USB/*BSD >> documentation from various emails, but have you also checked >> /dev/usb0? I believe that libusb on BSD requires permissions on >> /dev/usb? to scan the bus to find /dev/ugen0. > > That seems to be requiremement. What else might be wrong? After I chenged > permissions for usb0 > > I got different error. > > Network UPS Tools - UPS driver controller 2.4.0-pre1 > Network UPS Tools - BCMXCP UPS driver 0.18 (2.4.0-pre1) > USB communication subdriver 0.17 > Can't reset POWERWARE USB endpoint > Unable to find POWERWARE UPS device on USB bus > > > Not very helpful error message. what should I next try?
Can you try the following patch: diff --git a/drivers/nut_usb.c b/drivers/nut_usb.c index 494a1fa..4ca2691 100644 --- a/drivers/nut_usb.c +++ b/drivers/nut_usb.c @@ -165,8 +165,8 @@ usb_dev_handle *nutusb_open(const char *port) if (usb_clear_halt(dev_h, 0x81) < 0) { - upslogx(LOG_ERR, "Can't reset POWERWARE USB endpoint"); - goto errout; + upslogx(LOG_ERR, "Can't reset POWERWARE USB endpoint: %s", usb_strerror()); + /* goto errout; */ } return dev_h; That should tell us what the error was, and see if we can continue past it. -- - Charles Lepple _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser