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

Linux custom baudrate #248

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

edsbyte
Copy link

@edsbyte edsbyte commented Nov 7, 2023

Add custom baud rate using termios2 interface.

Add the custom baudrate using termios2.
Inspired in picocom <https://github.com/npat-efault/picocom> project,
its termbits2.h header is used.
Termios2 interface is used for the custom baudrates only.

The baudrate is read back after setting,
so the resulting baudrate may differ from the requested one.

Take back the TIOCGSERIAL call from the original RXTXjava,
sstruct may not be initialised otherwise.
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

Successfully merging this pull request may close these issues.

1 participant