[Libusbx-devel] Wiki improvement suggestions welcome

2013-02-28 Thread Xiaofan Chen
We welcome feedbacks and improvement suggestions for the libusbx wiki pages. https://github.com/libusbx/libusbx/wiki/_pages BTW, I have just updated the FAQ page. https://github.com/libusbx/libusbx/wiki/FAQ -- Xiaofan

[Libusbx-devel] libftdi async transfer

2013-02-28 Thread Xiaofan Chen
Ref thread: http://developer.intra2net.com/mailarchive/html/libftdi/2013/msg00157.html libftdi1 git repo source: http://developer.intra2net.com/git/?p=libftdi;a=blob;f=src/ftdi.c Just need to read the following functions: ftdi_write_data_submit(), ftdi_read_data_submit() and ftdi_transfer_da

Re: [Libusbx-devel] libusb_claim_interface fails - access denied (semi solved)

2013-02-28 Thread Xiaofan Chen
On Fri, Mar 1, 2013 at 5:51 AM, Pete Batard wrote: > Also, please bear in mind that libusb0.sys and libusbk.sys driver > support in libusbx are still experimental, and will remain so for > some time. And between libusbk.sys and libusb0.sys, libusbx's support of libusbk.sys is much more stable tha

Re: [Libusbx-devel] libusbx xusb example and Microsoft OS Descriptor

2013-02-28 Thread Xiaofan Chen
On Fri, Mar 1, 2013 at 5:42 AM, Pete Batard wrote: > But there should still be an issue when using interface with WinUSB, as > it overrides the low byte of wIndex with the destination interface: [3] > > [3] http://www.lvr.com/forum/index.php?topic=331 > The following is from Tim Roberts. http://w

Re: [Libusbx-devel] USB network hub -> get_device_list gives "could not retrieve port number for device"

2013-02-28 Thread Xiaofan Chen
On Thu, Aug 2, 2012 at 1:07 AM, Pete Batard wrote: > Hi Casey, > > On 2012.07.31 04:12, Casey Bajema wrote: >> I'm trying to use a USB device over a Belkin network hub >> > > That's an interesting device... > >> * The problem seems to be that the network hu

Re: [Libusbx-devel] libusbx xusb example and Microsoft OS Descriptor

2013-02-28 Thread Pete Batard
On 2013.02.28 03:07, Xiaofan Chen wrote: > The extended properties OS feature descriptor failed because it must be > directed to the WinUSB interface (LIBUSB_RECIPIENT_INTERFACE), > not the device (LIBUSB_RECIPIENT_DEVICE). The first byte of the > Setup packet should be C1h, not C0h. (I didn't try

Re: [Libusbx-devel] libusb_claim_interface fails - access denied (semi solved)

2013-02-28 Thread Xiaofan Chen
On Fri, Mar 1, 2013 at 2:28 AM, Gert Franke wrote: >> If you want to use your existing libusb-win32 application >> and the new libusbx program, then you should use >> libusbk.sys. > > If possible, I would like to avoid deploying a new driver to our > customers (USB performance is relevant only for

Re: [Libusbx-devel] USB3 Error

2013-02-28 Thread Marcus Meissner
Hi, Something must happen after the first PTP session of libgphoto2 has finished. On closing the connection we try to clear stalls by calling libusb_clear_halt on IN/OUT/INT eps. The second call then fails to send the bulk transfers at all, just like a stalled endpoint. We call PTP specific con

Re: [Libusbx-devel] libusb_claim_interface fails - access denied (semi solved)

2013-02-28 Thread Pete Batard
On 2013.02.28 18:28, Gert Franke wrote: > Does that mean that they are not yet > implemented or that libusbK.dll is used to access libusb0.sys? Second one. libusb0.sys access in libusbx requires having the libusbK DLL installed. > Should I have this lib on my system? To use libusb0.sys as a lib

Re: [Libusbx-devel] USB3 Error

2013-02-28 Thread Sarah Sharp
On Thu, Feb 28, 2013 at 04:59:36PM +0100, Marcus Meissner wrote: > Hi, > > Something must happen after the first PTP session of libgphoto2 has > finished. > > On closing the connection we try to clear stalls by calling > libusb_clear_halt on IN/OUT/INT eps. Ah, ok, that's the problem then. Some

Re: [Libusbx-devel] libusb_claim_interface fails - access denied (semi solved)

2013-02-28 Thread Gert Franke
Hi, Am 26.02.2013 14:31, schrieb Xiaofan Chen: > On Tue, Feb 26, 2013 at 9:01 PM, Gert Franke wrote: >> After the standard device searching procedure and successfully opening >> one device, usb_claim_interface fails with rc=-3 "access denied". This >> is 100% reproducible. What does it mean and w