You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CERT-TEST-FAILURE] TC-SU-2.6 - In Test step 2 BootReason value should be 5(SoftwareUpdateCompleted) After completing the Software update instead of 0(Unspecified).
#37882
Open
Ashwinigrl opened this issue
Mar 5, 2025
· 0 comments
Bring up the OTA-Provider: ./chip-ota-provider-app --discriminator 3840 --KVS ~/provider/chip_kvs_provider --filepath ota-requestor-app.ota
Commission the OTA-Provider with chip-tool using the following command: ./chip-tool pairing onnetwork-long 123 20202021 3840
Bring up the OTA-Requestor: ./chip-ota-requestor-app --discriminator 3841 --secured-device-port 5541 --KVS ~/requestor/chip_kvs_requestor --periodicQueryTimeout 86300 --otaDownloadPath ota-requestor-app.ota --autoApplyImage --watchdogTimeout 86400
Commission the OTA-Requestor with chip-tool using the following command: ./chip-tool pairing onnetwork-long 321 20202021 3841
Before announcing the OTA provider, set up ACL (Access Control List) to allow OTA communication. ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, {"fabricIndex": 1, "privilege": 3, "authMode": 2, "subjects": [321], "targets": null}]' 123 0
Send the OTA Provider announces to the OTA Requestor: ./chip-tool otasoftwareupdaterequestor announce-otaprovider 123 0 0 0 321 0
Once the DUT(OTA-Requestor) sends the NotifyUpdateApplied Command to the OTA-P after installing the software update. Then Verify that the NotifyUpdateApplied message received on the OTA-P has the following fields.
UpdateToken - verify that it is the same as the one provided by the OTA provider in the QueryImageResponse.
SoftwareVersion - verify the software version on the DUT to match the version downloaded for the software update.
[1741162881.019] [82638:82638] [DMG] Received command for Endpoint=0 Cluster=0x0000_0029 Command=0x0000_0004
[1741162881.019] [82638:82638] [ZCL] OTA Provider received NotifyUpdateApplied
[1741162881.019] [82638:82638] [ZCL] Update Token: 32
[1741162881.019] [82638:82638] [ZCL] Software Version: 2
Here UpdateToken is same as the one provided by the OTA provider in the QueryImageResponse.
TC-SU-2.6 - In Test step 2 is expecting to read BootReason value in General Diagnostics cluster from the DUT once the DUT sends the NotifyUpdateApplied Command to the OTA-P after installing the software update. But When we try to read the BootReason value from the DUT after installing the software update from the OTA provider, Getting value as 0(Unspecified) instead of 5(SoftwareUpdateCompleted). Hence Sample app(OTA Requestor app has to be updated accordingly.
Feature Area
Other
Test Case
TC-SU-2.6
Reproduction steps
./chip-ota-provider-app --discriminator 3840 --KVS ~/provider/chip_kvs_provider --filepath ota-requestor-app.ota
./chip-tool pairing onnetwork-long 123 20202021 3840
./chip-ota-requestor-app --discriminator 3841 --secured-device-port 5541 --KVS ~/requestor/chip_kvs_requestor --periodicQueryTimeout 86300 --otaDownloadPath ota-requestor-app.ota --autoApplyImage --watchdogTimeout 86400
./chip-tool pairing onnetwork-long 321 20202021 3841
./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, {"fabricIndex": 1, "privilege": 3, "authMode": 2, "subjects": [321], "targets": null}]' 123 0
./chip-tool otasoftwareupdaterequestor announce-otaprovider 123 0 0 0 321 0
Here UpdateToken is same as the one provided by the OTA provider in the QueryImageResponse.
software version on the DUT has been updated from 1 to 2.
./chip-tool basicinformation read software-version 321 0
./chip-tool generaldiagnostics read boot-reason 321 0
Actual Outcome:
Expected Outcome:
Bug prevalence
Whenever I do this
GitHub hash of the SDK that was being used
13da787
Platform
raspi
Anything else?
TC-SU-2.6 - In Test step 2 is expecting to read BootReason value in General Diagnostics cluster from the DUT once the DUT sends the NotifyUpdateApplied Command to the OTA-P after installing the software update. But When we try to read the BootReason value from the DUT after installing the software update from the OTA provider, Getting value as
0(Unspecified)
instead of5(SoftwareUpdateCompleted)
. Hence Sample app(OTA Requestor app has to be updated accordingly.Test plan References:
Specification References:
Reference logs:
TC-SU-2.6.txt
The text was updated successfully, but these errors were encountered: