From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3ffb65141990540c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Hard and soft real time with Ada Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Mon, 17 May 2010 10:30:42 +0200 Message-ID: <4o3r0ouc23gx$.1dxknpkniq39u$.dlg@40tude.net> NNTP-Posting-Date: 17 May 2010 10:30:42 CEST NNTP-Posting-Host: 92d8a7c1.newsspool3.arcor-online.net X-Trace: DXC=`5_[HF25f]VaAeROF2PWMQMcF=Q^Z^V3X4Fo<]lROoRQ8kF On Sun, 16 May 2010 21:19:00 -0700 (PDT), zeta_no wrote: > Question 1: There is a possibility, that during my flight, the kernel > accept to service the CRON scheduler, in between sensor readings? Am > I right? Depends on the effective priorities. > Question 2: Does the use of Ada, with its real time capabilities > really helps to achieve real time if we know that ultimately, its the > kernel who decides what to service. No, in general. However some Ada vendors provide task scheduling independent on the OS. I.e. the Ada program has just one OS thread which internally runs all the tasks. If Ada thread is never preemted when it does something that will be real-time. Then there exist bare board Ada distributions, i.e. in effect you trow your kernel away, and replace with another mini OS, e.g. INTEGRITY. > Does the real time promises are > based on the assumption that the designer are brilliant enough to > disable any OS loadable module not required by the embedded > application? That is what an real-time OS is about. You have to be able to plan all OS activities, in particular by assigning them right priorities etc. > Maybe a stripped OS is not that resource > consuming to be worried about? I think you could start with giving your Ada program the highest possible priority. > Question 3: Does the Real Time Annex helps with that? I mean trying to > make real time programming on a general purpose OS. Yes, if fairly implemented by the compiler vendor. But it cannot do things, the OS cannot or forbids. > Question 4: Now, if the best option is to use a real time kernel, what > about the need for a USB camera and some specialized library like > OpenCV for making some computer vision on a multi-core architecture? > This kind of support on real time kernel looks almost inexistent, let > say in open source options like RTEMS or MarteOS. Hmm, I doubt USB can be considered real-time. But I see no obvious reason why a computer vision application could not tolerate some jitter (say 100�s). I guess you just do not need "very hard" real-time. > Question 5: Does RTLinux would be my best bet, or should I try to use > a GigE camera and port OpenCV myself onto RTEMS. I just want insight > on global issues here, example of typical decisions made in the design > of a general robotic embedded system. I didn't use RT Linux, I did VxWorks. Certainly you can implement communication with the USB camera in Ada. Then you will be in full control of what is going on. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de