forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_CC_2_1.yaml
823 lines (729 loc) · 30 KB
/
Test_TC_CC_2_1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: 25.2.1. [TC-CC-2.1] Attributes with server as DUT
PICS:
- CC.S
config:
nodeId: 0x12344321
cluster: "Color Control"
endpoint: 1
tests:
- label: "Step 1: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Step 2: TH reads from the DUT the (0x0000) CurrentHue attribute"
PICS: CC.S.A0000
command: "readAttribute"
attribute: "CurrentHue"
response:
constraints:
type: int8u
minValue: 0
maxValue: 254
- label:
"Step 3: TH reads from the DUT the (0x0001) CurrentSaturation
attribute"
PICS: CC.S.A0001
command: "readAttribute"
attribute: "CurrentSaturation"
response:
constraints:
type: int8u
minValue: 0
maxValue: 254
- label:
"Step 4: TH reads from the DUT the (0x0002) RemainingTime attribute"
PICS: CC.S.A0002
command: "readAttribute"
attribute: "RemainingTime"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65534
- label: "Step 5: TH reads from the DUT the (0x0003) CurrentX attribute"
PICS: CC.S.A0003
command: "readAttribute"
attribute: "CurrentX"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label: "Step 6: TH reads from the DUT the (0x0004) CurrentY attribute"
PICS: CC.S.A0004
command: "readAttribute"
attribute: "CurrentY"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 7: TH reads from the DUT the (0x0005) DriftCompensation
attribute"
PICS: CC.S.A0005
command: "readAttribute"
attribute: "DriftCompensation"
response:
constraints:
type: enum8
minValue: 0
maxValue: 4
- label:
"Step 8: TH reads from the DUT the (0x0006) CompensationText attribute"
PICS: CC.S.A0006
command: "readAttribute"
attribute: "CompensationText"
response:
constraints:
type: char_string
maxLength: 254
- label:
"Step 9: TH reads from the DUT the (0x0007) ColorTemperatureMireds
attribute"
PICS: CC.S.A0007
command: "readAttribute"
attribute: "ColorTemperatureMireds"
response:
constraints:
type: int16u
minValue: 1
maxValue: 65279
- label: "Step 10: TH reads from the DUT the (0x0008) ColorMode attribute"
PICS: CC.S.A0008
command: "readAttribute"
attribute: "ColorMode"
response:
constraints:
type: enum8
minValue: 0
maxValue: 2
- label: "Step 11: TH reads from the DUT the (0x000f) Options attribute"
PICS: CC.S.A000f
command: "readAttribute"
attribute: "Options"
response:
constraints:
type: bitmap8
minValue: 0
maxValue: 4
- label:
"Step 12: TH reads from the DUT the (0x4000) EnhancedCurrentHue
attribute"
PICS: CC.S.A4000
command: "readAttribute"
attribute: "EnhancedCurrentHue"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
- label:
"Step 13: TH reads from the DUT the (0x4001) EnhancedColorMode
attribute"
PICS: CC.S.A4001
command: "readAttribute"
attribute: "EnhancedColorMode"
response:
constraints:
type: enum8
minValue: 0
maxValue: 3
- label:
"Step 14:TH reads from the DUT the (0x4002) ColorLoopActive attribute"
PICS: CC.S.A4002
command: "readAttribute"
attribute: "ColorLoopActive"
response:
constraints:
type: int8u
minValue: 0
maxValue: 254
- label:
"Step 15: TH reads from the DUT the (0x4003) ColorLoopDirection
attribute"
PICS: CC.S.A4003
command: "readAttribute"
attribute: "ColorLoopDirection"
response:
constraints:
type: int8u
minValue: 0
maxValue: 254
- label:
"Step 16: TH reads from the DUT the (0x4004) ColorLoopTime attribute"
PICS: CC.S.A4004
command: "readAttribute"
attribute: "ColorLoopTime"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
- label:
"Step 17: TH reads from the DUT the (0x4005) ColorLoopStartEnhancedHue
attribute"
PICS: CC.S.A4005
command: "readAttribute"
attribute: "ColorLoopStartEnhancedHue"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
- label:
"Step 18: TH reads from the DUT the (0x4006)
ColorLoopStoredEnhancedHue attributeT"
PICS: CC.S.A4006
command: "readAttribute"
attribute: "ColorLoopStoredEnhancedHue"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
- label:
"Step 18a: Saving for comparision in step 19 reads FeatureMap
attribute from DUT"
command: "readAttribute"
attribute: "FeatureMap"
response:
saveAs: FeatureMapValue
- label:
"Step 19: TH reads from the DUT the (0x400a) ColorCapabilities
attribute"
PICS: CC.S.A400a
command: "readAttribute"
attribute: "ColorCapabilities"
response:
value: FeatureMapValue
constraints:
type: bitmap16
minValue: 0
maxValue: 31
- label:
"Step 20: TH reads from the DUT the (0x400b)
ColorTempPhysicalMinMireds attribute"
PICS: CC.S.A400b
command: "readAttribute"
attribute: "ColorTempPhysicalMinMireds"
response:
constraints:
type: int16u
minValue: 1
maxValue: 65279
- label:
"Step 21: TH reads from the DUT the (0x400c)
ColorTempPhysicalMaxMireds attribute"
PICS: CC.S.A400c
command: "readAttribute"
attribute: "ColorTempPhysicalMaxMireds"
response:
constraints:
type: int16u
minValue: 1
maxValue: 65279
- label:
"Step 22: TH reads from the DUT the (0x400d)
CoupleColorTempToLevelMinMireds attribute"
PICS: CC.S.A400d
command: "readAttribute"
attribute: "CoupleColorTempToLevelMinMireds"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 23: TH reads from the DUT the (0x4010)
StartUpColorTemperatureMireds attribute"
PICS: CC.S.A4010
command: "readAttribute"
attribute: "StartUpColorTemperatureMireds"
response:
constraints:
type: int16u
python: (value is None) or ((value >= 1) and (value <= 65279))
#Defined Primaries Information Attribute Set
- label:
"Step 24: TH reads from the DUT the (0x0010) NumberOfPrimaries
attribute"
PICS: CC.S.A0010
command: "readAttribute"
attribute: "NumberOfPrimaries"
response:
constraints:
type: int8u
minValue: 0
maxValue: 6
- label:
"Step 25: TH reads Primary1X attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 1 or more"
verification: |
./chip-tool colorcontrol read primary1x 1 1
On TH(chip-tool) Logs, Verify that "Primary1X" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary1X" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0011 DataVersion: 540305990
[1651483665.109697][3245:3250] CHIP:TOO: Primary1X: 0
[1651483665.109797][3245:3250] CHIP:EM: Sending Standalone Ack for MessageCounter:12731123 on exchange 55053i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0011
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 26: TH reads Primary1Y attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 1 or more"
verification: |
./chip-tool colorcontrol read primary1y 1 1
On TH(chip-tool) Logs, Verify that "Primary1Y" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary1Y" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0012 DataVersion: 540305990
[1651483698.733322][3253:3259] CHIP:TOO: Primary1Y: 0
[1651483698.733420][3253:3259] CHIP:EM: Sending Standalone Ack for MessageCounter:7863787 on exchange 13103i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0012
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 27: TH reads Primary1Intensity attribute from DUT and Verify
that the DUT response contains an uint8 if NumberOfPrimaries is 1 or
more"
verification: |
./chip-tool colorcontrol read primary1intensity 1 1
On TH(chip-tool) Logs, Verify that "Primary1Intensity" attribute value is an uint8 and below is the sample log provided for the raspi platform, In RPI "Primary1Intensity" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0013 DataVersion: 540305990
[1651483742.297459][3263:3268] CHIP:TOO: Primary1Intensity: 0
[1651483742.297558][3263:3268] CHIP:EM: Sending Standalone Ack for MessageCounter:10210809 on exchange 7007i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0013
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 28: TH reads Primary2X attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 2 or more"
verification: |
./chip-tool colorcontrol read primary2x 1 1
On TH(chip-tool) Logs, Verify that "Primary2X" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary2X" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0015 DataVersion: 540305990
[1651483777.233498][3270:3275] CHIP:TOO: Primary2X: 0
[1651483777.233614][3270:3275] CHIP:EM: Sending Standalone Ack for MessageCounter:1684573 on exchange 21377i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0015
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 29: TH reads Primary2Y attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 2 or more"
verification: |
./chip-tool colorcontrol read primary2y 1 1
On TH(chip-tool) Logs, Verify that "Primary2Y" value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary2Y" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0016 DataVersion: 540305990
[1651483805.650796][3279:3284] CHIP:TOO: Primary2Y: 0
[1651483805.650942][3279:3284] CHIP:EM: Sending Standalone Ack for MessageCounter:16277541 on exchange 10435i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0016
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 30: TH reads Primary2Intensity attribute from DUT and Verify
that the DUT response contains an uint8 if NumberOfPrimaries is 2 or
more"
verification: |
./chip-tool colorcontrol read primary2intensity 1 1
On TH(chip-tool) Logs, Verify that "Primary2Intensity" attribute value is an uint8 and below is the sample log provided for the raspi platform, In RPI "Primary2Intensity" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0017 DataVersion: 540305990
[1651483834.596380][3285:3290] CHIP:TOO: Primary2Intensity: 0
[1651483834.596470][3285:3290] CHIP:EM: Sending Standalone Ack for MessageCounter:5986355 on exchange 855i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0017
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 31: TH reads Primary3X attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 3 or more"
verification: |
./chip-tool colorcontrol read primary3x 1 1
On TH(chip-tool) Logs, Verify that "Primary3X" value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary3X" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0019 DataVersion: 540305990
[1651483937.072323][3298:3303] CHIP:TOO: Primary3X: 0
[1651483937.072405][3298:3303] CHIP:EM: Sending Standalone Ack for MessageCounter:6092298 on exchange 12519i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0019
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 32: TH reads Primary3Y attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 3 or more"
verification: |
./chip-tool colorcontrol read primary3y 1 1
On TH(chip-tool) Logs, Verify that "Primary3Y" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary3Y" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_001A DataVersion: 540305990
[1651483967.386334][3305:3310] CHIP:TOO: Primary3Y: 0
[1651483967.386427][3305:3310] CHIP:EM: Sending Standalone Ack for MessageCounter:3329418 on exchange 11657i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A001a
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 33: TH reads Primary3Intensity attribute from DUT and Verify
that the DUT response contains an uint8 if NumberOfPrimaries is 3 or
more"
verification: |
./chip-tool colorcontrol read primary3intensity 1 1
On TH(chip-tool) Logs, Verify that "Primary3Intensity" attribute value is an uint8 and below is the sample log provided for the raspi platform, In RPI "Primary3Intensity" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_001B DataVersion: 540305990
[1651484113.812178][3316:3321] CHIP:TOO: Primary3Intensity: 0
[1651484113.812270][3316:3321] CHIP:EM: Sending Standalone Ack for MessageCounter:41658 on exchange 9618i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A001b
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
#Additional Defined Primaries Information Attribute Set
- label:
"Step 34: TH reads Primary4X attribute from DUT Verify that the DUT
response contains an uint16 [Min:0 Max:0xfeff] if NumberOfPrimaries is
4 or more"
verification: |
./chip-tool colorcontrol read primary4x 1 1
On TH(chip-tool) Logs, Verify that "Primary4X" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary4X" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0020 DataVersion: 540305990
[1651484143.778301][3324:3329] CHIP:TOO: Primary4X: 0
[1651484143.778392][3324:3329] CHIP:EM: Sending Standalone Ack for MessageCounter:2094184 on exchange 50270i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0020
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 35: TH reads Primary4Y attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 4 or more"
verification: |
./chip-tool colorcontrol read primary4y 1 1
On TH(chip-tool) Logs, Verify that "Primary4Y" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary4Y" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0021 DataVersion: 540305990
[1651484171.921901][3334:3339] CHIP:TOO: Primary4Y: 0
[1651484171.921984][3334:3339] CHIP:EM: Sending Standalone Ack for MessageCounter:3701827 on exchange 16726i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0021
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 36: TH reads Primary4Intensity attribute from DUT and Verify
that the DUT response contains an uint8 if NumberOfPrimaries is 4 or
more"
verification: |
./chip-tool colorcontrol read primary4intensity 1 1
On TH(chip-tool) Logs, Verify that "Primary4Intensity" attribute value is an uint8 and below is the sample log provided for the raspi platform, In RPI "Primary4Intensity" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0022 DataVersion: 540305990
[1651484198.443415][3341:3346] CHIP:TOO: Primary4Intensity: 0
[1651484198.443528][3341:3346] CHIP:EM: Sending Standalone Ack for MessageCounter:1740063 on exchange 36245i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0022
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 37: TH reads Primary5X attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 5 or more"
verification: |
./chip-tool colorcontrol read primary5x 1 1
On TH(chip-tool) Logs, Verify that "Primary5X" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary5X" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0024 DataVersion: 540305990
[1651484241.467661][3350:3355] CHIP:TOO: Primary5X: 0
[1651484241.467788][3350:3355] CHIP:EM: Sending Standalone Ack for MessageCounter:5350139 on exchange 63040i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0024
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 38: TH reads Primary5Y attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 5 or more"
verification: |
./chip-tool colorcontrol read primary5y 1 1
On TH(chip-tool) Logs, Verify that "Primary5Y" attribute value is an uint16 and below is the sample log provided for the raspi platform, In RPI "Primary5Y" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0025 DataVersion: 540305990
[1651484286.709863][3358:3363] CHIP:TOO: Primary5Y: 0
[1651484286.709964][3358:3363] CHIP:EM: Sending Standalone Ack for MessageCounter:7199124 on exchange 47604i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0025
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 39: TH reads Primary5Intensity attribute from DUT and Verify
that the DUT response contains an uint8 if NumberOfPrimaries is 5 or
more"
verification: |
./chip-tool colorcontrol read primary5intensity 1 1
On TH(chip-tool) Logs, Verify that "Primary5Intensity" attribute value is an uint8 and below is the sample log provided for the raspi platform, In RPI "Primary5Intensity" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0026 DataVersion: 540305990
[1651484304.715731][3365:3370] CHIP:TOO: Primary5Intensity: 0
[1651484304.715829][3365:3370] CHIP:EM: Sending Standalone Ack for MessageCounter:8654922 on exchange 29272i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0026
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 40: TH reads Primary6X attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 6 or more"
verification: |
./chip-tool colorcontrol read primary6x 1 1
On TH(chip-tool) Logs, Verify that "Primary6X" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary6X" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0028 DataVersion: 540305990
[1651484349.601181][3372:3377] CHIP:TOO: Primary6X: 0
[1651484349.601269][3372:3377] CHIP:EM: Sending Standalone Ack for MessageCounter:13704291 on exchange 30507i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0028
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 41: TH reads Primary6Y attribute from DUT and Verify that the
DUT response contains an uint16 [Min:0 Max:0xfeff] if
NumberOfPrimaries is 6 or more"
verification: |
./chip-tool colorcontrol read primary6y 1 1
On TH(chip-tool) Logs, Verify that "Primary6Y" attribute value is an uint16 [Min:0 Max:0xfeff] and below is the sample log provided for the raspi platform, In RPI "Primary6Y" value is 0.
[1663318323.234522][132277:132282] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0029 DataVersion: 3053940635
[1663318323.234951][132277:132282] CHIP:TOO: Primary6Y: 0
[1663318323.235117][132277:132282] CHIP:EM: Sending Standalone Ack for MessageCounter:208977845 on exchange 35151i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A0029
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 42: TH reads Primary6Intensity attribute from DUT and Verify
that the DUT response contains an uint8 if NumberOfPrimaries is 6 or
more"
verification: |
./chip-tool colorcontrol read primary6intensity 1 1
On TH(chip-tool) Logs, Verify that "Primary6Intensity" value is an uint8 and below is the sample log provided for the raspi platform, In RPI "Primary6Intensity" value is 0.
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_002A DataVersion: 540305990
[1651484392.490974][3378:3383] CHIP:TOO: Primary6Intensity: 0
[1651484392.491074][3378:3383] CHIP:EM: Sending Standalone Ack for MessageCounter:2427165 on exchange 17769i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CC.S.A002a
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
#Defined Color Points Settings Attribute Set
- label: "Step 43: TH reads from the DUT the (0x0030) WhitePointX attribute"
PICS: CC.S.A0030
command: "readAttribute"
attribute: "WhitePointX"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label: "Step 44: TH reads from the DUT the (0x0031) WhitePointY attribute"
PICS: CC.S.A0031
command: "readAttribute"
attribute: "WhitePointY"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 45: TH reads from the DUT the (0x0032) ColorPointRX attribute"
PICS: CC.S.A0032
command: "readAttribute"
attribute: "ColorPointRX"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 46: TH reads from the DUT the (0x0033) ColorPointRY attribute"
PICS: CC.S.A0033
command: "readAttribute"
attribute: "ColorPointRY"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 47: TH reads from the DUT the (0x0034) ColorPointRIntensity
attribute"
PICS: CC.S.A0034
command: "readAttribute"
attribute: "ColorPointRIntensity"
response:
constraints:
type: int8u
minValue: 0
maxValue: 255
- label:
"Step 48: TH reads from the DUT the (0x0036) ColorPointGX attribute"
PICS: CC.S.A0036
command: "readAttribute"
attribute: "ColorPointGX"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 49: TH reads from the DUT the (0x0037) ColorPointGY attribute"
PICS: CC.S.A0037
command: "readAttribute"
attribute: "ColorPointGY"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 50: TH reads from the DUT the (0x0038) ColorPointGIntensity
attribute"
PICS: CC.S.A0038
command: "readAttribute"
attribute: "ColorPointGIntensity"
response:
constraints:
type: int8u
minValue: 0
maxValue: 255
- label:
"Step 51: TH reads from the DUT the (0x003a) ColorPointBX attribute"
PICS: CC.S.A003a
command: "readAttribute"
attribute: "ColorPointBX"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 52: TH reads from the DUT the (0x003b) ColorPointBY attribute"
PICS: CC.S.A003b
command: "readAttribute"
attribute: "ColorPointBY"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label:
"Step 53: TH reads from the DUT the (0x003c) ColorPointBIntensity
attribute"
PICS: CC.S.A003c
command: "readAttribute"
attribute: "ColorPointBIntensity"
response:
constraints:
type: int8u
minValue: 0
maxValue: 255