我试图通过java的串口建立一个telnet连接。我可以写到端口,并确认数据被写入端口使用串口监控工具。
但我没有得到任何回应。
我使用的是/Jar (JSSC.jar)
有人能解释一下这件事吗。
发布于 2013-12-10 11:13:49
我使用了,并通过以下步骤建立了telnet会话:
ciscorouter>telnet xxx.xxx.xxx.xxx xxxx /source-interface ethernetX注:在写作时,我使用:
serialPort.writeString("command\r");`以及:
byte buffer[] = null;
String s = new String(buffer);没有实现侦听器,因为它造成了很多混乱。
https://stackoverflow.com/questions/20439422
复制相似问题