have a Jetson onboard computer connected to a PX4 flight controller.
Architecture:
-
a watcher process monitors flight state over mavlink-router TCP (tcpout://127.0.0.1:5760)
-
after landing and a disarmed/grounded delay, it starts a one-shot log downloader
-
the downloader uses MAVSDK to enumerate and download PX4 .ulg logs
-
watcher and downloader are separate processes
The downloader is able to:
-
connect successfully
-
enumerate PX4 log entries
-
download .ulg files
-
upload them afterward
A successful run looks like:
Timeout! (log_files_impl.cpp:380)
Requesting missing chunk: 204/223 (log_files_impl.cpp:381)
Sometimes there are chunk retries during transfer:
Timeout! (log_files_impl.cpp:380)
Requesting missing chunk: 204/223 (log_files_impl.cpp:381)
The real issue is this:
If a new flight starts while the log download is still in progress, PX4 goes into failsafe.
This is not just a UI issue. The vehicle behavior changes and failsafe is triggered.
Questions:
-
Is PX4 log download via MAVSDK expected to interfere with flight if arming happens during an active transfer?
-
Can log_files.download_log_file() consume enough MAVLink bandwidth / FC resources to trigger failsafe?
-
Is the correct design to guarantee that log download only happens while the vehicle remains disarmed and grounded?
-
Has anyone seen PX4 enter failsafe when a MAVSDK log transfer overlaps with new flight activity?
Important details:
-
watcher already waits for a grounded/disarmed delay before starting downloader
-
this is specifically onboard MAVSDK log download, not QGC log download
-
watcher and downloader are intentionally separated so flight-state detection and log transfer are independent
-
the problem appears only when a new flight begins during an active log transfer
Environment:
-
PX4
-
MAVSDK / MAVSDK-Python
-
Jetson Linux
-
onboard downloader service
-
mavlink-router used for watcher TCP monitoring
I’m trying to understand whether this is:
-
expected unsafe usage
-
MAVLink bandwidth saturation
-
PX4 logger/log transfer limitation
-
or a known MAVSDK behavior when download overlaps with flight
Tags
-
px4
-
mavsdk
-
mavlink
-
drone
-
jetson