search for: usb_clear_halt

Displaying 7 results from an estimated 7 matches for "usb_clear_halt".

2009 Jul 10
1
PowerWare USB debug messages
Earlier this year, I added a patch to my local NUT tree to additionally print the value of usb_strerror() if usb_clear_halt() failed. (Ignore the commented-out goto.) Since these messages are at the LOG_ERR level, should we add usb_strerror() to all of the calls in nut_usb.c? 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...
2006 Mar 06
0
BCMXCP USB driver issues for Powerware 5110 on OpenWRT (long)
...the port was very easy, though the hardware seems to be quite different from the "usual" PC (thanks to all developers for their efforts in writing portable code! ;-) However, I had some issues with making bcmxcp_usb driver to work, most of them is related to libusb. The first point was usb_clear_halt function call in nut_usb.c file during device initialization: the driver reported "broken pipe" error. I'm not an expert in USB devices programming, but based on the context, I would expect that usb_resetep function would be more appropriate here - am I wrong? Anyway, changing the ca...
2010 Jan 16
1
ETIME on FreeBSD
...or resource busy */ > fatal_with_errno(EXIT_FAILURE, "Got disconnected by another > driver"); > > - case -EPERM: > + case -EPERM: /* Operation not permitted */ > fatal_with_errno(EXIT_FAILURE, "Permissions problem"); > > - case -EPIPE: > - if (!usb_clear_halt(udev, 0x81)) { > + case -EPIPE: /* Broken pipe */ > + if (usb_clear_halt(udev, 0x81) == 0) { > /* stall condition cleared */ > break; > } > - case -ENODEV: > - case -EACCES: > - case -EIO: > - case -ENOENT: > + case ETIME: /* Timer expired */ > + if (usb...
2005 Nov 04
2
bcmxcp_usb / kernel 2.4.32-rc2
...ut running. It was fine with 2.6.14. It say's: --------------------- # ./bcmxcp_usb -uroot AUTO Network UPS Tools - BCMXCP UPS driver 0.10 (2.1.0) Can't reset POWERWARE USB endpoint Unable to find POWERWARE UPS device on USB bus ... --------------------- I've straced it in nut_usb.c usb_clear_halt()-function. If I comment it out, it say's "Receive error (Request command): COMMAND: 31". I have nut development branch of cvs. My UPS is Powerware 3105 with usb cable. I'm running on Debian Sarge. I've read the source files, libusb documentation, but I just can't fig...
2010 Jan 10
1
Eaton PW5110 + nut-2.4.1 + OpenBSD
Hello, I 'm trying to set up an Eaton PW5110 using nut-2.4.1 in OpenBSD, my ups.conf follows : [myups] driver = bcmxcp_usb port = auto desc = "Eaton PW 5110 (1500VA)" My first attempt to run upsdrvctl ended up complaining about unimplemented usb_clear_halt() in libusb. I patched libusb-0.1.12 with the following patch : http://old.nabble.com/Openbsd-and-libusb-td21558254.html Second attempt: root at fox /home/mandas/nut-2.4.1 # USB_DEBUG=3 bcmxcp_usb -DDD -a myups Network UPS Tools - BCMXCP UPS driver 0.21 (2.4.1) USB communication...
2005 Sep 21
0
Compre facil seu imóvel consorcio (11) 2121-4103
...f` undeclared (first use in this function) amload.c:222: `size` undeclared (first use in this function) amload.c:232: warning: implicit declaration of function `usb_strerror` amload.c:232: warning: format argument is not a pointer (arg 2) amload.c:234: warning: implicit declaration of function `usb_clear_halt` amload.c: At top level: amload.c:250: parse error before `*` token amload.c:251: warning: function declaration isn`t a prototype amload.c: In function `read_bulk`: amload.c:256: `buf` undeclared (first use in this function) amload.c:262: warning: implicit declaration of function `usb_bulk_re...
2007 Nov 20
2
Mustek Powermust 600VA
Hi, I'm having a hard time configuring a Mustek Powermust 600VA ups to work via USB with nut. I read somewhere that nut works OK via the rs232 cable, but unfortunately I don't have a COM port in my computer. The kernel detects the ups as an Xbox pad :) and loads the xpad module. I tried running /lib/nut/megatec with different /dev/ttySx but it displays megatec protocol UPS was not