Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.57k stars 3.12k forks source link

UDP Sync causing unsynched devices to drop off network #1390

Closed Morphy99 closed 3 years ago

Morphy99 commented 3 years ago

Describe the bug I have 8 separate WLED strips on my network and I have been looking to sync 3 of them with the UDP sync function. I have the other 5 with Receive Brightness, Color, and Effects unticked and receive UDP realtime unticked as well. For some bizarre reason this causes the 5 to drop off the network with only a hard reboot resolving it.

To Reproduce Power on the WLED I want to sync from and press the SYNC button on the main menu via the web gui. Go to Favorites and change preset on this device and the others sync OK. A few seconds later the other 5 devices all drop off the WiFi at the same time. Only way to get them back online is to reboot them manually. The LED's continue to function with effects running if this happens, so I suspect it's a network issue rather than a device crash.

Expected behavior The other 5 devices to function as normal without synching to the 3 I require to sync.

WLED version

Additional context Things I've tried:

Aircoookie commented 3 years ago

Thank you for the detailed report! I suspect that since the UDP interface is always listening, even when turned off, it fills the receive buffer and thus blocks traffic. We can try whether calling parsePacket() even when we don't need it will fix this. I will send you a binary for testing this later today :)

4ndy8 commented 3 years ago

Can confirm that I've just discovered the same issue and not found any alt configurations that mitigate it. Until a firmware update comes, it's sync off for everything or those with UDP listening de-selected will be unresponsive on network. Was surprised that changing the UDP ports didn't provide a work around. Stand alone AP mode I guess is the alternative, but not great with multiple nodes. Great update otherwise tho 👍

Morphy99 commented 3 years ago

I will send you a binary for testing this later today :)

Did you send this? I thought you had but I've been too busy to test anything and now I can't see any link

stale[bot] commented 3 years ago

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!