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

DFU: How to split and send the firmware image?

Hello,

I'm developing firmware for a BLE central that performs a DFU on another NRF target. Right now I'm at the point where I need to start sending the firmware image part by part using the DFU packet characteristic.

My idea is that the BLE central will receive the firmware image via UART from a 3rd party and then it will transmit it to the target via BLE.

What is the file that I need to send and how should I split it? My guess is that I need to send the bin file, but how do I split it? Any advice on this?

Thank you in advance :)

Parents
  • Hi Andy,

    if I understood you correctly, you have a nRF51822 that acts as a central. This central will receive the firmware image from a 3rd party( e.g. a Smartphone?) and update another nRF51822. If this is the case, then I am afraid that we do not have any example showing how to update a nRF5x device with another nRF5x device via DFU as this is usually done with a smartphone as the central, and not a nRF5x device.

    However, I would recommend that you take a look at our DFU libraries for iOS or Android and see how they send the firmware image 20 bytes at the time. You can find the DFU libraries on GitHub, here is the link for the iOS library and here is the link for the Android library.

    Best regards

    Bjørn

  • By the way, I don't know a thing about Java and I can't find mFirmwareStream anywhere :/

Reply Children
No Data
Related