How to implement OTA update on other ble central device

Hi,

I have a peripheral device that running on nrf5340 and can be updated via  MCUMGR SMP. i tested it via Device Manager application and it is working.

My question is:

How can i implement or use some library in order to run this functionality on my other ble device that is central.

Thanks.

Parents
  • Hello,

    I think this guide is the closest we get:

    Add DFU support to your application

    But this is basically what you already have up and running (peripheral that can be updated.

    We don't have anything that can update Bluetooth Low Energy Centrals at this point in time (We never did, but in the old nRF5 SDK then the image was transferred when the bootloader was running, so you could just put the device in DFU mode, and it would act as a peripheral). 

    You need to look into one of the two options, and try to determine which one is the easiest to implement:

    1: Make the device act as a peripheral for DFU purposes. Perhaps you can have one service that tell your application to start advertising with the DFU service, like your peripheral does.

    2: write something that can tranfer the image to your central, and then do what the SMP service does when the image is transferred. 

    Best regards,

    Edvin

Reply
  • Hello,

    I think this guide is the closest we get:

    Add DFU support to your application

    But this is basically what you already have up and running (peripheral that can be updated.

    We don't have anything that can update Bluetooth Low Energy Centrals at this point in time (We never did, but in the old nRF5 SDK then the image was transferred when the bootloader was running, so you could just put the device in DFU mode, and it would act as a peripheral). 

    You need to look into one of the two options, and try to determine which one is the easiest to implement:

    1: Make the device act as a peripheral for DFU purposes. Perhaps you can have one service that tell your application to start advertising with the DFU service, like your peripheral does.

    2: write something that can tranfer the image to your central, and then do what the SMP service does when the image is transferred. 

    Best regards,

    Edvin

Children
Related