Re: elimination of intercharacter gap in RS232 stream?




"Anton Erasmus" <nobody@xxxxxxxxxxxxxxxx> wrote in message
news:a2aqg3lrdiuba5ji63m2l6q01glqb78u0g@xxxxxxxxxx
On Wed, 10 Oct 2007 11:50:19 -0500, "Bo" <bo@xxxxxxxxxx> wrote:

Writing an Embbeded Linux app for a PC104/Versalogic board. Linux
2.6.14.17.

Using write() to transmit data packets to another PC104 board. If I
write()
30 bytes, sometimes there is a 2-5mS gap in the middle of the
transmission, usually at about byte 15-20, but sometimes at byte 29--as
seen
on a scope. Tried using low latency setting when
opening the port--but this made no difference. This is causing
difficulties
for the receiving end-- and we have yet to add two more serial ports to
the
application.

Any ideas on how to force continous transmission of the data?


Are you flushing the buffers after write ?

No--because I've not been able to find an API call that does this. Do you
know how?

But as other posters have
suggested, it would be better to fix the Rx side. If you ever need to
run your code on a system using USB-serial or ethernet-serial, you
will have these sort of issues in any case.

No--no USB or ether-serial ever.

Thanks,

Bo


.



Relevant Pages

  • Re: elimination of intercharacter gap in RS232 stream?
    ... Using writeto transmit data packets to another PC104 board. ... Any ideas on how to force continous transmission of the data? ... Need to learn how to apply control theory in your embedded system? ... "Applied Control Theory for Embedded Systems" by Tim Wescott ...
    (comp.arch.embedded)
  • Re: elimination of intercharacter gap in RS232 stream?
    ... Using writeto transmit data packets to another PC104 board. ... sometimes there is a 2-5mS gap in the middle of the ... Any ideas on how to force continous transmission of the data? ...
    (comp.arch.embedded)
  • elimination of intercharacter gap in RS232 stream?
    ... Writing an Embbeded Linux app for a PC104/Versalogic board. ... Using writeto transmit data packets to another PC104 board. ... Any ideas on how to force continous transmission of the data? ...
    (comp.arch.embedded)
  • Re: elimination of intercharacter gap in RS232 stream?
    ... Using writeto transmit data packets to another PC104 board. ... sometimes there is a 2-5mS gap in the middle of the ... Any ideas on how to force continous transmission of the data? ... The receiver may be requesting the pause. ...
    (comp.arch.embedded)
  • Re: elimination of intercharacter gap in RS232 stream?
    ... Using writeto transmit data packets to another PC104 board. ... Any ideas on how to force continous transmission of the data? ... You would do better to solve the problem at the receiving end, ... where your real problem is. ...
    (comp.arch.embedded)