Socket Functions; Tcp Client - Waveshare RS485 TO ETH User Manual

Hide thumbs Also See for RS485 TO ETH:
Table of Contents

Advertisement

RS485 TO ETH

2.2. SOCKET FUNCTIONS

RS485 TO ETH socket support TCP Server, TCP Client, UDP Server, UDP Client and HTTPD Client.

2.2.1. TCP CLIENT

TCP Client provides Client connections for TCP network services. TCP Client device will connect to
server to realize data transmission between the serial port and server. According to the TCP protocol,
TCP Client has connection/disconnection status differences to ensure reliable data transmission.
TCP Client mode support Keep-Alive function: After connection is established, module will send
Keep-Alive packets about every 15 seconds to check the connection and will disconnect then
reconnect to TCP server if abnormal connection is been checked by Keep-Alive packets. TCP Client
mode also support non-persistent function.
RS485 TO ETH work in TCP Client mode need connect to TCP Server and need set the parameters:
Remote Server Addr and Remote Port Number. RS485 TO ETH work in TCP Client won't accept other
connection request except target server and will access server with random local port if user set local
port to zero.
User can set RS485 TO ETH in TCP Client mode and related parameters by setup software or web
server as follows:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents