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

Change the advertise name for DFU in application with bonds?

Hi everyone,

I am using nrf52840 and I want to change the advertising name in bootloader from "DFUTarg" to a custom name on application side.

For unbonded one, I saw there's a function called "nrf_dfu_set_adv_name", but in bonded one, there's no such function. Is there any way for bonded buttonless dfu to change the advertise name in application?

Thanks a lot,

Rj

  •  Hi RJ, 

    Originally we don't have such function for bonded DFU because the peer can simply use the same address from the peer to re-connect. So it doesn't really matter which advertising name the bootloader advertise. Usually the period when the bootloader advertise and the phone re-connect to the device is very short, almost instantly so end user may not even aware of the advertising name of the bootloader. 
    Only when in no-bonding DFU, where the address may be changed, the advertising name could be used to recognize the device. 

    So if you still need to change advertising name in bootloader when doing bond DFU, you would need to implement the API to change name (nrf_dfu_set_adv_name) into both ble_dfu_unbonded.c in the application and modify nrf_dfu_ble.c in the bootloader.

Related