Chengdu Ebyte Electronic Technology Co., Ltd.
E103-W03 _User Manual _EN_V1.1
Copyright ©2012–2022, Chengdu Ebyte Electronic Technology Co., Ltd
.
23
source.
6.1.2 Communication between modules
There are three ways of communication between modules of this product: AP-STA-based communication; STA-STA
communication; these two communication methods are one module as a TCP server and the other as a TCP client, the
only difference is STA - The STA method requires connecting both modules to an external router.
Communication in P2P mode based on WiFi-Direct.
6.1.2.1 AP-STA TCP communication between modules
1
、
* Set the working mode, set module A as the AP role, and module B as the STA role. In particular, it should be noted
that in TCP mode, the service mode of the modules cannot be set to the same, that is to say, one of the two modules
must be TCP Server and the other must be TCP Client, otherwise the connection and communication cannot be
established normally.
AP configuration:
Mode: AT+MODE=1,1,1
SSID
:
AT+SSID=0,E103-W03,2,12345678
Get the local IP: AT+SVRPORTIP? (This operation must be performed here, and then the parameters are passed
to STA, otherwise communication cannot be performed)
The return value is shown in the figure.