javadmx512

Controlling Lights with Enttec Open Dmx USB in java?


I am starting a project in java where I want to control a Lights from my computer using a Terminal Window. I am using a piece of hardware called an Enttec Open DMX USB Converter. So I am writing this question, to ask the community if anyone has an idea of how to send data to this Enttec device to control lights. Where would I start? I already know how to write terminal command aliases and execute .jar files so I don't need help with that.

What I have tried so far is to look at an open source project called "Open Lighting Project" that I know can control the device and learn how it works and how can possibly make my program. But I got stuck looking at the java code folder in the Github Repository, trying to find a DmxData.java class that it says OlaClient.java is importing. So I am very confused where it is getting it from.

I have also tried looking at the developer tools on the Enttec Website, and they don't work. More Specifically I looked at the file package called Java Wrapper, and tried running the test and kept failing every time with different errors.

These are the links:

Enttec Device: https://www.enttec.com/product/controls/dmx-usb-interfaces/open-dmx-usb/

Open Lighting Architecture Github Repository: https://github.com/OpenLightingProject/ola

Any help would be appreciated!

Thanks!


Solution

  • I ported a DmxPy to Java a little over a year ago. It worked for my needs with an ENTEC DMX USB Pro. See if this works for you.

    Link: https://github.com/trevordavies095/DmxJava

    Instantiate: DmxJava dmx = new DmxJava();

    Set a DMX address's value: dmx.setChannel(dmx_address, value);

    DMX packet to be sent byte[] dmx_packet = dmx.render(); You can now send the packet to the ENTTEC using whatever serial library you are using.