On Tue, Sep 24, 2013 at 9:25 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Sat, Sep 21, 2013 at 1:42 PM, Kano <libu...@iporg.org> wrote:
>> Since a handle is only associated with a single interface,
>> I must have multiple handles.
>
> I think this is not really correct. A handle to the device
> can be associated with multiple interface.
>
>> libusb_get_device_list
>> libusb_get_device_descriptor
>> libusb_open
>> libusb_claim_interface 0
>> libusb_get_device(interface 0 handle)

I do not quite understand this. There is no such thing as
"interface 0 handle".

Ref: http://libusbx.sourceforge.net/api-1.0/group__dev.html

>> libusb_open
>> (libusb_claim_interface 1) <- never gets here
>>
>> This works on linux but fails on windows on the 2nd open (before claiming
>> the 2nd interface) with:
>> [ 1.209821] [00000f94] libusbx: debug [libusb_open] open 2.2
>> [ 1.209821] [00000f94] libusbx: error [winusbx_open] could not open device
>> \\.\USB#VID_0403&PID_8350&MI_00#6&2CE4DD9F&0&0000#{C8D1AB34-4B5C-488A-8194-08C26C1A05DA}
>> (interface 0): [5] Access is denied.
>
> I tend to think the above sequence is not correct. Hopefully
> others can chime in to help you better.




-- 
Xiaofan

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to