HF2211 Serial Server Device User Manual
http://www.iotworkshop.com - 35 -
Figure 38. Route Function Data Flow Example
3.9. UART Frame Scheme
3.9.1. UART Free-Frame
HF2211 support UART Free-Frame function, If user select to open this function,Module will check the
intervals between any two bytes when receiving UART data, If the interval time exceed the setting
value, It will think it as the end of one frame, Or it will receive data until greater than internal buffer
bytes( Default: 512, the largest 1400 bytes), then transfer to Socket Channel.
Module default UART Free-Frame interval time is 50ms, it will packaged into another frame if received
UART data interval time is greater than 50ms. User also can set this interval time to minimum 10ms
through Cli command and webpage.
If interval time is set to 10ms and customer MCU cannot send next byte within 10ms, The serial data
will be break into two frame.
Figure 39. UART free-frame function
3.9.2. UART Auto-Frame
HF2211 support UART Auto-Frame function, If user select to open this function,setting frame tigger
length and auto frame trigger time parameters, Then the product 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 product used to transmitting to the network.
Auto-Frame trigger time: After the trigger time, If UART port received data cann’t reach auto-frame
trigger length, Then product will transmitting available data to network and bypass the auto-frame
trigger length condition.