New Extension for DMX Binding: Output via Artnet

580 views
Skip to first unread message

Rainer Ostendorf

unread,
Oct 6, 2013, 11:56:23 AM10/6/13
to ope...@googlegroups.com
Hi everybody,

i wrote a small extension for the DMX binding, implementing a connection to lighting hardware via ArtNet protocol (Artnet is basically DMX512 over IP).
It utilizes the artnet4j library (https://code.google.com/p/artnet4j/) for the Artnet specific stuff. I am using it for controlling our 7x10 RGB pixels couchtable and four additional high power LED in the cupboard via OpenHAB. 

The extension is tested with the current 1.4.0-SNAPSHOT. Make sure you have only one of the dmx.<extension>.jar in the addons folder.
Configuration is currently limited to providing IP addresses via the configuration entry like this:

dmx:connection=192.168.2.151

or for two devices:

dmx:connection=192.168.2.151,192.168.2.201 and so on.

For controlling my 70 pixels (=210 values for RGB) i created an item as follows:

Color RGB_Couchtable "Couchtable" <colorwheel> (gWohnzimmer) {dmx="CHANNEL[1/210:200]"}

Find attached the zipped Java-Project, including a compiled .jar in the target folder.

Maybe someone can have a look at the code and integrate it into the official project? I'm usually writing C/C++ in context of embedded systems,

so i'm pretty sure my code will not meet the java coding standards as i had a hard time figuring out all the Java/OSGI/Maven details :)


Rainer


org.openhab.binding.dmx.artnet.zip

Davy Vanherbergen

unread,
Oct 6, 2013, 1:34:02 PM10/6/13
to ope...@googlegroups.com
Very nice!  I would be happy to check and integrate this binding for you.  Which artnet-dmx devices are you using? 
And do you have a picture of that couch table ;-) ?

Kind regards,

Davy

Rainer Ostendorf

unread,
Oct 6, 2013, 1:46:32 PM10/6/13
to ope...@googlegroups.com
Hi Davy,

thanks for taking care of the integration. I'll try to make an updated video the next days, here is a video of an early version of the table: http://www.youtube.com/watch?v=-ZEpcBto1l4

The artnet receiver is a homebrew microcontroller based on the AVR Evaboard NetIO from pollin.de (http://www.pollin.de/shop/dt/Nzg4OTgxOTk-/Bausaetze_Module/Bausaetze/Bausatz_Add_on_fuer_AVR_NET_IO.html). The pixels are arranged as 10 serial bitshift registers with a RGB PWM controller on each of them.

Currently i'm using it as an energy monitor - the four edges turn green to red according to the overall power consumption :)


Rainer

Davy Vanherbergen

unread,
Oct 6, 2013, 2:04:41 PM10/6/13
to ope...@googlegroups.com
Wow. I never planned on putting a coffee table in my living room, but I might have to rethink that now :-)

Davy

Kai Kreuzer

unread,
Oct 8, 2013, 4:12:03 AM10/8/13
to ope...@googlegroups.com
Hi Rainer,

Now this is really a cool table - would love to have one of like this as well! Looking very much forward to your demo video with openHAB :-)

Find attached the zipped Java-Project, including a compiled .jar in the target folder. Maybe someone can have a look at the code and integrate it into the official project?

The usual process here is creating a Github pull request, see https://code.google.com/p/openhab/wiki/HowToContribute.
It's probably then best if Davy (the author of the DMX binding) could have a look at your code and see how it could be best incorporated.

Best regards,
Kai

Davy Vanherbergen

unread,
Oct 8, 2013, 6:45:57 PM10/8/13
to ope...@googlegroups.com
Hi Rainer,

Your code looks OK to me.  I've made some minor changes which you can see here : I added your name as the author and changed some comments from // to /** style comments.
If those changes are OK for you, I'll create a new pull request for them.

Kind regards,
Davy

Rainer Ostendorf

unread,
Oct 9, 2013, 1:40:43 AM10/9/13
to ope...@googlegroups.com
Hi Davy,

looks good, thank you! So for next time i'll try to create a pull-request on my own and have a look at javadoc and the contribution guidelines.

Best regards,
Rainer
Reply all
Reply to author
Forward
0 new messages