8ms Timer for serial port access

From: Jens Schumacher (jens.schumacher_at_uni.de)
Date: 10/28/03


Date: Tue, 28 Oct 2003 12:09:34 -0500

Hello,

I need to collect data from the serial port every 8ms since the device
connected to the port works at 120Hz. This doesn't seems to work properly
due to the 10ms time slice interval of a normal i386 kernel. The
communication to the serial port is done in user space at the moment and is
not loaded as a module. I read a lot in the history of the newsgroup and
there are some solutions recommended. From low latency kernel patches to the
use of real-time Linux. But I'm pretty new to Linux and feel not comfortable
by patching the kernel since I don't know how a low latency path affects
other programs on the system.

It is important that I get the data nearly every 8 ms because I don't want
the serial port buffer to overflow and loose data. But the use of real-time
Linux seems to be a overhead to me.

What about soft-real-time? I looked at the sched* functions, but could'nt
get it running as fast as I want.
What about using the rtc?

Is it also possible to run the application at that frequency to work with
the data I get?

Thank you very much,

Jens Schumacher



Relevant Pages

  • Re: Serial port blues
    ... on the serial output for 4 different computers running 4 different versions of Linux. ... I am now convinced that the current serial port drivers available to us on the Linux platform WILL NOT support CW and/or RTTY that is software generated in a satisfactory manner. ... The jitter is caused by the asynchronous response of the kernel to the request to control the port. ... It totally wipes out the ability to generate an FSK signal on the DTR or RTS pin. ...
    (Linux-Kernel)
  • RE: Serial port blues
    ... digital amateur radio on Linux, because I'm curious whether or not the ... Only kernel level drivers are allowed such port access. ... since the 45.45 baudrate is not available in the serial port driver. ... You may be confusing the old-style baud rate lookup table (B9600 et ...
    (Linux-Kernel)
  • Re: [SLE] Connecting USB serial port
    ... > Sid Boyce wrote: ... >>I have a prolific Technology PL2303 serial port for which there is a ... >>can't see specific support for that adapter in the kernel... ... that worked immediately in Linux and as soon as I installed the ...
    (SuSE)
  • Re: Linux "print server"
    ... porting Ghostscrip to a C64 is ... so a Linux server seemed possible. ... "> I already have TCP/IP communication using ppp between the C64 and the ... "> DTP app I use can send data to a serial port, ...
    (comp.os.linux.misc)
  • Re: Why to up/not grade to/from W98 (was: new Pulsonix version 3 PCB software released)
    ... whos primary function was to read ... and reading BOT/EOT markers and the raw MFM. ... On serial better is to use a micro (cheap 2 $ PIC has serial port). ... Linux, why sell yourself out to Bill Gates? ...
    (comp.arch.embedded)