GATT Authentication & encryption

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

GATT Authentication & encryption

Postby f.h-f.s. » Tue Jul 25, 2017 3:31 pm

Hi all,

I've been dabbling a bit in GATTC, and I noticed the Gatt authentication request type for the reads and writes.
I've tried the different levels but all seem to fail. What do I need to set-up to use these authentication types?

Can anyone enlighten me?

Code: Select all

I (5469) Provision: Searched device Nexus 5X

I (5469) Provision: Connect to the remote device.
I (5479) Provision: Stop scan successfully
E (5999) BT: l2cble_start_conn_update, the last connection update command still pending.
E (6009) BT: l2cble_start_conn_update, the last connection update command still pending.
I (6009) Provision: EVT 40, gattc if 1
W (6019) Provision: Unhandled GATTC event 40
I (6019) Provision: EVT 2, gattc if 1
I (6029) Provision: ESP_GATTC_OPEN_EVT conn_id 0, if 1, status 0, mtu 23
I (6029) Provision: REMOTE BDA:
I (6039) Provision: 56 78 16 db a3 3c
E (6449) BT: l2cble_start_conn_update, staus = 1, line = 509
E (6869) BT: L2CA_ConnectFixedChnl(0x0006) - LCB but no CCB
E (6869) BT: SMP_Pair: L2C connect fixed channel failed.

E (6879) BT: L2CA_RemoveFixedChnl()  CID: 0x0006  BDA: 567816dba33c not connected
E (6879) BT: Unknown operation encryption completed
E (6889) BT: Unknown operation encryption completed
E (6899) BT: gatt_security_check_start BTM_SetEncryption failed btm_status=3
E (6899) BT: No pending command
E (6909) BT: l2cble_process_conn_update_evt: Error status: 59
D (6909) nvs: nvs_open bt_config.conf 1
D (6919) nvs: nvs_set_blob bt_cfg_key 420
D (6919) nvs: nvs_close 8
E (36029) BT: bta_gattc_conn_cback() - cif=1 connected=0 conn_id=1 reason=0x0013
I (36029) Provision: EVT 41, gattc if 1
W (36029) Provision: Unhandled GATTC event 41
I (36039) Provision: EVT 5, gattc if 1
W (36039) Provision: Unhandled GATTC event 5
Whoops the above was caused by my bt connection settings

A error still happens though:

Code: Select all

I (4431) Provision: Nexus 5X
I (4431) Provision:

I (4441) Provision: Searched device Nexus 5X

I (4441) Provision: Connect to the remote device.
I (4451) Provision: Stop scan successfully
E (4661) BT: l2cble_start_conn_update, the last connection update command still pending.
E (4661) BT: l2cble_start_conn_update, the last connection update command still pending.
I (4671) Provision: EVT 40, gattc if 1
W (4671) Provision: Unhandled GATTC event 40
I (4681) Provision: EVT 2, gattc if 1
I (4681) Provision: ESP_GATTC_OPEN_EVT conn_id 0, if 1, status 0, mtu 23
I (4691) Provision: REMOTE BDA:
I (4691) Provision: 78 e4 b1 f4 10 ca
E (5111) BT: l2cble_start_conn_update, staus = 1, line = 509
E (5611) BT: lmp_version_below LMP version 8 < 8
E (5621) BT: l2cble_start_conn_update, the last connection update command still pending.
E (5631) BT: l2cble_process_conn_update_evt: Error status: 59
E (5691) BT: l2cble_start_conn_update, staus = 1, line = 509
D (35611) nvs: nvs_open bt_config.conf 1
D (35611) nvs: nvs_set_blob bt_cfg_key 420
D (35611) nvs: nvs_close 8
I (35611) Provision: EVT 3, gattc if 1
E (35611) Provision: status Not OK 137
E (38611) BT: btm_sec_clr_temp_auth_service() - no dev CB

E (38611) BT: bta_gattc_conn_cback() - cif=1 connected=0 conn_id=1 reason=0x0016
I (38611) Provision: EVT 41, gattc if 1
E (38611) BT: Device not found

E (38621) BT: bta_gattc_mark_bg_conn unable to find the bg connection mask for: 78:e4:b1:f4:10:ca
W (38631) Provision: Unhandled GATTC event 41
I (38631) Provision: EVT 5, gattc if 1
W (38641) Provision: Unhandled GATTC event 5
l2cble_process_conn_update_evt: error status 59 == HCI_ERR_UNACCEPT_CONN_INTERVAL?

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

Re: GATT Authentication & encryption

Postby f.h-f.s. » Thu Aug 03, 2017 8:13 am


Who is online

Users browsing this forum: No registered users and 133 guests