I am using nrf52833 DK, v3.0.2 SDK
The example can be found at https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_bms/README.html.
Connect to the kit that runs this sample with a terminal emulator (for example, the Serial Terminal app). See Testing and optimization for the required settings and steps.
Reset the kit.
Start nRF Connect for Desktop.
Open the Bluetooth Low Energy app and select the connected device that is used for communication.
Connect to the device from the app. The device is advertising as Nordic_BMS.
Bind with the device:
Check the logs to verify that the connection security is updated.
Disconnect the device in the app.
All of these steps were fine, but the ninth step, "Reconnect again and verify that the connection security is updated automatically," is causing a problem.
Security failed: D6:C5:8D:44:66:E7 (random) level 1 err 9
Disconnected, reason 0x3d
Connection object available from previous conn. Disconnect is complete!
*** Booting nRF Connect SDK v3.0.2-89ba1294ac9b *** *** Using Zephyr OS v4.0.99-f791c49f492c *** Starting Bluetooth Peripheral BMS sample I: 2 Sectors of 4096 bytes I: alloc wra: 0, f70 I: data wra: 0, bc I: SoftDevice Controller build revision: I: 89 9a 50 8a 95 01 9c 58 |..P....X I: fc 39 d2 c1 10 04 ee 02 |.9...... I: 64 ce 25 be |d.%. I: HW Platform: Nordic Semiconductor (0x0002) I: HW Variant: nRF52x (0x0002) I: Firmware: Standard Bluetooth controller (0x00) Version 137.20634 Build 2617349514 I: No ID address. App must call settings_load() Bluetooth initialized I: Identity: CE:30:8D:31:C2:6E (random) I: HCI: version 6.0 (0x0e) revision 0x10f3, manufacturer 0x0059 I: LMP: version 6.0 (0x0e) subver 0x10f3 Advertising successfully started Connected Passkey for D6:C5:8D:44:66:E7 (random): 270990 Pairing completed: D6:C5:8D:44:66:E7 (random), bonded: 1 Security changed: D6:C5:8D:44:66:E7 (random) level 4 Disconnected, reason 0x13 Connection object available from previous conn. Disconnect is complete! Advertising successfully started Connected Security failed: D6:C5:8D:44:66:E7 (random) level 1 err 9 Disconnected, reason 0x3d Connection object available from previous conn. Disconnect is complete!