Serial Command Mode - Waveshare WIFI232-B2 User Manual

Table of Contents

Advertisement

WIFI232-B2 User Manual
WIFI232 modules support serial interface transparent transmission mode. The
benefit of this mode is that achieves a plug and play serial data port, and reduces user
complexity furthest. In this mode, user should only configure the necessary parameters.
After power on, module can automatically connect to the default wireless network and
server.
In this mode, the module's serial port always works in the transparent transmission
mode, so users only need to think of it as a virtual serial cable, send and receive data as
using a simple serial. In other words, the serial cable of user's original serial devices is
directly replaced with the module.
The transparent transmission mode can fully compatible with user's original
software platform and reduce the software development effort for integrate wireless
data transmission.
Note:
Transparent transmission mode is much simple. User also could also open the
serial port hardware flow control (CTS/RTS) function, so that we can make the bit error
to minimum. If the user doesn't need hardware flow control function, only need to hung
up the corresponding pin (CTS/RTS)

4.2.2 Serial Command Mode

In this mode, the user can send the serial data to a different server address, in this
pattern, client can use UDP or TCP to send data to the server.
Customer MCU send packets according to the following format, parsing module is
finished, only the n bytes of data sent to the destination address. When data is
returned, not analytical data output from serial port directly.
Framer
Length
header
2
2
(n+m+5)
Framer header:
0x55 0xAA (Constant)
Length:
Starting from the function byte to Sum check (doesn't contain the sum check)
Hight byte at the front.
Function byte:
Bit0: (UDP: 0; TCP: 1)
Backup
Function
data
byte
area
1
2
22 / 102
Destination
Target
port
address
2
m
Sum
Data
check
n
1

Advertisement

Table of Contents
loading

Table of Contents