Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
linux serial buffer question
- 11-30-2004

Re: linux serial buffer question

You'd have to rebuild the kernel after modifying the sources to
the tty line discipline module.

Right. The last time I looked it's set to one page. On IA32
that's 4K.

Why not wrap the read() method in three lines of python to keep
calling read() until you get the desired amount of data? Just
subclass the serial port object, override the read() method
with a loop that calls the super's read.
--
Grant Edwards grante Yow! I'd like some JUNK
at FOOD... and then I want to
Grant Edwards grante Yow! I'd like some JUNK
at FOOD... and then I want to
We've slightly trimmed the long signature. Click to see the full one.

Re: linux serial buffer question

[...]

There is one case where my suggestion isn't a substitute for
larger buffers. If the data is being sent when your
application ready for it (it isn't calling read()), you would
need larger buffers to prevent data loss or flow-control
kicking in.
--
Grant Edwards grante Yow! This is a NO-FRILLS
at flight -- hold th' CANADIAN
Grant Edwards grante Yow! This is a NO-FRILLS
at flight -- hold th' CANADIAN
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » powerpc floating point
- — Next thread in » Embedded Linux
-
- » Linux for SH4
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Driver LED BP5131 - jak to dziaĆa?
- — The site's Newest Thread. Posted in » Electronics (Polish)
-
- » Rules
- — The site's Last Updated Thread. Posted in » Microcontrollers (Russian)
-