Skip to content

Next universe overflow and Art-Net DMX start address - #2607

Merged
Aircoookie merged 2 commits into
wled:mainfrom
4lloyd:next-universe-fix
Apr 3, 2022
Merged

Aircoookie merged 2 commits into
wled:mainfrom
4lloyd:next-universe-fix

Conversation

@4lloyd

@4lloyd 4lloyd commented Mar 30, 2022

Copy link
Copy Markdown
Contributor

This PR fixes two things:

  1. LEDs overflowing to the next universe could cause some strange fast blinking behaviour on some LEDs near the overflow point. This was caused by differences in the calculations between the first universe and the universes after that. Because of this some LED were controlled by multiple universes at once.
  2. When using Art-Net the DMX channel was offset by +1 and the last channel of a LED at the end of the first universe could therefore not always be used. The cause of this is that the DMX data in an Art-Net packet starts at 0 and in E1.31 at 1.

Both problems are only visible when using another DMX start address then the first one.

This change is a breaking change because from now on the DMX start address for Art-Net starts at 1 instead of 0. This should be the expected behaviour when using Art-Net (or any DMX device) as far as I know. This makes the working of the DMX start address in Art-Net the same as in E1.31. Nothing has changed for when the E1.31 protocol is used. Old configurations using Art-Net and DMX start address 0 still work the same.

I have tested the code in multiple ways, but I don’t have a LED strip long enough to test multiple universe overflows.

@pk88888

pk88888 commented Apr 1, 2022

Copy link
Copy Markdown

Nice! i can try to test it during next few days

@pk88888

pk88888 commented Apr 3, 2022

Copy link
Copy Markdown

Ive just checked it on 5 universes and it works! Great, now we can use more than one universe via artnet. Thank you!

@Aircoookie
Aircoookie merged commit 8b79a97 into wled:main Apr 3, 2022
@4lloyd 4lloyd mentioned this pull request Apr 4, 2022
@blazoncek

Copy link
Copy Markdown
Contributor

Unfortunately this PR broke main segment sync by reverting if (realtimeOverride && !(realtimeMode && useMainSegmentOnly)) return;

@Aircoookie

Copy link
Copy Markdown
Member

@blazoncek check 958cd35, I've simplified these checks again so that override also works in main segment mode :)

1 similar comment
@Aircoookie

Copy link
Copy Markdown
Member

@blazoncek check 958cd35, I've simplified these checks again so that override also works in main segment mode :)

@blazoncek

Copy link
Copy Markdown
Contributor

I don't seem to get it how this behaves but I will trust you since I have no way of testing Art-Net or E1.31. 😄
You can undo last commit (in e131.cpp) in "blazoncek-merge-working".

@lordjaxom

Copy link
Copy Markdown
Contributor

I was just doing my first experiments with DMX on a WLED controller controlling a RGBW LED matrix and was running into exactly this issue. Last LED of first universe was blinking and the second universe was one LED short.

Compiled main branch from scratch and now it works, thank you 👍

aenertia pushed a commit to aenertia/WLED that referenced this pull request Aug 18, 2026
* Improve calculation LEDs in next universe

* Fix Art-Net DMX start address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants