You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
I want to read data from Rfid Reader, all procedures is ok, but when pipe.syncSubmit(buffer);. I catched an error: javax.usb.UsbPlatformException: USB error 1: Transfer error on interrupt endpoint: Input/Output Error
I got that error when I set up my byte buffer too small. To fix this issue, I set it to the maximum size that I got from the endpoint description of the reading endpoint (ENDPOINT_DIRECTION_IN, 0x81), instead of 4 bytes (8 in your example) that I had the impression would be enough to contain the answer. Hope that helps some people.
Environment:
Bug description
I want to read data from Rfid Reader, all procedures is ok, but when
pipe.syncSubmit(buffer);.
I catched an error: javax.usb.UsbPlatformException: USB error 1: Transfer error on interrupt endpoint: Input/Output ErrorReproduction
`public static void main(String[] args) throws UsbException {
UsbHub hub = UsbHostManager.getUsbServices().getRootUsbHub();
UsbDevice selectedUsb = null;
UsbInterface iFace = null;
`.
The text was updated successfully, but these errors were encountered: