Skip to content
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

Attached and Detached events are not received for the device that has lengthy serial number #85

Open
sibiarunachalam opened this issue May 10, 2021 · 4 comments

Comments

@sibiarunachalam
Copy link

sibiarunachalam commented May 10, 2021

Environment:

  • OS: Windows 10
  • Java version: Oracle Java 8
  • usb4java version: 1.3.0

Bug description
We use usb4java in our application to detect attached and detached events
It works well except the scenario we have identified recently.
Usb4java does not detect the ATTACHED and DETACHED events for the device that has serial number with more than 100 characters when it is plugged in and unplugged.

Vendor ID: 0781
Product ID: 5591
Serial No: 0101c14ea1b1ea6e90aa9860523346cf654a93d436044650cdf7c88765d187e9e52300000000000000000000fc1c000e000f2500915581072a2ad2ae

Reproduction
Simply plug in the device that has serial number with more than 100 characters

Expected behavior
Attached and Detached events should be received when plug and unplug the device

@sibiarunachalam
Copy link
Author

Events are detected as expected in Windows when listdevs.exe from libusb is executed
But it doesn't work when ListDevices.java from usb4jave is used

@sibiarunachalam
Copy link
Author

sibiarunachalam commented Jun 16, 2021

Any updates guys?
It seems a bug in either usb4java or libusb4java
Please let me know if you need any clarity on the problem.

@sibiarunachalam
Copy link
Author

sibiarunachalam commented Jun 16, 2021

Thanks guys.
I've identified the problem, the problem is in libusb-1.0.22
I could recreate the problem in libusb-1.0.22, but not in 1.0.24.
So usb4java needs to be updated to libusb-1.0.24 to solve the problem.

@sibiarunachalam
Copy link
Author

So next question is when will you release new version of usb4java with this fix (upgrading libusb to 1.0.24 or latest)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant