feat: Add Inhero MR-2 repeater board variant#2316
Draft
liekmarflow wants to merge 2 commits intomeshcore-dev:devfrom
Draft
feat: Add Inhero MR-2 repeater board variant#2316liekmarflow wants to merge 2 commits intomeshcore-dev:devfrom
liekmarflow wants to merge 2 commits intomeshcore-dev:devfrom
Conversation
8b97f9b to
468fae2
Compare
…I commands Add virtual hooks to MainBoard for board-specific functionality: - tick(): periodic board tasks (e.g., watchdog feeding) - getCustomGetter()/setCustomSetter(): CLI 'get board.*'/'set board.*' dispatch - queryBoardTelemetry(): board-specific CayenneLPP telemetry This enables variant boards to expose custom sensors, configuration, and telemetry without modifying core MeshCore code.
2714460 to
90a714c
Compare
Hardware: RAK4630, BQ25798 MPPT solar charger with Power Path, INA228 fuel gauge, RV-3028-C7 RTC, BME280. Features: - Multi-chemistry support: Li-Ion, LiFePO4, LTO, Na-Ion with JEITA - 3.6-24V MPPT solar charging - Precision fuel gauging via INA228 (coulomb counting + voltage correlation) - Low-power: ~6 mA active idle (RX), < 500 uA sleep, ~15 uA system-off - Low V Sleep with RTC-triggered recovery checks - Configuration via custom CLI commands via get/set board.* extension pattern Includes: board definition, variant config, I2C drivers (BQ25798, INA228), BoardConfigContainer.
90a714c to
1a460d2
Compare
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.
Summary
Adds the Inhero MR-2, a purpose-built MeshCore repeater board for off-grid solar deployments. This PR introduces two commits:
MainBoardfortick(),get/set board.*CLI dispatch, andqueryBoardTelemetry(). These are no-ops by default and don't affect existing boards.Hardware
Key Features
get/set board.*(battery config, telemetry, diagnostics)Build Environments
Inhero_MR2_repeaterInhero_MR2_repeater_bridge_rs232Inhero_MR2_sensorChanges to Core
Commit 1 adds 30 lines across 4 files — all additive, no existing behavior changed:
src/MeshCore.h—CayenneLPPforward declaration + 4 virtual methods onMainBoardsrc/helpers/CommonCLI.cpp—get board.*/set board.*dispatch (2 blocks)examples/simple_repeater/MyMesh.cpp—board.queryBoardTelemetry()callexamples/simple_repeater/main.cpp—board.tick()callDocumentation
variants/inhero_mr2/README.md— compact board overview with key specsTesting