understanding BT_HCI event 0x2022

ivendrakeo
Posts: 2
Joined: Wed Apr 20, 2022 2:16 pm

understanding BT_HCI event 0x2022

Postby ivendrakeo » Mon Dec 11, 2023 6:31 pm

Hello,

I am running esp32C3 with IDF version 4.3.1

A quick brief on my project application senario:
I've setup my project to use both WiFi and BLE with "just works" pairing. My device is setup to advertise and an external iPhone is used to connect to the device. Automatically connecting to the device is disabled such that the phone needs to manually establish the connection every BLE connection event after pairing. Also, after a connection is successfully established I'm adjusting the connection parameters.

After bonding, Occasionally (>1%) of BLE connections I receive this error for which after receiving this error the device is thereafter unable to BLE connect to the phone. The only way I have found to resolve the issue is to release bonding information in iOS and then re-pair the device to the phone.

Code: Select all

[0;33mW (30236) BTDM_INIT: esp_bt_controller_mem_release not implemented, return OK[0m
[0;32mI (30236) BTDM_INIT: BT controller compile version [9c99115][0m
[0;32mI (30236) BTDM_INIT: Bluetooth MAC: 68:67:25:ab:28:02
[0;32mI (41066) BLE_GATTS: ESP_GAP_BLE_ADV_TERMINATED_EVT, status = 0[0m
[0;31mE (41286) BT_HCI: CC evt: op=0x2022, status=0x2[0m
[0;32mI (41286) BLE_GATTS: ESP_GATTS_CONNECT_EVT[0m
[0;32mI (41296) BLE_GATTS: ESP_GATTS_DISCONNECT_EVT, disconnect reason 0x13[0m
[0;31mE (41296) BT_APPL: bta_dm_set_encryption, not find peer_bdaddr or peer_bdaddr connection state error[0m
[0;33mW (41306) BT_L2CAP: L2CA_UpdateBleConnParams - unknown BD_ADDR 4bdf0a8a0804[0m
[0;31mE (41316) BT_APPL: Update connection parameters failed![0m
Specifically I'm wondering what "evt: op=0x2022, status=0x2" is supposed to mean and when it's thrown. I think this is the root of my issue? Or possibly confirmation that this is an iOS side issue?

Thank you!

Who is online

Users browsing this forum: Baidu [Spider] and 96 guests