esp32 idf4.2版本 ble 作为从机蓝牙 手机主动断开 有概率会不出现ESP_GATTS_DISCONNECT_EVT回调导致的问题
Posted: Thu Aug 08, 2024 7:59 am
//异常时的log
[17:25:18.802]收←◆[0;33mW (153965) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x13[0m
[0;33mW (153966) BT_APPL: bta_gattc_conn_cback() - cif=7 connected=0 conn_id=7 reason=0x0013[0m
//正常时的log
[17:31:28.856]收←◆[0;33mW (23367) BT_HCI: hcif di
[17:31:28.882]收←◆sc complete: hdl 0x0, rsn 0x13[0m
[0;33mW (23369) BT_APPL: bta_gattc_conn_cback() - cif=7 connected=0 conn_id=7 reason=0x0013[0m
Factory_Mode_HAL_DeInit
[0;32mI (23373) Factory BLE: ESP_GATTS_DISCONNECT_EVT, reason = 0x13[0m
[0;32mI (23380) MEOW_LOG: ESP_GATTS_DISCONNECT_EVT,
[17:31:28.916]收←◆disconnect reason 0x13[0m
[0;32mI (23387) MEOW_LOG: HEAD_RETURNING[0m
BLE_dis_connnected[0;32mI (23391) MEOW_LOG: ice_mng_rcv:00,0c
[0m
出现异常时 没有出现ESP_GATTS_DISCONNECT_EVT回调 同时main while中循环打印esp_ble_gap_read_rssi 获取发现也任务不执行了 有可能是不是协议栈挂掉了?
[17:25:18.802]收←◆[0;33mW (153965) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x13[0m
[0;33mW (153966) BT_APPL: bta_gattc_conn_cback() - cif=7 connected=0 conn_id=7 reason=0x0013[0m
//正常时的log
[17:31:28.856]收←◆[0;33mW (23367) BT_HCI: hcif di
[17:31:28.882]收←◆sc complete: hdl 0x0, rsn 0x13[0m
[0;33mW (23369) BT_APPL: bta_gattc_conn_cback() - cif=7 connected=0 conn_id=7 reason=0x0013[0m
Factory_Mode_HAL_DeInit
[0;32mI (23373) Factory BLE: ESP_GATTS_DISCONNECT_EVT, reason = 0x13[0m
[0;32mI (23380) MEOW_LOG: ESP_GATTS_DISCONNECT_EVT,
[17:31:28.916]收←◆disconnect reason 0x13[0m
[0;32mI (23387) MEOW_LOG: HEAD_RETURNING[0m
BLE_dis_connnected[0;32mI (23391) MEOW_LOG: ice_mng_rcv:00,0c
[0m
出现异常时 没有出现ESP_GATTS_DISCONNECT_EVT回调 同时main while中循环打印esp_ble_gap_read_rssi 获取发现也任务不执行了 有可能是不是协议栈挂掉了?