Fins Tcp端口連接驗(yàn)證報(bào)文,只能發(fā)送一次,發(fā)送兩次雖然也會(huì)收到反饋,但是端口很快會(huì)關(guān)閉,通訊中斷,細(xì)節(jié)如下:
10:07:28.487 :TCP client socket close! //socket關(guān)閉
10:07:28.458 :TCP socket TCPClient is being closed!error code 0. //通訊錯(cuò)誤,Socket被關(guān)閉
10:07:22.449 :TCP rcv from socket TCPClient //收到反饋
10:07:22.443 :TCP socket TCPClient Send OK! //向192.168.1.15發(fā)送數(shù)據(jù)成功
10:07:09.551 :TCP rcv from socket TCPClient //收到反饋
10:07:09.550 :TCP socket TCPClient Send OK! //向192.168.1.15發(fā)送數(shù)據(jù)成功
10:07:02.205 :TCP client connected to 192.168.1.15:9600! // 調(diào)試助手連接到IP是192.168.1.15的PLC
10:07:01.193 :TCP client connectting 192.168.1.15(192.168.1.15):9600... //與192.168.1.15建立連接
10:07:01.190 :TCP client socket create OK! // socket 創(chuàng)建