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

Need support for additional non-standard serial baud rates #146

Closed
shaydr opened this issue Jun 2, 2015 · 2 comments
Closed

Need support for additional non-standard serial baud rates #146

shaydr opened this issue Jun 2, 2015 · 2 comments
Milestone

Comments

@shaydr
Copy link
Contributor

shaydr commented Jun 2, 2015

I have a serial device capable of supporting 921.6Kbps however the current implementation of win32_serial_driver.rb checks for the requested baud_rate to be in the Win32::BAUD_RATES array and then raises an exception if not found.

The DCB structure supports arbitrary baud rates. I have tested a modification to the Win32::BAUD_RATES array where the addition of 921.6Kbps works with a target device.

Suggestions for Resolution

  • Add Api to add additional supported rates programmically from target interface definition
  • Ignore the check
  • Add the missing non-standard rates [230400, 460800, 500000, 576000, 921600, 1000000, 1152000, 1500000, 2000000, 3000000, 3500000, 4000000].

I think adding additional rates is the best option, additional rates not expected to be added anytime soon.

_NOTE:_ the posix_serial_driver uses termios and it looks like 921600 is defined on modern linux distros and in the ruby-termios package

@ghost
Copy link

ghost commented Jun 3, 2015

Dan - Are you planning on implementing this or should I?

@ghost
Copy link

ghost commented Jun 10, 2015

closed by pull request #149

@ghost ghost closed this as completed Jun 10, 2015
@ghost ghost modified the milestone: v3.5.0 Jun 22, 2015
ghost pushed a commit that referenced this issue Jul 16, 2021
Merge in COSMOSEE/base from multi-error to master

* commit 'b9fda6125ba247eea93e6bef2cc19eb3af457136':
  missing base
  update cosmos command
  posix scripts
  multi error and rm scriptrunner
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant