Skip to content

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

Open

Description

@sibiarunachalam

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

Activity

  1. sibiarunachalam commented on Jun 15, 2021

    @sibiarunachalam
    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

  2. sibiarunachalam commented on Jun 16, 2021

    @sibiarunachalam
    Author

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

  3. sibiarunachalam commented on Jun 16, 2021

    @sibiarunachalam
    Author

    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.

  4. sibiarunachalam commented on Jun 16, 2021

    @sibiarunachalam
    Author

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

  5. stodge commented on May 23, 2025

    @stodge

    I'm guessing never. No release since 2018.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions