Skip to content

fix(room_server): support RX boosted gain#3023

Merged
liamcottle merged 1 commit into
meshcore-dev:devfrom
agessaman:fix/rx-boosted-gain
Jul 22, 2026
Merged

fix(room_server): support RX boosted gain#3023
liamcottle merged 1 commit into
meshcore-dev:devfrom
agessaman:fix/rx-boosted-gain

Conversation

@agessaman

Copy link
Copy Markdown
Contributor

The room server exposes the shared radio.rxgain preference through CommonCLI, but unlike the repeater, it does not connect that preference to the radio:

  • rx_boosted_gain is not given the repeater’s default and remains zero after preference initialization
  • the persisted setting is not applied during room-server startup
  • set radio.rxgain on saves the preference, but returns Error: unsupported and does not apply it immediately

This mirrors the repeater implementation: initialize the default under the same radio guards, apply the preference during startup, and override setRxBoostedGain() so CLI changes take effect.

Built Heltec_v3_room_server (SX1262) and LilyGo_T3S3_sx1276_room_server (unsupported-radio fallback).

The room server never supported RX boosted gain, while the repeater
does. Three consequences on SX1262/SX1268 boards:

- boosted gain was never applied to the radio at boot, so a room server
  ran in power-saving RX mode while an identical repeater ran boosted -
  a real receive-sensitivity difference with nothing pointing at it
- _prefs.rx_boosted_gain was never initialised (the prefs are memset to
  0 before defaults are set), so it defaulted to off
- 'set radio.rxgain on' replied "Error: unsupported" but CommonCLI had
  already written the value to prefs and saved them, so a stale setting
  survived reboot and was never applied

Mirror the repeater's implementation: initialise the pref default under
the same USE_SX1262/USE_SX1268 and SX126X_RX_BOOSTED_GAIN guards, apply
it during radio init, and override setRxBoostedGain() so the CLI reports
success and takes effect.

Built Heltec_v3_room_server (SX1262) and LilyGo_T3S3_sx1276_room_server
(guards compile out cleanly).
@liamcottle
liamcottle merged commit 8a69f34 into meshcore-dev:dev Jul 22, 2026
15 checks passed
@agessaman
agessaman deleted the fix/rx-boosted-gain branch July 22, 2026 15:29
hermes-gadget added a commit to gadgethd/MeshCore-MQTT that referenced this pull request Jul 23, 2026
Upstream commits:
- a71cc23 fix(room_server): support RX boosted gain
- 8a69f34 Merge pull request meshcore-dev#3023 from agessaman/fix/rx-boosted-gain

Clean auto-merge (no conflicts). MQTT additions preserved.

Files changed:
- examples/simple_room_server/MyMesh.cpp: 13 insertions
- examples/simple_room_server/MyMesh.h: 1 insertion
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.

2 participants