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

uart_example hangs on read_serial #39

Open
adam3039 opened this issue Sep 15, 2018 · 1 comment
Open

uart_example hangs on read_serial #39

adam3039 opened this issue Sep 15, 2018 · 1 comment

Comments

@adam3039
Copy link

I've got my guidance connected to my DJI manifold via UART.

I've confirmed guidance works as expected, and I've enabled the UART API in the guidance software.

I've built the Makefile under examples/uart_example.

When I run 'sudo ./uart_example' I get the following:

open uart ok!
set UART port paramster done!

And then the program just hangs and does nothing. Using some debug statements I've narrowed the line that it hangs at. It in on line 148 of linux/serial.cpp

int n = read(g_sdk_uart_fd, buf + read_len, len);

This appears to be an issue with reading from the serial, although it opens the connection fine. I've tried all the UART ports with the same thing happening.

Any ideas would be greatly appreciated.

@gvnnbrtln
Copy link

I have the same issue.
Any news?

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

2 participants