2009/1/4 Charles Lepple <[email protected]> > On Fri, Jan 2, 2009 at 3:27 PM, Hannu Vuolasaho <[email protected]> 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. >
you might also want to set libusb debug using USB_DEBUG=3 this can also report some low level things... (btw, it might be a good idea to document this somewhere!) cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ Free Software Developer - http://arnaud.quette.free.fr/
_______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

