-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
add support for less standard serial port speeds on macOS #44052
Conversation
cc @krwq |
codewise LGTM, we will need someone with the right hardware to test this, @MicBoucinha any chance you could try this out? (easiest way is to sync with @wfurt's branch, build the repo and test this code inside of tests directory which will use the right binaries automatically) |
I was planning to write instructions how to grab bits from this PR. (I just did not get to it over the weekend) |
(and I plan to keep it as draft until we get verification) |
@krwq I tested it and it works on my machine. I followed the instructions left by wfurt on the issue #43719 (comment) |
Thanks @MicBoucinha for confirmation. |
can you please take final look @krwq? It seems like this works as expected. |
ping @krwq? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, got flooded with notification and missed it, LGTM
It seems like macOS terms end with B230400 (probably limit of legacy serial) but many USB serial devices can do more.
When .NET tries to use higher speed it always fails as we fail to lookup platform speed mapping. macOS has call to set specific speed so this PR use that as fallback if speed lookup fails. That leaves the decision to driver and OS e.g. it will either succeed or fail and we report that accordingly.
I don't have enough gear to but I was able to verify that serial port can be opened with speed beyond B230400.
fixes #43719