Waveshare UART-WIFI232-B2 User Manual page 66

Table of Contents

Advertisement

UART-WIFI232-B2 User Manual
Example:
Mobile phone sent to WIFI serial server (hexadecimal number): FF00010102.
WIFI serial server returns to mobile phone (hexadecimal number):
FF00148102544553543100400D0A 544553543200370D0A1F
Note: The mobile phone sends a query instruction to the WIFI serial server to query the router
related information. The information returned by the WIFI serial server to the mobile phone is: there
are two routers, the SSID of router 1 is "TEST1" and the signal strength is 64%; Router 2 has an SSID of
"TEST2" and a signal strength of 55%.
Note: The router information replied by the WIFI serial server is sorted according to the signal
strength.
No.
Name
1
Header
2
Length
3
Command
code
4
Reserved
byte
5
SSID
6
Separator
7
Password
8
Checksum
byte
No. Name
Bytes Note
1
Header
1
2
Length
2
3
Command
1
code
4
Checksum
1
value
5
Checksum
1
value
6
Checksum
1
Byte
Table setting instruction
Bytes
Note
1
Fixed value 0xFF
2
The number of bytes after the length (excluding the length) and
before the checksum (excluding the checksum).
1
Command type, 0x02 is the setting command.
1
The default is 0x00.
Indefinite
The SSID of the router.
length
2
SSID terminator, fixed values 0x0D, 0x0A.
Indefinite
The password of the router.
length
1
The cumulative sum of all bytes after the header (excluding the
header) and before the checksum byte (excluding the checksum
byte).
Table setting reply instruction
Fixed value 0xFF
All bytes after the length (excluding the length) and before the
checksum bye (excluding the checksum byte).
Command type, 0x82 is the reply instruction corresponding to the
setting instruction.
The checksum result of SSID, if the network value corresponding to this
SSID can be found, is 0x00,
The checksum result of the password, if the password format is correct,
the value is 0x00, if it is incorrect, the value is 0x00.
The cumulative sum of all bytes after the header (excluding the header)
and before the checksum byte (excluding the checksum byte).
if not, the value is 0x00.
66
www.waveshare.com

Advertisement

Table of Contents
loading

Table of Contents