
Chengdu Ebyte Electronic Technology Co., Ltd.
NB1A1User Manual
Copyright ©2012–2023
,
Chengdu Ebyte Electronic Technology Co., Ltd.
24
6. After the network is connected to the device, each packet sent by the device to the network
is preceded by the Custom Registration Packet data (EMBCSTM).
。
Custom registration package content (maximum 128 bytes (ASCII) data, 64 bytes (HEX) data)
Note: Do not use special characters (such as ", ", "\", and "/") when configuring the registration
package. The hexadecimal configuration is recommended
。
5.2 Short connection
In client mode, the TCP short connection function is supported (this function is disabled by
default). The TCP short connection is mainly used to save server resource overhead, and is generally
applied to the multi-point (multi-client) to one-point (server) scenario.
The TCP short connection function applies to the TCP Client mode. After the short connection
function is enabled, the device requests to connect to the server only when sending messages. If the
connection is successful, the device automatically disconnects if the serial port does not receive data
or the network port does not send or receive data within a specified period.
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 link function is enabled, and the default hold time is 0 seconds
(close the short link).
After the short connection is enabled, use port 0; otherwise, the device cannot be reconnected
within 60 seconds after being disconnected .
5.3 Serial cache clearing
When the TCP connection is not established, the data received by the serial port will be placed
in the cache. The serial port receive cache is 1024 bytes. After the network connection is successful,
you can clear the serial port cache through the configuration or send the cache through the network.
Enable: The device does not save data received by the serial port before the connection is
established.
Disable: After the connection is established, the network receives data cached by the serial port.