DFU for external BLE Sensor

Hi,

  I have a current project that is based on the nRf52840.  This project acts both as a peripheral and a central.  I have a need to update the firmware on a remote BLE sensor using DFU, i.e., I need to do exactly what the nRfConnect application does when it updates a peripheral firmware via DFU.  My thought was to use the nRf52840 dongle and develop this code on my PC and then port it to my embedded system.  I also thought the best starting point would be the source code for the nRfConnect application which I would port it but I see from user comments that nordic did not release the source code for this.  Is it possible to get this source code or is there another example that demonstrates what I need to accomplish?

Thanks!

Parents Reply
  • Hi,

      One other IMPORTANT thing to note is that if the SHA is sent with the first Upload packet and the upload fails in the middle (let's say at byte number 253400), when it restarts if will start from where it left off, i.e., when the upload is retried and the first block is sent the Peripheral will respond with the offset where the transfer should resume, i.e., 253400 in this case.  This is not true if the SHA is not sent with the first Upload packet.  This took a lot of work to figure this out so I thought I would share it for others benefit.  NOTE: Sending the SHA is optional.

    Thanks,

    Dave Patton

Children
No Data
Related