Page 1 of 1

ESP32 UDP Multicast failure

Posted: Mon Oct 22, 2018 11:29 pm
by rsimpsonbusa
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.

Re: ESP32 UDP Multicast failure

Posted: Tue Oct 23, 2018 12:54 am
by ESP_igrr
Please try disabling Wi-Fi modem sleep (which is enabled by default) using esp_wifi_ps_set function. Perhaps this will improve the situation?

Re: ESP32 UDP Multicast failure

Posted: Tue Oct 23, 2018 1:51 pm
by rsimpsonbusa
Hi Esp_igrr:

Spot On!!!!. Works like a charm now. Not going to ask why :D just happy it works.

Regards

Re: ESP32 UDP Multicast failure

Posted: Tue Oct 23, 2018 2:05 pm
by rsimpsonbusa
For the benefit of clarity,

esp_wifi_set_ps(WIFI_PS_NONE);

in the InitWiFi setup routine in both the Client and Server.

Re: ESP32 UDP Multicast failure

Posted: Tue Oct 23, 2018 4:54 pm
by fly135
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