Re: read data from UART



Roman Mashak wrote:
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


Try a ringbuffer pack of mine with FIFO support.
http://home.planet.nl/~burry004/COMPORT.ZIP
It can even be used under windows commandline, if you
use the pack in userport.zip to get port access. Link:
http://www.embeddedtronics.com/design&ideas.html


.



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)
  • read data from UART
    ... I need to implement application [this is not a homework], reading data from ... standard serial port on PC and logging them to a file. ...
    (comp.programming)