Highly responsive serial port



Hello,
before I dive into the world of kernel mode drivers I'd like to know:
My problem consists of reading from a serial COM port as fluent as
possible(real-time like). It looks like it is not doable in user mode. If
due to scheduling of threads my reader thread doesn't get enough time I have
a delay of read on the input. Let's say I have to process data coming every
30ms and then reply in 20ms. If my reader only reads the input buffer after
50ms I'm too late to reply but I don't know it.
1. Would a driver(in kernel mode) have enough priority to process such
requests in time?
2. Is there any other way in user mode to assure constant read of serial
port?

Thanks
Robert


.



Relevant Pages

  • Re: Highly responsive serial port
    ... My problem consists of reading from a serial COM port as fluent as possible. ... If my reader only reads the input buffer after 50ms I'm too late to reply but I don't know it. ... Would a driver(in kernel mode) have enough priority to process such requests in time? ... a general rule of thumb in thread synchronization is to stay away from depending on "sleep" and loop designs in a vain attempt to synchronize I/O. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Page fault while booting
    ... > PAGE FAULT WHILE IN KERNEL MODE ... port may not be enabled ... switched to polled standard mode ...
    (freebsd-current)
  • Re: OT: Disappointed with Intel and Polyhedron
    ... switch to kernel mode to switch modes. ... But the SPORT routines that came with DVF ... We would set the port parameters to some legal desired values, ... I would expect the basic functionality that they advertised as supported would continue to work or for them to be formally withdrawn from support. ...
    (comp.lang.fortran)
  • Re: Serial Client
    ... port in kernel mode, initializes it, and polls for data. ... Please do not send e-mail directly to this alias. ... "Streax" wrote in message ...
    (microsoft.public.development.device.drivers)
  • Re: OT: Disappointed with Intel and Polyhedron
    ... Alex Gibson wrote: ... switch to kernel mode to switch modes. ... We would set the port parameters to some legal desired values, ...
    (comp.lang.fortran)

Loading