This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf52832 NCS1.6.1 BLE Maximum bonding information that can be stored

I'm sorry my English is not good enough.

I am developing a product that works as a BLE peripheral using nrf52832 and NCS1.6.1.

In addition, the following statement is made in prj.conf to save the bonding information in FLASH.

# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y

We have confirmed that the bonding information is saved successfully after pairing.

Next, nrf52832 is considering storing 2000 pieces of bonding information when pairing.

I tried to set "CONFIG_BT_MAX_PAIRED=2000" in prj.conf, but it caused an error. The reason is that the maximum value is 128.

 

So, I would like to ask you the following questions.

1. Is it possible to store 2000 bonding information in nrf52832?

2. When saving bonding information after pairing in NCS1.6.1, what is the data size per bonding information in bytes?

I need your help.

Parents
  • Hi,

    1. Are you saying that you need the nrf52832 to be paired with 2000 other devices at once? Your usecase does not allow you to overwrite the oldest information when you already have the max of 128 paired devices?

    2. I believe that depends on your bluetooth configs. I'll look into it and get you an estimate.

Reply
  • Hi,

    1. Are you saying that you need the nrf52832 to be paired with 2000 other devices at once? Your usecase does not allow you to overwrite the oldest information when you already have the max of 128 paired devices?

    2. I believe that depends on your bluetooth configs. I'll look into it and get you an estimate.

Children
  • Thanks for the answer, Øivind.

    1. Are you saying that you need the nrf52832 to be paired with 2000 other devices at once? Your usecase does not allow you to overwrite the oldest information when you already have the max of 128 paired devices?


    The nrf52832 must be paired with 2000 devices at a time.
    Therefore, even if it is already paired with 128 devices, it cannot be overwritten.

    2. I believe that depends on your bluetooth configs. I'll look into it and get you an estimate.

    By Bluetooth settings, do you mean the Kconfig you used?
    Kconfig is written below.

    #----------------------------------------------
    CONFIG_BT=y
    CONFIG_BT_SMP=y
    CONFIG_BT_PRIVACY=y
    CONFIG_BT_SMP_ENFORCE_MITM=n#for just works

    #Peripheral
    CONFIG_BT_PERIPHERAL=y

    # Enable bonding
    CONFIG_BT_SETTINGS=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    CONFIG_NVS=y
    CONFIG_SETTINGS=y
    #----------------------------------------------
    I apologize if I am wrong.

  • May I ask what the use-case is? I 'm struggling to think of a situation where you would need that many devices paired at a single point in time. There may be a simpler solution.

    And yes, those were the configs I was talking about.

Related