New Controller desi...
 
Notifications
Clear all

New Controller design

131 Posts
26 Users
0 Reactions
44.8 K Views
Posts: 3650
Topic starter
(@jhinkle)
Famed Member
Joined: 15 years ago

I've not committed the board yet. Bought some cases from Chris - I am awaiting their arrival to make sure mounting holes are placed properly.

I may very well switch to half-duplex - It would expand its use should people want to use it.

I have not looked at the DMX specification. I hate to say it can/will since doing so says it complies with the complete standard. I usually find most people may only use a subset of the standard - that may be very doable.

If you have something that defines what is needed in DMX Christmas lighting - I would love to see it.

Without seeing the DMX requirements - hard to say about keeping up with a 250Kbps data rate AND doing what is required. This cpu is not a pic. This is the same cpu we used (Chrysler) in our Instrument Clusters, Radios, 4-Wheel Drive controllers and more --- back in the early 2000's.

Once the hardware is done - the software and being flexible is easy.

I might not even use Vixen. While I'm waiting to solidify the hardware design - I writing my own sequencer.


Reply
Posts: 1076
 Zeph
(@zeph)
Noble Member
Joined: 15 years ago
JHinkle wrote:I've not committed the board yet. Bought some cases from Chris - I am awaiting their arrival to make sure mounting holes are placed properly.

I may very well switch to half-duplex - It would expand its use should people want to use it.

Is it as easy as some jumpers to make it half or full duplex?

JHinkle wrote:

I have not looked at the DMX specification. I hate to say it can/will since doing so says it complies with the complete standard. I usually find most people may only use a subset of the standard - that may be very doable.

If you have something that defines what is needed in DMX Christmas lighting - I would love to see it.

I haven't implemented it. Looking at something like http://www.erwinrol.com/index.php?stagecraft/dmx.php makes it look fairly simple logically. There is more info and links on the wiki: http://www.doityourselfchristmas.com/wiki/index.php?title=DMX

Wait for a long space and long mark, then read 513 8n2 async bytes. First byte is 0, rest are 512 channels/slots. Your board would have a configured start address - count and ignore slots until you get there and then use the next N slots as your data. (Or buffer the whole packet and fetch the ones you want).

In your case, if the first byte (before the data slots, called the start code) is non zero, in particular if it matches some value you define (not in the ESTA database), then you could check the next few bytes to see if they are, say, "JHinkle". That sequence should never be seen deliberately sent, and would be statistically improbable from noise. That could be your escape back into your own protocol.

For example. You are obviously far more than capable of creating your own mechanisms, I'm just sketching ideas.

Your serial interface should be able to handle 8N2 (well, 8N1 would be fine too on the receiving end), and be able to detect long spaces and marks.

Of course, sending something back while in DMX mode is another matter. I haven't yet investigated RDM

http://en.wikipedia.org/wiki/RDM_(lighting)

But of course, you would do flashing new systems in your own protocol mode. Unlike DMX512A, there isn't much DIYC hardware or software to be compatible with in terms of RDM - that's new ground. Following the standard (or a subset thereof) would be good tho, as others will be getting into two way communication in the DIYC world I believe.


Reply
Posts: 3650
Topic starter
(@jhinkle)
Famed Member
Joined: 15 years ago

Are any of the DIY controllers on this site DMX?

If there are none - then I will make an effort to make mine compatible with DMX.


Reply
budude
Posts: 10400
(@budude)
Illustrious Member
Joined: 18 years ago
JHinkle wrote:Are any of the DIY controllers on this site DMX?

All of the Renard controllers can run DMX if you load the alternate code on the PICs.


Reply
Posts: 3650
Topic starter
(@jhinkle)
Famed Member
Joined: 15 years ago

My understanding of the way the Renards work is the first controller takes in the complete "long" string of data ... removes the amount from the front end that it is responsible for and then retransmits the remainder of the message to the next controller ... so on and so on until the last controller in the serial network get his data.

Is that the same way a DMX network operates - as a serial link of controllers OR are they all on a half-duplex bus each seeing the data at the same time and each removing the data they are responsible for - so no controller has to retransmit to the next?

Joe


Reply
Page 21 / 27
Share: