Can't get BLE Pairing to work on ESP32-S3

dimitar.kunchev
Posts: 4
Joined: Thu Feb 13, 2025 12:10 pm

Can't get BLE Pairing to work on ESP32-S3

Postby dimitar.kunchev » Fri May 02, 2025 7:02 am

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?
Attachments
sdkconfig.txt
(77.32 KiB) Downloaded 8 times

dimitar.kunchev
Posts: 4
Joined: Thu Feb 13, 2025 12:10 pm

Re: Can't get BLE Pairing to work on ESP32-S3

Postby dimitar.kunchev » Tue May 20, 2025 6:05 am

Update:
Looks like the problem is the behavior with (some?) Android devices. iOS appears to work fine.
No solution yet

irahul
Espressif staff
Espressif staff
Posts: 57
Joined: Fri Jun 18, 2021 10:07 am

Re: Can't get BLE Pairing to work on ESP32-S3

Postby irahul » Tue May 20, 2025 7:23 am

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

Who is online

Users browsing this forum: Amazon [Bot], Applebot, Baidu [Spider] and 5 guests