Protocol Transmission - Ebyte NA611 User Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.

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
3 Byte
Fixed head: 0xAA 0xFE 0x55
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:
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:
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
Socket ID
Socket ID
0x00
0x01
0x02
0x03
Fixed head
Socket ID
3 Byte
1Byte
1 Byte
Description
Socket 0 link
Socket 1 link
Socket2 link
Socket 3 link
Length
Data
2Byte
N Byte
【RS485⇌ WiFi】NA611 User Manual
Data
N Byte
6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Na611a

Table of Contents