-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net.codecrete.usb.UsbTimeoutException: transfer IN on endpoint 2 failed #20
Comments
It is impossible to say what the cause is without seeing your code and having more information about the printer. Are the 4 sent bytes data your printer understands and can act on? Did you specify a timeout for the receive, or is this a built-in time out? I can provide more support of you provide the code and the output of enumerate (just the part describing your printer). |
Experimenting with an old printer Canon CAPT USB Printer (GDI) Source, monitor.java example modified.
Output:% mvn compile exec:exec [INFO] ------------------------------------------------------------------------ |
The reason a UsbTimeoutException exception is thrown is probably simply because the printer does not send any data. If it is supposed to send any data after the bytes it has received depends the implemented protocol (application level above USB protocol layer). Do you have any documentation that indicates that the printer is supposed to send something? |
I was able to connect to a printer USB.
Problem: I can not receive any data.
Any idea?
The text was updated successfully, but these errors were encountered: