Skip to content
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

Handle the worst case of 1-byte requests at 115200 baud. #1

Merged
merged 2 commits into from
May 26, 2021

Conversation

ColinFinck
Copy link
Contributor

The worst case is a serial port at 115200 baud, which is read via 1-byte requests.
115200 baud makes 14400 bytes/second.

PortSniffer-Tool has been changed to poll the driver in 10 millisecond intervals (100 times/second), which means that the driver needs to buffer up to 144 1-byte log entries.
Choose 160 (divisible by 32) as the upper limit here to be on the safe side.

@ColinFinck ColinFinck requested a review from Gotbread May 25, 2021 16:01
@ColinFinck ColinFinck merged commit 5407c21 into master May 26, 2021
@ColinFinck ColinFinck deleted the fix/worst-case branch May 28, 2021 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants