Chengdu Ebyte Electronic Technology Co,.Ltd E810-DTU User Manual
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co,.Ltd
5.3 Heartbeat mechanism
In the network transparent transmission mode, users can make the module send heartbeat packets to the server.
Heartbeat packets can be sent to the web server or sent to the serial device, they cannot run at the same time.
Network heartbeat pocket: The heartbeat packet is sent to the network, in the heartbeat transmission cycle, the
module sends heartbeat packet data to the network server to maintain the connection with the network server. It only runs
in the TCP Client and UDP Client modes
。
Serial data packet: In the set heartbeat sending cycle, the module sends heartbeat packet data to the serial port, users
can do corresponding processing after the serial port receives the heartbeat data.
In an application in which a server sends a fixed inquiry command to a device, in order to reduce communication
traffic, users can choose to send a heartbeat packet (inquiry command) to the serial device side instead of sending a
inquiry command from the server.
User-defined data packet defaults to hexadecimal data (ASCII code optional), E810-DTU(RS232)-V2.0 module
supports custom heartbeat packet content up to 40 bytes.
5.4 Overtime restart
Overtime restart (no data restart) function is mainly used to ensure long-term stability of E810-DTU(RS232)-V2.0.
When the network port cannot receive data for a long time, or if the network does not receive data for a long time, the
E810-DTU(RS232)-V2.0 will restart after exceeding the set time, thus avoiding the influence of abnormal conditions on
the communication. The normal working time of this function is set to 60~65535S, default 300S. When the setting time
is less than 60S, the default setting is zero, that is, the function is turned off.
5.5 TCP multi-connection function
TCP multi-connection function is mainly to solve that in the TCP Sever mode, the user has multiple clients to
connect E810-DTU(RS232)-V2.0 and send and receive data at the same time. When E810-DTU(RS232)-V2.0 is used as
a TCP Server, up to 6 connections can be established at the same time, the TCP Server sends data to multiple (up to 6)
TCP clients on the connection at the same time. When the number of established connections exceeds six, the connection
established at the beginning will be actively disconnected, that is, the old connection will be kicked off.