gatt_security_server demo doesnot work

peterlspot
Posts: 13
Joined: Thu Mar 29, 2018 11:22 pm

gatt_security_server demo doesnot work

Postby peterlspot » Sun Apr 15, 2018 2:17 am

Does anyone able to make gatt_security_server demo work with nRF connect mobile app?

I tried the demo on DevKitC-V2 board with nRF connect mobile on Android phone and found the bond can't work:

Code: Select all

I (175287) SEC_GATTS_DEMO: ESP_GATTS_CONNECT_EVT
E (175627) BT: l2cble_start_conn_update, the last connection update command still pending.
I (175637) SEC_GATTS_DEMO: remote BD_ADDR: 478053f5d1eb
I (175637) SEC_GATTS_DEMO: address type = 1
I (175637) SEC_GATTS_DEMO: pair status = fail
I (175637) SEC_GATTS_DEMO: Bonded devices number : 0
I (175647) SEC_GATTS_DEMO: Bonded devices list : 0
E (178687) BT: btm_sec_clr_temp_auth_service() - no dev CB
E (178687) BT: Device not found
E (178687) BT: BTA got unregistered event id 31
E (178687) BT: BTA got unregistered event id 31
I (178697) SEC_GATTS_DEMO: ESP_GATTS_DISCONNECT_EVT
I (178707) SEC_GATTS_DEMO: advertising start success
I noticed the error btm_sec_clr_temp_auth_service() and also the unregistered event 31 from DevKitC-V2's UART console, but not clear about the causes and fix yet.

I appreciate if someone can share successful experiences. Note that having two DevKitC boards working with each other isn't so meaningful since we need use non-DevKitC devices such as Android/Linux devices in our projects.

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

Re: gatt_security_server demo doesnot work

Postby chegewara » Sun Apr 15, 2018 4:05 am

Hi,
what android device are you using and which android version. This example is working for me with devKitC and few samsung smartphones (different android version). There was bug with bonding with bluetooth v4.0 smartphone but should have been fixed by now.

peterlspot
Posts: 13
Joined: Thu Mar 29, 2018 11:22 pm

Re: gatt_security_server demo doesnot work

Postby peterlspot » Sat Apr 21, 2018 11:30 am

I tried multiple devices
  • Nexus 7 tablet with Android 6
  • MiPad tablet with Android 4.4.4
  • Redmi4x phone with Android 7.1.2

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

Re: gatt_security_server demo doesnot work

Postby chegewara » Sat Apr 21, 2018 5:16 pm

Only i can say is: update esp-idf and toolchain. Eventually change debug log to verbose and then paste it, because from this log we can read too much except pairing failed.

Who is online

Users browsing this forum: dzungpv and 96 guests