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

Support for Received DMX Packet (Label=5) #15

Open
Nexyll opened this issue Aug 30, 2020 · 1 comment
Open

Support for Received DMX Packet (Label=5) #15

Nexyll opened this issue Aug 30, 2020 · 1 comment

Comments

@Nexyll
Copy link

Nexyll commented Aug 30, 2020

Hi,

I'm building a DMX remote with an arduino. I found that a good part of labels were supported by the library. So it would be interesting to add the support of a DMX input to the existing code instead of starting from scratch.

Do you already have an idea of how to implement this feature?

@DaAwesomeP
Copy link
Owner

Hi there! I have not yet implemented DMX input.

Input is a bit more complicated to deal with. The main difficulty is getting a fixed message rate, but this is difficult to do when other things are running on the Arduino, and different Arduino-compatibles are faster/slower more powerful/less powerful than others. Ideally this would be handled in a separate thread so that it is not hindered at all by the user-programmed main loop. This is theoretically possible on the Teensy, but then the library also needs to be made thread-safe, which would be a bit of work.

I should also note that implementing label 5 is only the first part. You would also need to implement labels 8 and 9. A simple driver or program may only rely on label 5, but label 9 (sending only changes) is much more efficient. However I have not tested that so I honestly do not know how widely used it is.

What I am working on right now are some performance improvements, but unfortunately I don't currently have access to the hardware needed to finish that.

You are welcome to work on adding that and I will help you as much as I can. I would definitely review and merge a pull that adds DMX input if you are able to get it to work reliably.

May I ask what specifically you are trying to do? Depending on what software and platforms you are trying to control there may be a much easier way to do this with other protocols and adapting methods. If you would rather it be wireless then it would definitely be easier with sACN and something like an esp8266.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants