#94 buffer size limitation

v2.5
closed-works-for-me
Chris Liechti
None
5
2013-10-17
2010-09-24
No

I am unable to receive a 8192 byte record from my serial device ( a digital camera) using version pyserial-2.5-rc2 on a Linux machine. I can receive 2048 byte records. I am running Ferdora 5 and python 2.6.
The serial device is a USB to serial interface.
I was able to receive a 8192 byte record on a windows PC running XP, python2.6 and pyscerial-2.5-rc2. I did need to change the buffer size in win32.py.
I can not find a buffer to be enlarged in the Linux version.

Any suggestions?

Discussion

  • Chris Liechti
    Chris Liechti
    2011-08-05

    So far i did not find an option to set the serial buffer size on Linux.

    That the serial buffer overruns is an indication that your program reads too slowly from the port.
    - try reading in large chunks
    - permanently read and do the processing when no data is expected or yield it do a separate worker thread

     
  • Chris Liechti
    Chris Liechti
    2011-08-05

    • assigned_to: nobody --> cliechti
    • status: open --> pending-works-for-me
     
  • Chris Liechti
    Chris Liechti
    2013-10-17

    • status: pending-works-for-me --> closed-works-for-me
    • Group: --> v2.5