My Peripheral device (nrf Connect SDK, nrf52840) will pair using NFC with an Android (8.0.0) phone. But although the Nordic device shows it is connected (in its UART output), the phone does not show connected.
If I hit 'Connect' on the phone, it will connect and discover services and everything looks normal, otherwise, if I walk away with the phone, then the Peripheral disconnects.
Is this normal behavior? I would expect that pairing implies connecting--it certainly did for the Peripheral side.
Am I missing some thing my app should do to continue on to connecting?
Here's my debug log:
field-ON
T2T-Read
field-Off
Gateway 0x20006630 Peripheral Connected 7D:D0:29:76:95:EC (random)
[00:00:14.152,862] 1;33m<wrn> bt_hci_core: opcode 0x200a status 0x09
[00:00:14.152,923] <dbg> bt_smp: bt_smp_accept: conn 0x20006630 handle 5
[00:00:14.152,923] <dbg> bt_smp: bt_smp_connected: chan 0x20006c5c cid 0x0006
[00:00:14.153,350] <dbg> bt_smp: smp_send_security_req:
[00:00:14.153,900] <dbg> bt_smp: smp_init: prnd e71eb66673775d5e7b6600237c1358ba
[00:00:14.302,368] <dbg> bt_smp: bt_smp_recv: Received SMP code 0x01 len 6
[00:00:14.302,368] <dbg> bt_smp: smp_pairing_req:
[00:00:14.594,757] <dbg> bt_smp: bt_smp_recv: Received SMP code 0x0c len 64
[00:00:14.594,757] <dbg> bt_smp: smp_public_key:
[00:00:14.620,971] <dbg> bt_smp: bt_smp_dhkey_ready: 0x2000f39b
[00:00:14.771,148] <dbg> bt_smp: bt_smp_recv: Received SMP code 0x04 len 16
[00:00:14.771,179] <dbg> bt_smp: smp_pairing_random:
[00:00:14.823,669] <dbg> bt_smp: bt_smp_recv: Received SMP code 0x0d len 16
[00:00:14.823,669] <dbg> bt_smp: smp_dhkey_check:
[00:00:14.823,730] <dbg> bt_smp: smp_f5: w 55d6824c3ffd1a1b1d9f24c1f069f5f59ddb778b691f6708875abd3a4b32491f
[00:00:14.823,760] <dbg> bt_smp: smp_f5: n1 2087ff8c8d8afc213a0d0d97794fdfeb
[00:00:14.823,791] <dbg> bt_smp: smp_f5: n2 77354d61b3477af844ad24d2f7740049
[00:00:14.824,493] <dbg> bt_smp: smp_f5: t 3e8a796166940e59fba4ad60576e7052
[00:00:14.825,561] <dbg> bt_smp: smp_f5: mackey cf446ecf1c5c69a1bee6fa3d9e0f0d07
[00:00:14.826,660] <dbg> bt_smp: smp_f5: ltk a8be53dcba3590405f09c32df6760928
[00:00:14.826,690] <dbg> bt_smp: smp_f6: w 070d0f9e3dfae6bea1695c1ccf6e44cf
[00:00:14.826,721] <dbg> bt_smp: smp_f6: n1 77354d61b3477af844ad24d2f7740049
[00:00:14.826,751] <dbg> bt_smp: smp_f6: n2 2087ff8c8d8afc213a0d0d97794fdfeb
Security changed: 7D:D0:29:76:95:EC (random) level 4
[00:00:15.004,943] <dbg> bt_smp: smp_pairing_complete: status 0x0