SEC_GATTC_DEMO: pair status = fail ; SEC_GATTC_DEMO: fail reason = 0x63

nzh912
Posts: 23
Joined: Mon Mar 25, 2019 4:27 am

SEC_GATTC_DEMO: pair status = fail ; SEC_GATTC_DEMO: fail reason = 0x63

Postby nzh912 » Tue Oct 29, 2019 9:23 am

Hi i am modifying the [esp-idf/examples/bluetooth/bluedriod/ble/gatt_security_client]
after entered the correct matching password, the connection is failed
below is the log. it is showing the pairing failed.
[0;32mI (2870793) Cam_Uart_Decode: CAMERA_FUNCTION_BLE_PAIRING[705917][0m
[0;32mI (2891793) SEC_GATTC_DEMO: EVT 3, gattc if 3[0m
[0;32mI (2891793) SEC_GATTC_DEMO: ESP_GATTC_READ_CHAR_EVT(status=137, conn_id=0, handle=21, value_len=0):[0m
[0;32mI (2891803) SEC_GATTC_DEMO: Camera Status Read EVT.[0m
[0;32mI (2891803) SEC_GATTC_DEMO: esp_gap_cb(esp_gap_ble_cb_event_t: 8)[0m
[0;32mI (2891813) SEC_GATTC_DEMO: remote BD_ADDR: 90fd9ff6b513[0m
[0;32mI (2891823) SEC_GATTC_DEMO: address type = 0[0m
[0;32mI (2891823) SEC_GATTC_DEMO: pair status = fail[0m
[0;32mI (2891833) SEC_GATTC_DEMO: fail reason = 0x63[0m
[0;32mI (2891833) SEC_GATTC_DEMO: EVT 9, gattc if 3[0m
[0;32mI (2891833) SEC_GATTC_DEMO: write descr success[0m
[0;32mI (2891853) SEC_GATTC_DEMO: EVT 9, gattc if 3[0m
[0;32mI (2891853) SEC_GATTC_DEMO: write descr success[0m
[0;32mI (2891873) SEC_GATTC_DEMO: EVT 9, gattc if 3[0m
[0;32mI (2891873) SEC_GATTC_DEMO: write descr success[0m
[0;33mW (2896723) BT_BTM: btm_sec_clr_temp_auth_service() - no dev CB
[0m
[0;33mW (2896723) BT_APPL: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x0013[0m
[0;31mE (2896723) BT_BTM: Device not found
[0m
[0;31mE (2896733) BT_APPL: bta_gattc_mark_bg_conn unable to find the bg connection mask for: 90:fd:9f:f6:b5:13[0m
[0;32mI (2896743) SEC_GATTC_DEMO: EVT 41, gattc if 3[0m
[0;32mI (2896743) SEC_GATTC_DEMO: ESP_GATTC_DISCONNECT_EVT, reason = 0x13[0m
[0;32mI (2896753) SEC_GATTC_DEMO: EVT 5, gattc if 3[0m
But once i perform reset to the esp32, the esp32 can pair successfully.

i try to look the error message and also the fail reason from the coding. but i could not locate the what is mean by the reason 0x63.

Code: Select all

[0;32mI (2891833) SEC_GATTC_DEMO: fail reason = 0x63
Is there any description or document about this fail reason mean ? so that i can know what caused this error and can try to fix it.

User avatar
WardMas
Posts: 75
Joined: Fri Jun 19, 2020 9:09 am

Re: SEC_GATTC_DEMO: pair status = fail ; SEC_GATTC_DEMO: fail reason = 0x63

Postby WardMas » Mon Dec 07, 2020 6:43 am

Hi there, is there any update on BLE pairing fail reason document. It is not clear what these reasons are
thank you
You can always visit my YouTube channel for embedded systems related tutorials
https://youtube.com/user/wardzx1

User avatar
WardMas
Posts: 75
Joined: Fri Jun 19, 2020 9:09 am

Re: SEC_GATTC_DEMO: pair status = fail ; SEC_GATTC_DEMO: fail reason = 0x63

Postby WardMas » Mon Dec 07, 2020 9:44 am

I think I have found some clue here
https://github.com/NordicSemiconductor/ ... aci.h#L529
You can always visit my YouTube channel for embedded systems related tutorials
https://youtube.com/user/wardzx1

paul_p
Posts: 1
Joined: Wed Mar 09, 2022 8:35 am

Re: SEC_GATTC_DEMO: pair status = fail ; SEC_GATTC_DEMO: fail reason = 0x63

Postby paul_p » Tue May 10, 2022 10:19 am

WardMas wrote:
Mon Dec 07, 2020 9:44 am
I think I have found some clue here
https://github.com/NordicSemiconductor/ ... aci.h#L529
Sorry for reopening, but, what does fail reason 0x63 means?

Thanks

Who is online

Users browsing this forum: Majestic-12 [Bot] and 102 guests