From 63789778c08c6c0b775afb11dd6f7c00578af231 Mon Sep 17 00:00:00 2001 From: Zhi Wei Jian Date: Mon, 23 Mar 2026 17:23:47 +0800 Subject: [PATCH 1/2] fix(ble/bluedroid): Fixed Incorrect use of event parameters in gattc_gatts_coex (cherry picked from commit b218e02b49c234b1dac040db3b8eda85736ff836) Co-authored-by: zhiweijian --- .../bluedroid/coex/gattc_gatts_coex/main/gattc_gatts_coex.c | 4 ++-- .../{sdkconfig.defauts.esp32 => sdkconfig.defaults.esp32} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename examples/bluetooth/bluedroid/coex/gattc_gatts_coex/{sdkconfig.defauts.esp32 => sdkconfig.defaults.esp32} (100%) diff --git a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/gattc_gatts_coex.c b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/gattc_gatts_coex.c index 1b4d3cfe4c..f8257e4b6d 100644 --- a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/gattc_gatts_coex.c +++ b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/gattc_gatts_coex.c @@ -377,7 +377,7 @@ static void gattc_profile_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_ break; } ESP_LOGI(COEX_TAG, "discover service complete conn_id %d", param->dis_srvc_cmpl.conn_id); - esp_ble_gattc_search_service(gattc_if, param->cfg_mtu.conn_id, &remote_filter_service_uuid); + esp_ble_gattc_search_service(gattc_if, param->dis_srvc_cmpl.conn_id, &remote_filter_service_uuid); break; case ESP_GATTC_CFG_MTU_EVT: if (param->cfg_mtu.status != ESP_GATT_OK) { @@ -512,7 +512,7 @@ static void gattc_profile_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_ descr_elem_result = NULL; } } else { - ESP_LOGE(COEX_TAG, "decsr not found\n"); + ESP_LOGE(COEX_TAG, "descr not found\n"); } } diff --git a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defauts.esp32 b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults.esp32 similarity index 100% rename from examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defauts.esp32 rename to examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults.esp32 From b6ded29ea76b18e2f18d84dd44a637d19d641de4 Mon Sep 17 00:00:00 2001 From: Zhi Wei Jian Date: Mon, 23 Mar 2026 17:23:47 +0800 Subject: [PATCH 2/2] fix(bluedroid): printf EXAMPLE_CI_ID, PIPELINE_ID and CHIP_ID (cherry picked from commit 7bb1018948ebc367ec555f190705b0a098b34933) Co-authored-by: zhiweijian --- .../ble_50/ble50_security_server/main/ble50_sec_gatts_demo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/ble50_sec_gatts_demo.c b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/ble50_sec_gatts_demo.c index 7a47c0c935..fdadcbd928 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/ble50_sec_gatts_demo.c +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/ble50_sec_gatts_demo.c @@ -489,6 +489,8 @@ void app_main(void) adv_name_len = MIN(adv_name_len, strlen(adv_name)); memcpy(&ext_adv_raw_data[EXT_ADV_NAME_OFFSET], adv_name, adv_name_len); ext_adv_raw_data[EXT_ADV_NAME_LEN_OFFSET] = (adv_name_len + 1); + ESP_LOG_BUFFER_CHAR("Adv name", adv_name, adv_name_len); + ESP_LOGE(GATTS_TABLE_TAG,"EXAMPLE_CI_ID %d PIPELINE_ID %d CHIP_ID %d\n", CONFIG_EXAMPLE_CI_ID, CONFIG_EXAMPLE_CI_PIPELINE_ID, CONFIG_IDF_FIRMWARE_CHIP_ID); #endif ESP_ERROR_CHECK(esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT));