Is not the BLE stack implemented yet?

JoonDong
Posts: 11
Joined: Fri Dec 22, 2017 6:38 am

Is not the BLE stack implemented yet?

Postby JoonDong » Tue Jan 02, 2018 5:07 am

gatt_security_server is not paired with a peer completely. It does with IOS, but not with android.

It looks like to exchange keys but not be recognized each other when reconnecting after bonded. And ESP_GAP_BLE_SEC_REQ_EVT evnet is not received to application.

Android recognizes ESP32 as a completely different device when reconnecting after a few seconds after bonded.

And bellow messages occur after a few minutes after re-connect.

I (831) SEC_GATTS_DEMO: The number handle = 8
I (841) SEC_GATTS_DEMO: advertising start success
I (6021) SEC_GATTS_DEMO: ESP_GATTS_CONNECT_EVT
E (36031) SEC_GATTS_DEMO: ESP_GAP_BLE_AUTH_CMPL_EVT
I (36031) SEC_GATTS_DEMO: remote BD_ADDR: 6b20639a05bd
I (36031) SEC_GATTS_DEMO: address type = 1
I (36041) SEC_GATTS_DEMO: pair status = fail
I (36041) SEC_GATTS_DEMO: Bonded devices number : 1

I (36051) SEC_GATTS_DEMO: Bonded devices list : 1

I (36051) SEC_GATTS_DEMO: 52 cf 44 e9 2f 02
E (39031) BT: btm_sec_clr_temp_auth_service() - no dev CB

I (39031) SEC_GATTS_DEMO: ESP_GATTS_DISCONNECT_EVT
I (39031) SEC_GATTS_DEMO: advertising start success
E (39171) BT: Device not found

In the iOS, it works well..

Please tell me that it's still in implementation and is included in the plan.

chegewara
Posts: 591
Joined: Wed Jun 14, 2017 9:00 pm

Re: Is not the BLE stack implemented yet?

Postby chegewara » Tue Jan 02, 2018 5:39 am

It looks like to exchange keys but not be recognized each other when reconnecting after bonded. And ESP_GAP_BLE_SEC_REQ_EVT evnet is not received to application.

Android recognizes ESP32 as a completely different device when reconnecting after a few seconds after bonded.
When ive been implementing SM layer in Neils Kolban library i didnt found any of this issues. My esp32 remember all bounded devices and is reconnecting without keys exchange when is connecting with bounded device.

JoonDong
Posts: 11
Joined: Fri Dec 22, 2017 6:38 am

Re: Is not the BLE stack implemented yet?

Postby JoonDong » Tue Jan 02, 2018 6:38 am

I've known the slave usually send LTK to the master to encrypt the connection when reconnecting with each bonded devices in the BLE specification. Is what I know wrong?

mike.shaw
Posts: 1
Joined: Sun Feb 11, 2018 4:01 pm

Re: Is not the BLE stack implemented yet?

Postby mike.shaw » Mon Feb 12, 2018 10:41 pm

Hi -
I am seeing the same issue. Has there been any further investigation?

Return to “ESP32 IDF”

Who is online

Users browsing this forum: ESP_igrr, Ojisan Seiuchi and 12 guests