Fazecast / jSerialComm

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

ATEN UC232A not working in Windows 10 #323

Closed martobs closed 2 years ago

martobs commented 3 years ago

I have a ATEN UC232A (USB serial bridge) that works in Linux, but does not work in Windows 10. Opening the port fails:

SerialPort port = SerialPort.getCommPort("COM5");
port.setComPortParameters(9600, 8, SerialPort.ONE_STOP_BIT, SerialPort.NO_PARITY);
port.setComPortTimeouts(SerialPort.TIMEOUT_READ_SEMI_BLOCKING, 100, 0);
port.openPort(); // openPortNative() returns -1

I'm using jSerialComm 2.6.2 and Java 1.8. Is this expected? Is there a list of supported USB hardware? Is it possible to debug the issue in Intellij? Or is it easy to compile and run testOpenClose.c?

hedgecrw commented 3 years ago

Please test using this version of the library (all OS's are enabled): https://drive.google.com/file/d/1QzWPJg5MU_2YrnsB1MsOWeTbjYD84D2h/view?usp=sharing

hedgecrw commented 2 years ago

Solved in release of jSerialComm v2.8.0.

martobs commented 2 years ago

Will, Thank you. We have not been able to test it yet as we moved to different hardware. But great to know we can use these devices in future. Martin.