Repository navigation
Add number of UDP retries - #2830
Conversation
|
Hi, thakns for the PR. I do have a few questions and general comment, though. Have you tried/tested this with 60FPS and 32 segments (with segment options syncing enabled, possibly with 4096 LEDs defined)? How much does it add to FPS drop (if any) or other performance hit? A side note: UDP is inherently unreliable, especially with WiFi. Its intention is low latency. Adding multiple retransmissions will only add to the latency and may not solve bad WiFi coverage/signal strength issues. I do agree that multiple retransmissions will increase the chance of transmitting a packet successfully but it may still not be 100% successful. If you want 100% successful delivery utilise websockets (you will need to implement client on WLED side yourself). Be mindful that websockets consume precious RAM and WLED currently only supports up to 8 clients on ESP32 (3 on ESP8266). Please re-base your PR for 0_14 branch to prevent any conflicts with upcoming version. |
* Update * update readme file * readme update * Update readme.md * Update readme.md * Update readme.md * Update readme.md * Update platformio.ini
Add a configurable number of retries to the UDP WLED sync function.
|
@blazoncek I went through and rebased my branch and pull request and performed those tests you suggested. I do not see performance hit between 1 UDP message or 200 UDP sync messages. I would expect the performance hit to be minimal as the sync messages are only set when changing color and effect related settings and not a constant sync (at least to my understanding of the code). The only minor issue I noticed is that separate WLED devices may not be perfectly synced. I believe for most use cases of WLED sync not perfectly synced is still better than not displaying the correct color/effect (at least it is in mine). EDIT: |
blazoncek
left a comment
There was a problem hiding this comment.
Other than what I commented I agree with the PR.
@Aircoookie I propose to merge it into 0_14 after the changes are made.
Change default number of retries Fix migration from old settings
blazoncek
left a comment
There was a problem hiding this comment.
Please change to t>=0 and it is approved.
|
@blazoncek / @Aircoookie Do I need to do anything to resolve the conflicting autogenerated file? |
|
pull updated 0_14 branch or remove generated .h file |
# Conflicts: # wled00/html_settings.h
* Release of WLED v0.13.3 * Fixed a type in the file name (wled#2781) * Fixed the dependency (wled#2782) * Usermod Wordclock update to use an alternatve wiring pattern (wled#2757) * Update * update readme file * readme update * Update readme.md * Update readme.md * Update readme.md * Update readme.md * Update platformio.ini * Add number of UDP retries Add a configurable number of retries to the UDP WLED sync function. * Add migration from old eeprom settings * Revert some accidental carry overs * Correct issues found in pull request Change default number of retries Fix migration from old settings * Make the minimum number of retries 0 * Import notify twice setting Co-authored-by: cschwinne <[email protected]> Co-authored-by: Soren Singh Dary <[email protected]> Co-authored-by: Patrick <[email protected]>
Add sync option for number of UDP messages to improve WLED sync reliability. Value can be configured from 1 - 255 messages. Anywhere between 5 and 10 messages seems to create a reliable, well synced system on my network. This takes the place of the notify twice option.
This should help mitigate Issue #2112