How to read / write serial port from Java on Windows?

Is there a small example of how to write and read a serial port in Java with Windows?

+4
source share
3 answers

You need to import javax.comm.SerialPort for this purpose, refer to Read from the serial port for more information.

+6
source

You can use RXTX or java.comm.* ( Examples )

+3
source
+1
source

Source: https://habr.com/ru/post/1381648/


All Articles