|
From: Xiaofan C. <xia...@gm...> - 2007-08-09 01:22:20
|
On 8/9/07, Eusebiu Marcu <mar...@gm...> wrote: > Hello... > I am using C#.NET 2.0 and #usblib(on WinXP SP2) and I want to read some > buffers from USB. It is said that #usblib does not work well. Maybe you can try this LibUsbDotNet instead. http://www.picmicrochip.com/ > return usb_bulk_read(dev, ep, bytes, bytes == null ? 0 : bytes.Length, > timeout); > > I get -116 error if I use 0x82 as endpoint and if I use 0 or 1, I get -22. > Can you help me with that? libusb-win32 need the direction bits. So you will need to use 0x82 for EP2 IN and 0x2 for EP2 OUT. Regards, Xiaofan |