From 91cdc23bdc914e8e09c092f21867b7a085d5ea39 Mon Sep 17 00:00:00 2001 From: Wuchuyuan <1917507415@qq.com> Date: Tue, 8 Sep 2026 14:59:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=AD=E5=BC=80=E8=93=9D?= =?UTF-8?q?=E7=89=99=E4=B9=8B=E5=90=8E=E6=90=9C=E4=B8=8D=E5=88=B0=E6=B8=A9?= =?UTF-8?q?=E5=BA=A6=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jieli/JL_rcsp/bt_trans_data/le_rcsp_adv_module.c | 7 +++++++ apps/earphone/log_config/lib_btctrler_config.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/common/third_party_profile/jieli/JL_rcsp/bt_trans_data/le_rcsp_adv_module.c b/apps/common/third_party_profile/jieli/JL_rcsp/bt_trans_data/le_rcsp_adv_module.c index 0edd9c6..6f4347a 100644 --- a/apps/common/third_party_profile/jieli/JL_rcsp/bt_trans_data/le_rcsp_adv_module.c +++ b/apps/common/third_party_profile/jieli/JL_rcsp/bt_trans_data/le_rcsp_adv_module.c @@ -60,6 +60,8 @@ /* usr_le_code 库钩子:由静态库导出,供 RCSP BLE 栈回调,非应用层公开 API */ extern void usr_le_data_recieve(u8* data,u16 len); extern void usr_ble_adv_init(); +/* app_th_scan 钩子:杰理扫描上报为 GAP 0xE2,packet[2] 起 adv_report_t */ +extern void app_th_scan_report_event(u8 *packet, u16 size); #if 1 extern void printf_buf(u8 *buf, u32 len); #define log_info printf @@ -373,6 +375,11 @@ static void cbk_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p case HCI_EVENT_ENCRYPTION_CHANGE: log_info("HCI_EVENT_ENCRYPTION_CHANGE= %d\n", packet[2]); break; + + case GAP_EVENT_ADVERTISING_REPORT: + /* 与 le_wireless_mic_client 相同:packet[2] 起为 adv_report_t */ + app_th_scan_report_event(packet, size); + break; } break; } diff --git a/apps/earphone/log_config/lib_btctrler_config.c b/apps/earphone/log_config/lib_btctrler_config.c index 0724916..16c5375 100644 --- a/apps/earphone/log_config/lib_btctrler_config.c +++ b/apps/earphone/log_config/lib_btctrler_config.c @@ -231,7 +231,8 @@ const int config_btctler_le_roles = (LE_ADV | LE_SLAVE); const uint64_t config_btctler_le_features = LE_ENCRYPTION; #else -const int config_btctler_le_roles = (LE_ADV | LE_SLAVE); +/* 加热垫断连要扫风扇 JBao-* 广播:必须带 LE_SCAN,否则 ble_op_scan_enable2 无效果 */ +const int config_btctler_le_roles = (LE_ADV | LE_SLAVE | LE_SCAN); const uint64_t config_btctler_le_features = LE_ENCRYPTION| LE_DATA_PACKET_LENGTH_EXTENSION | LE_2M_PHY; #endif #else