[SOLVED] How to send serial data over Telemetry Radio (PX4 Autopilots Support from Embedded Coder)
Mostra commenti meno recenti
I followed the Serial/UART tutorial here and everything worked fine; I can send data over USB using the Serial interface. I then based myself off of the getAccelerometerData.m file to test passing data back and forth between the Holybro Telemetry Radios while both are connected to my laptop; I've attached the .m file here. I've also attached the Simulink model.
My challenge is sending the same data, but between the Pixhawk 4 and my laptop (where one telemetry radio is plugged into the pixhawk and the other is plugged into my laptop); even though the LED indicator on the radios indicate they're communicating (which they do when I open QGroundControl), I can't get any kind of data to transfer over them. I've tried using both the TELEM1 and UART & I2C B ports on the Pixhawk (and changed the corresponding Simulink Model parameters to communicate over /dev/ttyS1 or /dev/tttyS4. I've verified that I selected both the appropriate port on my laptop, and on the Pixhawk, and tried different combinations, to no avail. In short:
Does anyone know how to allow data transfer over the Telemetry Radios between the Pixhawk and my laptop?
I'm running Windows 10 1809, Ubuntu 16.04 WSL, Pixhawk 4 with latest firmware (v1.9.0, I think), MATLAB R2018b, and the Telemetry Radios have been flashed using QGroundControl with the latest firmware.
Edit: This is literally something that is recommended to try in the Simulink documentation here: Configure the PX4 Serial Transmit and Receive model to exchange data over other serial ports of the Pixhawk Series controller.
So how do I actually do that?
4 Commenti
Robert Hedman
il 24 Lug 2019
I have the same issue.
I can, however, recieve data over telemetry serial via radio on the pixhawk.
If i manually spam data at the correct baud rate over the channel from my linux box, and run the pixhawk in external mode I do see data coming.
Joshua O'Reilly
il 25 Lug 2019
Joshua O'Reilly
il 26 Lug 2019
Joshua O'Reilly
il 26 Lug 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Analog Devices ADALM1000 Support from Data Acquisition Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
