I’m working with a setup where I have a Raspberry Pi 4B alongside a Pixhawk Cube Orange on my drone. I’d like to save the flight logs (BIN or TLOG formats, BIN primary) directly to the Raspberry Pi’s SD card, rather than using the onboard SD card of the Pixhawk.
Can anyone guide me on how to configure the Pixhawk to redirect log files to the Raspberry Pi? Are there specific settings or scripts that I need to use to make this work?
Thank you for your answer. To be honest, I’m still a bit confused. To achieve this, I need to connect the Telem1 or Telem2 port to the GPIO pins on the RPi and receive telemetry data, then write it to a specified location in a certain format, correct? What exactly does adjusting the LOG_BACKEND_TYPE parameter change? I am able to receive MAVLink messages from the Telem port without changing this parameter.
I performed the task using the mavlink-router library, and it worked well. I want to share results with community:
Without MAVLink Streaming: When using LOG_BACKEND_PARAMETER without enabling MAVLink streaming, I observed that no .bin log files were saved. Only .tlog files were created, which were quite limited in comparison.
With MAVLink Streaming Enabled: By enabling MAVLink streaming and setting LOG_BACKEND_TYPE to 2, I was able to generate .bin log files as expected. This setup provided more detailed and comprehensive logging.
In summary, enabling MAVLink streaming by configuring LOG_BACKEND_TYPE to 2 is necessary to properly save .bin log files.