Skip to content

Some Art-Net improvements - #2619

Closed
4lloyd wants to merge 2 commits into
wled:0_14from
4lloyd:realtime-universes
Closed

4lloyd wants to merge 2 commits into
wled:0_14from
4lloyd:realtime-universes

Conversation

@4lloyd

@4lloyd 4lloyd commented Apr 4, 2022

Copy link
Copy Markdown
Contributor

This PR adds some improvements to the Art-Net processing:

  1. Better checks if the received universes and LED data are in use. Now, WLED should only listen and switch to real-time mode when the universe is actually in use.
  2. Corrected calculations when using legacy DMX start address 0.
  3. Changed HMTL to prevent DMX start address 0.
  4. Checking brightness against actual brightness. Making brightness changing the same for all modes with dimmers (except for effect mode). This also fixes an issue that the brightness would not change to the Art-Net value when changing between: Art-Net -> web interface (manual brightness change) -> Art-Net.
  5. Added some mitigations to prevent possible integer underflow.
  6. Added some small changes to make the code better readable.

@pk88888

pk88888 commented Apr 4, 2022

Copy link
Copy Markdown

Hi! I noticed that the order of channels sent in the case of ArtNet is different compared to standard effects. The swap occurs between the R and G channels. I don't know if it was like that before or after your changes. I have no way to check it right now.

@4lloyd

4lloyd commented Apr 4, 2022

Copy link
Copy Markdown
Contributor Author

Hi! I did some extra tests but couldn't find anything wrong with the R and G channels.

In #2607 the first DMX start address was changed from 0 to 1. Maybe it has to do something with that?

If you can tell me your test configuration, I can try to replicate the problem.

@pk88888

pk88888 commented Apr 4, 2022

Copy link
Copy Markdown

I will check it again tomorrow and let you know

@4lloyd

4lloyd commented Apr 11, 2022

Copy link
Copy Markdown
Contributor Author

@pk88888 Did you already have some time to check the R and G channel behaviour?

@pk88888

pk88888 commented Apr 21, 2022

Copy link
Copy Markdown

@pk88888 Did you already have some time to check the R and G channel behaviour?

Sorry for such a delay ... I have already checked what it is about and this problem with the channel order does not result from your changes, but from the general order of channels in WLED.

If I have the GRB order selected in the WLED settings, my luminaire shines well and each color is displayed correctly.

At the moment when the driver gets data from Artnet or sACN, I have to set the RGB order in the madmapper or resolume so that the luminaire shines properly.

@erhan- erhan- mentioned this pull request Sep 13, 2022
@stale

stale Bot commented Sep 21, 2022

Copy link
Copy Markdown

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 Sep 21, 2022
@Aircoookie
Aircoookie changed the base branch from main to 0_14 September 22, 2022 15:31
@stale stale Bot removed the stale This issue will be closed soon because of prolonged inactivity label Sep 22, 2022
Aircoookie added a commit that referenced this pull request Sep 22, 2022
* Art-Net improvements

* Fix brightness level

* Update cfg.cpp

Co-authored-by: 4lloyd <[email protected]>
@Aircoookie

Copy link
Copy Markdown
Member

Merged in #2794 :) The long delay was due to me being uncertain whether prohibiting start address 0 would be a good change, however line 120 of e131.cpp takes care of differences between E1.31 and Art-Net just fine.

@Aircoookie Aircoookie closed this Sep 22, 2022
aenertia pushed a commit to aenertia/WLED that referenced this pull request Aug 18, 2026
* Art-Net improvements

* Fix brightness level

* Update cfg.cpp

Co-authored-by: 4lloyd <[email protected]>
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.

3 participants