Re: elimination of intercharacter gap in RS232 stream?



On Wed, 10 Oct 2007 11:50:19 -0500, Bo 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?

You're probably running afoul of Linix's only-almost-real-time character.
If you have some compelling system reason to send the serial stream
unbroken then you'll probably need to get RTAI Linux or Xenomai going, and
write your own serial driver under that to get your unbroken packets.

If you _don't_ have a compelling system reason to do this, and you _do_
have access to the receiver code, fix it there per cbarn24050's suggestion.

--
Tim Wescott
Control systems and communications consulting
http://www.wescottdesign.com

Need to learn how to apply control theory in your embedded system?
"Applied Control Theory for Embedded Systems" by Tim Wescott
Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html
.



Relevant Pages

  • 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)
  • 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. ... 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)

Quantcast