I have latest ESP-IDF version (5.1.1).
I was looking for an example on how to use the ESP32 as a transparent wifi bridge.
The eth2ap example works great, but I would like to connect a eth2sta to this, to form a wireless “lan cable”.
I see in previous releases of the IDF (3.1) there was a eth2wifi example, where it could be configured as either AP or STA. I can't compile this example on the IDF (5.1.1).
I changed the code of eth2ap, to mimic this example, and I can get the STA to connect to the AP. On the STA module, I can see packets from the AP module’s lan being transmitted transparently, but packets picked up on the STA module’s lan port never arrive on the AP modules side.
The function esp_wifi_internal_tx returns OK, but nothing is recieved on the other side (AP)
Any ideas where I can look for a solution?
ESP32 C6 IDF V.5.1.1 eth2wifi example
Re: ESP32 C6 IDF V.5.1.1 eth2wifi example
I have been trying to do a similar thing myself. You could try using the eth2wlan example for the STA side, though I am finding a great problem with lost data packets. Perhaps you are experiencing this too?
I have 2 computers set up on the ethernet bridge, and using iperf. testing the data transmission rate in UDP mode, the server side says 93% of the data is being lost!
I have 2 computers set up on the ethernet bridge, and using iperf. testing the data transmission rate in UDP mode, the server side says 93% of the data is being lost!
Who is online
Users browsing this forum: No registered users and 209 guests