Uart Frame Scheme; Uart Free-Frame; Uart Auto-Frame; Network Setting - Waveshare WIFI232 User Manual

Table of Contents

Advertisement

WAVESHARE ELECTRONICS

4.6 UART Frame Scheme

4.6.1 UART Free-Frame

WIFI232 support UART free-frame function. If user select open this function, module will check
the intervals between any two bytes when receiving UART data. If this interval time exceeds
defined value (50ms default), WIFI232 will think it as the end of one frame and transfer this free-
frame to WiFi port, or WIFI232 will receive UART data until 4K bytes, then transfer 4KB frame to
WiFi port.
WIFI232‟s default interval time is 50ms. User can also set this interval to fast (10ms) through AT
command. But user have to consider if user MCU can send UART data with 10ms interval ,or the
UART data may be divide as fragment.
Through AT command: AT+FUARTTE=fast/normal, user can set the interval time: fast (10ms) and
normal (50ms). This command is factory default setting command and AT+RELD can‟t change its
value.

4.6.2 UART Auto-Frame

WIFI232 support UART auto-frame function. If user select open this function and setting auto-
frame trigger length and auto-frame trigger time parameters, then module will auto framing the
data which received from UART port and transmitting to the network as pre-defined data structure.
Auto-frame trigger length: The fixed data length that module used to transmitting to the
network.
Auto-frame trigger time: After the trigger time, if UART port received data can‟t reach auto-
frame trigger length, then module will transmitting available data to the network and bypass
the auto-frame trigger length condition.
Detailed UART auto-frame function can refer to AT+ instruction set "UARTF/UARTFT/UARTFL"
introduction.

4.7 Network Setting

WIFI232 module has two TCP/UDP Socket: Socket A and Socket B. Serial data written to the
module, will be sent to the Socket A and B simultaneously; TCP/UDP data that module receives
through either Socket A or B,will be sent to the serial port.
Dual Socket through different settings, you can achieve a variety of network interconnect. When
the module shipped only open Socket A, Socket B default is not to connect, if the user needs to
use, please set by AT commands.
Page 31 of 81
WIFI232 User Manual

Advertisement

Table of Contents
loading

Table of Contents