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

Detailed DFU Application Interface Documentation

I need to implement DFU in a Unity3D application. I have tried to integrate the Android SDK library that you have on github. They are not integrating very well.

I have a lot of BLE experience and if I understand exactly the steps to implement sending a ZIP file payload over the DFU service and characteristics then I could probably do it without your library. This would also be good because I need this to work on iOS as well and being able to do it myself in C# code would be great because then I don't have to do native code for each.

The problem is that the documentation all assumes you are using the library you have provided.

Is there anything special that the library does? Does it actually break open the ZIP file and send the different parts over or does it just open a connection and send the ZIP file and have the firmware on the Nordic part do the work? If the previous then I would like to know the simple commands to implement that.

  • Hi Tony,

    Sorry for the late reply. My advise is to test using the debug version of the bootloader, that way you will get the log output from the BL and that may help you find where it goes wrong.

    Run first a DFU with the nRF Connect appen, and then with your own app and compare the logs to see if there is any differences.

    And as it was said before, getting sucess in the last execute response should mean that the app will swap bank 1 with 0 and the DFU should have worked..

    BR,

    Marjeris

  • I appreciate you getting back to me.

    I was able to get it working. Turns out it was my firmware version I was switching between didn't communicate correctly with my other hardware to give the right responses. Once I got that figured out everything works good.

    Thank you for the help.

Related