New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rx buffer overrun. #102
Comments
There is no cross platform way to set the serial buffer size. On windows you could use |
Hello... |
I'm also running into a problem with the buffer size... it would be really helpful to have a way to set the size in Linux. |
Hello..
Maybe this is not best place for my trouble but don't know better one.
I have hardware with FTDI FT230XU chip which have internal 512 byte fifo. And I need to read a lot of data fast. So the baud rate is set at 2000000bps(want even faster but there are hardware limitation).
So internal buffer is filled in aprox 2.5 milisecond. And pyserial seems to have own buffer 4096 bytes long. So total time to fill buffers is around 20 mili second.
Now the trouble. If I sit in the blocking loop until data block of 256kb is received - aprox 1.3 second I got data ok. But that is blocking loop and gui is not responsive that time. If I put that in thread loop sometime I got ok data sometime not. Lattency seems to be just around 4096 bytes (20ms). Is there a way to increase read buffer? So I can do unblocking read? If I can expand buffer to 256k should be ideal...
..and must be linux and windows compatible.
Thanks a lot for any god solution.
The text was updated successfully, but these errors were encountered: