Skip to content

radio: common RadioDriver and E220 modem - #565

Open
Mateusz-Krajewski wants to merge 1 commit into
masterfrom
mavlink/s2-e220-driver
Open

Mateusz-Krajewski wants to merge 1 commit into
masterfrom
mavlink/s2-e220-driver

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 core/radio/e220: register map and configuration, the driver, UART adapter, sysfs and file-backed pins, a fake module for tests, and an E220 module simulator (sim/e220_sim.py, with its own test) used by the end-to-end test of PR s3.
  • The driver sends one chunk (at most the module's packet length) only while AUX shows the module idle, then waits for AUX to go busy and idle again; the idle level is configurable (aux_idle_level). Send returns busy when its queue is full.
  • Extends the UART baud table with 1200, 2400 and 4800 baud (E220 defaults).
  • Tests: register, driver and I/O unit tests and the platform IRadioDriver contract suite against the fake module.
  • core/radio/e220/BUILD already holds the plugin and end-to-end targets of PR s3; their sources arrive with s3, so build and test the driver targets by name here.
  • How to test: bazel test --define build_mode=sim //core/radio/e220:test_e220_registers //core/radio/e220:test_e220_driver //core/radio/e220:test_e220_contract //core/radio/e220:test_e220_io //core/radio/e220/sim/... and bazel test --define build_mode=sim //core/uart/ut:uart_config_test --test_filter='UartConfigTest.*' (the other core/uart/ut tests already fail on master, in ara::log of the released platform); cross build: bazel build --config=bbb-EB_V2 //core/radio/e220:e220_driver_factory. Needs the platform stack (--override_repository=srp_platform=… until it is released).
  • Size: 25 files, +4220 lines.
  • Part 2/4 of the srp stack; depends on Use the srp_platform toolchains, sys_time include #564 and on the platform stack: PR 2/8 (mavlink: radio driver API, driver registry and serial radio SRP-Platform/srp_platform#80: driver API, contract suite, mavlink_driver_plugin) and, for the package to load completely, PR 8/8 (mavlink: integration tests and tools SRP-Platform/srp_platform#86: //tests/mavlink targets referenced by the end-to-end test).

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.

@Mateusz-Krajewski

Copy link
Copy Markdown
Member Author

Follow-up pushed (0c63e0c on top of bdecb32, merged forward into #566 and #567): E220 driver review nits — write path waits without the shared Poll(), test comment fixed; #566 fixes a stale fixture name in the e2e test docstring. Re-verified: driver UT + e2e 5/5 (x5 runs, 0 flaky), sim package and bbb (EB_V2) builds OK. All four PRs are now ready for review.

Base automatically changed from mavlink/s1-toolchain to master November 23, 2026 10:51
Add core/radio/common (IRadioModem, RadioDriver, FakeModem and tests) and the
Ebyte E220 modem on top of it (registers, E220Modem, driver factory, unit and
contract tests, optional RSSI/noise statistics).
@Mateusz-Krajewski Mateusz-Krajewski changed the title radio: E220 modem driver gated by AUX radio: common RadioDriver and E220 modem Nov 23, 2026

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