WIFI232-B2 User Manual
34
/
102
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.
4.7.1
Socket A
Socket A has three work mode: TCP Server, TCP Client, UDP. The setting method,
please refer to the AT+NETP command instruction.
When Socket A configured as TCP Server, it supports Multi-TCP link connection,
and maximum Multi-TCP link connection will work as following structure:
Upstream: All data from different TCP connection or client will be transmitted to the
serial port as a sequence.
Downstream: All data from serial port (user) will be duplicate and broadcast to every
TCP connection or client.
Detailed Multi-TCP link data transmission structure as following figure:
Figure 26 Multi-TCP Link Data Transmission Structure
4.7.2
Socket B
Socket B has one work mode: TCP Client, please refer to the AT+TCPB command
or the AT+TCPADDB/TCPTOB/TCPLKB command instruction.
With variety work mode
,
socket B can provide users with flexible data transfer
methods. For example, Socket B can connect to ta remote server in order to achieve
remote control.