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

libmavconn: Feature to select hardware flow control #649

Closed
vooon opened this issue Jan 28, 2017 · 3 comments
Closed

libmavconn: Feature to select hardware flow control #649

vooon opened this issue Jan 28, 2017 · 3 comments

Comments

@vooon
Copy link
Member

vooon commented Jan 28, 2017

@sharvashish asked to support hw flow control (RTS/CTS lines).
That should be easy, but require API change (flag) and new URL proto (maybe serial-hf://?).

@sharvashish
Copy link

Hi guys,
I tried changing serial_dev.set_option(serial_port_base::flow_control(serial_port_base::flow_control::none));
to
serial_dev.set_option(serial_port_base::flow_control(serial_port_base::flow_control::hardware));
in libmavconn/src/serial.cpp.

I could successfully compile the code as well. But I got a runtime error. I would post the error, next time I execute the same code.

vooon added a commit that referenced this issue Feb 24, 2017
…trol)

Note: not all platforms support setting
  Boost::asio::serial_port_base::flow_control::hardware option.
@vooon
Copy link
Member Author

vooon commented Feb 24, 2017

New proto was added, but i don't have tty device with support.
Or perhaps Boost.ASIO Linux backed do not support that option? Anyway it is hidden and do not require any changes of libmavconn code.

@vooon vooon closed this as completed Feb 24, 2017
@mhkabir
Copy link
Member

mhkabir commented Mar 8, 2018

This was broken since implementation due to Boost bugs. Fix is here: #971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants