Using menuconfig to configure wifi_prov_mgr with sec_ver = 0?

fearless_fool
Posts: 11
Joined: Sun Feb 26, 2017 5:20 am

Using menuconfig to configure wifi_prov_mgr with sec_ver = 0?

Postby fearless_fool » Fri Jul 19, 2024 5:43 pm

I want to compile a version of
Espressif\frameworks\esp-idf-v5.2.2\examples\provisioning\wifi_prov_mgr
to use security version 0.

Short form:
What must I change in menuconfig to specify security level 0?

Details:
Running ESP-IDF 5.2 (under Windows 11) with an ESP32-c3, I launch menuconfig:

Code: Select all

PS C:\Espressif\frameworks\esp-idf-v5.2.2\examples\provisioning\wifi_prov_mgr> idf.py menuconfig
Within menuconfig, I navigate to the Component config => Bluetooth => NimBLE Options submenu, and DISABLE "Enable BLE SM feature":

Code: Select all

[ ] Enable BLE SM feature ----
After Save and Quit from menuconfig, when I [build flash monitor] the resulting configuration, it still specifies security level 1:

Code: Select all

https://espressif.github.io/esp-jumpstart/qrcode.html?data={"ver":"v1","name":"PROV_3E4530","pop":"abcd1234","transport":"ble"}
As further proof, when I run tools\esp_prov\esp_prov.py with security level 0:

Code: Select all

PS C:\Espressif\frameworks\esp-idf-v5.2.2\tools\esp_prov> python esp_prov.py --transport ble --service_name PROV_3E4530 --sec_ver 0 --ssid xxxxxxxx --passphrase yyyyyyyy
... the ESP32 provisioning app fails:

Code: Select all

E (858754) security1: Security version mismatch. Closing connection
E (858754) protocomm_nimble: Invalid content received, killing connection
So: How do I create a version of wifi_prov_mgr that allows security version 0?

Who is online

Users browsing this forum: Google [Bot] and 83 guests