Re: linux serial buffer question
From: Eric Spaulding (elsNOSPAM24_at_cornell.edu)
Date: 11/30/04
- Previous message: Grant Edwards: "Re: linux serial buffer question"
- In reply to: Grant Edwards: "Re: linux serial buffer question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Nov 2004 12:14:48 -0500
I don't know, 3 lines sounds like an awful lot *grin*.
Ok, I'll work with what I've got. Thanks!
Grant Edwards wrote:
> 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.
>
- Previous message: Grant Edwards: "Re: linux serial buffer question"
- In reply to: Grant Edwards: "Re: linux serial buffer question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|