I'm trying to work with serial port in java with jSSC. My code:
import jssc.SerialPortList;
....
String[] ports = SerialPortList.getPortNames();
but it always return empty array.
brut@brut-Z97-D3H:~$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.957537] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
Can anyone help me?