From 7738c4f7332160cab76ee2491c9b66bc010c2503 Mon Sep 17 00:00:00 2001 From: Shen Wei Long Date: Fri, 28 Nov 2025 09:06:14 +0000 Subject: [PATCH] change(ble): Updated the maximum number of concurrent connections to 70 on ESP32-H2 (cherry picked from commit cd33f13521179656817840f5a3743a60e2c28b3f) Co-authored-by: ShenWeilong --- components/bt/controller/esp32h2/Kconfig.in | 2 +- components/bt/host/nimble/Kconfig.in | 3 +-- .../ble_multi_conn_cent/sdkconfig.defaults.esp32h2 | 6 ------ .../ble_multi_conn_prph/sdkconfig.defaults.esp32h2 | 5 ----- 4 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_cent/sdkconfig.defaults.esp32h2 delete mode 100644 examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_prph/sdkconfig.defaults.esp32h2 diff --git a/components/bt/controller/esp32h2/Kconfig.in b/components/bt/controller/esp32h2/Kconfig.in index 17a1d9abf2..00724367d1 100644 --- a/components/bt/controller/esp32h2/Kconfig.in +++ b/components/bt/controller/esp32h2/Kconfig.in @@ -573,7 +573,7 @@ config BT_LE_LL_PEER_SCA config BT_LE_MAX_CONNECTIONS int "Maximum number of concurrent connections" depends on !BT_NIMBLE_ENABLED - range 1 35 + range 1 70 default 3 help Defines maximum number of concurrent BLE connections. For ESP32, user diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index d816de1840..41498e6a3a 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -247,8 +247,7 @@ menu "GAP / GATT / Device Settings" config BT_NIMBLE_MAX_CONNECTIONS int "Maximum number of concurrent connections" range 1 2 if IDF_TARGET_ESP32C2 - range 1 70 if IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32C5 || IDF_TARGET_ESP32C61 - range 1 35 if IDF_TARGET_ESP32H2 + range 1 70 if SOC_ESP_NIMBLE_CONTROLLER range 1 9 default 2 if IDF_TARGET_ESP32C2 default 3 diff --git a/examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_cent/sdkconfig.defaults.esp32h2 b/examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_cent/sdkconfig.defaults.esp32h2 deleted file mode 100644 index e30be10c13..0000000000 --- a/examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_cent/sdkconfig.defaults.esp32h2 +++ /dev/null @@ -1,6 +0,0 @@ -# This file was generated using idf.py save-defconfig. It can be edited manually. -# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration -# -CONFIG_BT_NIMBLE_MAX_CONNECTIONS=35 -CONFIG_BT_NIMBLE_GATT_MAX_PROCS=35 -CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT=50 diff --git a/examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_prph/sdkconfig.defaults.esp32h2 b/examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_prph/sdkconfig.defaults.esp32h2 deleted file mode 100644 index f0cb07854e..0000000000 --- a/examples/bluetooth/nimble/ble_multi_conn/ble_multi_conn_prph/sdkconfig.defaults.esp32h2 +++ /dev/null @@ -1,5 +0,0 @@ -# This file was generated using idf.py save-defconfig. It can be edited manually. -# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration -# -CONFIG_BT_NIMBLE_MAX_CONNECTIONS=34 -CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT=50