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

Is there an nRF51822 DFU master source code ?

I'm trying to upload via DFU from one nRF51822 to another nRF51822 via DFU

The receiving side is not a problem as there there are loads of examples.

But I can't find any code where the nRF51822 acting in a central role sends data to a DFU device (another nRF51822)

Does anyone know if there is any source code for this ?

Parents
  • I am afraid that we do not have an example where another Nordic device that sends DFU data to another Nordic device.

    I think the closest thing we have is the nRF OpenMesh, but this uses a custom DFU implementation and not the Nordic DFU Service.

    If you want to use the Nordic DFU Service and the Nordic apps to perform the DFU, then you will have to create an application that forwards packets sent to the DFU Control Point and the DFU Packet characteristics.

    -Bjørn

  • I'm not sure what you mean by forwarding DFU packets

    I was hoping to develop a device that enumerated as USB Mass Storage, which would search for devices in DFU mode then upload the data from the mass storage via DFU

    The USB device could be a DFU device, but I don't know if there is a standardisation for a USB DFU device, like there is for HID or Mass Storage

    Mass Storage is the easiest to implement, as I already have code to implement this on a STM32F103

    So I would just need to add some code to send the incoming mass storage data to the nRF51 which re-transmits it to the device waiting for DFU data.

    But, I was hoping not to need to write the DFU transmission code from scratch on the nRF51 (DFU master)

Reply
  • I'm not sure what you mean by forwarding DFU packets

    I was hoping to develop a device that enumerated as USB Mass Storage, which would search for devices in DFU mode then upload the data from the mass storage via DFU

    The USB device could be a DFU device, but I don't know if there is a standardisation for a USB DFU device, like there is for HID or Mass Storage

    Mass Storage is the easiest to implement, as I already have code to implement this on a STM32F103

    So I would just need to add some code to send the incoming mass storage data to the nRF51 which re-transmits it to the device waiting for DFU data.

    But, I was hoping not to need to write the DFU transmission code from scratch on the nRF51 (DFU master)

Children
No Data
Related