buffer size limitation
Brought to you by:
cliechti
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?
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