Ebyte E103-W03 Product Instruction Manual page 27

Cc3220r 2.4ghz wifi serial port module
Hide thumbs Also See for E103-W03:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Target: AT+STACON=E103-W03,2,12345678
Set the remote IP and port. Here, the local IP obtained in the AP configuration is passed in as the remote IP of the STA:
AT+SOCKET=0,4001,192.168.1.1
After the configuration is complete, restart the module, wait for the connection to complete, and then send data.
It should be noted that the IP address of the AP connected to the STA must be passed in before starting the STA.
Otherwise, a normal network connection cannot be established.
If the AP starts the protocol transmission mode at this time, it can support connecting 4 STAs, and the configuration of
the remaining STAs is the same.
For STA-STA communication, two modules need to be connected to the same router. Here, the SSID of the target AP is
used as E103-W03 for demonstration.
STA1 configuration process
Mode: AT+MODE=2,1,1
Target: AT+STACON=E103-W03,2,12345678
Configure the local port: AT+SVRPORTIP=4001
Get IP address: AT+SVRPORTIP? Get return: AT+SVRPORTIP=4001,192.168.1.21
STA2 configuration process:
Mode: AT+MODE=2,1,2
Target: AT+STACON=E103-W03,2,12345678
Set the remote IP and port, here the IP and port obtained by STA1 are passed in:
AT+SOCKET=0,4001, 192.168.1.21
Restart the module and wait for the connection to complete before communicating.
6.1.2.2 UDP communication between modules
UDP is a communication that does not establish a connection, the core is IP address and port. In this way, one
communicates as an AP and the other as a STA.
1. Configure the AP module:
Setting mode: AT+MODE=1,1,3
Set SSID: AT+SSID=0,E103-W03,2,12345678
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
'
E103-W03 User Manual
27

Advertisement

Table of Contents
loading

Table of Contents