Skip to content

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