-
Notifications
You must be signed in to change notification settings - Fork 129
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
No way to control data bits on serial interface #787
Comments
You're correct. We only allow the following parameters: http://cosmosrb.com/docs/interfaces/#serial-interface |
@ryanatball it seems like we could pass data_bits down (5, 6, 7, or 8) to the underlying driver but this new field would break existing serial driver definitions. We could put data_bits at the end but it doesn't really belong there. Here's the current list:
I feel like it belongs after baud_rate and before parity. Thoughts? |
Non-standard data sizes could potentially be supported using OPTION. |
So without a parameter to change the data bits, how does the command actually get sent? Is it fixed at 8 bits internally? |
The serial framing is fixed at 8 data bits. Parity and stop bits are configurable. I have never seen anything modern that didn't use 8 data bits. |
A device I'm interfacing with is 7-N-2 by default. I can change it, but I hope you can make this fix in a future release. One never knows what devices one will encounter. |
There doesn't seem to be a way to control the data bits sent on a serial interface. There's not even a field for it. In other words, in the classic "8-N-1" serial example, there's no way to control the "8" part.
The text was updated successfully, but these errors were encountered: