Skip to content

Enabled SX_LNA_EN by default#10469

Merged
caveman99 merged 2 commits into
meshtastic:developfrom
RikerZhu:develop
May 19, 2026
Merged

Enabled SX_LNA_EN by default#10469
caveman99 merged 2 commits into
meshtastic:developfrom
RikerZhu:develop

Conversation

@RikerZhu

@RikerZhu RikerZhu commented May 13, 2026

Copy link
Copy Markdown
Contributor

Set PI4IO's P5 high by default, enabling SX_LNA_EN to resolving the insufficient communication distance issue in M5Stack Unit C6L.

Detailed some comments.

  • [Y] I have tested that my proposed changes behave as described.
  • [Y] I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • [Y] Other (M5Stack UnitC6L)

@github-actions github-actions Bot added needs-review Needs human review hardware-support Hardware related: new devices or modules, problems specific to hardware labels May 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the M5Stack UnitC6L (ESP32-C6) variant bring-up to drive the PI4IO expander output for SX_LNA_EN high by default, aiming to improve RF receive performance / communication distance on that hardware.

Changes:

  • Set PI4IO P5 (SX_LNA_EN) high during c6l_init().
  • Add an additional PI4IO OUT_SET read/modify/write step (and delays) to also set P6 (SX_ANT_SW).

Comment on lines 74 to 77
i2c_write_byte(PI4IO_M_ADDR, PI4IO_REG_OUT_SET, in_data);
vTaskDelay(10 / portTICK_PERIOD_MS);

i2c_read_byte(PI4IO_M_ADDR, PI4IO_REG_OUT_SET, &in_data);

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@caveman99 caveman99 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you set a new bit, you need to adapt the configuration registers too.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@caveman99 caveman99 merged commit 622aa04 into meshtastic:develop May 19, 2026
14 of 24 checks passed
thebentern pushed a commit that referenced this pull request May 19, 2026
* Enabled SX_LNA_EN by default
* Update I2C configuration for IO direction and pull settings

---------

Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
@t-miura

t-miura commented May 21, 2026

Copy link
Copy Markdown

@RikerZhu
Thanks for the fix, I personally backported your fix to 2.7.23(current alpha) on #10455 and tested,
it fixed the issue with great improvement of RSSI!

And, I'm not sure who's right person to ask but to someone who's reading this:
will this fix applied to future 2.7.x release, if any updates on them are planned?
or we'll have to wait until 2.8.x is released?

suntrackspb pushed a commit to suntrackspb/firmware-ru that referenced this pull request May 23, 2026
Что вошло из апстрима (40 коммитов):
- Position precision security fix: утечка координат через PRIMARY канал (meshtastic#10509)
- T-Echo-Card поддержка + OLED_TINY guard для компаса
- ThinkNode M7, Station G3 варианты
- SX_LNA_EN включён по умолчанию (meshtastic#10469)
- WiFi TCP/HTTP fix при отсутствии USB serial (meshtastic#10460)
- Rework clock renderer (70% max)
- Обновлены protobufs → 59cb394

Конфликты разрешены:
- UIRenderer.cpp: взята версия апстрима (OLED_TINY) вместо 2.8-ветки
- PositionPrecision.{cpp,h}: взят upstream security fix (meshtastic#10509)
- admin.pb.h, cardputer variant.cpp, test_position_precision: взят апстрим
- protobufs submodule: обновлён до 59cb394

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@t-miura

t-miura commented May 23, 2026

Copy link
Copy Markdown

hi team, thank you for releasing 2.7.24 with this patch and others!
i just flashed, and everything's working fine with C6L and other my nodes.

Evil8it pushed a commit to Evil8it/ME4TACTNK that referenced this pull request Jun 10, 2026
* Enabled SX_LNA_EN by default
* Update I2C configuration for IO direction and pull settings

---------

Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hardware-support Hardware related: new devices or modules, problems specific to hardware needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants