Renard Protocol Def...
 
Notifications
Clear all

Renard Protocol Definition

7 Posts
3 Users
0 Reactions
5,352 Views
Posts: 138
Topic starter
(@chris2879)
Reputable Member
Joined: 19 years ago
[#5007]

What is the protocol for version 1 and version 2 for renard communication?


6 Replies
RavingLunatic
Posts: 1502
(@ravinglunatic)
Noble Member
Joined: 19 years ago

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


Reply
Posts: 6728
(@p-short)
Illustrious Member
Joined: 20 years ago

Yup.


Reply
Posts: 138
Topic starter
(@chris2879)
Reputable Member
Joined: 19 years ago

So the original protocol of 7E 80 7E 81 is no longer used? this is what vixen 1.1 output.


Reply
Posts: 6728
(@p-short)
Illustrious Member
Joined: 20 years ago

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.


Reply
Posts: 138
Topic starter
(@chris2879)
Reputable Member
Joined: 19 years ago

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 .


Reply
Posts: 6728
(@p-short)
Illustrious Member
Joined: 20 years ago

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.


Reply
Share: