On Die, 27 Jul 1999 Julien Verchere wrote:

>        I use RT-Linux to command a video tape recorder. I send a
>command to this device, and i have to wait 5 to 10ms for an
>acknowledgement.

Is this really hard real-time ?

>        At the beginning, i used an active wait (
>"while(rt_com_read(.....) < 0);" ) but it was waisting a lot of time.
>        So, i add some functions to rt_com to set an handler function,
>only called when something is received by the serial port.

I am not exactly sure what you have done, but rt_com_isr _is_ called
whenever some data comes in (well, actually depending on the FIFO-size
you set).

>        Now, my real time task, send a command to the video tape, make
>itself sleeping, and wait to be waking up by the special function called
>when somethings is written in the serial port.
>
>        I would like to know if there is a more simple and more clean
>solution. Does someone developp a version of rt_com able to do that ?

For sure something like that could be incorporated into rt_com.

>        Another question: what is the correct procedure to install the
>new rt_com module given yesterday by Jochen Kuepper ?

I just send out a new version, including a Makefile.am for incorporation
into a bigger project, and a Makefile.standalone that should basically be
used to do
  make -f Makefile.standalone
  make -f Makefile.standalone install
Then insmod the module.

-- Jochen
 Heinrich-Heine-Universität Düsseldorf          [EMAIL PROTECTED]
 Institut für Physikalische Chemie I               phone ++49-211-8113681
 Universitätsstr. 26.43.02.29                      fax   ++49-211-8115195
 40225 Düsseldorf, Germany       www-public.rz.uni-duesseldorf.de/~jochen
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to