db与ponents一样吗串口问题
网友回答
m_name='COM'+jtf.getText(); //得到串口名字 try{//try中的代码出错...答:java打开串口的方法如下: public SerialPort openPort(String port) { CommPortIdentifier portId = null; try { portId = (CommPortIdentifier)CommPortIdentifier.getPortIdentifier(port); return (SerialPort)portId.open('SimpleWriteApp'...