The remote device is an android tablet running android version 4.0.4 and I do not have access to capture the log on this device. The log on my development platform looks like this.
12:59:26.727 [681088.73] HCI:EVENT:04
12:59:26.741 [681088.74] Connection_incoming: 04:fe:31:13:0e:d0, type 1
12:59:26.752 [681088.75] sending hci_accept_connection_request
12:59:26.754 [681088.75] HCI:EVENT:0f
12:59:26.887 [681088.89] HCI:EVENT:03
12:59:26.901 [681088.90] Connection_complete (status=0) 04:fe:31:13:0e:d0
12:59:26.912 [681088.91] New connection: handle 1, 04:fe:31:13:0e:d0
12:59:26.923 [681088.92] BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1
12:59:26.959 [681088.96] HCI:EVENT:1b
12:59:27.009 [681089.01] HCI:EVENT:17
12:59:27.016 [681089.02] HCI_EVENT_LINK_KEY_REQUEST
12:59:27.042 [681089.04] Link key 4:b3:84:38:2e:b8:de:34:f6:7e:d3:83:8b:4b:60:70
12:59:27.046 [681089.05] HCI:EVENT:0e
12:59:27.053 [681089.05] Link Key status 0
12:59:27.068 [681089.07] HCI:EVENT:17
12:59:27.075 [681089.07] HCI_EVENT_LINK_KEY_REQUEST
12:59:27.086 [681089.09] responding to link key request
12:59:27.100 [681089.10] Link key 4:b3:84:38:2e:b8:de:34:f6:7e:d3:83:8b:4b:60:70
12:59:27.104 [681089.10] HCI:EVENT:0e
12:59:27.111 [681089.11] Link Key status 0:d0:e:13
12:59:27.190 [681089.19] HCI:EVENT:05
12:59:27.197 [681089.20] Disconnect reason 13
12:59:27.208 [681089.21] Connection closed: handle 1, 04:fe:31:13:0e:d0
12:59:27.220 [681089.22] BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 0
Is there any issue with the byte order of either the Link key or the BD address while responding to the HCI_EVENT_LINK_KEY_REQUEST?
On Wednesday, July 31, 2013 8:30:24 AM UTC-7, Matthias Ringwald wrote:
Hi Rajesh
What's the other side? Do you have logs from the remote?
After you get a link key, this should be enough to setup an authenticated connection the next time, independent of the SSP.
Best
Matthias