Skip to content

Commit 9dd6b67

Browse files
authored
Merge branch 'master' into rjosefsen/update-occupancy-sensing-revision
2 parents 81c4b8b + 04d7a3e commit 9dd6b67

File tree

7 files changed

+183
-32
lines changed

7 files changed

+183
-32
lines changed

examples/all-clusters-app/all-clusters-common/all-clusters-app.matter

+2-2
Original file line numberDiff line numberDiff line change
@@ -7761,7 +7761,7 @@ endpoint 1 {
77617761
callback attribute eventList;
77627762
callback attribute attributeList;
77637763
ram attribute featureMap default = 0x0001;
7764-
ram attribute clusterRevision default = 5;
7764+
ram attribute clusterRevision default = 6;
77657765

77667766
handle command Off;
77677767
handle command On;
@@ -9134,7 +9134,7 @@ endpoint 2 {
91349134
callback attribute eventList;
91359135
callback attribute attributeList;
91369136
ram attribute featureMap default = 0x0001;
9137-
ram attribute clusterRevision default = 5;
9137+
ram attribute clusterRevision default = 6;
91389138

91399139
handle command Off;
91409140
handle command On;

examples/all-clusters-app/all-clusters-common/all-clusters-app.zap

+3-3
Original file line numberDiff line numberDiff line change
@@ -6659,7 +6659,7 @@
66596659
"storageOption": "RAM",
66606660
"singleton": 0,
66616661
"bounded": 0,
6662-
"defaultValue": "5",
6662+
"defaultValue": "6",
66636663
"reportable": 1,
66646664
"minInterval": 0,
66656665
"maxInterval": 65344,
@@ -6895,7 +6895,7 @@
68956895
"storageOption": "RAM",
68966896
"singleton": 0,
68976897
"bounded": 0,
6898-
"defaultValue": "5",
6898+
"defaultValue": "6",
68996899
"reportable": 1,
69006900
"minInterval": 0,
69016901
"maxInterval": 65344,
@@ -23994,7 +23994,7 @@
2399423994
"storageOption": "RAM",
2399523995
"singleton": 0,
2399623996
"bounded": 0,
23997-
"defaultValue": "5",
23997+
"defaultValue": "6",
2399823998
"reportable": 1,
2399923999
"minInterval": 0,
2400024000
"maxInterval": 65344,

src/app/tests/suites/certification/PICS.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -5294,6 +5294,9 @@ PICS:
52945294
- label: "Device has Deadfront behaviour"
52955295
id: OO.S.F01
52965296

5297+
- label: "Device has OffOnly feature"
5298+
id: OO.S.F02
5299+
52975300
#
52985301
# server / manually
52995302
#

src/app/tests/suites/certification/Test_TC_OO_1_1.yaml

+80-10
Original file line numberDiff line numberDiff line change
@@ -38,38 +38,75 @@ tests:
3838
command: "readAttribute"
3939
attribute: "ClusterRevision"
4040
response:
41-
value: 5
41+
value: 6
4242
constraints:
4343
type: int16u
4444

45-
- label: "Step 3a: TH reads from the DUT the FeatureMap attribute."
45+
- label:
46+
"Step 3a: Given OO.S.F00(LT) ensure featuremap has the correct bit set"
4647
command: "readAttribute"
4748
attribute: "FeatureMap"
48-
PICS: ( !OO.S.F00 && !OO.S.F01 )
49+
PICS: ( OO.S.F00 && !OO.S.F02 )
4950
response:
50-
value: 0
5151
constraints:
5252
type: bitmap32
53-
53+
hasMasksSet: [0x1]
5454
- label:
5555
"Step 3b: Given OO.S.F00(LT) ensure featuremap has the correct bit set"
5656
command: "readAttribute"
5757
attribute: "FeatureMap"
58-
PICS: OO.S.F00
58+
PICS: ( !( OO.S.F00 && !OO.S.F02 ) )
5959
response:
6060
constraints:
6161
type: bitmap32
62-
hasMasksSet: [0x1]
62+
hasMasksClear: [0x1]
6363

6464
- label:
6565
"Step 3c: Given OO.S.F01(DF) ensure featuremap has the correct bit set"
6666
command: "readAttribute"
6767
attribute: "FeatureMap"
68-
PICS: OO.S.F01
68+
PICS: ( OO.S.F01 && !OO.S.F02 )
6969
response:
7070
constraints:
7171
type: bitmap32
7272
hasMasksSet: [0x2]
73+
- label:
74+
"Step 3d: Given OO.S.F01(DF) ensure featuremap has the correct bit set"
75+
command: "readAttribute"
76+
attribute: "FeatureMap"
77+
PICS: ( !( OO.S.F01 && !OO.S.F02 ) )
78+
response:
79+
constraints:
80+
type: bitmap32
81+
hasMasksClear: [0x2]
82+
83+
- label:
84+
"Step 3e: Given OO.S.F02(OFFONLY) TH reads from the DUT the FeatureMap
85+
attribute."
86+
command: "readAttribute"
87+
attribute: "FeatureMap"
88+
PICS: ( OO.S.F02 && !OO.S.F00 && !OO.S.F01 )
89+
response:
90+
constraints:
91+
type: bitmap32
92+
hasMasksSet: [0x4]
93+
- label:
94+
"Step 3f: Given OO.S.F02(OFFONLY) TH reads from the DUT the FeatureMap
95+
attribute."
96+
command: "readAttribute"
97+
attribute: "FeatureMap"
98+
PICS: ( !( OO.S.F02 && !OO.S.F00 && !OO.S.F01 ) )
99+
response:
100+
constraints:
101+
type: bitmap32
102+
hasMasksClear: [0x4]
103+
- label: "Step 3g: All remaining shall be zero"
104+
command: "readAttribute"
105+
attribute: "FeatureMap"
106+
response:
107+
constraints:
108+
type: bitmap32
109+
hasMasksClear: [0xFFFFFFF8]
73110

74111
- label: "Step 4a: TH reads from the DUT the AttributeList attribute."
75112
PICS: PICS_EVENT_LIST_ENABLED
@@ -115,10 +152,32 @@ tests:
115152
response:
116153
constraints:
117154
type: list
118-
contains: [0, 1, 2]
155+
contains: [0]
156+
157+
- label:
158+
"Step 6b: TH reads the feature dependent(OO.S.F02) commands in
159+
AcceptedCommandList"
160+
command: "readAttribute"
161+
attribute: "AcceptedCommandList"
162+
PICS: ( !OO.S.F02 )
163+
response:
164+
constraints:
165+
type: list
166+
contains: [1, 2]
167+
168+
- label:
169+
"Step 6c: TH reads the feature dependent(OO.S.F02) commands in
170+
AcceptedCommandList"
171+
command: "readAttribute"
172+
attribute: "AcceptedCommandList"
173+
PICS: OO.S.F02
174+
response:
175+
constraints:
176+
type: list
177+
excludes: [1, 2]
119178

120179
- label:
121-
"Step 6b: TH reads the feature dependent(OO.S.F00) commands in
180+
"Step 6d: TH reads the feature dependent(OO.S.F00) commands in
122181
AcceptedCommandList"
123182
command: "readAttribute"
124183
attribute: "AcceptedCommandList"
@@ -128,6 +187,17 @@ tests:
128187
type: list
129188
contains: [64, 65, 66]
130189

190+
- label:
191+
"Step 6e: TH reads the feature dependent(OO.S.F00) commands in
192+
AcceptedCommandList"
193+
command: "readAttribute"
194+
attribute: "AcceptedCommandList"
195+
PICS: ( !OO.S.F00 )
196+
response:
197+
constraints:
198+
type: list
199+
excludes: [64, 65, 66]
200+
131201
- label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute."
132202
command: "readAttribute"
133203
attribute: "GeneratedCommandList"

src/app/tests/suites/certification/Test_TC_OO_2_1.yaml

+50-2
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,70 @@ tests:
5252
command: "readAttribute"
5353
attribute: "OnTime"
5454
response:
55+
saveAs: initialOnTime
5556
constraints:
5657
type: int16u
5758
minValue: 0
5859
maxValue: 65535
5960

60-
- label: "Step 5: TH reads the OffWaitTime attribute from the DUT"
61+
- label: "Step 5: TH writes the OnTime attribute as 30"
62+
PICS: OO.S.A4001
63+
command: "writeAttribute"
64+
attribute: "OnTime"
65+
arguments:
66+
value: 30
67+
68+
- label: "Step 6: TH reads the OnTime attribute from the DUT"
69+
PICS: OO.S.A4001
70+
command: "readAttribute"
71+
attribute: "OnTime"
72+
response:
73+
value: 30
74+
75+
- label:
76+
"Step 7: TH writes the OnTime attribute as 'initial-On-time' to
77+
restore the original value"
78+
PICS: OO.S.A4001
79+
command: "writeAttribute"
80+
attribute: "OnTime"
81+
arguments:
82+
value: initialOnTime
83+
84+
- label: "Step 8: TH reads the OffWaitTime attribute from the DUT"
6185
PICS: OO.S.A4002
6286
command: "readAttribute"
6387
attribute: "OffWaitTime"
6488
response:
89+
saveAs: initialOffWaitTime
6590
constraints:
6691
type: int16u
6792
minValue: 0
6893
maxValue: 65535
6994

70-
- label: "Step 6: TH reads the StartUpOnOff attribute from the DUT"
95+
- label: "Step 9: TH writes the OffWaitTime attribute as 30"
96+
PICS: OO.S.A4002
97+
command: "writeAttribute"
98+
attribute: "OffWaitTime"
99+
arguments:
100+
value: 30
101+
102+
- label: "Step 10: TH reads the OffWaitTime attribute from the DUT"
103+
PICS: OO.S.A4002
104+
command: "readAttribute"
105+
attribute: "OffWaitTime"
106+
response:
107+
value: 30
108+
109+
- label:
110+
"Step 11: TH writes the OffWaitTime attribute as
111+
'initial-Off-waittime' to restore the original value"
112+
PICS: OO.S.A4002
113+
command: "writeAttribute"
114+
attribute: "OffWaitTime"
115+
arguments:
116+
value: initialOffWaitTime
117+
118+
- label: "Step 12: TH reads the StartUpOnOff attribute from the DUT"
71119
PICS: OO.S.A4003
72120
command: "readAttribute"
73121
attribute: "StartUpOnOff"

src/app/tests/suites/certification/Test_TC_OO_2_2.yaml

+44-15
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ tests:
3535
PICS: OO.S.C00.Rsp
3636
command: "Off"
3737

38+
- label: "Wait 1000ms"
39+
cluster: "DelayCommands"
40+
command: "WaitForMs"
41+
arguments:
42+
values:
43+
- name: "ms"
44+
value: 1000
45+
3846
- label: "Step 2b: after a few seconds, TH reads OnOff attribute from DUT"
3947
PICS: OO.S.A0000
4048
command: "readAttribute"
@@ -46,6 +54,14 @@ tests:
4654
PICS: OO.S.C01.Rsp
4755
command: "On"
4856

57+
- label: "Wait 1000ms"
58+
cluster: "DelayCommands"
59+
command: "WaitForMs"
60+
arguments:
61+
values:
62+
- name: "ms"
63+
value: 1000
64+
4965
- label: "Step 3b: after a few seconds, TH reads OnOff attribute from DUT"
5066
PICS: OO.S.A0000
5167
command: "readAttribute"
@@ -57,6 +73,14 @@ tests:
5773
PICS: OO.S.C01.Rsp
5874
command: "On"
5975

76+
- label: "Wait 1000ms"
77+
cluster: "DelayCommands"
78+
command: "WaitForMs"
79+
arguments:
80+
values:
81+
- name: "ms"
82+
value: 1000
83+
6084
- label: "Step 3d: after a few seconds, TH reads OnOff attribute from DUT"
6185
PICS: OO.S.A0000
6286
command: "readAttribute"
@@ -68,6 +92,14 @@ tests:
6892
PICS: OO.S.C00.Rsp
6993
command: "Off"
7094

95+
- label: "Wait 1000ms"
96+
cluster: "DelayCommands"
97+
command: "WaitForMs"
98+
arguments:
99+
values:
100+
- name: "ms"
101+
value: 1000
102+
71103
- label: "Step 4b: after a few seconds, TH reads OnOff attribute from DUT"
72104
PICS: OO.S.A0000
73105
command: "readAttribute"
@@ -79,14 +111,22 @@ tests:
79111
PICS: OO.S.C00.Rsp
80112
command: "Off"
81113

114+
- label: "Wait 1000ms"
115+
cluster: "DelayCommands"
116+
command: "WaitForMs"
117+
arguments:
118+
values:
119+
- name: "ms"
120+
value: 1000
121+
82122
- label: "Step 4d: after a few seconds, TH reads OnOff attribute from DUT"
83123
PICS: OO.S.A0000
84124
command: "readAttribute"
85125
attribute: "OnOff"
86126
response:
87127
value: 0
88128

89-
- label: "Step 5c: TH sends Toggle command to DUT"
129+
- label: "Step 5a: TH sends Toggle command to DUT"
90130
PICS: OO.S.C02.Rsp
91131
command: "Toggle"
92132

@@ -98,14 +138,14 @@ tests:
98138
- name: "ms"
99139
value: 1000
100140

101-
- label: "Step 5d: after a few seconds, TH reads OnOff attribute from DUT"
141+
- label: "Step 5b: after a few seconds, TH reads OnOff attribute from DUT"
102142
PICS: OO.S.A0000
103143
command: "readAttribute"
104144
attribute: "OnOff"
105145
response:
106146
value: 1
107147

108-
- label: "TH sends Toggle command to DUT"
148+
- label: "Step 5c: TH sends Toggle command to DUT"
109149
PICS: OO.S.C02.Rsp
110150
command: "Toggle"
111151

@@ -117,7 +157,7 @@ tests:
117157
- name: "ms"
118158
value: 1000
119159

120-
- label: "Check on/off attribute value is false after toggle command"
160+
- label: "Step 5d: after a few seconds, TH reads OnOff attribute from DUT"
121161
PICS: OO.S.A0000
122162
command: "readAttribute"
123163
attribute: "OnOff"
@@ -161,14 +201,3 @@ tests:
161201
attribute: "OnOff"
162202
response:
163203
value: 0
164-
165-
- label: "Reset Off Command"
166-
PICS: OO.S.C00.Rsp
167-
command: "Off"
168-
169-
- label: "Check on/off attribute value is false after off command"
170-
PICS: OO.S.A0000
171-
command: "readAttribute"
172-
attribute: "OnOff"
173-
response:
174-
value: 0

src/app/tests/suites/certification/ci-pics-values

+1
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ OO.S.C41.Rsp=1
12111211
OO.S.C42.Rsp=1
12121212
OO.S.F00=1
12131213
OO.S.F01=0
1214+
OO.S.F02=0
12141215
OO.S.A4003=1
12151216
OO.M.ManuallyControlled=1
12161217

0 commit comments

Comments
 (0)