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.

  • @HungBui okay, I'll test the sdk.zip, before I'm testing my application, I tested the ble_app_hrs_dfu , it uses the Softdevice S130 & as shown in the post, it has a problem something missing & I couldn't get it :)

    the SDK version I have is 2.0.0.7-alpha :) I'm downloading now SDK v10 attached in your answer :)

Reply
  • @HungBui okay, I'll test the sdk.zip, before I'm testing my application, I tested the ble_app_hrs_dfu , it uses the Softdevice S130 & as shown in the post, it has a problem something missing & I couldn't get it :)

    the SDK version I have is 2.0.0.7-alpha :) I'm downloading now SDK v10 attached in your answer :)

Children
No Data
Related