DMX dongle thoughts
 
Notifications
Clear all

DMX dongle thoughts

94 Posts
6 Users
0 Reactions
35 K Views
Posts: 2629
(@dynamoben)
Famed Member
Joined: 19 years ago

KC and I have discussed this via email. I believe he will be working on it unless I hear otherwise.

BTW I may change the message id (label) so there aren't any conflicts with the existing Pro protocol.


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

OK, right now I've got my prototype working, at least as far as I can see with a scope. But I'll probably change the firmware to agree with your firmware when you get it firmed up.

--

Phil


Reply
RJ
Posts: 673
 RJ
Topic starter
(@rj)
Prominent Member
Joined: 20 years ago
Reply
Posts: 6720
(@p-short)
Illustrious Member
Joined: 20 years ago

I'm coming to think that a more robust protocol would be helpful in certain circumstances. What I'm thinking of is adding a sequence number and checksum to each packet. While one might argue that a short link over a fairly reliable phy/mac layer doesn't need these facilities, I think that what happens inside the PC (within the OS) is not very well controlled. Who knows if the OS handles things out of order, currupts packets, or has buffer overruns that may serve to stitch two packets together into one. If nothing else, this would give confidence that any problems that users encounter are not in that part of the system.

--

Phil


Reply
Posts: 2629
(@dynamoben)
Famed Member
Joined: 19 years ago
P. Short wrote:Who knows if the OS handles things out of order, currupts packets, or has buffer overruns that may serve to stitch two packets together into one. If nothing else, this would give confidence that any problems that users encounter are not in that part of the system.

I guess, but now your are talking about adding data to each packet and overhead to the microprocessor (uC needs to confirm the packet is good with check sum and what not).

Buffer overruns and stitching would be recognized with the current protocol. We already know the length of the packet and we also know that the next byte beyond the length is the end of message byte. So a packet that is too short or too long will be tossed out and we wait for the next start of message byte.

As far as corrupt data it will manifest itself in the output of the dmx stream (see it in your display) and will be corrected moments later by a new packet.

If you compare this protocol to DMX it makes the whole thing easier to understand. I would bet Enttec started out streaming the DMX packet to the Pro and then started to add features and realized that they need to add a few things like "labels", length, SOM, and EOM.


Reply
RJ
Posts: 673
 RJ
Topic starter
(@rj)
Prominent Member
Joined: 20 years ago

I'm planning to try and stay with it as is. I also might find issues but I feel it should be robust enought to function as is, if my stuff works correct. The Pro works great with it so I don't want to add to many variables to the mix. I hope to get some real work done this weekend with luck.

RJ


Reply
Posts: 2629
(@dynamoben)
Famed Member
Joined: 19 years ago

Grrr I'm up against a major hurdle:

KC cranked out a plugin for me and I did some tests last night. While I was getting output on all four universes it was very steppy.

I did some research and it looks like the chip I'm using FT245 has a max speed of 300K/s with the virtual com port drivers. 🙁 This is fine for one universe but not when you get into 2 and beyond. Someone want to confirm this for me?

However the FT232 (same one used for the OpenDMX) has a max of 3M/s with the virtual com port driver. The serial programmer for the micro I'm using is a FT232 interface. So I might be able to get the thru put I need with it.

The third option which I have yet to research is creating a "real" usb interface like RJ is doing. I've never done this an don't really know where to begin.

Am I thinking this thru correctly? Thoughts?


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

Just now I put a scope probe on the #RD and the #RXE lines, and it appears that it takes about 5.6-6 ms to transfer a single DMX frame across the FT245-PIC interface. I think that this speed is affected (negatively) quite a bit by my firmware. Note also that I'm using the UM245R module from DLP.

That 300K/s might possibly be the byte rate, rather than the bit rate.

--

Phil


Reply
Posts: 2629
(@dynamoben)
Famed Member
Joined: 19 years ago

FT245 datasheet

Data transfer rate to 300 kilobyte / second - VCP Drivers.

FT232 datasheet

Data transfer rates from 300 baud to 3 Megabaud (RS422 / RS485 and at TTL levels) and 300 baud to 1 Megabaud (RS232).

Lets use DMX as an example:
250K baud/8 = 31250 bytes/second
31250 bytes/second * 4 universes = 125K bytes\sec

So I should still be able to do what I'm doing with the 245. Is my math/thinking correct?


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

Looks good...probably also depends on how fast your PIC code is.

--

Phil


Reply
Page 9 / 10
Share: