Chengdu Ebyte Electronic Technology Co.,Ltd.
NA611-S & NA611-SA User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
第
31
页
4.5. Disconnection reconnection and no data reboot
Disconnected reconnection: The device periodically requests a connection after the disconnection to ensure that the
connection can be restored in the event of an accidental disconnection (note that the device is not restarted);
No data restart: the user can customize the enable and disable the function (off by default), after opening the mode,
if the device does not communicate data within the user configuration time (default: 120min, configurable
1-10080min), the device will automatically restart to prevent link blockage and cause non-functional operation.
4.6. Multilink distribution
When multiple sockets are supported, in order to distinguish the source and destination of the data, we define it as a
protocol transmission, which contains a specified send and broadcast transmission, which requires the use of 1 hex
(hex) transmission.
4.6.1. Protocol distribution specifies sending
1. Protocol Description
Send a description
[Protocol Distribution [Protocol Type]+[[cl Data
Protocol distribution header: 0XAA + 0XFE
Protocol Type: 0X55 TCPS Communication 0X54 TCPC Communication 0X53UDPS Communication 0X52
UDPC Communication 0X51 HTTP Communication 0X50 MQTT Communication
SockID
:
00
、
01
、
02
、
03
ClientID
:
01
、
02
、
03
、
04
、
05
、
06
、
07
、
08
If working in client mode, the clientID is invalid.
{Note: There is a hidden function here, the host computer supports HTTP configuration, but the configuration
method can only select radio POST or GET, you can (on the host computer or through AT) respectively set POST
and Get the parameter, because in the device this parameter is originally separated, and then transmitted directly
through the protocol using the POST and GET methods, when the protocol type is in HTTP communication mode,
ClientID Flag bit 0 for using THE POST method, followed by POST data, and 1 for the GET method, followed by
it GET data}
Specifies that the packet entered into the serial port contains a unique socked ID number, according to which the
device transmits data to the corresponding socket connection. For example:
Fixed head
Socket ID
ClientID
data
3 Byte
1 Byte
1
Byte(Only
server/HTTP
mode takes effect)
N Byte
0xAA 0xFE 0xXX
Socket 0 Link
0x00
0x01
N Byte