Re: linux serial buffer question
From: Grant Edwards (grante_at_visi.com)
Date: 11/30/04
- Next message: Eric Spaulding: "Re: linux serial buffer question"
- Previous message: Eric Spaulding: "linux serial buffer question"
- In reply to: Eric Spaulding: "linux serial buffer question"
- Next in thread: Eric Spaulding: "Re: linux serial buffer question"
- Reply: Eric Spaulding: "Re: linux serial buffer question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Nov 2004 17:10:02 GMT
On 2004-11-30, Eric Spaulding <elsNOSPAM24@cornell.edu> wrote:
> Is there an easy way to increase my receive serial buffer in linux?
You'd have to rebuild the kernel after modifying the sources to
the tty line discipline module.
> It looks like it's currently set at 4096 bytes.
Right. The last time I looked it's set to one page. On IA32
that's 4K.
> I'm using pyserial + python and would like to read larger
> chunks than this at one time.
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
visi.com be ALONE --
- Next message: Eric Spaulding: "Re: linux serial buffer question"
- Previous message: Eric Spaulding: "linux serial buffer question"
- In reply to: Eric Spaulding: "linux serial buffer question"
- Next in thread: Eric Spaulding: "Re: linux serial buffer question"
- Reply: Eric Spaulding: "Re: linux serial buffer question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|