Fast Networking Protocol - Waveshare UART-WIFI232-B2 User Manual

Table of Contents

Advertisement

UART-WIFI232-B2 User Manual
Example
55AA55
(115200, N,
8,1)
Example
55AA55
(9600,N,8,1)
No. Name
Bytes
1
Header
1
2
Length
2
3
Command
1
code
4
AP number
1
5
SSID1
Indefinite
length
6
Terminator
1
7
Signal
1
strength 1
8
Terminator
2
...
...
...
M
SSIDn
Indefinite
length
M+1 end mark
1
M+2 Signal
1
strength n
M+3 Terminator
2
M+4 Checksum Bit 1

6.7 FAST NETWORKING PROTOCOL

When the WIFI serial server is operating in AP mode, it will open a UDP port for receiving fast
networking protocol commands, with a port number of 49000. The mobile phone can be directly
connected to the WIFI network of the WIFI serial port server, and can query the SSID information list
and set the router SSID and password through the commands under UDP protocol. After the setting is
completed, the WIFI serial server will automatically restart and connect to the router, and it will work
in STA mode at this time.
Protocol format description:
01C200
002580
Form query reply instruction
Note
Fixed value 0xFF
The total number of bytes after the length (excluding the length
itself) and before the checksum byte (excluding the checksum
byte).
Command type, and the reply instruction corresponding to the
query instruction is 0x81.
Number of currently detected APs
The SSID of router 1.
The SSID terminator for router 1, with a fixed value of 0x00.
The signal strength of router 1 network, ranging from 0 to 100,
corresponds to an actual value of 0% to 100%.
Terminator of signal strength 1, 0x0D, 0x0A.
.........
The SSID of router n.
SSID terminator of router n, fixed value 0x00.
The signal strength of router N network ranges from 0 to 100,
and the corresponding actual value is 0% to 100%.
The terminator of signal strength n, 0x0D, 0x0A.
The cumulative sum of all bytes after the header (excluding the
header) and before the checksum (excluding the checksum).
64
See attached
table
83
46
83
28
www.waveshare.com

Advertisement

Table of Contents
loading

Table of Contents