Socket A; Socket B; New Function; Tcp Password Authentication - Waveshare WIFI232 User Manual

Table of Contents

Advertisement

WAVESHARE ELECTRONICS
WIFI232 User Manual

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
32 TCP clients permitted to connect to Socket A.
Multi-TCP link connection will work as following structure:
Upstream: All dates 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 transmition structure as following figure:
Figure 24 Multi-TCP Link Data Transmition Structure

4.7.2 Socket B

Socket B has one work mode: TCP Client, please refer to the AT+TCPB/AT+TCPPTB/TCPADDB/
TCPTOB/TCPLKBcommand instruction.
With variety work mode, socket B can provide users with flexible data transfer methods.For
example, Socket B can connect to a remote server in order to achieve remote control.

4.8 New function

4.8.1 TCP password authentication

This feature is available only on the module as a TCP server, when the TCP client connection
module,
the
module
will
authenticate
each
connected
tcp.
Each TCP client first data is the "password+0x0d+0x0a" (the password is Webpage authentication
password). The default password is "admin", so the first piece of data should be "0x61 0x64 0x6D
0x69 0x6E 0x0D 0x0A" (Hex). If the password is correct, the module returns "OK", on the other
hand,
return
to
the
"NO"
and
disconnect.
Page 32 of 81

Advertisement

Table of Contents
loading

Table of Contents