comp.lang.ada
 help / color / mirror / Atom feed
From: jan.de.kruyf@gmail.com
Subject: Re: silly ravenscar question
Date: Wed, 25 Feb 2015 09:35:26 -0800 (PST)
Date: 2015-02-25T09:35:26-08:00	[thread overview]
Message-ID: <b8da7b36-87e5-4579-a86f-524fc4388483@googlegroups.com> (raw)
In-Reply-To: <r35jrp4ddxeu.1kvq5mktvp213$.dlg@40tude.net>

On Wednesday, February 25, 2015 at 12:45:53 PM UTC+2, Dmitry A. Kazakov wrote:

> The high end is 8 analogue channels 100盜 over the network + hundreds of
> lower speed channels. Data volumes is not a big problem. E.g. we can sample
> 8 100盜 channels and distribute them over the network without data loss,
> doing 10ms oversampling.
> 

What is '100盜 ' ?  '0xc79b9c' was nowhere to be found.
what do you mean to say by 10msec oversampling? Average in the terminal and send only every 10 ms?

in any case to focus the thinking, I did some quick sums:
A packet with a payload of 50 bytes, according to the theory should be able to do the roundtrip (100 m cable, 1 switchbox, no packet contention) in 25 usecs through an stm34 board, with time to spare. that includes DMA and offloading and onloading of data.
So that makes 40 packets per msec. Leave some space for syncframes, arp frames and data loss, then 20 roundtrip packets /msec should be doable, provided the jitter is strictly controlled. 
An individual terminal has all the time in the world to handle the data between commframes, but I bet that, depending on what you want out of the system, the pc might feel the strain at that rate. (and the rt scheme must be up to scratch in the pc)
So the bottleneck according to me is in the pc  in most cases.

In any case so according to your specs we would need some kind of multiplexing scheme. I did not need that, the project is too small; but it is good in this case to do a little bit of thinking up front, before too much code is written.
 


> . . . which may be not an issue for single-core
> board with non-preemptive scheduling.

Thats how we did it before Noahs flood, and boy did it run fast.

cheers,

j.

 

  reply	other threads:[~2015-02-25 17:35 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-24  9:07 silly ravenscar question jan.de.kruyf
2015-02-24 10:29 ` Dmitry A. Kazakov
2015-02-24 11:11   ` jan.de.kruyf
2015-02-24 13:38     ` Dmitry A. Kazakov
2015-02-25  8:48       ` jan.de.kruyf
2015-02-25 10:46         ` Dmitry A. Kazakov
2015-02-25 17:35           ` jan.de.kruyf [this message]
2015-02-25 17:55             ` Dmitry A. Kazakov
2015-02-26  8:48               ` jan.de.kruyf
2015-02-26  9:47                 ` Dmitry A. Kazakov
2015-02-26 12:07                   ` jan.de.kruyf
2015-02-26 19:09                   ` jan.de.kruyf
2015-02-27  8:58                     ` Dmitry A. Kazakov
2015-02-28 19:57                       ` jan.de.kruyf
2015-03-01  9:27                         ` Dmitry A. Kazakov
2015-03-03  8:42                           ` jan.de.kruyf
2015-03-03 10:57                             ` Dmitry A. Kazakov
2015-02-24 11:02 ` Jacob Sparre Andersen
2015-02-24 11:23   ` jan.de.kruyf
2015-02-24 13:43     ` Bob Duff
2015-02-25  9:07       ` jan.de.kruyf
2015-02-25 17:50         ` Simon Wright
2015-02-26  7:35           ` jan.de.kruyf
2015-02-26 14:57             ` Simon Wright
2015-02-26 19:36               ` jan.de.kruyf
2015-02-27  8:45                 ` Simon Wright
2015-02-27  9:59                   ` jan.de.kruyf
2015-02-28  9:57                     ` Simon Wright
2015-02-28 19:08                       ` jan.de.kruyf
2015-02-28 20:23                         ` Simon Wright
2015-03-03  8:52                           ` jan.de.kruyf
2015-02-24 15:30     ` Brad Moore
2015-02-24 16:52       ` Simon Wright
2015-02-25  3:01         ` Dennis Lee Bieber
2015-02-24 11:22 ` slos
2015-02-24 12:16   ` jan.de.kruyf
2015-02-24 11:24 ` J-P. Rosen
2015-02-24 12:10   ` jan.de.kruyf
2015-02-24 13:58 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox