Well, as I said, the USB device is a Microchip µC. So, I picked a demo 
board and used the WinUSB demo firmware provided by Microchip. After a 
few changes, I could mimic their VC++ example program with my classes 
ported from Linux, and Qt4.

So, the firmware was the cause, not Libusbx ! Also, I think I mixed 
bulk/interrupt transfer modes, which was no good.

I am really happy to have 1 code for the PC + 1 firmware, working in 
async I/O mode, both on Windows and Linux. Keep on going, Libusbx guys !

Anyway, thank you to those who answered my post because they made me 
eager to give it a final (successful) try.

Ciao,
Bob.




Le 17/09/2012 15:18, Xiaofan Chen a écrit :
> On Mon, Sep 17, 2012 at 3:27 PM, Bob Lapique <boblapi...@yahoo.fr> wrote:
>> Hi all,
>>
>> I can see a lot of very technical posts out there. So, I wonder if it Is
>> the right place to seek help on basic Libusbx usage...
>>
>> If not, I'd be very pleased if someone could redirect me to some place
>> where the difference between the Linux and Windows implementations is
>> documented. I am trying to port asynchronous I/O from Linux to Windows.
>>
>> Lately, I get error -1 (LIBUSB_ERROR_IO) from "libusb_submit_transfer()"
>> with an interrupt tranfer :
>> libusbx: error [winusb_submit_bulk_transfer] WinUsb_Pipe Transfer
>> failed: [22] Le périphérique ne reconnaît pas la commande.
>>
>> Where the French part means something like : the peripheral/device does
>> not understand the command.
> Please post more debug log to see how that happens. Thanks.
>
> For libusbx, you just need to set the environment variable
> LIBUSB_DEBUG to 4 and then run your program again to
> get the debug log.
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to