2022-04-20 08:07 AM
Hi all,
I'm using for evaluating purpose two NucleoL4 boards w/ X-NUCLEO-BNRG2A1:
Everything is working as expected: NimBLE is able to scan the peripheral / connect to it / execute pairing.
The problem is that after bonding succeed, if I check bonded devices list (on the board running the peripheral role), this is always empty, as shown in the image.
As result, if I try to reconnect w/ LTK key just exchanged I got pairing error due to encryption failed.
Am I missing something? Similar question was already asked but no answer to the problem
https://community.st.com/s/question/0D50X00009XkWrdSAF/bonding-problem
Thanks for the support.
Alessandro Morniroli
Solved! Go to Solution.
2022-04-21 05:05 AM
Resolved:
In the NimBLE board, I was setting initiator dist key flag. Still have to understand the full meaning of it, but clearing it resolves the problem.
The question can be closed.
Alessandro Morniroli
2022-04-21 01:01 AM
Hi,
an update about the problem: the function ""smp_add_pairing_record_to_bonding_database" is correctly called, as shown in the image, but when calling "get_bonded_devices" the list is always empty.
Any suggestions?
Alessandro Morniroli
2022-04-21 05:05 AM
Resolved:
In the NimBLE board, I was setting initiator dist key flag. Still have to understand the full meaning of it, but clearing it resolves the problem.
The question can be closed.
Alessandro Morniroli