Re: linux serial buffer question

From: Eric Spaulding (elsNOSPAM24_at_cornell.edu)
Date: 11/30/04


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.
>



Relevant Pages

  • Re: Performance question
    ... and tell me something sucked or was mediocre. ... awful" a few times through the years. ... I guess some parents are ...
    (rec.music.makers.guitar.acoustic)
  • Re: Atheists: Americas most distrusted minority
    ... A tulip by an other name still smells as sweet and tastes just as ... awful. ... You are Wilbert Shakespere and I claim my five pounds. ...
    (rec.arts.sf.tv.babylon5.moderated)