Tcp Communication Between Ap-Sta Devices - Ebyte NA611 User Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.

5.1.4 TCP communication between AP-STA devices

(1) Set the working mode, set device A to AP role, and device B to STA role. It is particularly important to note that
in TCP mode, the service mode of the device cannot be set to the same, that is to say, one of the two devices is a TCP
Server and the other must be a TCP Client, otherwise the connection and communication cannot be established normally.
Regarding the channel and frequency settings, because the devices are dual-frequency 2.4G and 5.8G, it is also necessary
to ensure that the frequencies of the two devices are the same.
AP configuration:
Mode: AT+MODE=1,1,1
SSID: AT+SSID=0,E103-W06,2,12345678
Get the local IP: AT+SVRPORTIP? (This operation must be performed here, and then pass the parameters into the
STA, otherwise communication will not be possible), the return value is shown in the figure.
STA configuration:
Mode: AT+MODE=2,1,2
Target: AT+STACON=E103-W06,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
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
【RS485⇌ WiFi】NA611 User Manual
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Na611a

Table of Contents