Multiple serial por...
 
Notifications
Clear all

Multiple serial ports

34 Posts
12 Users
0 Reactions
7,367 Views
A Marchini
Posts: 426
(@a-marchini)
Reputable Member
Joined: 19 years ago
FireGod wrote:
My machine is a 3.2 GHz Celeron with 2GB memory. During the sequence the HDD is NOT being accessed. The CPU load is around 24%. Memory being used is 216MB.

There may be certain issues between serial USB controllers. I had a very nice Edgeport model that when run under Linux had a particular quantity of around 64 bytes that would make it choke (pause untill these bytes were transfered out).

Also, USB is a plugin driver model that is not garanteed any latency figure. I believe our esitmates put latency as high as 200ms.

It got me to thinking, perhaps we could create a PCI board (or something similar) to take Window and the CPU out of the equation. A dedicated blaster board, with the job of continuous data stream updates on multiple channels.

Actually, it would be interesting if you were to aquire a multichannel serial port board and try that instead of USB serial devices.

Tony M.

P.S. Of course the first board I pull up is $600 (16 port job from sealevel) ...so maybe that isn't such a good idea.


Reply
FireGod
Posts: 655
Topic starter
(@firegod)
Honorable Member
Joined: 19 years ago

Actually fkostyun has an 8 port PCI card and he had the same results. I also have purchased the same card. In addition, I have purchased a four port card. I am planning on testing these today or tomorrow.

I tested three different types of USB adapters in different combinations with exactly the same results, 24 to 28 data packets out of 32 not transmitted over 1.6 seconds (85% loss of data).

I am now looking at sending all the data out of one or two ports but that would take some modifications.


Reply
A Marchini
Posts: 426
(@a-marchini)
Reputable Member
Joined: 19 years ago
FireGod wrote:Actually fkostyun has an 8 port PCI card and he had the same results. I also have purchased the same card. In addition, I have purchased a four port card. I am planning on testing these today or tomorrow.

I tested three different types of USB adapters in different combinations with exactly the same results, 24 to 28 data packets out of 32 not transmitted over 1.6 seconds (85% loss of data).

I am now looking at sending all the data out of one or two ports but that would take some modifications.

Well so much for that theory.
Maybe a redesign of the plugins may work. The idea is that as vixen is separating and issueing event data to the various plugins, which then have to retransmit it, there may be increased latency. Perhaps there could be a cache in the plugin, to hold the data for that particular range and the vixen main loop program could just fire a "Next" event to each plugin, without passing data. This may save some cycles.
There would be a slight pause before each sequence as the data is pushed into the plugin ahead of time.

Tony M.


Reply
FireGod
Posts: 655
Topic starter
(@firegod)
Honorable Member
Joined: 19 years ago

I plugged in the 8 port Moxa card and I was able to go to 4 serial ports before it got real bad. The 5th port caused it to lose about 50% of the packets. With 1 port it is perfect. With 2 it is almost perfect, with 3 it misses a couple of packets every second and about the same with four ports.

I tried to add in the harwired serial port (COM1) but it had the samwe results. It appears that having the faster IO card helps some. I guess it reduces the overhead a little.


Reply
Posts: 705
 KC
(@kc)
Prominent Member
Joined: 20 years ago
A Marchini wrote:Perhaps there could be a cache in the plugin, to hold the data for that particular range and the vixen main loop program could just fire a "Next" event to each plugin, without passing data. This may save some cycles.

This is something I want to work into the architecture ASAP (post-2.0). I have a couple of models on paper, but I'm undecided if either of them are the correct way to go. As much as I hate the "rule by committee" way of doing things, bringing in some eyes other than mine may help to point things in a better direction.


Reply
FireGod
Posts: 655
Topic starter
(@firegod)
Honorable Member
Joined: 19 years ago

One thing is for sure....I am NOT the guy to help you. I'll be happy to drop what I am doing to test anything you want but this is way beyond my programming capabilities.

I hope some of the guys will chime in here.


Reply
kostyun
Posts: 2178
Guest
(@kostyun)
Member
Joined: 20 years ago

firegod - can you also try something for me - I mentioned this to KC already - but - beta 1 seems to have much less of a problem than the current beta 3


Reply
Posts: 339
(@dan-ross)
Reputable Member
Joined: 19 years ago

I was putting some thought to this today, did you change your serial port settings thru windows control panel to match the 115200 baud rate you set in the plugin serial setup?


Reply
Posts: 861
 xmus
(@xmus)
Noble Member
Joined: 19 years ago
FireGod wrote:I have purchased a four port card

I would like to pick one of these up, can you provide a link or name or something please.

I'm using 2 serial ports this year, and if my machine were to die, my backup PC only has a single serial port.... it would be nice to have a backup plan should something bad happen (redundancy is good).


Reply
NogginBoink
Posts: 482
(@nogginboink)
Honorable Member
Joined: 19 years ago
A Marchini wrote:
It got me to thinking, perhaps we could create a PCI board (or something similar) to take Window and the CPU out of the equation. A dedicated blaster board, with the job of continuous data stream updates on multiple channels.

I'd be interested in developing a PCI board. I was actually thinking of this last week. I'm not sure I have the skills to do it, but it would be fun to try. We could probably implement an insane number of parallel ports and serial ports on a single midpriced FPGA, with a custom driver to bulk-transfer the data to the card.

This would be a serious undertaking and like I said I don't know that I'd be able to finish the project if I started it, but hey... I'd have a blast trying!

So... if we were to build the Vixen Card, what would y'all want on it? 🙂


Reply
Page 2 / 4
Share: