Skip to content

Discover renamed boards — admission by service UUID, not just name prefix#14

Merged
lkasso merged 1 commit into
mainfrom
renamed-board-discovery
Jul 19, 2026
Merged

Discover renamed boards — admission by service UUID, not just name prefix#14
lkasso merged 1 commit into
mainfrom
renamed-board-discovery

Conversation

@lkasso

@lkasso lkasso commented Jul 19, 2026

Copy link
Copy Markdown
Member

Follow-up to PR #13's rename work: the scanner admitted peripherals into discovery by local-name prefix ("MetaWear") alone, so a renamed board ("bob") silently vanished from Nearby on any host that hadn't remembered it — despite advertising the MetaWear service UUID in every packet.

Admission is now any of three signals: the default name prefix, the MetaWear service UUID (ScanResult now carries advertised service UUIDs — the central manager saw them but dropped them before this), or MbientLab manufacturer data (the MAC broadcast). MetaBoot-mode boards match none and stay excluded on purpose — the normal connect flow can't talk to a bootloader.

6 new admission tests (renamed-by-UUID, case-insensitivity, MAC-broadcast path, foreign-peripheral and MetaBoot rejection); 1046/1046 SPM tests, app builds.

Hardware check on merge: rename a board to something un-MetaWear-like, forget it, scan — it should appear under Nearby.

🤖 Generated with Claude Code

The scanner admitted peripherals into discovery by local-name prefix
("MetaWear") alone, so a renamed board — "bob" — silently vanished from
the Nearby list on any host that hadn't remembered it, despite
advertising the MetaWear service UUID in every packet. With renames now
first-class (PR #13), the quirk was promoted from curiosity to bug.

Admission is now any of: the default name prefix, the MetaWear service
UUID (ScanResult now carries advertised service UUIDs — the central
manager saw them but dropped them), or MbientLab manufacturer data (the
MAC broadcast). MetaBoot-mode boards match none of the three and stay
excluded on purpose: the normal connect flow can't talk to a
bootloader.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lkasso
lkasso merged commit 043164e into main Jul 19, 2026
5 checks passed
@lkasso
lkasso deleted the renamed-board-discovery branch July 19, 2026 05:29
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.

1 participant