Connecting sensors via TCP
In a wide range of systems such as e.g:
You need to connect the remote sensors to the software that is installed on the server.

The simplest and most applications supported communication is the so-called TCP connection. For its realization 2 parties are needed:
Establishing and terminating a TCP connection is always initiated by the TCP client. However, beware of a possible mistake !! When collecting data from remote sensors to a server with an application installed, server (hardware) ≠ TCP server. In this case, the TCP server is the IP converter at the sensor and the server (hardware) is the TCP client in terms of the TCP protocol.
Establishing a TCP connection
Because TCP is a connection transport service, a connection must be established between the TCP client and the TCP server before data can be sent. Connection establishment is divided into three steps.
Both parties (TCP server and TCP client) remember their own sequence number and the counterparty's sequence number. These numbers are used for further communication and determine the order of packets. When the three-way handshaking described above is successful, the connection is established and remains so until the connection is terminated.
Termination of TCP connection
To terminate the data transfer, a connection termination process must take place to release all allocated resources (TCP ports). Datagrams with the FIN and ACK flags are used to terminate the connection. Both sides can initiate the connection termination. Example of TCP client initiated termination:
After these steps, the TCP connection is terminated.
Support for TCP connections in METEL devices
METEL IP devices support TCP mode by default on RS485 and RS232 ports. The end devices, which in this case are LAN-RING switches, IPLOG monitoring units or miniLAN serial link converters, are set to TCP server mode. After the TCP port and communication mode have been set up in one step, the connection can be made:
TCP server port settings
Here you set the TCP server port to establish the connection. The TCP protocol uses port numbers (called TCP ports) to distinguish TCP connections. There are a total of 65535 TCP ports, divided into three groups:
For setting the TCP port it is necessary to choose from the so-called private ports.

Setting the serial link mode
Select the correct serial link mode in the BUS menu. In TCP mode, the following options are usually used:
