Tcp Client Function; Tcp Server Function - Ebyte E180-DTU User Manual

Wireless modem
Hide thumbs Also See for E180-DTU:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd

3.2.2 TCP Client Function

(1) TCP Client provides client connection for TCP network services. Actively initiate a connection request to the
server and establish a connection, which is used to implement the interaction between wireless data and server data.
According to the relevant provisions of the TCP protocol, TCP Client is distinguished from connected and disconnected,
thereby ensuring reliable exchange of data. It is usually used for data interaction between the device and the server, and is
the most commonly used network communication method.
(2) When E180-DTU (ZG120-ETH) attempts to connect to the server in TCP Client mode and the local port is 0, the
connection is initiated through a random port each time.
(3) E180-DTU (ZG120-ETH) supports short connection function.
(4) Under the same LAN, if E180-DTU (ZG120-ETH) is set to a static IP, please keep the IP of E180-DTU (ZG120-
ETH) and the gateway on the same network segment, and set the gateway IP correctly, otherwise normal communication
cannot be achieved.

3.2.3 TCP Server Function

(1) In TCP Server mode, E180-DTU (ZG120-ETH) monitors the local port. When a connection request is sent, it
accepts and establishes a connection for data communication. When E180-DTU (ZG120-ETH) receives the data, it
will simultaneously send the data to all client devices that have established a connection with it.
(2) It is usually used for communication with TCP clients in a LAN, which is suitable for the scenario where there is
no server in the LAN and there are multiple computers or mobile phones requesting data from the server. Like TCP
Client, there are differences between connection and disconnection to ensure reliable exchange of data.
(3) When E180-DTU (ZG120-ETH) is used as TCP Server, it can accept a maximum of 6 Client connections (the
Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co.,Ltd.
E180-DTU(ZG120-ETH)User Maunel

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zg120-eth

Table of Contents