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
{{ message }}
Repository navigation
List of manufacturer info no longer suitable or consistent when disconnecting / reconnecting USB cable #609
I am using JSerialComm v2.11.00 under Windows 11 sand I am experiencing a strange issue
When I start my program I am able to list correctly the 3 devices that we will call them devA devB and devC that matches the COM ports on which they are physically.
However if I disconnect and reconnect USB cables differently on devA, devB and devC, Windows reenumerates COM ports but in the Java program I dont see the manufacturer info on the rigth com port, as is the JSerialComm instance remember the initial state when starting and then it seems JSerialComm is not able to follow dynamically the USB connections/disconnections.
Is it expected ?
If I stop my Java program and restart it, then JSerialComm is able to give me correct information.
I've implemented some changes that ensure that port details are updated on each call to getCommPorts() (for un-opened ports). If you wouldn't mind testing when you get a chance, I'd appreciate it. Thanks!
Activity
hedgecrw commentedon Nov 2, 2025
Just to clarify, your order of operations is:
getCommPorts()and print out resultsgetCommPorts()again and print out resultsAnd none of these ports have been opened between steps 2-4?
hedgecrw commentedon Nov 4, 2025
I've implemented some changes that ensure that port details are updated on each call to
getCommPorts()(for un-opened ports). If you wouldn't mind testing when you get a chance, I'd appreciate it. Thanks!