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

identifying BLE DFU target

We have both nrf51 and nrf52 running DFU. How can I identify on the mobile application side whether I'm connecting to nrf51 or nrf52? They will need to get different firmware hex file updates. There are obviously some trivial solutions (say, different device name), but if I wanted to keep the same device name for both product types, what would be the next option? adding a characteristic to the dfu? Can someone point me in the right direction how to do this?

Thank you,

Shay

Parents
  • Changing the device name would be the easiest solution. If you don't want to change device name, you can add some data in advertising packet. You can add any data using Manufacturer Data field. Please have a look at advertising_data_init() function in main.c in ble_app_pwr_profilling example. Of course you need to use your app to read this data and then decide to use which firmware to do DFU.

Reply
  • Changing the device name would be the easiest solution. If you don't want to change device name, you can add some data in advertising packet. You can add any data using Manufacturer Data field. Please have a look at advertising_data_init() function in main.c in ble_app_pwr_profilling example. Of course you need to use your app to read this data and then decide to use which firmware to do DFU.

Children
No Data
Related