diff --git a/module_config/module_esp32c2_default/sdkconfig.defaults b/module_config/module_esp32c2_default/sdkconfig.defaults index 942ae078..bd4e7614 100644 --- a/module_config/module_esp32c2_default/sdkconfig.defaults +++ b/module_config/module_esp32c2_default/sdkconfig.defaults @@ -47,26 +47,27 @@ CONFIG_LOG_DEFAULT_LEVEL_ERROR=y # Compiler CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y -# Bluetooth -CONFIG_BT_ENABLED=y -CONFIG_BTDM_CTRL_MODE_ONLY=y -CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE=200 - # NimBLE Options -CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y -CONFIG_BT_NIMBLE_EXT_ADV=y -CONFIG_BT_NIMBLE_MAX_CONNECTIONS=2 +CONFIG_BT_ENABLED=y CONFIG_BT_NIMBLE_ENABLED=y CONFIG_BT_NIMBLE_BLUFI_ENABLE=y -CONFIG_BT_NIMBLE_MAX_BONDS=10 -CONFIG_BT_NIMBLE_WHITELIST_SIZE=10 -CONFIG_BT_LE_LL_RESOLV_LIST_SIZE=10 +CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y +CONFIG_BT_NIMBLE_EXT_ADV=y +CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 +CONFIG_BT_NIMBLE_WHITELIST_SIZE=1 +CONFIG_BT_LE_LL_RESOLV_LIST_SIZE=1 CONFIG_BT_LE_LL_DUP_SCAN_LIST_COUNT=1 -CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN=32 -CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU=203 -CONFIG_BT_NIMBLE_SECURITY_ENABLE=y -CONFIG_BT_NIMBLE_SM_LEGACY=y -CONFIG_BT_NIMBLE_SM_SC=y + +# NimBLE Memory Settings +CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT=10 +CONFIG_BT_NIMBLE_MSYS_1_BLOCK_SIZE=100 +CONFIG_BT_NIMBLE_MSYS_2_BLOCK_COUNT=4 +CONFIG_BT_NIMBLE_MSYS_2_BLOCK_SIZE=320 +CONFIG_BT_NIMBLE_ACL_BUF_COUNT=5 +CONFIG_BT_NIMBLE_ACL_BUF_SIZE=255 +CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70 +CONFIG_BT_NIMBLE_HCI_EVT_HI_BUF_COUNT=5 +CONFIG_BT_NIMBLE_HCI_EVT_LO_BUF_COUNT=3 # FreeRTOS CONFIG_FREERTOS_UNICORE=y diff --git a/module_config/module_esp32c2_default/sdkconfig_silence.defaults b/module_config/module_esp32c2_default/sdkconfig_silence.defaults index 4cdfc592..e84c94d4 100644 --- a/module_config/module_esp32c2_default/sdkconfig_silence.defaults +++ b/module_config/module_esp32c2_default/sdkconfig_silence.defaults @@ -51,26 +51,27 @@ CONFIG_FREERTOS_ASSERT_DISABLE=y CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y -# Bluetooth -CONFIG_BT_ENABLED=y -CONFIG_BTDM_CTRL_MODE_ONLY=y -CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE=200 - # NimBLE Options -CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y -CONFIG_BT_NIMBLE_EXT_ADV=y -CONFIG_BT_NIMBLE_MAX_CONNECTIONS=2 +CONFIG_BT_ENABLED=y CONFIG_BT_NIMBLE_ENABLED=y CONFIG_BT_NIMBLE_BLUFI_ENABLE=y -CONFIG_BT_NIMBLE_MAX_BONDS=10 -CONFIG_BT_NIMBLE_WHITELIST_SIZE=10 -CONFIG_BT_LE_LL_RESOLV_LIST_SIZE=10 +CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y +CONFIG_BT_NIMBLE_EXT_ADV=y +CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 +CONFIG_BT_NIMBLE_WHITELIST_SIZE=1 +CONFIG_BT_LE_LL_RESOLV_LIST_SIZE=1 CONFIG_BT_LE_LL_DUP_SCAN_LIST_COUNT=1 -CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN=32 -CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU=203 -CONFIG_BT_NIMBLE_SECURITY_ENABLE=y -CONFIG_BT_NIMBLE_SM_LEGACY=y -CONFIG_BT_NIMBLE_SM_SC=y + +# NimBLE Memory Settings +CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT=10 +CONFIG_BT_NIMBLE_MSYS_1_BLOCK_SIZE=100 +CONFIG_BT_NIMBLE_MSYS_2_BLOCK_COUNT=4 +CONFIG_BT_NIMBLE_MSYS_2_BLOCK_SIZE=320 +CONFIG_BT_NIMBLE_ACL_BUF_COUNT=5 +CONFIG_BT_NIMBLE_ACL_BUF_SIZE=255 +CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70 +CONFIG_BT_NIMBLE_HCI_EVT_HI_BUF_COUNT=5 +CONFIG_BT_NIMBLE_HCI_EVT_LO_BUF_COUNT=3 # FreeRTOS CONFIG_FREERTOS_UNICORE=y