help with code plea...
 
Notifications
Clear all

help with code please

27 Posts
8 Users
0 Reactions
9,306 Views
Posts: 152
(@jetty)
Estimable Member
Joined: 14 years ago
LightUp wrote:I'm not sure where this conversation is going.
We need a serial communication line of some kind. If "generic serial" doesn't provide the "commercial grade", Renard is "lossy" and the "header/footer" is too "skoppy" then what alternative can we use tomorrow?

I was correcting an error. victor_pv was claiming that Renard wasn't commercial grade because it didn't contain a CRC.

My point was that it doesn't require one because it's designed correctly. I.E. it's designed to lose frames or have corrupted frames without causing problems to subsequent frames.

To clarify, loseless would need a CRC, lossy(which Renard is) does not. Renard is the best choice IMHO for these purposes.


Reply
Posts: 164
(@victor-pv)
Estimable Member
Joined: 12 years ago
jetty wrote:I was correcting an error. victor_pv was claiming that Renard wasn't commercial grade because it didn't contain a CRC.

My point was that it doesn't require one because it's designed correctly. I.E. it's designed to lose frames or have corrupted frames without causing problems to subsequent frames.

To clarify, loseless would need a CRC, lossy(which Renard is) does not. Renard is the best choice IMHO for these purposes.

I was not claiming that is not commercial grade because of that. I was saying that if I was trying to do something commercial, I would probably plan to have CRC, and that way detect which frames are not good and drop them, just what I would like, not what is needed or best. The comment about not being commercial grade was on Generic Serial.

As I explained a couple of posts back, I believe that having a header of two bytes in generic serial already provides a fairly good chance of resynchronizing quickly as far as you are not losing a ton of bytes. I don't know much about Renard, so I wasn't commenting on it in particular, I was just talking in general.

If Renard is good enough and better than generic serial, perhaps someone that knows the in and outs of renard can write a simple sketch to be used with Arduino and relay/SSR boards for on and off to help the newbies that show up with those components already at home and asking for a sketch.


Reply
Posts: 8
(@supermariojr)
Active Member
Joined: 12 years ago

If Renard is good enough and better than generic serial, perhaps someone that knows the in and outs of renard can write a simple sketch to be used with Arduino and relay/SSR boards for on and off to help the newbies that show up with those components already at home and asking for a sketch.

rIGHT ON THOSE RENARDS DEVELOPER PLEASE DO SO FOR THE NEWBIES LIKE ME....THANKS


Reply
jchuchla
Posts: 8698
(@jchuchla)
Illustrious Member
Joined: 15 years ago

I believe Jetty's foxcub project is exactly that. He reads Renard and controls AC lights in an arduino sketch.

--Jon Chuchla--

Sent from my iPhone using Tapatalk


Reply
Posts: 152
(@jetty)
Estimable Member
Joined: 14 years ago
jchuchla wrote:I believe Jetty's foxcub project is exactly that. He reads Renard and controls AC lights in an arduino sketch.

That's correct, 16 channels 256 levels dimming with zero crossing and soak tested for 3 christmases.

If the user insists on a regular mechanical relay board (e.g. Sainsmart) (which is not advised in general for christmas lights, see other threads on it), then you will want to
switch off dimming in FoxCub. You can either do this by, making sure Vixen only sends full on and full off codes.

The code is designed for 328/328p based Arduinos or Arduino Like devices. If you want to run it on a Mega, then you'll need to change:
#define SSR_PORT_INDEX_.....
#define SSR_PORT_BIT_CH0.....
to match the port configuration (although Mega isn't the most cost effective)


Reply
Posts: 2541
(@lightup)
Famed Member
Joined: 17 years ago
jetty wrote:... You can either do this by, making sure Vixen only sends full on and full off codes.....

Where is the other "or" method? 🙂


Reply
Posts: 152
(@jetty)
Estimable Member
Joined: 14 years ago
LightUp wrote:Where is the other "or" method? 🙂

Oops, meant to delete that. There will be an "or" method when I get a few cycles.


Reply
Page 3 / 3
Share: