Chengdu Ebyte Electronic Technology Co.,Ltd.
【
RS485
⇌
WiFi
】
NA611 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
6
4.2.2 Protocol transmission
When supporting multiple sockets, in order to distinguish the source and destination of data, we define it as protocol
transmission, which includes designated sending and broadcast sending.
(1) Designated sending
Designated sending means that the data packet input to the serial port contains a unique socks ID label, and the
device transmits the data to the corresponding socket connection according to this ID number.
Fixed head
Socket ID
Data
3 Byte
1 Byte
N Byte
Fixed head
:
0xAA 0xFE 0x55
Socket ID
Description
0x00
Socket 0 link
0x01
Socket 1 link
0x02
Socket2 link
0x03
Socket 3 link
Data
:
Application Payload
(2) Broadcast transmission
When the Socket ID is 0xff, it means broadcast. If a 4-way connection is established, the data will be sent to the
4-way socket at the same time, otherwise the data will be sent to the established connection.
(3) receiving protocol
Fixed head
Socket ID
Length
Data
3 Byte
1Byte
2Byte
N Byte
Fixed head
:
0xAA 0xFE 0x55
Socket ID
:
0x00,which means Socket 0 link is found
0x01,which means Socket 1 link is found
0x02,which means Socket 2 link is found
0x03,which means Socket 3 link is found
Length
:
The actual length of the application data, range: 0~1000
Data
:
Содержание NA611
Страница 1: ... RS485 WiFi NA611 NA611A ...