How to send a continuos stream on serial port?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marco Trapanese

    How to send a continuos stream on serial port?

    Hello,

    I'm writing a simple utility for testing serial connection. I want to
    send over the serial port a stream of random data. This stream should
    have no break, until I stop the application of course.

    If I set a timer according to the current baud-rate and send a string
    into the tick event I see two cases:

    + the tick time is too long: I'll have a break among the strings
    + the tick time is too short: I'll fill the transmission buffer

    In embedded systems I shall transmit byte after byte, waiting the
    interrupt of transmission completed.

    In .NET environment how could I do this?

    Thanks
    Marco / iw2nzm
Working...