read data from UART



Hello,

I need to implement application [this is not a homework], reading data from
standard serial port on PC and logging them to a file. Is there any classic
way to do that? I heard ring buffer would be useful, are there any hints on
this subject to read about?

Also, I believe it'd better to use threads - one to read data, another to
write the log? Is it correct concept, ot not? I'd be glad to get some links
to read.

Thanks.

With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx


.



Relevant Pages

  • Re: read data from UART
    ... I need to implement application, reading data from ... standard serial port on PC and logging them to a file. ... It depends a lot on what tools you have available, and what platform this ... You all think I'm paranoid, ...
    (comp.programming)
  • Re: read data from UART
    ... I need to implement application, reading data from standard serial port on PC and logging them to a file. ... With best regards, Roman Mashak. ... Try a ringbuffer pack of mine with FIFO support. ...
    (comp.programming)