Skip to content

feat(mpm): support RadioLink / DumboRC special commands - #7441

Merged
pfeerick merged 2 commits into
EdgeTX:mainfrom
ELynx:main
Aug 23, 2026
Merged

pfeerick merged 2 commits into
EdgeTX:mainfrom
ELynx:main

Conversation

@ELynx

@ELynx ELynx commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes:
Add serial buffer for RadioLink protocol of Multimodule, to allow communication with DumboRC P Series receivers Packing, unpacking, TX, RX are handled by multimodule radio code and .lua script.

Needed for pascallanger/DIY-Multiprotocol-TX-Module#1164
Tested changes against current main and 2.12.1 tag, both work.

Tested on my Radiomaster MT12 with Multimodule as internal module.

Summary by CodeRabbit

  • New Features
    • Expanded MULTI module RadioLink (RLink) support with additional RLink-compatible subtype recognition, and added Lua-based handling for sending raw MULTI RLink payloads and receiving RLink telemetry.
  • Documentation
    • Updated MULTI telemetry documentation with the new TLV message type and clarified variable payload length and raw command/telemetry data handling.

@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d4b625fc-feda-4b08-9eed-a1448abe4790

📥 Commits

Reviewing files that changed from the base of the PR and between e184cf3 and 2214645.

📒 Files selected for processing (5)
  • radio/src/MultiSubtypeDefs.h
  • radio/src/pulses/modules_helpers.h
  • radio/src/pulses/multi.cpp
  • radio/src/telemetry/multi.cpp
  • radio/src/telemetry/multi.h

📝 Walkthrough

Walkthrough

Adds RLink MULTI support through subtype detection, Lua-driven transmission of validated RLnk payloads, and telemetry reception that delivers inbound payloads to Lua.

Changes

RLink MULTI Protocol Support

Layer / File(s) Summary
Protocol and subtype detection
radio/src/MultiSubtypeDefs.h, radio/src/pulses/modules_helpers.h
Adds the Dumbo_P RLink subtype, updates the capability count, and defines IS_RLINK_MULTI(module) for multimodule and non-multimodule builds.
Lua TX payload sender
radio/src/pulses/multi.cpp
Routes RLink modules through sendRlink, which validates the RLnk header and 1–8 byte payload, sends the payload to the MULTI stream, and clears the consumed length.
RLink telemetry reception
radio/src/telemetry/multi.cpp, radio/src/telemetry/multi.h
Adds telemetry type 18, stores valid inbound payloads in Multi_Buffer for active RLnk scripts, dispatches the packet, and documents TLV type 0x12.

Sequence Diagram(s)

sequenceDiagram
  participant Lua
  participant setupPulsesMulti
  participant MULTI
  participant Telemetry
  Lua->>setupPulsesMulti: provide RLnk payload
  setupPulsesMulti->>MULTI: send validated payload
  Telemetry->>Lua: deliver RLink telemetry payload
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: added RadioLink/DumboRC special-command support in the multimodule path.
Description check ✅ Passed The description includes a summary and testing notes, and the optional Fixes field can be omitted per the template.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@radio/src/pulses/multi.cpp`:
- Around line 485-488: The code reads Multi_Buffer[4] for bounds then re-reads
it in the loop, which can race with Lua and change length; snapshot the length
into a local variable (e.g., uint8_t count = Multi_Buffer[4]) after validating
it (1..8) and use that local variable in the for loop and index calculations
when calling sendMulti(p_buf, Multi_Buffer[5 + i]) to prevent a concurrent
change from causing an out-of-bounds access; update any related checks to
reference the snapshot variable instead of re-reading Multi_Buffer[4].
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1f4377aa-7ca1-4281-8e5e-7a4f39ee1545

📥 Commits

Reviewing files that changed from the base of the PR and between 65f135c and 00cb4b8.

📒 Files selected for processing (4)
  • radio/src/pulses/modules_helpers.h
  • radio/src/pulses/multi.cpp
  • radio/src/telemetry/multi.cpp
  • radio/src/telemetry/multi.h

Comment thread radio/src/pulses/multi.cpp Outdated
@ELynx ELynx changed the title Multimodule / RadioLink / DumboRC special commands feat(radio): Multimodule / RadioLink / DumboRC special commands Jun 7, 2026
@pfeerick pfeerick changed the title feat(radio): Multimodule / RadioLink / DumboRC special commands feat(mpm): support RadioLink / DumboRC special commands Jun 16, 2026
ELynx added 2 commits July 17, 2026 00:36
Add serial buffer for RadioLink protocol of Multimodule, to allow communication with DumboRC P Series receivers
Packing, unpacking, TX, RX are handled by multimodule radio code and .lua script
@ELynx

ELynx commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Parent PR pascallanger/DIY-Multiprotocol-TX-Module#1164 merged, tested on same build, works!
After this is merged to main I will also backport this to 2.12.xxx, worked locally.

@ELynx

ELynx commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

@pfeerick sorry for pinging you directly; just seeing that you linted this PR before, and there is no "default assignee" or "request review" buttons, at least ones I can see.

@ELynx

ELynx commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai help

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

CodeRabbit commands

These commands are invoked using PR/Issue comments.

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai rate limit to show your current review rate limit status.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai evaluate custom pre-merge check --instructions <custom-checks-instructions> --name <custom-checks-title> [--mode <error|warning>] to validate the custom pre-merge checks instructions. Defaults to error when --mode is omitted.
  • @coderabbitai ignore pre-merge checks to override pre-merge checks and get an approval on PR.
  • @coderabbitai run pre-merge checks to run pre-merge checks on the pull request.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai emit path instructions to emit generated path-specific review instructions for this repository.
  • @coderabbitai resolve merge conflict to automatically resolve merge conflicts.
  • @coderabbitai autofix to automatically fix issues identified in unresolved review comments.
  • @coderabbitai fix-ci to automatically fix failing CI checks by creating a stacked PR with fixes.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai generate configuration to create a PR that adds the current resolved configuration as .coderabbit.yaml (or show it if already present).
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit configuration file (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, support, documentation and community

  • Visit our status page to check the current availability of CodeRabbit.
  • Create a ticket on our support page for assistance with any issues or questions.
  • Visit our documentation site for detailed information on how to use CodeRabbit.
  • Join our Discord community to connect with other users and get help from the community.
  • Follow us on X/Twitter for updates and announcements.

@ELynx

ELynx commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

Since I merged some files back and forth some file ago, and also since related PR on Multimodule is merged

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

@ELynx, starting a full review of the current PR state, including the reconciled changes and the merged Multimodule dependency.

✅ Action performed

Full review finished.

@ELynx

ELynx commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Multimodule was released
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/releases/tag/v1.3.4.63

@pfeerick

Copy link
Copy Markdown
Member

LGTM... I don't have any specific RadioLink / DumboRC hardware to test this with, but since it is restricted to that I'm comfortable with the low blast radius given you're actually using it 🤪

@pfeerick
pfeerick merged commit 917c8ce into EdgeTX:main Aug 23, 2026
1 check passed
@ELynx

ELynx commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

screen-2026-08-23-131931.bmp
screen-2026-08-23-131934.bmp
screen-2026-08-23-132033.bmp
screen-2026-08-23-132036.bmp
Tested on post-merge 3.0.0, works for me.
Thank you for the support!

@rotorman

Copy link
Copy Markdown
Member

Here the pics embedded from the above post for easier viewing:
grafik
grafik
grafik
grafik

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.

3 participants