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
>
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