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

How can I define central device an application version

Hi ,

I am working on the heart_rate_collector example code of nrf51-ble-driver_linux_0.5.0.

The program detail of nrf51 as below:

   -- sorftdevice : s130_nrf51_1.0.0_softdevice 
   -- application : ble_connectivity example code
   -- bootloader : dual_bank_serial_s130 example code

I can use DFU bootloader via UART to update my application firmware(ble_connectivity example code).

I want to give application firmware a version number in order for me to manage this firmware, and this version number can be read in application firmware.

I know the DFU procedure includes application version to safety-check the transferred firmware image.

I want to use this application version to store into firmware, and then It can be read after the new application firmware booting. Like FWID can be read by "sd_ble_version_get" function.

Does anyone tell me how can I develop it ?

Thanks

  • Hi,

    Application version check is not implemented in the example bootloader , but can be implemented like with the Softdevice version check as suggested here.

    If you want to read the connectivity FW version from the host application (?) you would need to add a new function in the connectivity example that returns the stored variable.

  • Hi Vidar Berg,

    Thanks for your reply.

    I have tried to define a version number into a head file in the connectivity example . And I implement an API function to return the version number.

    The version number will be generated in compiler procedure.