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

Check softdevice and application version before DFU?

Hi there,

I was hoping to first pull the SD version and application version from the device before I attempt to send an update.

Are these values exposed anywhere within the DFU service, or would I need to implement this somewhere else (like in device info service)?

Parents
  • That information is not exposed currently at least in the bootloader examples I looked at. You have a couple of options:

    1. You could add some manufacturer specific data to the bootloaders advertising packet with the fw revisions encoded in it. This allow you to know the versions prior to connecting.

    2. You could as you mention add the device information service to the bootloader, but then you have to connect.

    3. You can add one or more additional characteristics to the proprietary DFU service and expose the information that way.

    There are probably more ways, but these are the three that jumped immediately to mind.

Reply
  • That information is not exposed currently at least in the bootloader examples I looked at. You have a couple of options:

    1. You could add some manufacturer specific data to the bootloaders advertising packet with the fw revisions encoded in it. This allow you to know the versions prior to connecting.

    2. You could as you mention add the device information service to the bootloader, but then you have to connect.

    3. You can add one or more additional characteristics to the proprietary DFU service and expose the information that way.

    There are probably more ways, but these are the three that jumped immediately to mind.

Children
Related