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

Issue MSP communication Arduino Leonardo #56

Open
DJacquemont opened this issue Jun 21, 2023 · 0 comments
Open

Issue MSP communication Arduino Leonardo #56

DJacquemont opened this issue Jun 21, 2023 · 0 comments

Comments

@DJacquemont
Copy link

Hi !

I am having issues when trying to communicate over USB from my computer (running Ubuntu 22.04) to a brand new Arduino Leonardo. My LOOP_TIME is 2800, the Baudrate is 115200 on both devices, and my MultiWii firmware is version 2.4.

I am using the master branch from this repository. I have tried adding a delay between opening a connection and sending messages, and disabling the Data Terminal Ready (DTR) line via stty -F /dev/ttyUSB0 -hupcl, however nothing seems to work and I thus doubt this is the issue.

To make the problem more understandable, I have se the LoggingLevel to DEBUG, and I have added the following line of code under the message ID extraction in the function processOneMessageV1
std::cout << "Intercepted message ID: " << size_t(id) << std::endl;

When I connect the Arduino and execute the file client_read_test (4 times to show the issue), here is my output:

terminal

I execute ^C because the algorithm stops and nothing more happens afterward. It seems like the buffer always keeps the older messages (and thus has nothing if the Arduino just got connected i.e. the first run)

I am wondering if this could be an error induced by a new library version. Could you please help me solve this issue ?

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