In SDK version 2.9.0, the OTA process fails to retrieve the correct firmware version

After completing the OTA update, I executed the "otasoftwareupdaterequestor read-event version-applied" command but was unable to read back the version.

I then tried the "basicinformation read software-version" command and found that the version had not been updated, although the firmware functionality had indeed been updated.

The correct firmware version can also be seen from the "provider". What could be causing this issue?

1524.ota.zip

Parents
  • Hi, 

    Both issues are related. The event is generated only if after a reboot the current software version is the same as the version encoded in the header of the OTA image that was to be applied. It seems as if you only updated the version in the OTA image header but not in the firmware itself.

    Do you use the VERSION file for the firmware versioning or the CONFIG_CHIP_SOFTWARE_VERSION Kconfig option?

  • Hi,

    I "only" use VERSION to control the firmware version. When the device boots up, it prints out CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION to verify whether the firmware version has been correctly updated. However, CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION has already been updated. So, how should I resolve this issue?

  • SunHuang said:
    I "only" use VERSION to control the firmware version. When the device boots up, it prints out CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION to verify whether the firmware version has been correctly updated. However, CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION has already been updated.

    It seems the DFU works fine as expected. In such a case, the basic information cluster should return the "wrong" version if you don't update. Could you program the new firmware to see if you can get the correct version?  Also, could you share your VERSION file, in the old and new firmware versions?

  • If I directly flash the firmware, I can get the correct version. In the end, I found that "occasionally" the version can still be read through read-event version-applied. This instability could cause issues for us when obtaining Matter certification.

    Could you program the new firmware to see if you can get the correct version?

    ver.zip

Reply Children
Related