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

Serial Port Configurability #24

Closed
ngtrimble opened this issue Jun 3, 2015 · 2 comments
Closed

Serial Port Configurability #24

ngtrimble opened this issue Jun 3, 2015 · 2 comments

Comments

@ngtrimble
Copy link

I'm curious, from a code point of view what it would take to add configuration for data bits, parity and stop bits. Is there some hurdle to this being implemented? Asking before I start digging in for possible solutions. Sounds like you are open to contributions?

@tarm
Copy link
Owner

tarm commented Jun 4, 2015

I am certainly open to pull requests. I am not actively working on adding features, so most recent contributions have come from other people.

Configuration with more options should be relatively straightforward. I would like to see:

  • Identical feature support on all platforms: linux, posix, osx, windows
  • Testing on several platforms including at least linux and windows
  • Backwards compatibility: if unset, the default should be for 8 bits, etc.
  • Implementation in the Config struct. Some commented out starting points are here: https://github.com/tarm/serial/blob/master/serial.go#L77
  • Clean patches, which may mean rebasing your commits for bug fixes and after code reviews.

Several people have made forks and made changes to add those features but have never submitted pull requests. I would start with those changes and either use them for inspiration or clean-up the patches and use them directly. https://github.com/tarm/serial/network

@tarm
Copy link
Owner

tarm commented Jan 31, 2016

@tajtiattila made a PR that adds this functionality and I just merged it to the master branch.

Please test and let us know if you have any problems.

@tarm tarm closed this as completed Jan 31, 2016
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

No branches or pull requests

2 participants