Repository navigation
radio: common RadioDriver and E220 modem - #565
Open
Mateusz-Krajewski wants to merge 1 commit into
Open
Mateusz-Krajewski wants to merge 1 commit into
Mateusz-Krajewski wants to merge 1 commit into
Conversation
This was referenced Nov 19, 2026
Mateusz-Krajewski
marked this pull request as ready for review
November 19, 2026 18:16
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 |
Mateusz-Krajewski
force-pushed
the
mavlink/s2-e220-driver
branch
from
November 22, 2026 20:46
f2f4ea3 to
dc362a1
Compare
Mateusz-Krajewski
force-pushed
the
mavlink/s2-e220-driver
branch
from
November 23, 2026 10:51
dc362a1 to
5687c2b
Compare
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
force-pushed
the
mavlink/s2-e220-driver
branch
from
November 23, 2026 11:39
5687c2b to
27097c9
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the srp E220 stack — see #564 for the overview; platform stack: SRP-Platform/srp_platform#79.
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.aux_idle_level).Sendreturns busy when its queue is full.IRadioDrivercontract suite against the fake module.core/radio/e220/BUILDalready 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.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/...andbazel test --define build_mode=sim //core/uart/ut:uart_config_test --test_filter='UartConfigTest.*'(the othercore/uart/uttests already fail onmaster, inara::logof 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).mavlink_driver_plugin) and, for the package to load completely, PR 8/8 (mavlink: integration tests and tools SRP-Platform/srp_platform#86://tests/mavlinktargets 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.
core/radio/common(IRadioModem,RadioDriver,FakeModemand tests): the common driver logic for srp radio modems, on top of the platformIRadioDriverAPI.E220ModemonRadioDriver, with the register map, the driver factory, unit and contract tests and optional RSSI / noise statistics (stats_period_msin the driver file, default 0 = off; not checked on a real module yet)..soplugin,SerialPortUart, the sysfs and file pins of the old driver (i_e220_pins.hpp,FileE220Pins) andtest_e220_io.cpp. The module simulator moved to radio: E220 static driver registration, simulator end-to-end test and config tool #566.core/radio/e220is the final one and already mentions the targets of radio: E220 static driver registration, simulator end-to-end test and config tool #566 (registration, simulator, configuration tool).bazel test --define build_mode=sim //core/radio/common/... //core/radio/e220/... //core/uart/ut:uart_config_test; cross build:bazel build --config=bbb-EB_V2 //core/radio/e220:e220_driver_factory.//core/uart/ut:uart_audit_bugs_testfails already onmaster(a reproduction test of an audit finding, not touched here).5abf06f); until it is released, build with--override_repository=srp_platform=<clone of that stack>.masterafter Use the srp_platform toolchains, sys_time include #564).