Chengdu Ebyte Electronic Technology Co.,Ltd.
NA611-S & NA611-SA User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
第
32
页
(
The last bit
protocol type
)
Socket 1 Link
0x01
...
N Byte
Socket 2 Link
0x02
...
N Byte
Socket 3 Link
0x03
...
N Byte
Note: If the send does not have a protocol distribution header, then the default is to broadcast to all connected links,
and the ClientID in the protocol distribution header is sent 1-8 as A TCPS/UDPS to send information to a certain
client (the device stores up to 8). Client Information), as for the client information that is currently connected, you
can view the data through AT. If it is HTTP mode, a ClientID bit of 0 represents the use of the POST method and a
1 represents GET Method.
Protocol receipt instructions
Fixed head
Socket ID
ClientID
length
data
3 Byte
1Byte
1Byte
2Byte
N Byte
0xAA
0xFE
0xXX
(
The last bit
protocol type
)
Socket 0 Link
0x00
0x01
1-65535
Apply the data
actual length value
N Byte
Socket 1 Link
0x01
...
N Byte
Socket 2 Link
0x02
...
N Byte
Socket 3 Link
0x03
...
N Byte
4.6.2. Broadcast sending
Protocol Description
When the device link works in server mode, when the Socket ID is 0x00 or there is no protocol header before the
data, it means broadcasting, if a 4-way connection is established, the data is sent to the 4-way socket at the same
time. Otherwise, the data is sent to the established connection, and the data reception format refers to "Specify
Send-Protocol Receive Instructions".
4.7. Heartbeat pack with registration pack
Heartbeat packages or enrollment packages are features that are only available in client mode, and this device
supports customized heartbeat package data and registration package data content.
4.7.1. Heartbeat pack
The heartbeat packet can be configured as serial and network heartbeats, and the content can be selected from MAC
and user-defined (support A SCII or HEX data, configurable up to 72Bit.) , HEX format halved).
4.7.2. Register the package
Registration package content selectable MAC and user definable (support A SCII or HEX data, configurable up to
72Bit, HEX format halved).