Storing BLE Bonding Information/Keys on External Flash.
Hello,
I am building an application using STM32WB55 ( 1 MB Flash) series microcontroller and planning to use BLE 5.0 to make secure connection with a device.
In our use case, I am trying to compute how many keys/Bonding Info can be stored to speed up pairing.
I was wondering if you someone can confirm my calculations below as something doesn't feel right.
From what I read in AN5289 Rev 6, on Page 97, there is a formula to compute maximum bonded device info, which is
N = (total_size_of_nvm – 1) / [(size_of_sec_record + 1) + (size_of_gatt_record + 1)]
In my case, after plugging in the values for
total_size_of_nvm : 253 Bytes ( 507 words of 4 Byte each)
size_of_sec_record : 80 Bytes
size_of_gatt_record : 12 Bytes
N comes to be : 252/94 ~= 2.
Is this correct? that we can only store maximum of 2 bonded devices?
Help!!!
Thanks