How exactly do I set the DMX universe of an Art-Net node?

1,181 views
Skip to first unread message

p3k

unread,
Oct 8, 2010, 2:29:35 PM10/8/10
to open-lighting
Hi again

I got a little bit confused with the methods to set the DMX universe
with libartnet; could anyone please tell me the correct way to do
this, e.g. for setting up a node with ID 78 for universe 3?

Btw. here are the iPads in a test run blinking (almost) in sync using
libartnet with a proprietary lighting software:

http://www.youtube.com/watch?v=klmCjbBTymY&feature=player_embedded

Cheers,
tobi

Simon Newton

unread,
Oct 8, 2010, 8:53:22 PM10/8/10
to open-l...@googlegroups.com
On Sat, Oct 9, 2010 at 2:29 AM, p3k <inte...@p3k.org> wrote:
> Hi again
>
> I got a little bit confused with the methods to set the DMX universe
> with libartnet; could anyone please tell me the correct way to do
> this, e.g. for setting up a node with ID 78 for universe 3?

I'm not quite sure what you're asking here. ArtNet universe addresses
have two parts, a 'subnet' value which is the upper 4 bits (0-15) and
a universe value which is the lower 4 bits (0-15)

In general you'll want to do the following:

int port_id = 0; // first port
uint8_t universe = 0x03; // subnet 0, universe 3

artnet_set_subnet_addr(node, universe >> 4)
artnet_set_port_type(node, port_id, ARTNET_ENABLE_OUTPUT, ARTNET_PORT_DMX)
artnet_set_port_addr(node, port_id, ARTNET_OUTPUT_PORT, universe & 0x0F);


Simon

>
> Btw. here are the iPads in a test run blinking (almost) in sync using
> libartnet with a proprietary lighting software:

Nice, why are some of them delayed?

Simon

> http://www.youtube.com/watch?v=klmCjbBTymY&feature=player_embedded
>
> Cheers,
> tobi
>
> --
> open-l...@googlegroups.com  /  http://groups.google.com/group/open-lighting
> To unsubscribe email open-lightin...@googlegroups.com
>

p3k

unread,
Oct 9, 2010, 6:25:17 AM10/9/10
to open-lighting
> I'm not quite sure what you're asking here. ArtNet universe addresses
> have two parts, a 'subnet' value which is the upper 4 bits (0-15) and
> a universe value which is the lower 4 bits (0-15)

Well, all information I get from our “wizard” at the lighting software
is the Art-Net ID and the universe number. Actually, that is also the
number I enter with some of the OLA tools (e.g. ola_dmxconsole -u 3).

Maybe I am not fully aware of where the subnet value fits in... any
pointers to a good explanation?

> int port_id = 0; // first port
> uint8_t universe = 0x03;  // subnet 0, universe 3
>
> artnet_set_subnet_addr(node, universe >> 4)
> artnet_set_port_type(node, port_id, ARTNET_ENABLE_OUTPUT, ARTNET_PORT_DMX)
> artnet_set_port_addr(node, port_id, ARTNET_OUTPUT_PORT, universe & 0x0F);

Okay, I did this, but when I run the program it still receives the
data sent to another universe (the first one) and I cannot control it
with a DMX console running on universe 3.

Are my wires crossed somehow?

Cheers,
tobi


Simon Newton

unread,
Oct 9, 2010, 10:04:14 PM10/9/10
to open-l...@googlegroups.com
On Sat, Oct 9, 2010 at 6:25 PM, p3k <inte...@p3k.org> wrote:
>> I'm not quite sure what you're asking here. ArtNet universe addresses
>> have two parts, a 'subnet' value which is the upper 4 bits (0-15) and
>> a universe value which is the lower 4 bits (0-15)
>
> Well, all information I get from our “wizard” at the lighting software
> is the Art-Net ID and the universe number. Actually, that is also the
> number I enter with some of the OLA tools (e.g. ola_dmxconsole -u 3).

I'm guessing that ArtNet ID means subnet ID then.

>
> Maybe I am not fully aware of where the subnet value fits in... any
> pointers to a good explanation?

http://www.artisticlicence.com/WebSiteMaster/User%20Guides/art-net.pdf

>
>> int port_id = 0; // first port
>> uint8_t universe = 0x03;  // subnet 0, universe 3
>>
>> artnet_set_subnet_addr(node, universe >> 4)
>> artnet_set_port_type(node, port_id, ARTNET_ENABLE_OUTPUT, ARTNET_PORT_DMX)
>> artnet_set_port_addr(node, port_id, ARTNET_OUTPUT_PORT, universe & 0x0F);
>
> Okay, I did this, but when I run the program it still receives the
> data sent to another universe (the first one) and I cannot control it
> with a DMX console running on universe 3.
>
> Are my wires crossed somehow?

I'd take a tcpump and look at the ArtNet packets.

Simon

Reply all
Reply to author
Forward
0 new messages