when the program started execution. the pairing is established but the placement where I can insert the passkey has not occurred. after that error 8 (0x8) gatt conn timeout occurs in the log
-> disconnected -> bonding failed
when the program started execution. the pairing is established but the placement where I can insert the passkey has not occurred. after that error 8 (0x8) gatt conn timeout occurs in the log
-> disconnected -> bonding failed
I assume you have followed what we did in ble_app_gls. In that example we print out the passkey to UART. I'm not so sure what you are doing in this case to display the passkey.
You would need something equivalent to NRF_LOG_INFO("Passkey: %s", nrf_log_push(passkey)); as in the example.
If you don't have UART to display and have an LCD to display you need to show it on the LCD.
Then on the other side (phone ) you type the 6 digit passkey in to complete the bonding.
If you don't have display/uart then don't use passkey, simply use Just Works (set SEC_PARAM_IO_CAPABILITIES = BLE_GAP_IO_CAPS_NONE)
I want to make a secure connection means I want to make pairing and bonding with the passkey. so as a user of nrfconnect, if I enter the right passkey I can use the ble_nus service
Hi Benlakhel,
Have you tested the ble_app_gls ?
Are you planning not to display a random passkey, but has it stored some where (like a serial number, or a password ? ) and then the user need to enter the key on the phone ?
It's not how passkey works. And having a static passkey is not secure.
If you want to have a password, you may want to consider using an extra layer of application security/authentication instead of using bluetooth pairing.
You can have a look at this blog: Simple Application-level Authentication
hi Hung,
yes sir exactly,
thank you so much, so I will check the blog and I will try to add an extra layer