-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sending data to companion computer #2
Comments
Hi @tekjar, thanks for the question. In the short term, I've created a bit bang serial crate which I am using to transmit debugging data from the flight controller to the development computer using one of the motor outputs. An example demonstrating this is available here. I think the next step would be using the UART pins which are exposed through the USB connector to communicate serially (this would require a USB-serial converter as well on the development computer side). The final step would be implementing a USB stack in rust which would eliminate the need for the usb-serial converter and make the board show up as a serial port. Now that I've got basic communication working well enough for debugging, my attention has shifted to working on the sensor fusion. But this communication stuff would be a great place for an additional contributor to start. |
I would like to do the usb stuff but I have zero knowledge on how this works. Are there any references to start this work? I'll start working on this on f3discovery |
For the purposes of the betafpv-f3 there are two separate ways to go about this, with pros/cons to each. UART using the pins exposed by the USB connectorI believe this would be the simplest to get working. Basically it would be to determine which UART is connected to the USB port and write an example which uses that for serial communication with the development PC. This work would be specific to the betafpv-f3 so you would have to have the board to work on this. Serial over USB (implementing a USB stack in nostd Rust)This would likely be the more challenging approach, but it would be more rewarding as well. The end goal here would be to implement a USB stack in nostd Rust, which would make the board look like a usb-serial adapter when connected to the computer. Work on this could be done on the f3discovery, using the |
Hi. How are you planning to send data to computer from flight controller. Through UART connected to microusb?
The text was updated successfully, but these errors were encountered: