Uart Automatic Framing Mode - Waveshare UART-WIFI232-B2 User Manual

Table of Contents

Advertisement

UART-WIFI232-B2 User Manual
configured to 50ms using the following AT command to meet the customer's requirements for serial
port forwarding efficiency:
AT+FUARTTE=normal
After the setting is completed, it is necessary to enable the above settings with the command of
Restore Factory Settings:
AT+RELD
Note that the AT+RELD command will not restore the above setting.
After testing, if it is set to 10ms, the time delay from WIFI->UART->WIFI loop is about 40 ~ 50ms
if the data volume is not large.
However, if the interval time is set to 10ms and the client's MCU cannot guarantee sending the
next byte within 10ms, the serial data might be fragmented.
To restore the default free framing interval of 10ms, you can use the following AT command:
AT+FUARTTE=fast
After the setting is completed, you also need to use the Restore Factory Settings command to
enable the above settings.
For specific UART automatic framing operations, please refer to the "AT Command Set" section of this
manual, which provides information on the UARTF/UARTFT/UARTFL commands.

6.4.3 UART AUTOMATIC FRAMING MODE

For fixed-length data frames on the serial port, you can enable the UART automatic framing
function, and set the automatic framing trigger time and trigger frame length. UART-WIFI232-B2 will
send the data from the serial port.
The received data is automatically framed and forwarded to the network.
1. Automatic framing trigger frame length: refers to UART-WIFI232-B2 receiving the specified
number of bytes from the serial port, composing a data frame and forwarding it to the network.
2. Automatic framing trigger time: It means that UART-WIFI232-B2 will forward the received data
to the network if the data received from the serial port is less than the length of the automatic
framing trigger frame within the trigger time.
The time of automatic framing starts from the first byte received by the WIFI serial port server
from the serial port. As shown in the figure below:
61
www.waveshare.com

Advertisement

Table of Contents
loading

Table of Contents