This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Maxs number of bond for DFU

DEVICE_MANAGER_MAX_BONDS is no more than 10. That means that no more than 10 difference devices (smart phones) can switch the device to DFU mode?? (with boding). Am I right?? What if there is only one device and I got 10 different phones to have function to update the firmware? Is it possible to delete all past bonding information from devices?? Thank you.

Parents
  • Hi Sosse,

    Could you point out where you found "DEVICE_MANAGER_MAX_BONDS is no more than 10" ?

    As implemented in the ble_app_hrs_with_dfu example, any device bonded to the application can switch the application to bootloader. Bond information with the current connection is only one bond information forwarded to the bootloader.

    You can implement your own mechanism to only allow one device to switch to bootloader (checking the address or have a password, for example)

    To delete all bond information you can call dm_device_delete_all()

Reply
  • Hi Sosse,

    Could you point out where you found "DEVICE_MANAGER_MAX_BONDS is no more than 10" ?

    As implemented in the ble_app_hrs_with_dfu example, any device bonded to the application can switch the application to bootloader. Bond information with the current connection is only one bond information forwarded to the bootloader.

    You can implement your own mechanism to only allow one device to switch to bootloader (checking the address or have a password, for example)

    To delete all bond information you can call dm_device_delete_all()

Children
No Data
Related