What is the protocol for version 1 and version 2 for renard communication?
I don't think I've seen anything on Protocol 2, it probably was a short lived test.
The posted info on Protocol 1 is here:
http://doityourselfchristmas.com/wiki/index.php?title=Renard#Protocol
Yup.
So the original protocol of 7E 80 7E 81 is no longer used? this is what vixen 1.1 output.
The controllers will accept either format (multiple short packets, or one long packet). The original sequence of short packets in the plugin was the unintended result of a mis-communication on my part. The long packet uses fewer bytes of the data line, allowing more channels for a given baud-rate/refresh-interval combination.
Which version was the miscommunication on and what should it be?
Also, in version 2, the data format is 00 80 ?? data 00 81 ?? data ......
What is the significance of the byte i have above as ??
I also noticed in version 2, that an intensity of 0 (and maybe 1) is transmitted as FF. What is the significance of that?
Sorry for the million questions, but i need to adapt my custom hardware running the renard protocol to match one of these since vixen version 1.1 output a different message stream .
The mis-communication was on which type of packet should be transmitted by vixen. The controllers would accept either form (long or short), since they both fit the definition that I had in mind. The protocol was set up so that the plugin could either transmit one long packet (for best utilization of the line when everything changes), or lots of small packets (so that it could send only the data that was needed). The plugin is currently stateless (and likely to remain that way), so the only format that makes much sense is the long one.
The ?? byte is a non-zero value which, when added to each of the next eight bytes, results in the intended intensity level in those bytes. The plugin looks at each group of eight bytes (i.e. the bytes intended for the eight channels on one PIC), and picks a non-zero value to subtract from each of the eight channel values so that none of the nine bytes is zero. This means that nine bytes are transmitted for each eight dimmer values.
I don't really recommend using the Version 2 Protocol. Nobody else is using it, so there is no testing of this protocol implementation for each new version of Vixen, so it is possible that errors will creep in.
