![Ebyte E103-W03 Скачать руководство пользователя страница 13](http://html1.mh-extra.com/html/ebyte/e103-w03/e103-w03_product-instruction-manual_3841760013.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W03 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
13
network is sent directly without any format. Command AT+MODE=x.1,x sets the second bit to 1 to configure the module
to work in transparent transmission mode.
5.2.2 Protocol Transmission
When supporting multiple sockets, in order to distinguish the source and destination of data, we define it as a
protocol transmission, which includes specified sending and broadcast sending.
5.2.2.1 Specify Send
Specifying to send means that the data packet input to the serial port contains a unique socketed ID label, and the
module transmits the data to the corresponding socket connection according to this ID number.
fixed head
Socket ID
Data
3 Byte
1Byte
N Byte
fixed head
:
0xAA 0xFE 0x55
Socket ID
:
0x00, represents the discovery of Socket 0 link
0x01, represents the discovery of Socket 1 link
0x02, represents the discovery of Socket 2 link
0x03, represents the discovery of the Socket 3 link
Data
:
Application Payload
For example: AA FE 55 00 AA BB CC In protocol transmission mode, send AA BB CC to Socket 0 through serial
port
5.2.2.2 Broadcast transmission
When the Socket ID is 0xff, it means broadcasting. 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.
5.2.2.3 Protocol reception
fixed head
Socket ID
length
Data
3 Byte
1Byte
2Byte
N Byte
fixed head
:
0xAA 0xFE 0x55
Socket ID
:
0x00, represents the discovery of Socket 0 link
0x01, represents the discovery of Socket 1 link
0x02, represents the discovery of Socket 2 link
0x03, represents the discovery of the Socket 3 link
length:
The actual length of the application data, range: 0~1000
data:
Application Payload
For example: AA FE 55 00 00 03 11 22 33 In protocol mode, the 3-byte data received from Socket0, the content is: 0x11
0x22 0x33
Use the command AT+MODE=x.2,x to set the second bit to configure the module to work in the protocol transmission
mode.