WIFI232-B2 User Manual
22
/
102
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
header
Length
Function
byte
Backup
data
area
Destination
port
Target
address
Data
Sum
check
2
2
(n+m+5)
1
2
2
m
n
1
Framer header:
0x55 0xAA (Constant)
Length:
S
tarting 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)