4
我正在尝试使用jSSC在java中的串行端口。 我的代码:串行端口与Linux中的jSSC
import jssc.SerialPortList;
....
String[] ports = SerialPortList.getPortNames();
但它总是返回空数组。
[email protected]:~$ 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
任何人都可以帮我吗?