User's Manual

DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual
http://www.iotworkshop.com
26
defined value (50ms default), The device will think it as the end of one frame and transfer this
free-frame to WiFi port, or The device will receive UART data untill 4K bytes, then transfer 4KB
frame to WiFi port.
The device‟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=fash/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.
3.4.2. UART Auto-Frame
The device support UART auto-frame function. If user select open this function and setting auto-
frame trigger length and auto-frame trigger time parameters, then device 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 device 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 device 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.
3.5. Network Setting
The device supports TCP/UDP network protocol and the port parameters can be set via web
accessing or AT+instruction set. It has two TCP/UDP Socket: Socket A and Socket B. Serial data
sent to the device, it will be sent to the both Socket A and B simultaneously; TCP/UDP data that it
receives from either Socket A or B, the data will be sent to the serial port.You can achieve a
variety of network communication for setting the dual socket.
3.5.1. Socket A
Socket A has three work mode: TCP Server, TCP Client and UDP. Please refer to the AT+NETP
command instruction for detailed setting.When Socket A configured as TCP Server, it supports
Multi-TCP link connection, and maximum 32 TCP clients are permitted to connect to Socket A.
Multi-TCP link connection will work as following structure:
Upwards data stream: All data from different TCP connection or client will be transmitted to the
serial port as a sequence.
Downwards data stream: All data from serial port (user) will be duplicate and broadcast to every
TCP client.
Detailed multi-TCP link data transmition structure as following figure: