Hello
I've just started using BLE in my project, using NimBLE (esp-idf v3.3.4).
I am using the bleprph example, with CONFIG_EXAMPLE_BONDING, CONFIG_EXAMPLE_MITM, and CONFIG_EXAMPLE_USE_SC all enabled.
I am connecting with an Android phone, using the LightBlue app.
I can connect, disconnect, and reconnect fine - so long as I don't write to the gatt_svr_chr_sec_test_static_uuid characteristic.
If I write to this characteristic, I have to accept a pairing request.
If I then disconnect, reconnecting fails.
After this failure, I can reconnect successfully.
I've seen exactly the same behaviour with the nRF Connect app. Using Bluetooth LE Explorer from my Win10 desktop has similar issues - trying to reconnect once paired causes a repeated stream of disconnections.
If I disable CONFIG_EXAMPLE_USE_SC, I can reconnect without being disconnected.
Logs from LightBlue app and bleprph output:
Any suggestions how to investigate further would be appreciated.
NimBLE reconnection fails when paired with Secure Connection enabled
-
- Posts: 8
- Joined: Mon Nov 30, 2020 10:52 am
Who is online
Users browsing this forum: Bing [Bot] and 226 guests