
USR-K6 User Manual www.usriot.com
Jinan USR IOT Technology Limited 23 / 107 [email protected]
4.2.1.
TCP Client
Diagram 4.2.1-1 TCP Client
It has to be connected before transferring data.
1) In TCP Client Mode, K6 connects TCP Server actively, establish a connection to transmit date. According to the
TCP protocol related rule, there difference for TCP client between connect and disconnect, to make sure the data
exchange more stable. Usually used in the data interaction between device and server, which is the most common form
of network communication.
2) In TCP Client Mode, support the function of identifying disconnected link. When connected, it will send
keepalive package every 15s. If unconnected, it can be detected timely and enforce K6 to disconnect the former link to
establish a new one.
3) When K6 try to connect remote server, if the local port number is not “0" ,it will establish a connection with the
same source port every time.
4) Support synchronizing baud rate, USR-cloud and short connection function.
5) In a LAN, if the K6 is static IP, please keep K6 IP stay in the same network segment with gateway, and setting the
gateway IP, otherwise can not work as normal.
6) note:keepalive, synchronizing baud rate and USR-cloud are more on the below.
7)Communication example
①
Software setting, take the K6 as a TCP client, remote IP:192.168.0.201,(for my PC is 172.16.11.8, so for the
next testing ,change remote IP to 172.16.11.8) remote port:8234, then save it. Research to make sure the parameters
are right. Also you can set work mode, remote IP and remote port in the webpage then save and restart.