Short Connection; Serial Buffer Cleaning - Ebyte NB124E User Manual

Dual serial port server
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd
registration package (OLCSTM) is sent.
3. After the connection between the network and the device is established, each packet of data
sent by the device to the network will be preceded by a MAC address (EMBMAC).
4. After the connection between the network and the device is established, each packet of data
sent by the device to the network will be preceded by custom registration packet data
(EMBCSTM).
Customize the content of the registration package (support up to 40 bytes (ASCII) data, 20 bytes
(HEX) data)
【Note】It is recommended not to use special characters (such as "," "\" "/") when configuring
the registration package. If you want to use it, it is recommended to use hexadecimal configuration.

5.2 Short connection

In client mode, short network connections are supported (this function is disabled 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.
The TCP short connection function is applied in the TCP Client mode. After the short
connection function is turned on, it only requests to connect with the server when sending
information. After the connection is successful, if the serial port does not receive data or the network
port has no data to send and receive within the set time, the device will automatically disconnect.
When the short link hold time is set to 0, the short link function is disabled. When the setting
range is (2-255) seconds, the short connection function is enabled, and the default hold time is 0
seconds (short connection is turned off).

5.3 Serial buffer cleaning

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 512 bytes. After the network connection is
successful, you can choose to clear the serial port buffer or send the buffer through the network.
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 the data buffered by the
serial port.
Copyright ©2012–2023,
Chengdu Ebyte Electronic Technology Co.,Ltd
NB124E_User Manual

Advertisement

Table of Contents
loading

Table of Contents