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

Added handling of serial port DCB for Windows #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pe-jot
Copy link

@pe-jot pe-jot commented Feb 23, 2021

fixes #315

On Windows systems, it seems to depend on the driver resp. serial port hardware if a simple call of EscapeCommFunction() is enough. If the fDtrControl or fRtsControl in the DCB is in the wrong state, it may fail to set it as desired.
see https://docs.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-dcb#members

Furthermore, I've tried to simplify the Linux version which allows to directly set/clear the bits with the ioctl() function, according to https://linux.die.net/man/4/tty_ioctl

@pe-jot pe-jot marked this pull request as draft August 28, 2023 18:41
@pe-jot pe-jot marked this pull request as ready for review August 28, 2023 18:42
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.

COM PTT on Windows not working (configuration issue)
1 participant