Short Connection; Serial Buffer Cleaning - Ebyte NB144ES User Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
2. The data of the custom registration package (OLCSTM) is sent when the network
establishes a connection with the device.
3. After the connection between the network and the device is established, the MAC address
(EMBMAC) is added in front of each packet of data sent by the device to the network.
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 prepended with custom registration packet data
(EMBCSTM).
Customize the content of the registration package (support up to 40 bytes (ASCII) data, 20 bytes
(HEX) data)
[Note] When configuring the registration package, it is recommended not to use special
characters (such as "," "\", "/", etc.), 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, 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
through configuration.
Enable: The device does not save the data received by the serial port before the connection is
established.
Copyright ©2012,Chengdu Ebyte Electronic Technology Co., Ltd.
NB144ES User Manual
26

Advertisement

Table of Contents
loading

Table of Contents