Hello,
I have Wrover ESP32-Ethernet-Kit with AT firmware.
As I understand when Wi-Fi mode is set to 0 (AT+CWMODE=0), RF will be disabled and Wi-Fi will not work at all. But if the Ethernet and the Wi-Fi are connected same time, when I establish TCP connection (AT+CIPSTART), which interface will be used ? Is there way to use only Wi-Fi on this case?
Thank you!
ESP32 WiFi and Ethernet connected same time
-
- Posts: 12
- Joined: Fri Oct 13, 2023 1:09 pm
Re: ESP32 WiFi and Ethernet connected same time
You can find your answer here.
https://esp32.com/viewtopic.php?t=1274
https://esp32.com/viewtopic.php?t=1274
-
- Posts: 12
- Joined: Fri Oct 13, 2023 1:09 pm
Re: ESP32 WiFi and Ethernet connected same time
Thank you bidrohini for your suggestion, but it doesn't answer exactly on my question. Correct me if i'm wrong, but after research, I came to the following conclusion:
If ethernet and Wi-Fi are available and connected, then selection of the interface for communication can be done like this:
- only Ethernet connections: Wi-Fi mode is set to 0 (AT+CWMODE=0), RF will be disabled and Wi-Fi will not work at all (as I mention it).
-only Wi-Fi connections: the only thinks we can do is to be sure that the .route_prio is higher then this of the ethernet. This must be enough when we try to establish connection the ESP to use Wi-Fi.
Thank you!
If ethernet and Wi-Fi are available and connected, then selection of the interface for communication can be done like this:
- only Ethernet connections: Wi-Fi mode is set to 0 (AT+CWMODE=0), RF will be disabled and Wi-Fi will not work at all (as I mention it).
-only Wi-Fi connections: the only thinks we can do is to be sure that the .route_prio is higher then this of the ethernet. This must be enough when we try to establish connection the ESP to use Wi-Fi.
Thank you!
Re: ESP32 WiFi and Ethernet connected same time
i think you can specify the "local ip" parameter of AT+CIPSTART command in your case.
https://docs.espressif.com/projects/esp ... #cmd-start
https://docs.espressif.com/projects/esp ... #cmd-start
-
- Posts: 12
- Joined: Fri Oct 13, 2023 1:09 pm
Re: ESP32 WiFi and Ethernet connected same time
Yes, this is exactly what I'm looking for. I obviously missed that info. Thanks a lot for the reply.
Who is online
Users browsing this forum: No registered users and 45 guests