pyftdi icon indicating copy to clipboard operation
pyftdi copied to clipboard

the sleep period on read

Open berkaydeniz opened this issue 7 years ago • 1 comments

the hard coded sleep in SerialUsb read function is too long for time sensitive applications. Reducing it to a significantly smaller value. Before this change I had unexplained 10 mili second delays in my communications, which is resolved by the change.

berkaydeniz avatar Sep 25 '18 02:09 berkaydeniz

Wow, python2.6 version, quite old :-)

The issue with reducing timeout is that is tends to overload the CPU. Which timeout value did you use for the serial port itself?

Maybe this delay should be indexed on the serial port timeout.

eblot avatar Sep 25 '18 08:09 eblot