-
I have a nrf52840dongle with me, upon disabling the Kconfig Setting CONFIG_SAMPLE_BT_USE_AUTHENTICATION, the Just-pair setting seems to not work when trying to connect to a phone, but when we enable the CONFIG_SAMPLE_BT_USE_AUTHENTICATION KConfig, it works as intended. The logs are below
wireshark.log Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Why do you want to disable this config? At least from the logs, the phone is the one who terminates the connection (reason 0x13 = Remote user terminated connection). So it seems the phone mandates a level of security and the kit is unable to comply with that setting. |
Beta Was this translation helpful? Give feedback.
I am not that ventured in this sample.
One tip is to check in the
.config
file that CONFIG_BT_SMP=y.I would try with Another Phone or PC to see what difference that makes.
It could be that the phone has received a software update, and now mandates a (higher) level of security for HID. The "err 4" is
/** The requested security level could not be reached. */ BT_SECURITY_ERR_AUTH_REQUIREMENT,
So what happens is that after connection, the phone requests a security update. The HID is unable to comply so the phone terminates the connection.