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

Use serialport-rs overlapped-io for better windows io.[CPP-801] #744

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

john-michaelburke
Copy link
Collaborator

@john-michaelburke john-michaelburke commented Sep 20, 2022

serialport-rs moved to github so most of the comments are still on gitlab. This PR incorporates a serialport-rs PR in flight, hopefully will merge soon, unfortunately the behavior they abstract for COMMTIMEOUTS is still not ideal for our setup.

Here is the gitlab PR:
https://gitlab.com/susurrus/serialport-rs/-/merge_requests/91

And now the new github PR:
serialport/serialport-rs#55

Here is the additional commit I threw ontop of the overlapping-io fork:
swift-nav/serialport-rs@64ccc6f

I tried the combination of #1, Polling Read, and #3, Blocking Read, but #1 was not working well at all. It says #3 is similar to Linux but with a small delay. The console appears to run fine with this option.
https://gitlab.com/susurrus/serialport-rs/-/merge_requests/78#note_343695538

This PR (USB) and serial is comparable < 2 seconds :

Screen.Recording.2022-09-20.at.11.41.25.AM.mov

main branch (USB) and serial is terrible < 15 seconds :

Screen.Recording.2022-09-20.at.11.42.16.AM.mov

@john-michaelburke john-michaelburke force-pushed the john-michaelburke/try-overlapped-io branch 2 times, most recently from ca09e1f to d92a114 Compare September 20, 2022 07:18
@john-michaelburke john-michaelburke force-pushed the john-michaelburke/try-overlapped-io branch from d92a114 to 94f3c39 Compare September 20, 2022 07:24
@john-michaelburke john-michaelburke marked this pull request as ready for review September 20, 2022 17:42
@john-michaelburke john-michaelburke requested a review from a team September 20, 2022 17:42
@john-michaelburke john-michaelburke changed the title Try out serialport overlapped-io for windows. Try out serialport overlapped-io for windows.[CPP-801] Sep 20, 2022
@john-michaelburke john-michaelburke changed the title Try out serialport overlapped-io for windows.[CPP-801] Use serialport-rs overlapped-io for better windows io.[CPP-801] Sep 20, 2022
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