A Processing sketch that listens to ArtNet DMX Input packets and displays the values of the 6 first channels as a graph bar.
Uses the Artnet4j-Elios library to listen to the ArtNet network. This library is a fork supporting DMX Input, based on ArtNet4j by Karsten Schmidt (toxilibs).
I wrote this small Processing application to:
- Test receiving DMX Input events from the 6 DMX channels of a Cameo Control6 DMX lightning console received as ArtNet datagrams thru Enttec's OpenDMX Ethernet (pictured above)
- Understand the content of ArtNet datagrams, namely how and when the DMX channel values were transmitted
- Check whether or not it was possible to have multiple applications reacting to the same DMX Input events.
That for the illustrated setup, the ArtNet datagrams were:
- either containing the values of the 6 DMX channels of the lightning console, being sent when changing the positions of the cursors
- or the values of all 512 DMX channels of the universe/subnet, being sent from time to time.
And that it was indeed possible to have multiple application listen to the same DMX Input events, provided the ArtNet4j library was patched to set the SO_REUSEADDR socket option of the ArtNetServer socket listener. Otherwise only one of the two apps would see and react to the ArtNet datagrams.
- Artnet4j installation Describes how to build Artnet4j JAR and configure Enttec's OpenDMX Ethernet