DMX Scene Setter (Art Net)

MDAR edited this page Dec 1, 2016 · 5 revisions
Clone this wiki locally

Please take note that this is NOT a way to get OpenRemote to output an ART-Net stream, that is a very specific and processor hungry process.

This article details a technique specifically using OpenRemote to send (low speed) HTTP requests to an Art-Net to 6 universe DMX or SPi adaptor made by Yury of Electron Design http://www.ebay.co.uk/usr/jury_shef, with the latest firmware (Oct 2016) to control up to 512 single channels or 170 pixels on each of the 6 universes that are available on each box. This gives a capacity of 1020 individual pixels per box (or 3072 individual DMX channels).

If you are looking for fancy cross fades, chases or sound to light effects, then your best option is to use a separate machine to run software like FreeStyler X2 or MagicQ Pro, which both accept HTTP requests to trigger chases and full scenes, allowing OpenRemote to trigger a chase, its speed and other attributes.

http://www.ebay.co.uk/itm/DMX-512-controller-Art-Net-sACN-E1-31-6-output-input-ports-ArtNet-Ethernet-/321901687165

Electron Design - ARTNET6UN-DMX. Electron Desingn - ARTNET6UN-DMX

http://www.ebay.co.uk/itm/DMX-512-Art-Net-sACN-E1-31-to-SK6812-WS2812-WS2801-led-ArtNet-6-universes-/321898219369

Electron Design - AN6USPIO Electron Desingn - AN6USPIO


The direct commands that these boxes support when in HTTP mode are

for pixels:

http://2.0.0.2/pixel.api?uni=0&ordercolour=RGB&onecolour=ffffff&start=1&end=1 http://2.0.0.2/pixel.api?uni=1&ordercolour=BGR&onecolour=ffffff&start=1&end=20 http://2.0.0.2/pixel.api?uni=2&ordercolour=BRG&onecolour=ff0000&start=6&end=50

and for channels:

http://2.0.0.2/channel.api?uni=0&ordercolour=rgb&onecolour=0000aa&start=1&end=512


"uni" - number of universe

Net of controller must be =0


"ordercolour"

to help translate an OpenRemote colour picker HEX output for use with differently wired PIXEL chips, this command details how the chip is expecting the command.

Options are:-

ordercolour=RGB ordercolour=BGR ordercolour=BRG

For example,

OpenRemote colour picker will send out a HEX value structured as RGB, whereas some SPi chips output colours are BGR

OpenRemote colour picker RGB output might be 4488FF and the chip needs to see this as FF8844

this command will get the correct colour from the pixel

http://2.0.0.2/pixel.api?uni=0&ordercolour=BGR&onecolour=4488FF&start=1&end=20


"onecolour"

  1. pixel.api - colour as hex, order - 3.2.1(R.G.B.)

Example: 3aff00 - R=0x3a;G=0xff;B=0x00;

  1. channel.api - channel data;

Example:

"3a" or "00003a" channel = 0x3a(58)


"start"

  1. pixel.api - number of start pixel

it should be - 1...170

  1. channel.api - number of start channel

it should be - 1...512

Start value must always be less than the end value. start<=end


"end"

  1. pixel.api - number of last pixel

it should be - 1...170

  1. channel.api - number of last channel

it should be - 1...512

End value must always be great or equal to the start value. start<=end


Examples:

Set the first pixel as 100% red.

http://2.0.0.2/pixel.api?uni=0&ordercolour=RGB&onecolour=ff0000&start=1&end=1

Set the first pixel as 100% green.

http://2.0.0.2/pixel.api?uni=0&ordercolour=RGB&onecolour=00ff00&start=1&end=1

Set the first pixel as 100% blue.

http://2.0.0.2/pixel.api?uni=0&ordercolour=RGB&onecolour=0000ff&start=1&end=1

Set the first pixel to OFF (Or RGB = 0)

http://2.0.0.2/pixel.api?uni=0&ordercolour=RGB&onecolour=000000&start=1&end=1

Set the first channel as 100%.

http://2.0.0.2/channel.api?uni=0&ordercolour=RGB&onecolour=0000ff&start=1&end=1

Set the first channel as 50%.

http://2.0.0.2/channel.api?uni=0&ordercolour=RGB&onecolour=000088&start=1&end=1

Set the first channel as 0%.

http://2.0.0.2/channel.api?uni=0&ordercolour=RGB&onecolour=000000&start=1&end=1


The Art-Net boxes are NOT DHCP compatible, as is the standard with Art-Net devices.

However, they can be set to your normal subnet range when using low speed HTTP mode. Please set a static address on your PC to 2.0.0.100 and use a browser to access 2.0.0.2 where you will find the admin site for these boxes.

When in HTTP mode, there in no need for a virtual IP address to access universes 5 & 6. Simply change the Uni value in the HTTP command accordingly.

The only changes you will need to make to these boxes are on the first page of the admin interface.

Operational mode to HTTP IP address, subnet range, DNS server address.

Save the changes and reboot the device.

Don't forget to set your PC back to DCHP mode.


Now the magic within OpenRemote.

Simply create a HTTP command with the following line in the URL (nothing else is required).

(assuming your box's IP address is 192.168.0.100)

http://192.168.0.100/pixel.api?uni=0&ordercolour=RGB&onecolour=${param}&start=1&end=170

On your User Interface panel, place a colour picker and set the command to the the one you just created.

You will now be able to use your colour picker to set the DMX or SPi output for Universe 0 on the adaptor box.

You can create multiple commands with different pixel ranges for assigning to different colour pickers.

Or, if you can do the magic in rules, you could assign the colour picker value to an "In-Memory" command then have a rule to read each change and push it into multiple HTTP commands.

I am trying to work out if a set of rules could be created to calculate a simple slow sequence or chase. [Oct 2016, using an interval timer on a Velbus network as a trigger, a rule can create a random number and inject it into the command]

The only points worth noting are:-

There was an error in the OpenRemote controller that crashed the Art-net boxes because the HTTP request ports were not closed after each command. Rainer corrected this error in September 2016. Please ensure you are using the latest build or OpenRemote.

You can use the black edge to the normal colour picker to "switch off" the DMX or SPi output. You could use a colour picker with a black image, or a separate HTTP command to set the outputs to 000000