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

Send ArtnetPollReply for Art-Net proxy universe #3892

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

askask
Copy link

@askask askask commented Apr 9, 2024

This commit adds sending an ArtnetPollReply for the e131ProxyUniverse, which is currently not implemented.
It also checks that this universe doesn't overlap with the regular e131Universe, so no duplicate replies are sent.

@blazoncek
Copy link
Collaborator

@mxklb @troyhacks @netmindz as you have more DMX experience can you verify/review this PR, please?

@netmindz
Copy link
Collaborator

Is there an associated issue detailing what the issue is that this PR seeks to resolve?

It's hard to review a solution without a clear understanding of the intention

}

#ifdef WLED_ENABLE_DMX
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the ifdef?

Copy link
Contributor

@troyhacks troyhacks Apr 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, there's already code that is allowing Art-Net to be translated/proxied to DMX512, like some of the hardware boxes I've been using (Pknight, for example).

This (and the previous Art-Net PR) seems to extend this network-to-wired functionality. I think. 😁

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable e131ProxyUniverse used in the ifdef block is only available if WLED_ENABLE_DMX is defined (here)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah easier to see from my laptop than looking on my phone. I can see now that you are not moving any existing code into the ifdef, just adding extra which does depend on a value only present based on existing ifdef

@troyhacks
Copy link
Contributor

I think it's a feature enhancement.

With some of the existing WLED code we can automatically detect Art-Net endpoints, and this appears to extend this to the Art-Net proxy system.

I haven't used this functionality but I don't think there's any risk in adding it.

Art-Net users at this level are few, I think. I'm one of them and I'm still kinda like ... whut? 😁

@askask
Copy link
Author

askask commented Apr 14, 2024

I think it's a feature enhancement.

With some of the existing WLED code we can automatically detect Art-Net endpoints, and this appears to extend this to the Art-Net proxy system.

Yes, that's correct. This is a nice feature to get a quick overview (for example in QLC) of the available Art-Net nodes in the network and it would be useful if it also worked for proxied DMX outputs.

@troyhacks
Copy link
Contributor

I'm good with adding this. Thanks, @askask

@@ -346,7 +346,6 @@ void handleArtnetPollReply(IPAddress ipAddress) {

switch (DMXMode) {
case DMX_MODE_DISABLED:
return; // nothing to do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while this code may well be redundant, code cleanup in a PR that is meant to be adding new features muddies the waters a bit. Better to keep the PR to only the changes required for the task

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replaced the return with an if condition because otherwise the code I added wouldn't be called if DMX mode is set to disabled

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yes I follow what you are doing now

@mxklb
Copy link
Contributor

mxklb commented Apr 15, 2024

Looking good. I'm not using this artnet poll feature, so can't test it, but looks like an improvement for DMX proxy.

Save to merge

@@ -346,7 +346,6 @@ void handleArtnetPollReply(IPAddress ipAddress) {

switch (DMXMode) {
case DMX_MODE_DISABLED:
return; // nothing to do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yes I follow what you are doing now

@blazoncek blazoncek merged commit 8110259 into Aircoookie:0_15 Apr 28, 2024
18 checks passed
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