I am trying to get BLE pairing to work with persistent keys. I am testing with the example nimble/bleprph and following the tutorial. ESP-IDF 5.4.1 on ESP32-S3 devkit. I have enabled bonding, MITM, encryption, peer address, and NVS keys persistence and tried various combinations, but I don't get a pairing request when I connect with a smartphone (I tried a few phones, using nRF Connect). I don't see errors in the console output, and I don't see anything that would suggest attempts to pair.
Attached sdkconfig.
Any suggestions on how to enable pairing for testing?
Can't get BLE Pairing to work on ESP32-S3
-
dimitar.kunchev
- Posts: 4
- Joined: Thu Feb 13, 2025 12:10 pm
-
dimitar.kunchev
- Posts: 4
- Joined: Thu Feb 13, 2025 12:10 pm
Re: Can't get BLE Pairing to work on ESP32-S3
Update:
Looks like the problem is the behavior with (some?) Android devices. iOS appears to work fine.
No solution yet
Looks like the problem is the behavior with (some?) Android devices. iOS appears to work fine.
No solution yet
Re: Can't get BLE Pairing to work on ESP32-S3
Hi,
CONFIG_BLE_SM_IO_CAP_NO_IO=y
As seen in sdkconfig, the setting is to use No Input No Output. This will lead to "Just Works" method to be used, where pairing will happen with no user intervention.
If you want to not use JustWorks, you can change the IO Capability to some other form and then it should work
The menuconfig option to modify I/O Capability is present in below path:
(Top) → Example Configuration → I/O Capability
CONFIG_BLE_SM_IO_CAP_NO_IO=y
As seen in sdkconfig, the setting is to use No Input No Output. This will lead to "Just Works" method to be used, where pairing will happen with no user intervention.
If you want to not use JustWorks, you can change the IO Capability to some other form and then it should work
The menuconfig option to modify I/O Capability is present in below path:
(Top) → Example Configuration → I/O Capability
Who is online
Users browsing this forum: ChatGPT-User, Qwantbot and 3 guests
