Skip to content

Commit dbf3dad

Browse files
[ICD] Add OperatingMode attribute to the LIT-ICD-app (project-chip#31997)
1 parent b6287aa commit dbf3dad

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter

+1
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,7 @@ endpoint 0 {
17641764
callback attribute clientsSupportedPerFabric;
17651765
ram attribute userActiveModeTriggerHint default = 0x110D;
17661766
ram attribute userActiveModeTriggerInstruction default = "Restart the application";
1767+
ram attribute operatingMode default = 0;
17671768
callback attribute generatedCommandList;
17681769
callback attribute acceptedCommandList;
17691770
callback attribute eventList;

examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap

+20-4
Original file line numberDiff line numberDiff line change
@@ -1874,10 +1874,10 @@
18741874
"side": "server",
18751875
"type": "bitmap32",
18761876
"included": 1,
1877-
"storageOption": "RAM",
1877+
"storageOption": "External",
18781878
"singleton": 0,
18791879
"bounded": 0,
1880-
"defaultValue": "0",
1880+
"defaultValue": null,
18811881
"reportable": 1,
18821882
"minInterval": 1,
18831883
"maxInterval": 65534,
@@ -1890,10 +1890,10 @@
18901890
"side": "server",
18911891
"type": "int16u",
18921892
"included": 1,
1893-
"storageOption": "RAM",
1893+
"storageOption": "External",
18941894
"singleton": 0,
18951895
"bounded": 0,
1896-
"defaultValue": "2",
1896+
"defaultValue": null,
18971897
"reportable": 1,
18981898
"minInterval": 0,
18991899
"maxInterval": 65344,
@@ -3519,6 +3519,22 @@
35193519
"maxInterval": 65534,
35203520
"reportableChange": 0
35213521
},
3522+
{
3523+
"name": "OperatingMode",
3524+
"code": 8,
3525+
"mfgCode": null,
3526+
"side": "server",
3527+
"type": "OperatingModeEnum",
3528+
"included": 1,
3529+
"storageOption": "RAM",
3530+
"singleton": 0,
3531+
"bounded": 0,
3532+
"defaultValue": "0",
3533+
"reportable": 1,
3534+
"minInterval": 1,
3535+
"maxInterval": 65534,
3536+
"reportableChange": 0
3537+
},
35223538
{
35233539
"name": "GeneratedCommandList",
35243540
"code": 65528,

src/app/tests/suites/TestIcdManagementCluster.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,25 @@ tests:
8989
response:
9090
value: beforeRebootICDCounter + 101
9191

92+
- label: "Verify the ICD is operating as a LIT ICD"
93+
command: "readAttribute"
94+
attribute: OperatingMode
95+
response:
96+
value: 1
97+
9298
- label: "Unregister Client Registered During Commissioning"
9399
command: "UnregisterClient"
94100
arguments:
95101
values:
96102
- name: "CheckInNodeID"
97103
value: commissionerNodeId
98104

105+
- label: "Verify the ICD is operating as a SIT ICD"
106+
command: "readAttribute"
107+
attribute: OperatingMode
108+
response:
109+
value: 0
110+
99111
- label: "Read Feature Map"
100112
command: "readAttribute"
101113
attribute: "FeatureMap"

0 commit comments

Comments
 (0)