dji-sdk / Guidance-SDK

The official Guidance SDK package for Windows, Ubuntu and XU3.
134 stars 98 forks source link

uart_example hangs on read_serial #39

Open adam3039 opened 5 years ago

adam3039 commented 5 years ago

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 commented 4 years ago

I have the same issue. Any news?