Skip to content

fix(nrf52): time out BLE connections that never complete pairing (revives #2089) - #3263

Open
dotspencer wants to merge 2 commits into
meshcore-dev:devfrom
dotspencer:fix/nrf52-ble-security-timeout
Open

fix(nrf52): time out BLE connections that never complete pairing (revives #2089)#3263
dotspencer wants to merge 2 commits into
meshcore-dev:devfrom
dotspencer:fix/nrf52-ble-security-timeout

Conversation

@dotspencer

Copy link
Copy Markdown

Revives #2089 by @ipduffy

Bug: client that connects but never completes encryption (seems to be common with iOS) holds node's only peripheral slot forever. Nothing times it out, and advertising watchdog skips any state where _conn_handle is set, so node stops advertising until it's power-cycled.

Fix: drop a connection that hasn't secured within 15s and resume advertising. nRF52 only.

Testing: RAK4631, RAK_4631_companion_radio_ble. On stock firmware an unpaired bleak connection from a Mac holds the slot indefinitely. With patch the node drops it after ~13s and resumes advertising.

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