Skip to content

fix(FTPManager): fall back to non-burst read when a burst cannot compete - #15028

Open
julianoes wants to merge 1 commit into
masterfrom
fix-ftp-burst-fallback
Open

fix(FTPManager): fall back to non-burst read when a burst cannot compete#15028
julianoes wants to merge 1 commit into
masterfrom
fix-ftp-burst-fallback

Conversation

@julianoes

Copy link
Copy Markdown
Contributor

Description

When trying out burst downloading xml files from a camera via PX4, the burst failed because PX4 would not forward more than two messages at a time, and MAVSDK sends them too quickly (to be addressed separately).

This change falls back to non-burst download if the burst fails.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • CI/Build changes
  • Other

Testing

  • Tested locally
  • Added/updated unit tests
  • Tested with simulator (SITL)
  • Tested with hardware

Platforms Tested

  • Linux
  • Windows
  • macOS
  • Android
  • iOS

Flight Stacks Tested

  • PX4
  • ArduPilot

Screenshots

Checklist

  • I have read the Contribution Guidelines
  • I have read the Code of Conduct
  • My code follows the project's coding standards
  • I have added tests that prove my fix/feature works
  • New and existing unit tests pass locally

Related Issues


By submitting this pull request, I confirm that my contribution is made under the terms of the project's dual license (Apache 2.0 and GPL v3).

…lete

A burst read streams packets until the end of the file and the protocol gives
the client no way to ask for less, so a link which cannot absorb the stream
delivers only the first few packets of every burst. Retrying the burst then
makes the same small amount of progress each time and the download fails, even
though every attempt demonstrably moved forward.
Seen downloading a camera definition from a MAVSDK camera routed through PX4:
PX4 forwards one message per loop iteration into a two-message buffer, so
exactly two of the fourteen burst packets survived each round, and QGC gave up
after three retries with a third of the file fetched.
Record whatever has not arrived as missing and advance to the existing
fill-missing-blocks state instead of failing. That path already requests one
chunk at a time with kCmdReadFile and never has more than a single message in
flight, so it is unaffected by whatever truncated the burst. It also covers a
burst that delivers nothing at all, which makes the whole file one missing
block. Healthy links are unaffected since this is only reached once the burst
has already exhausted its retries.
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Build Results

Platform Status

Platform Status Details
Linux Passed View
Windows Passed View
MacOS Passed View
Android Passed View

All builds passed.

Pre-commit

Check Status Details
pre-commit Failed (non-blocking) View

Pre-commit hooks: 2 passed, 76 failed, 7 skipped.

Test Results

linux-coverage-integration: 52 passed, 0 skipped
linux-coverage-unit: 185 passed, 0 skipped
linux-sanitizers-integration: 31 passed, 0 skipped
linux-sanitizers-unit: 185 passed, 0 skipped
Total: 453 passed, 0 skipped

Code Coverage

Coverage: 70.6%

No baseline available for comparison

Artifact Sizes

Artifact Size
QGroundControl 253.10 MB
QGroundControl-aarch64 177.11 MB
QGroundControl-installer-AMD64 128.87 MB
QGroundControl-installer-AMD64-ARM64 71.02 MB
QGroundControl-installer-ARM64 99.55 MB
QGroundControl-linux 84.76 MB
QGroundControl-mac 84.76 MB
QGroundControl-x86_64 189.37 MB
No baseline available for comparison

Updated: 2026-09-03 03:58:11 UTC • Commit: 07df322 • Triggered by: MacOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant