Fazecast / jSerialComm

Platform-independent serial port access for Java
GNU Lesser General Public License v3.0
1.34k stars 287 forks source link

The getCommPorts() method returns an empty array #349

Closed aekzitouni closed 2 years ago

aekzitouni commented 3 years ago
Hi,

I am useing the following code which returns 0 which means that the porNames array is empty. Why is that?

SerialPort[] portNames = SerialPort.getCommPorts();
System.out.println(portNames.length);

I am using Eclipse in Windows 10 system.

Regards

hedgecrw commented 3 years ago

What type of serial ports are you expecting to see? In Windows, if you open Device Manager, what is listed under the "Ports (COM & LPT) heading"?

hedgecrw commented 3 years ago

Please test using this version of the library: https://drive.google.com/file/d/1QzWPJg5MU_2YrnsB1MsOWeTbjYD84D2h/view?usp=sharing

aekzitouni commented 3 years ago

Thanks, I appreciate. Great job!

hedgecrw commented 2 years ago

Did the updated library version resolve your issue?

hedgecrw commented 2 years ago

Solved in release of jSerialComm v2.8.0.