ESP32 UDP Multicast failure

rsimpsonbusa
Posts: 124
Joined: Tue May 17, 2016 8:12 pm

ESP32 UDP Multicast failure

Postby rsimpsonbusa » Mon Oct 22, 2018 11:29 pm

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.

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP32 UDP Multicast failure

Postby ESP_igrr » Tue Oct 23, 2018 12:54 am

Please try disabling Wi-Fi modem sleep (which is enabled by default) using esp_wifi_ps_set function. Perhaps this will improve the situation?

rsimpsonbusa
Posts: 124
Joined: Tue May 17, 2016 8:12 pm

Re: ESP32 UDP Multicast failure

Postby rsimpsonbusa » Tue Oct 23, 2018 1:51 pm

Hi Esp_igrr:

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

Regards

rsimpsonbusa
Posts: 124
Joined: Tue May 17, 2016 8:12 pm

Re: ESP32 UDP Multicast failure

Postby rsimpsonbusa » Tue Oct 23, 2018 2:05 pm

For the benefit of clarity,

esp_wifi_set_ps(WIFI_PS_NONE);

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

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: ESP32 UDP Multicast failure

Postby fly135 » Tue Oct 23, 2018 4:54 pm

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

Who is online

Users browsing this forum: No registered users and 111 guests