Learn MoreFAQsTutorials

6 posts / 0 new
Last post
paolog
Offline
Last seen:3 weeks 6 days ago
加入:2020-11-06 09:30
Bonding just one device

Hi. I'm trying to allow just one device bonded to my slave device. I noticed that pairing with a phone, the key is inserted in the bonded database with RIRK flag set (field valid_keys). Pairing with another device the LTK flag is set, instead.

The result is that in the first case the function app_easy_security_bdb_get_number_of_stored_irks() returning the valid keys gives 1, while in the second case it returns 0, as only keys with flag RIRK set are counted.

我怎么算都有效的钥匙吗n the bonded database? Or how can I have a device connecting to my host resulting in setting the RIRK flag?

PM_Dialog
Offline
Last seen:2 days 19 hours ago
工作人员
加入:2018-02-08 11:03
Hi paolog,

Hi paolog,

Regarding this statement :

>> Pairing with another device the LTK flag is set, instead.

Can you please indicate what is the other device? Is it another DA14531 module?

Thanks, PM_Dialog

paolog
Offline
Last seen:3 weeks 6 days ago
加入:2020-11-06 09:30
Hi!

Hi!

It's a ESP32 based module using the NimBLE library. It is regularly paired, with encription. Debugging the application on DA14531 (based on user_security example) it is paired with the passkey and a LTK is shown (in both cases of phone and the EPS32 pairing). But in the second case the number of IRK's stored seems to be 0, while the ESP32 connects regularly and data is in the bonded database with another flag. Any suggestion?

paolog
Offline
Last seen:3 weeks 6 days ago
加入:2020-11-06 09:30
Nevermind... I solved this in

Nevermind... I solved this in a different way.

PM_Dialog
Offline
Last seen:2 days 19 hours ago
工作人员
加入:2018-02-08 11:03
Hi paolog,

Hi paolog,

Apologies for the late response. Glad that you figured it out!

Thanks, PM_Dialog

paolog
Offline
Last seen:3 weeks 6 days ago
加入:2020-11-06 09:30
No problem! But if you have

No problem! But if you have time to look into this I would be courious to understand where the difference is coming from.

Thank you.