Hi, I recently downgraded my kernel to 2.4 series (2.4.32-rc2). Now I can't get nut 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 figure what's wrong. Please help. -- Kalle Andersson
Hi Kalle. Yes this is normal ;-( The usblib that is used for the bcmxcp-usb driver use interrupt endpoints, and this is not normal with the 2.4 usblib. The usblib used with 2.4 is only able to do bulk-transfer and is not usable with the bcmxcp-usb driver. You may find some patch for this as i know something going on. But you have to search the net for libusb and 2.4 kernal and interrupt endpoint. Kjell fre 2005-11-04 klockan 23:28 +0200 skrev Kalle Andersson:> Hi, > > I recently downgraded my kernel to 2.4 series (2.4.32-rc2). Now I can't > get nut 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 > figure what's wrong. Please help. > > -- > Kalle Andersson > > _______________________________________________ > Nut-upsdev mailing list > Nut-upsdev@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
On 11/5/05, Kjell Claesson <kjell.claesson@telia.com> wrote:> Hi Kalle. > > Yes this is normal ;-( The usblib that is used for the bcmxcp-usb driver > use interrupt endpoints, and this is not normal with the 2.4 usblib. > > The usblib used with 2.4 is only able to do bulk-transfer and is not > usable with the bcmxcp-usb driver. You may find some patch for this > as i know something going on. But you have to search the net for > libusb and 2.4 kernal and interrupt endpoint.my understanding of the 2.4 interrupt issue was that it only affected low-speed devices, and the workaround was to simply try the interrupt transfer, and fall back to bulk transfers if that produced an error. Technically, bulk transfers are not allowed at low-speed, but I believe the 2.4 kernels translate bulk transfers to interrupt transfers. -- - Charles Lepple