Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDP sync unreliable #2112

Closed
ThatBigPrint opened this issue Aug 1, 2021 · 8 comments
Closed

UDP sync unreliable #2112

ThatBigPrint opened this issue Aug 1, 2021 · 8 comments
Labels
bug keep This issue will never become stale/closed automatically

Comments

@ThatBigPrint
Copy link

Describe the bug
First issue,

when I have multiple wled modules one or two of them don't sync properly you then need to resubmit the change then it applies this is intermittent.

second issue,

the wled app finds the uniquely named modules but after you click the tick it only populates a few but if you manually type in IP address it populates as it should ?

To Reproduce
first issue you just need multiple items on one sync id for instance I have 11

second issue again multiple items on same network I have 15 in this instance

Expected behavior
all wled to sync reliably

app to be able to find nodes every time and populate

WLED version

  • Board: [e.g. ESP32 dev]
  • Version [e.g. 0.13.0, beta] although other nodes I'm having the same issue with are on stable old releases
  • Format [e.g. Binary, self-compiled] both

Additional context
Anything else you'd like to say about the problem?

Thank you for your help!

@huggy-d1
Copy link
Contributor

huggy-d1 commented Aug 2, 2021

How many wifi access points do you have? Are all WLED installs connect to the same wifi AP? The sync protocol does not route as far as I know since it's a simple UDP broadcast. WLED simply sends out to whoever is capable of listening, and is listening. The networking configuration determines whether they are capable of listening.

@ThatBigPrint
Copy link
Author

they are all on the same network they only produce ap if they can't find the known SSID ? so far they are all on the network and not complaining, the issue lies in reliable sync and pulling into the app on both platforms... they initially worked but since I deleted the list and re searched only one or two come back and its always the same one or two

@ThatBigPrint
Copy link
Author

a bit more info on this... the Host light seems to drop out for whatever reason, and then comes back around it happens on all of the elements whichever is the host I'm even considering making a hidden dummy hoast? anyway use this link to see a video of the issues https://youtu.be/eC7rsYlEwow

thanks
chris

@blazoncek
Copy link
Collaborator

WLED Sync uses UDP. That is in itself enough said about reliability on WiFi.
You can slightly improve the situation by telling WLED to transmit sync message twice. Use Settings page.

@ThatBigPrint
Copy link
Author

We are experiencing the same issue even with double send turned on, we think it is something to do with maybe the "sync master" crashing and rebooting as it seems to drop off the network for a few seconds.... we are running this on a pico D4 so maybe hardware limitation but as far as I'm aware the d4 is pretty high up there in terms of processing power? and we don't get any dropped frames with large quantities of leds?

@stale
Copy link

stale bot commented Apr 16, 2022

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!

@stale stale bot added the stale This issue will be closed soon because of prolonged inactivity label Apr 16, 2022
@Aircoookie Aircoookie added the keep This issue will never become stale/closed automatically label Apr 16, 2022
@stale stale bot removed the stale This issue will be closed soon because of prolonged inactivity label Apr 16, 2022
@Aircoookie Aircoookie changed the title sync not synchronizing all elements accurately and finding weleds but not adding to list in app UDP sync unreliable Apr 16, 2022
@keck9939
Copy link

keck9939 commented Dec 4, 2022

The sync feature relies on mDNS and UDP broadcasting. Depending on your networking equipment and topology, these two features may or may not be enabled/blocked. I found with the default settings on my network, that enumerating the WLEDS on the network was unreliable as was syncing and that nodes would periodically drop off the network. After enabling mDNS and making sure UDP broadcasts would get through, everything started to work reliably.

@blazoncek
Copy link
Collaborator

Mitigation added in #2830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug keep This issue will never become stale/closed automatically
Projects
None yet
Development

No branches or pull requests

5 participants