Re: elimination of intercharacter gap in RS232 stream?
- From: Anton Erasmus <nobody@xxxxxxxxxxxxxxxx>
- Date: Wed, 10 Oct 2007 21:33:40 +0200
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 ? 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.
Regards
Anton Erasmus
.
- Follow-Ups:
- References:
- Prev by Date: Re: PCB production: China or Taiwan?
- Next by Date: Re: Delay Routine: Fully-portable C89 if possible
- 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
|