![Ebyte E103-W03 Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/ebyte/e103-w03/e103-w03_product-instruction-manual_3841760026.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W03 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
26
6.1.2 Communication between modules
There are three modes of communication between modules of this product: AP-STA-based communication; STA-STA
communication; these two communication modes are one module as TCP server and the other as TCP client, the only
difference is STA -STA mode requires two modules to be connected to an external router.
Communication in P2P mode based on WiFi-Direct.
6.1.2.1 TCP communication of AP-STA between modules
1. *Set the working mode, set module A as AP role and module B as STA role. It should be noted that in the TCP mode,
the service mode of the module cannot be set to the same, that is to say, one of the two modules is a TCP Server and the
other must be a 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? (Be sure to do this here, and then pass the parameters into the STA, otherwise it will
not be able to communicate)
The return value is shown in the figure.
STA configuration:
Mode: AT+MODE=2,1,2