bluetooth: support concurrent BLE clients#1513
Open
lesserevil wants to merge 1 commit into
Open
Conversation
This was referenced Jun 12, 2026
This was referenced Jun 12, 2026
126badb to
f001c00
Compare
Allow the phone gateway connection and one external BLE client to coexist by increasing the NimBLE connection limit and tracking multiple slave links in the firmware BLE connection state. Classify new NimBLE pairings as gateway only after the Pebble pairing service is used. Prune stale BLE gateway bonds without deleting non-gateway client bonds. Co-authored-by: GPT-5 Codex <codex@openai.com> Signed-off-by: Shawn Edwards <lesser.evil@gmail.com>
f001c00 to
f2ae093
Compare
Author
|
Sorry for the spam. This PR and the other three in the set have been running on my watch just fine, and the new feature works. Please let me know if you need more info/testing/etc. |
Collaborator
|
Pretty cool. Can you share how you tested this and which other BLE devices you tested with? |
Author
|
I have tested it on my PT2, and connected to a Garmin 1040 computer and used a BLE sniffer on my phone to check that the packets start/stop when the workout starts/stops on the watch. |
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
Scope
This is the BLE infrastructure branch needed by workout HRM sharing. It intentionally does not add the HRM GATT service, HRM advertising primitive, or workout publishing logic.
Tests
git diff --check./pbl test -M 'test_bluetooth_persistent_storage|test_nimble_hrm_service'./pbl buildgitlint --commits HEAD~1..HEADNote:
test_gap_le_connectremains in the repositoryBROKEN_TESTSlist, so the new concurrent-slave-connection unit test is not run by the default test target until that suite is re-enabled.