Chengdu Ebyte Electronic Technology Co., Ltd.
NE2-S1/NE2-S1-TB User Manual
Copyright © 2012–2024 , Chengdu Ebyte Electronic Technology Co., Ltd.
29
is ( 60-65535 ) seconds.
4.4.4Short connection function
In TCP client and HTTP client modes, network short connections are supported (this function is
turned off by default). TCP short connections are mainly used to save server resource overhead and
are generally used in multi-point (multi-client) to one-point (server) scenarios. .
After the short connection function is turned on, it only requests a connection with the server
when sending information. After the connection is successful, if the serial port does not receive data
or the network port does not send and receive data within the set time, the device will automatically
disconnect.
When the short connection function is turned on, the short connection time setting parameter
range is ( 1 - 65535 ) seconds.
4.4.5Connect to clear cache function
The device is in client mode. When the TCP connection is not established, the data received by
the serial port will be placed in the buffer area. The serial port receiving buffer is 1024 packets or
10k . If it is larger than the buffer space , the earliest received data will be overwritten. After the
network connection is successful, , you can choose to clear the serial port cache or send the cache
through the network through configuration.
Enable: The device does not save the data received by the serial port before the connection is
established.
Disabled: After the connection is established, the network will receive serial buffered data.
4.4.6Heartbeat packet function
The device supports both serial heartbeat packets and network heartbeat packets. The serial
heartbeat packet data points to the serial port, and the network heartbeat packet points to the network,
which can be set separately.
4.4.6.1Serial heartbeat packet
The serial port heartbeat packet data points to the serial port and can be set in the serial port
parameters. SN, MAC, and customized content can be selected, and can be set from 0 to 65535
seconds. The serial port heartbeat packet adopts the idle heartbeat packet, that is, it starts timing
when the serial port is idle, and when the serial port heartbeat packet time arrives, the configured