pairing fail with ncs 2.8.0

hello Nordic 

we are working with nrf52832 and nrf 52840 .. migrated to ncs2.7.0 lately and now migrating to ncs 2.8.0 (at the moment building without sysbuild)

we did not change anything in the pairing mechanism but suddenly it seems to stop working

i first get the 'bt_conn_cb'  callback of " .security_changed" which inside it i get that  'bt_conn_get_security(const struct bt_conn *conn)  returns with value = 2 which indicates pairing 

but right after that i get another  'bt_conn_auth_info_cb' callback of " .pairing_failed" followed by the first callback .. indicating a fail 

i get this print (from ncs) " bt_smp: pairing failed (peer reason 0x3) "

any idea what has changed ?

and what does peer reason 3 means ?

hope to read you soon

best regards

Ziv

Parents Reply
  • hi Einar

    as suggested here the issue on the ncs side is the attempt to work with mcumgr befor pairing was completed .. though it is strange to me.. 

    in what layer/protocol/service the keys should pass between 2 sides to achieve the completion of the pairing before starting to use the smp service /mcumgr ? 

    if authentication must occur before working with mcumgr then, how the keys are passed ? 

    hope to read you soon

    best regards

    Ziv

Children
Related