Serial Command Mode - Waveshare UART-WIFI232-B2 User Manual

Table of Contents

Advertisement

UART-WIFI232-B2 User Manual
figure:

6.1.2 SERIAL COMMAND MODE

In this mode, users can send data to servers according to our protocol, and can send data to
different servers without restarting.
In this mode, when the UART-WIFI232-B2 serial server is used as UDPClient or TCPClient, users
are allowed to send serial data to different servers, regardless of the number of Soc0ket.
The client's MCU only needs to send data packets according to the format specified by our
company, and the serial server will parse the received data. If the data conforms to the protocol, the
serial server will send the parsed data to the designated server. If the data does not conform to the
protocol, it will be treated as a waste package without sending it to the server.
The client MCU sends the data packet according to the following format, and after the WIFI serial
server finishes parsing, only N bytes of data are sent to the target address. When data is returned, the
data is directly output from the serial port without parsing.
Function
Header Length
2
2
(n+m+5)
Header:
Always 0x550xaa
Length:
Figure Transparent transmission function block diagram
Table Serial command mode protocol
Reserved parameter
code
area:
1
2
Target
port
address
2
44
Target
Data Checksum
m
n
1
www.waveshare.com

Advertisement

Table of Contents
loading

Table of Contents