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

boost::asio::serial_port open() - fails to set_options if desired values match current values #1550

Open
skazassoglou-jav opened this issue Oct 27, 2024 · 0 comments

Comments

@skazassoglou-jav
Copy link

on windows: (win11)
set_options fails with ec 31 = 'A device attached to the system is not functioning'
if the option matches the desired value. workaround: get_options and only set_option if !=
but after closing the port I found that some Device Control Block dcp fail to be set that are not exposed by boost.asio
in my case:
BaudRate, fDtrControl, and fRtsControl
my current strategy is to use the winAPI and reset the dcp before port.close()
Am I missing a trick here? Or is this common, normal serial COM port hell?

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

1 participant