From 8098965f5c26a3f95e62f97a15cb3c263bd42383 Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Fri, 9 Feb 2024 18:05:28 -0500 Subject: [PATCH] [ICD] Add OperatingMode attribute to the LIT-ICD-app (#31997) --- .../lit-icd-common/lit-icd-server-app.matter | 1 + .../lit-icd-common/lit-icd-server-app.zap | 24 +++++++++++++++---- .../suites/TestIcdManagementCluster.yaml | 12 ++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter index 9089068f442f22..db80008fef240c 100644 --- a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter +++ b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter @@ -1764,6 +1764,7 @@ endpoint 0 { callback attribute clientsSupportedPerFabric; ram attribute userActiveModeTriggerHint default = 0x110D; ram attribute userActiveModeTriggerInstruction default = "Restart the application"; + ram attribute operatingMode default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; diff --git a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap index d288636d7ea5e6..357fd2ea689a59 100644 --- a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap +++ b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap @@ -1874,10 +1874,10 @@ "side": "server", "type": "bitmap32", "included": 1, - "storageOption": "RAM", + "storageOption": "External", "singleton": 0, "bounded": 0, - "defaultValue": "0", + "defaultValue": null, "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -1890,10 +1890,10 @@ "side": "server", "type": "int16u", "included": 1, - "storageOption": "RAM", + "storageOption": "External", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": null, "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -3519,6 +3519,22 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "OperatingMode", + "code": 8, + "mfgCode": null, + "side": "server", + "type": "OperatingModeEnum", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "GeneratedCommandList", "code": 65528, diff --git a/src/app/tests/suites/TestIcdManagementCluster.yaml b/src/app/tests/suites/TestIcdManagementCluster.yaml index 4a83c077843822..d9d275b90faf3c 100644 --- a/src/app/tests/suites/TestIcdManagementCluster.yaml +++ b/src/app/tests/suites/TestIcdManagementCluster.yaml @@ -89,6 +89,12 @@ tests: response: value: beforeRebootICDCounter + 101 + - label: "Verify the ICD is operating as a LIT ICD" + command: "readAttribute" + attribute: OperatingMode + response: + value: 1 + - label: "Unregister Client Registered During Commissioning" command: "UnregisterClient" arguments: @@ -96,6 +102,12 @@ tests: - name: "CheckInNodeID" value: commissionerNodeId + - label: "Verify the ICD is operating as a SIT ICD" + command: "readAttribute" + attribute: OperatingMode + response: + value: 0 + - label: "Read Feature Map" command: "readAttribute" attribute: "FeatureMap"