From: Xiaofan C. <xia...@gm...> - 2010-10-15 11:59:41
|
On Fri, Oct 15, 2010 at 7:47 PM, Xiaofan Chen <xia...@gm...> wrote: > On Fri, Oct 15, 2010 at 1:30 PM, Peter Stuge <pe...@st...> wrote: >>> I've never tried to use Control transfer without claiming the >>> interface. Technically it should work though. But I will check. >> >> To endpoint 0 it should work perfectly, on all platforms. I >> appreciate all testing! >> > > I take the following test program, comment out the > interrupt transfer based test, and then comment out > the libusb_set_configuration and libusb_claim_interface > call. > http://picusb.googlecode.com/files/libusb1_lvrhid5.c > > Firstly I tested under Linux (Ubuntu 10.10 32bit) > and it works fine. > > Then I tested the libusb-pbatard git branch under Windows 7 > 32bit. It also works. But it actually claims the interface 0 because > of the auto-claiming feature. If I comment out the Auto-Claim feature and rebuild libusb-pbatard, then it does not work. I was kind of expecting this when I said "But I will check". But I think this is not a real issue since Auto-Claim is anyway needed for Windows backend as per the previous discussions. ... libusb:debug [libusb_open] open 2.4 libusb:debug [hid_open] set maximum input buffer size to 512 libusb:debug [hid_open] 1 HID input report value(s) found libusb:debug [hid_open] Report ID: 0x00 libusb:debug [hid_open] 1 HID output report value(s) found libusb:debug [hid_open] Report ID: 0x00 libusb:debug [hid_open] 1 HID feature report value(s) found libusb:debug [hid_open] Report ID: 0x00 libusb:debug [libusb_unref_device] destroy device 2.255 libusb:debug [libusb_unref_device] destroy device 1.255 libusb:debug [libusb_unref_device] destroy device 1.1 libusb:debug [libusb_unref_device] destroy device 1.2 libusb:debug [libusb_unref_device] destroy device 2.2 libusb:debug [libusb_unref_device] destroy device 2.1 libusb:debug [libusb_unref_device] destroy device 2.3 libusb:warning [hid_submit_control_transfer] no interface available for control transfer Control Out error -5 libusb:warning [hid_submit_control_transfer] no interface available for control transfer Control Out error -5 libusb:debug [libusb_release_interface] interface 0 libusb:debug [libusb_close] libusb:debug [libusb_unref_device] destroy device 2.4 libusb:debug [libusb_exit] libusb:debug [libusb_exit] destroying default context libusb:debug [usbi_remove_pollfd] remove fd 3 libusb:debug [windows_clock_gettime_threaded] timer thread quitting -- Xiaofan |