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

Hardware flow control support #50

Open
Kester-Broatch opened this issue Oct 18, 2023 · 1 comment
Open

Hardware flow control support #50

Kester-Broatch opened this issue Oct 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Kester-Broatch
Copy link
Contributor

Kester-Broatch commented Oct 18, 2023

Hi again!

I noticed recently when testing mavp2p with a pixhawk flight controller (with px4 firmware) that mavp2p does not support serial hardware flow control. Some PX4/pixhawk versions uses flow control for it's telemetry serial ports - https://docs.px4.io/main/en/flight_controller/pixhawk4.html#serial-port-mapping - so I was unable to connect.

I had a look at the mavp2p code base to see if i could enable it, but you seem to use the https://github.com/tarm/serial library which does not support flow control I think (I saw this ticket tarm/serial#68).

So I was wondering if you would consider changing serial library to one which can support flow control, and then presumably to add an argument to the mavp2p serial port selection to enable/disable flow control?

Thanks!
Kester

aler9 added a commit that referenced this issue Dec 13, 2023
@aler9 aler9 added the enhancement New feature or request label Dec 13, 2023
@aler9
Copy link
Member

aler9 commented Dec 13, 2023

Hello @Kester-Broatch, i replaced github.com/tarm/serial with go.bug.st/serial and added calls to SetDTR(true) and SetRTS(true), but since i don't own a hardware flow control-capable board, i can't to merge those changes into the main branch without a real test.

Therefore, the result is in the serial-hfc branch in both gomavlib and mavp2p:

https://github.com/bluenviron/gomavlib/tree/serial-hfc
https://github.com/bluenviron/mavp2p/tree/serial-hfc

You can find a nightly release here (click on artifacts, binaries):

https://github.com/bluenviron/mavp2p/actions/runs/7201143388

If you confirm that this feature works, i'll merge it into the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants