I was searching the Vixen website but couldn't find this information so I thought I would ask here. Is the protocol for the generic serial device published any where? For fun I want to make my own controller. I can read other code and figure out what is being sent but a protocol document would be awesome. If anyone has information I would appreciate it.
First year getting into the hobby hoping for many years to come. My wife asked for this and has probably created a monster!
Re: Vixen 3 Protocol
I suggest you look at one of the other implementations that have been previously discussed. I STRONGLY suggest you use a protocol like Renatd which also has examples AND is explicitly self aligning to the data stream.
Re: Vixen 3 Protocol
It's just a streaming series of bytes where each byte represents the 8 bit channel value for the channel at any given time. There are optional provisions to append headers and footers of your choosing.
This is considered a deprecated protocol and is not recommended for new designs. Consider using DMX or Renard instead.
Re: Vixen 3 Protocol
I decided to run with the Renard protocol. I can see where my Arduino is being sent lots of data over the serial line, but no data is arriving in the buffer of the Arduino.
I found another project with the following comment in the code:
* FYI the Vixen Renard plugin does something funny to the reset
* line on the built in USB serial port on Arduino, which
* is why I used an external FTDI adapter
Anyone know if there is a fix to this? I expect I am seeing the same thing?
If i user the Generic Serial in Vixen i receive proper data to the Arduino.
Re: Vixen 3 Protocol
Apathie wrote:I decided to run with the Renard protocol. I can see where my Arduino is being sent lots of data over the serial line, but no data is arriving in the buffer of the Arduino.I found another project with the following comment in the code:
* FYI the Vixen Renard plugin does something funny to the reset
* line on the built in USB serial port on Arduino, which
* is why I used an external FTDI adapterAnyone know if there is a fix to this? I expect I am seeing the same thing?
If i user the Generic Serial in Vixen i receive proper data to the Arduino.
I'm not sure where you're quoting from, but there's been no reported problems with the renard module in many years. The use of the word "plugin" implies that it's a reference to the legacy Vixen 2.1 or 2.5. They were the last versions that use plugins for output. All of the output types in Vixen 3 forward are natively in the software, no plugins needed. I wouldn't suspect there's any problems with the Renard output in Vixen. It uses the standard windows serial port outputs. It would have no control over resetting the Arduino.
Your statement is a bit confusing that you can see lots of data being sent, but nothing is arriving in the buffer. How can you tell it's being sent if you're not seeing it arrive at the receive buffer?
There are LEDs on the serial receive pins of the Arduino that are constantly flashing when enabling Renard controller in vixen. But serial.available() in the Arduino never returns true. It almost feels like a config mismatch on the serial port settings. But I have double checked and every thing matches. Same baud rate 8N1
we typically don't get involved in developing hardware. But last time I checked, serial.available isn't a Boolean, it shouldn't return true. It returns a count of the bytes in the buffer. I suppose if true is defined as 1, then it would return true for just a moment when the first byte arrives.
Re: Vixen 3 Protocol
Apathie wrote:I decided to run with the Renard protocol. I can see where my Arduino is being sent lots of data over the serial line, but no data is arriving in the buffer of the Arduino.I found another project with the following comment in the code:
* FYI the Vixen Renard plugin does something funny to the reset
* line on the built in USB serial port on Arduino, which
* is why I used an external FTDI adapterAnyone know if there is a fix to this? I expect I am seeing the same thing?
If i user the Generic Serial in Vixen i receive proper data to the Arduino.
I saw that comment in Bill Porter's Arduino-Renard code on GitHub.
Re: Vixen 3 Protocol
Apathie wrote:I decided to run with the Renard protocol. I can see where my Arduino is being sent lots of data over the serial line, but no data is arriving in the buffer of the Arduino.I found another project with the following comment in the code:
* FYI the Vixen Renard plugin does something funny to the reset
* line on the built in USB serial port on Arduino, which
* is why I used an external FTDI adapterAnyone know if there is a fix to this? I expect I am seeing the same thing?
If i user the Generic Serial in Vixen i receive proper data to the Arduino.
This refers to the plugin on your PC. You indicated you are seeing lots of data being sent to the Arduino. That indicates the USB adapter is working. The fact you are not seeing data in your buffer indcates setp issues on our Arduino.
In an effort to track down the problem i installed xLights. I was able to instantly (well after i spent some time figuring out how to use it) control my LED's when creating a Renard Controller with my Arduino. Same Arduino Code, with Vixen configured does not work.
Thanks to those for suggesting the Renard Protocol.
@jchuchla you were correct about .available() i was misusing it. BTW same Apathie that created VIX-2347
