Skip to content

feat(winrtble): allow overriding Coded PHY support - #493

Merged
qdot merged 1 commit into
deviceplug:masterfrom
janatjak:winrtble-set-coded-phy-supported
Oct 3, 2026
Merged

qdot merged 1 commit into
deviceplug:masterfrom
janatjak:winrtble-set-coded-phy-supported

Conversation

@janatjak

Copy link
Copy Markdown
Contributor

On some adapters that report Coded PHY support, scanning with UseCodedPhy enabled drops most 1M PHY advertisements: only frequent random-address beacons get through, while ordinary devices (named devices, peripherals with a public address advertising every ~2 s) are never reported, even right next to the PC. The same machine finds them with UseCodedPhy disabled.

Add Adapter::set_coded_phy_supported on Windows to override the detected support. SetUseCodedPhy is now called on every scan, since the watcher is reused and the value can change between scans. Behavior is unchanged unless the override is used.

On some adapters that report Coded PHY support, scanning with UseCodedPhy
enabled drops most 1M PHY advertisements: only frequent random-address
beacons get through, while ordinary devices (named devices, peripherals with
a public address advertising every ~2 s) are never reported, even right next
to the PC. The same machine finds them with UseCodedPhy disabled.

Add Adapter::set_coded_phy_supported on Windows to override the detected
support. SetUseCodedPhy is now called on every scan, since the watcher is
reused and the value can change between scans. Behavior is unchanged unless
the override is used.
@qdot

qdot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Yup several of my users have also been complaining about this, you implemented exactly what I was planning on doing, so thanks a lot for that! I will see about getting a new version out with this ASAP.

@qdot
qdot merged commit aa402e5 into deviceplug:master Oct 3, 2026
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