Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Need support for additional non-standard serial baud rates #146
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
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