E
eusebiu
Hello!
Did anyone used LibUsb-Win32 library or #usblib?
If so, I am getting an -22 error when I try to use BulkRead method.
The connected device is found but I can't read from it.
//code C#
IntPtr deviceHandle =
NativeMethods.usb_open(descriptor.NativeDevice);// returns a non-Zero
value - OK
//////////
NativeMethods.usb_set_configuration(deviceHandle, 1);
NativeMethods.usb_claim_interface(deviceHandle, 0);
NativeMethods.usb_set_altinterface(deviceHandle, 0);
//.. all methods return 0 = SUCCESS
NativeMethods is a class that wraps libusb0.dll
Any ideeas?
Thanks
Did anyone used LibUsb-Win32 library or #usblib?
If so, I am getting an -22 error when I try to use BulkRead method.
The connected device is found but I can't read from it.
//code C#
IntPtr deviceHandle =
NativeMethods.usb_open(descriptor.NativeDevice);// returns a non-Zero
value - OK
//////////
NativeMethods.usb_set_configuration(deviceHandle, 1);
NativeMethods.usb_claim_interface(deviceHandle, 0);
NativeMethods.usb_set_altinterface(deviceHandle, 0);
//.. all methods return 0 = SUCCESS
NativeMethods is a class that wraps libusb0.dll
Any ideeas?
Thanks