Skip to content

deployment: MavlinkDaemon on the EC - #567

Open
Mateusz-Krajewski wants to merge 2 commits into
mavlink/s3-e220-plugin-simfrom
mavlink/s4-deployment-ec
Open

Mateusz-Krajewski wants to merge 2 commits into
mavlink/s3-e220-plugin-simfrom
mavlink/s4-deployment-ec

Conversation

@Mateusz-Krajewski

@Mateusz-Krajewski Mateusz-Krajewski commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Part of the srp E220 stack — see #564 for the overview; platform stack: SRP-Platform/srp_platform#79.

  • Adds deployment/platform/mavlink_daemon (daemon configuration, E220 driver file, README with the pin and UART values to confirm on hardware) and adds the daemon and the driver plugin to the EC package.
  • How to test: bazel build --config=bbb-EB_V2 //deployment/cpu/ec:pkg; the package must contain the daemon, its configuration and libebyte_e220.so.
  • Size: 5 files, +93/−1 lines.
  • Part 4/4 of the srp stack; depends on radio: E220 static driver registration, simulator end-to-end test and config tool #566 and the platform stack.

Changes after review (2026-11-23)

The stack was reworked after review (#564, the toolchain part, is merged); the points below replace the matching parts of the description above.

  • The EC package gets the daemon binary built in srp (mavlink_daemon_binary, drivers linked statically): no *.so and no driver directory in the package.
  • Both links radio_a (main) and radio_b (long range, events) use serial_radio as a placeholder (/dev/ttyS2, /dev/ttyS4, to be confirmed on the hardware); the proper radio driver for the EC will be added in srp later. The E220 driver is linked into the binary but not used by the config.
  • RadioApp is commented out of //deployment/cpu/ec:pkg (its code stays): it owned /dev/ttyS1, and the daemon is to be the only owner of the radio links.
  • The daemon config uses the new strict format (restart_backoff, stats_period_ms, air_rate_bps, max_utilization, mtu, method_timeout_ms, signing); config_test starts the host daemon with it and checks that removed keys are start errors. The README explains elements, the radio budget (_links.md) and MavlinkLinkService for applications.
  • How to test: bazel test --define build_mode=sim //deployment/platform/mavlink_daemon:config_test; bazel build --config=bbb-EB_V2 //deployment/cpu/ec:pkg (the package holds the daemon, its config and the two serial_radio files, no *.so, no RadioApp).
  • Platform: needs the srp_platform MavlinkDaemon stack as pushed on 2026-11-23 (toolchain: link libm explicitly in the arm and aarch64 toolchains SRP-Platform/srp_platform#90 and desktop app for engine #79-Fix GitHub actions #86, head of PR 8/8 5abf06f); until it is released, build with --override_repository=srp_platform=<clone of that stack>.
  • Size now: 7 files, +284/−1 lines.

Round 6 (2026-11-23)

  • README: new section "Known gap: FuelService and FcRadioService". FuelService requires FcRadioService (ipc, instance 2), whose only provider is RadioApp, which is off the EC package; until FcRadioService moves to MAVLink (planned S5), the FuelService controllers get neither the rocket mass nor the oxidizer tank pressure from the FC.
  • Documentation only, no code change.
  • Size now: 7 files, +291/−1 lines.

Link the daemon on serial_radio for the EC package (RadioApp stays commented
out of the EC package) and add the daemon configuration with a config test.
…inary

S3 N5: README "Known gap": FuelService requires FcRadioService from the disabled RadioApp until it
moves to MAVLink (decision: no code change in P21).

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant