Re: elimination of intercharacter gap in RS232 stream?
- From: Tim Wescott <tim@xxxxxxxxxxxxxxxx>
- Date: Wed, 10 Oct 2007 12:06:20 -0500
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.You're probably running afoul of Linix's only-almost-real-time character.
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?
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
.
- Follow-Ups:
- References:
- Prev by Date: Re: elimination of intercharacter gap in RS232 stream?
- Next by Date: Re: elimination of intercharacter gap in RS232 stream?
- Previous by thread: Re: elimination of intercharacter gap in RS232 stream?
- Next by thread: Re: elimination of intercharacter gap in RS232 stream?
- Index(es):
Relevant Pages
|