Hi everybody.
Using the esp-idf/example/protocols/udp_multicast example and making simple mods I have a ServerESP32(is set as AP) and a ClientESP32(set as a STA connected to the Other ESP32).
A multicast message from the client to the server is received without any losses, but sending a message from the Server to the Client there is a terrible loss, 90% or more.
If I set both ESP32 to Client and use a standard router AP, 100% of packets are received in both ESP32s.
I have tried many things but same result. Read somewhere in forum that there seems to be a limitation/error(unreported) were the AP has limitations with Multicast messages.
Any ideas, hints.
Regards.
ESP32 UDP Multicast failure
Re: ESP32 UDP Multicast failure
Please try disabling Wi-Fi modem sleep (which is enabled by default) using esp_wifi_ps_set function. Perhaps this will improve the situation?
-
- Posts: 126
- Joined: Tue May 17, 2016 8:12 pm
Re: ESP32 UDP Multicast failure
Hi Esp_igrr:
Spot On!!!!. Works like a charm now. Not going to ask why just happy it works.
Regards
Spot On!!!!. Works like a charm now. Not going to ask why just happy it works.
Regards
-
- Posts: 126
- Joined: Tue May 17, 2016 8:12 pm
Re: ESP32 UDP Multicast failure
For the benefit of clarity,
esp_wifi_set_ps(WIFI_PS_NONE);
in the InitWiFi setup routine in both the Client and Server.
esp_wifi_set_ps(WIFI_PS_NONE);
in the InitWiFi setup routine in both the Client and Server.
Re: ESP32 UDP Multicast failure
That wifi sleep thing is impacting people in multiple ways. Maybe you should change the default back to none and make a point of telling people who want low power to change it with the possible unwanted side effects.
John A
John A
Who is online
Users browsing this forum: Bing [Bot] and 118 guests