This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DFU & Bonding problem

hello everybody,

I'm working in a project & have to do something like security for the connection & be able to do updates to firmwares, someone suggested that doing bonding, exhanging the IRK addresses & add to whitelist & next time advertise with the whitelist only & reject any other connection, this is a short discription about what I need to do, I'm successful at doing FOTA at the first time then bonding with the new firmware but failed to do multiple FOTA, I'm attaching the log file logfile.txt to show you the result when I'm trying to do FOTA when I'm bonded to the central, note that I'm using s110 softdevice & here is the code: main.c

I'm not able to use s130 because it tells me as the photo:

image description

Note that the packages I'm using is the latest version released :) :)

Parents
  • Hi Mohamed,

    You should not use pack, I would suggest you to use the .zip package of the SDK. You can find the .zip here.

    Note that the latest SDK doesn't have support for S110. Next you need to tell me step by step what you do for testing DFU OTA. For example:

    Step 1: flash softdevice

    Step 2: flash bootloader

    Step 3: Use bootloader to update application

    Step 4: Use application to bond

    and so on.

    And let me know at which step the issue occurs.

    Also if you want to preserve bond information or application data in general, you would need to choose the number of pages (bytes) you want to save by defining DFU_APP_DATA_RESERVED in dfu_types.h This should match with the number of page you use for pstorage plus the swap page.

    Also please don't attach your code into the question text, attach it as a file.

  • @Mohamed: Please use the examples provided in the SDK .zip file first, before testing with your application. Also let me know the version of SDK you use. This is depends on the hardware you have. Then you should test with the ble_app_hrs_with_dfu

Reply
  • @Mohamed: Please use the examples provided in the SDK .zip file first, before testing with your application. Also let me know the version of SDK you use. This is depends on the hardware you have. Then you should test with the ble_app_hrs_with_dfu

Children
No Data
Related