BLE: Just works pairing with level 2 encryption issue.

Hello,

Current Situation

We are working with an nRF5340 device running nRF Connect SDK v2.7.99-cs2.
BLE security is configured for Just Works pairing (Security Mode 1, Level 2) on the peripheral.

When we attempt to connect using a Python client on Windows (libraries such as Bleak or SimplePyBLE), the connection fails with the following logs:

Connected
Security failed: 10:F6:0A:04:FA:0A (public) level 1 err 9
Disconnected (reason 19)
Connected
Security failed: 10:F6:0A:04:FA:0A (public) level 1 err 9
Disconnected (reason 35)

Without security enabled, the connection works as expected. With Level 2 encryption, the pairing fails.

Our Expectations

  1. Guidance on testing BLE Just Works pairing using Nordic’s dongle (e.g., nRF52840 Dongle) and any available scripts or tools for validation.
  2. Recommendations for a Python client that works natively on Windows and supports Just Works pairing with Level 2 encryption out of the box.
Related