Skip to content

the sleep period on read#107

Open
berkaydeniz wants to merge 1 commit into
eblot:python2.6from
berkaydeniz:python2.6
Open

the sleep period on read#107
berkaydeniz wants to merge 1 commit into
eblot:python2.6from
berkaydeniz:python2.6

Conversation

@berkaydeniz

Copy link
Copy Markdown

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.

the hard coded sleep in SerialUsb read function is too long for time sensitive applications. Reducing it to a significantly smaller value.
@eblot

eblot commented Sep 25, 2018

Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants