hiroyuki / ofxArtnet

ultra simple artnet addon for openFrameworks
MIT License
68 stars 31 forks source link

Change subnet/universe #5

Closed martialgallorini closed 11 years ago

martialgallorini commented 11 years ago

Hi,

Thanks a lot for this addon. Can you provide a way to change subnet / universe ? Is it easy to change or there are some code missing ?

thanks a lot

hiroyuki commented 11 years ago

Hello,

I think I should re-read my source. Sorry, I can't remember how i wrote. maybe I should change some code, I gonna work on that maybe in this or next week. Can't you wait until that time?

Or if you are in hurry, i will send you at least the point you should change until friday.

thanks,

martialgallorini commented 11 years ago

Hello,

Thanks for your answer. I found a solution as i was looking for something else in the C library LibArtnet. You fixed subnet / universe but you can change this by passing this argument in the setup() method. You actually do node.setup(ipAddress) but you can force subnet/universe by adding the argument like node.setup(ipAdress, portAddress) where portAddress is artnet subnet+universe. Exemple in hexadecimal 0xFD is subnet 16 (F) and universe 13 (D)

Another question : how do you change just one value in a DMX frame ? example i want to set channel 2 ox a DMX universe to 255 but without affecting other values of the 512 DMX channels.

Thanks a lot

hiroyuki commented 11 years ago

Hello,

Sorry for late reply. This is a little bit complex matter, because the manner of this library is not so simple. I gonna update this today and tomorrow.

About DMX frame, I think the DMX as itself is not supporting the way you told. because the DMX protocol is send the data from start to end. Partial data send is not supported by DMX protocol. But as far ArtNet, That maybe supported by some devices. the libArtnet is not supporting that way of communication though.

I will tell you when i finish the update.

thanks alot,

hiroyuki commented 11 years ago

Hello again, I found this addon is already working with other subnet and universe. The subnet and universe is automatically set when the artnet node is found. So I think you can use this whichever subnet and universe it is.

tell me if you have any request.

thanks,

hiroyuki commented 11 years ago

I updated the function which enable send dmx with subnet/universe param.

martialgallorini commented 11 years ago

Hey,

Thanks a lot for the update. Nice Addon.

hiroyuki commented 11 years ago

;-)