sandipnikam12 sandipnikam12 Based on your setup:using one board as a 5GHz AP (hotspot) and the other as a STA (client) to transfer data,we have organized a clear configuration process. The steps below utilize TCP for reliable data transmission.
AP Side (as TCP Server & 5GHz Hotspot)
This device will create a 5GHz hotspot and act as a TCP server, waiting for the client to connect.
1. AT+TPMODE=0 # Enter command mode
2. AT+ROLE=2 # Set to AP mode
3. AT+LAP=test,12345678,192.168.10.1 # Write AP Mode Configuration(SSID:test;pwd:12345678;IP:192.168.10.1)
4. AT+CHANNEL=157 # Set 5GHz channel (e.g., 157)
5. AT+SOCK=TCPS,9100 # Set module as TCP server, listening on port 9100
6. AT+WLANC=3 # Start TCP service
7. AT+WFSEND=0,3,abc # Send data "abc" to the connected TCP client
Note: The module serves as the network access point (AP) and TCP server,Ensure the selected channel (e.g., 157) is allowed in your country/region to avoid interference or regulatory issues.
STA Side (as TCP Client)
This device will connect to the AP’s hotspot and act as a TCP client to communicate with the server.
1. AT+TPMODE=0 # Enter command mode
2. AT+ROLE=1 # Set to STA mode
3. AT+RAP=test,12345678 # Connect to AP with SSID "test" and password "12345678"
4. AT+LIP # Query local IP address to confirm connection
5. AT+SOCK=TCPC,8080,192.168.10.1,9100 # Act as TCP client, local port 8080, connect to server 192.168.10.1:9100
6. AT+WLANC=3 # Start TCP service
7. AT+WFSEND=3,3,123 # Send data "123" to the TCP server
Note: The module acts as the network client (STA) and TCP client.
Documentation Reference
For further details, please refer to the official documentation: