Skip to content

Increase bluetooth 5.0 PHY speed and MTU on esp32_s3#8261

Merged
thebentern merged 12 commits into
meshtastic:developfrom
h3lix1:increase_bluetooth_speed_esp32_s3
Oct 12, 2025
Merged

Increase bluetooth 5.0 PHY speed and MTU on esp32_s3#8261
thebentern merged 12 commits into
meshtastic:developfrom
h3lix1:increase_bluetooth_speed_esp32_s3

Conversation

@h3lix1

@h3lix1 h3lix1 commented Oct 8, 2025

Copy link
Copy Markdown
Contributor
  • Added ESP32-S3-only startup tuning so we explicitly request MTU 517 (was stack default 23), a 2 M PHY (was 1 M), and 251-byte PDU suggested data length (was the legacy 27-byte default) when bringing up NimBLE

  • On every new connection we now immediately re-request 2 M PHY (instead of leaving the link on 1 M) and 251-byte data length, while logging the initial/target MTU to confirm the negotiation

  • Will negotiate down if needed for devices that do not support Bluetooth 5.0

Tested on ESP32-S3 hardware and observed the BLE logs to confirm the negotiated MTU/PHY/data length

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • 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
    • Other (please specify below)
      Heltec (Lora32) V4

Tested on the following phones:

  • Motorola Edge 2024
  • iPhone 15 Pro Max

@fifieldt

fifieldt commented Oct 8, 2025

Copy link
Copy Markdown
Member

Amazing!

@fifieldt fifieldt added the enhancement New feature or request label Oct 8, 2025
@thebentern

Copy link
Copy Markdown
Contributor

Related to #7880

@thebentern

Copy link
Copy Markdown
Contributor

@h3lix1 can we enable this for ESP32-C6 targets as well?

@h3lix1

h3lix1 commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

@thebentern Added, but I'm unable to test. If anybody from MTools is reading this 😉😉

@Kazagumo

Kazagumo commented Oct 9, 2025

Copy link
Copy Markdown

tested on my esp32c6,works perfectly

@h3lix1

h3lix1 commented Oct 10, 2025

Copy link
Copy Markdown
Contributor Author

Tested with #8263 to be compatible.

@fifieldt

fifieldt commented Oct 11, 2025

Copy link
Copy Markdown
Member

Tested on Heltec v4 on Google Pixel 8a && Asus Zenfone 8, worked well.

INFO | ??:??:?? 8 [PowerFSM] BLE MTU request set to 517
INFO | ??:??:?? 8 [PowerFSM] BLE default PHY preference set to 2M
INFO | ??:??:?? 8 [PowerFSM] BLE suggested data length set to 251 bytes

@fifieldt

Copy link
Copy Markdown
Member

For good measure, this did not break a Heltec T114 (not ESP device, so should observe no change)

@thebentern thebentern merged commit fb08e17 into meshtastic:develop Oct 12, 2025
76 checks passed
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
* Increase Bluetooth speed to 2MB, increase MTU

* Adding esp32c6

* trunk fmt..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants