woutgg / ofxGenericDmx

an OpenFrameworks addon currently usable for both Enttec as well as generic DMX devices based on the FTDI USB chip
http://github.com/woutgg/ofxGenericDmx
MIT License
30 stars 8 forks source link

This add-on is built to control any DMX device, including the Enttec DMX USB PRO and 'simpler' devices. Eventually it should work on all systems supported by openFrameworks itself. For now OSX and GNU/Linux are supported, although preliminary support for Windows can be found in the w32-port branch on GitHub.

CREDITS

This add-on is based on the basic structure of the DMX512 add-on by Chris O'Shea and also uses code from that add-on for the USB PRO protocol. As second reference, the Enttec USB PRO example was used (see below in the links section).

OS SPECIFIC NOTES

OSX

Linux

LibFTDI

On GNU/Linux you just need to install the libFTDI library. e.g. on Ubuntu:

sudo apt-get install libftdi-dev

Udev rules

By default, DMX controllers require root permissions; this can be fixed by using udev rules. An example rules file for the Enttec DMX USB PRO has been included (scripts/scripts/75-permissions-enttec.rules). Copy this file to /etc/udev/rules.d to use it.

To install the udev rules:

sudo cp 75-permissions-enttec.rules /etc/udev/rules.d/

To reload the udev rules to make them active without rebooting:

sudo udevadm control --reload-rules && sudo udevadm trigger 

Custom Projects

If you are creating your own project, you need to add some extra configuration for libftdi

If using a Makefile, add this to config.make:

PROJECT_LDFLAGS=-Wl,-rpath=./libs
PROJECT_LDFLAGS+=-lftdi

If using qtCreator, add this to the .qbs file:

of.staticLibraries: ["ftdi"]

Windows

MISCELLANEOUS NOTES

LICENSE

This add-on is made available under the MIT license, see the file LICENSE for details. Additionally, it uses the libftdi and libusbx libraries, both released under the LGPL 2.0 license.

REFERENCES

TODO

see TODO file