Love the SW, thanks for the work you do. My assistant drafted this report about a large log I just downloaded.
found what appears to be an unnecessary fallback from MAVFTP to the legacy MAVLink log-download protocol.
Test environment
-
QGroundControl 5.1.5
-
ArduPlane 4.7.2
-
SpeedyBee F405 Wing
-
macOS Sequoia 15.8
-
Direct USB connection
Measurements
Using QGC’s onboard log downloader, I was seeing approximately 50 kB/s.
I then downloaded logs from the same flight controller using PyMAVLink’s MAVFTP client:
| Log size | Transfer time | Speed |
|---|---|---|
| 2,293,760 bytes | 7.62 s | 294.1 kByte/s |
| 13,258,752 bytes | 43.63 s | 296.7 kByte/s |
The results are very consistent, showing roughly 6× greater throughput than the QGC downloads.
The larger transfer was performed using:
python -m pymavlink.mavftp \
--device /dev/cu.usbmodem212101 \
get /APM/LOGS/00000020.BIN \
log_20_speedtest.bin
Possible cause
Looking at QGC 5.1.5’s OnboardLogController.cc, the following code in _ftpFinishListing() appears relevant:
if (_vehicle &&
_vehicle->ftpManager()->listDirectoryWithTimeUnsupported()) {
_ftpFallbackToMessages();
return;
}
ArduPilot only added ListDirectoryWithTime support in 4.8, so ArduPlane 4.7.2 does not support that operation.
My understanding is that QGC initially attempts MAVFTP, but if the firmware cannot supply directory timestamps, it abandons FTP log transfers entirely and reverts to the slower LOG_REQUEST_DATA protocol.
This seems unnecessarily restrictive when the firmware supports normal MAVFTP file listings and downloads.
Source:
ArduPilot MAVFTP documentation:
Suggested improvement
Would it be possible to retain MAVFTP downloads on older ArduPilot firmware even when directory modification timestamps are unavailable?
For example, display unknown dates where necessary, rather than reverting the entire download process to the legacy protocol.
I appreciate that the existing fallback may be necessary for certain PX4 firmware versions, so any change should preserve that compatibility.
I haven’t yet captured QGC debug output confirming this particular fallback path, but the direct MAVFTP measurements demonstrate that the controller itself is capable of substantially higher throughput.
Is this expected behaviour, and would a change to retain MAVFTP for older ArduPilot versions be acceptable?