-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_SC_4_1.yaml
1371 lines (1239 loc) · 50 KB
/
Test_TC_SC_4_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
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright (c) 2023 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: 22.4.1. [TC-SC-4.1] Commissionable Node Discovery [DUT as Commissionee]
PICS:
- MCORE.ROLE.COMMISSIONEE
config:
nodeId: 0x12344321
endpoint: 0
discriminator:
type: int16u
defaultValue: 3840
shortDiscriminator:
type: int16u
defaultValue: 15
vendorId:
type: int16u
defaultValue: 65521
productId:
type: int16u
defaultValue: 32769
deviceType:
type: int16u
defaultValue: 65535
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"
timeout: 900
waitAfterCommissioning:
type: int16u
defaultValue: 5000
tests:
- label: "Step 1: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label:
"Step 1a: DUT is put in Commissioning Mode using Open Basic
Commissioning Window command "
cluster: "Administrator Commissioning"
command: "OpenBasicCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- label: "Waiting after opening commissioning window"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: waitAfterCommissioning
- label:
"Step 2a: Check DNS-SD instance name must be 64-bit randomly selected
ID expressed as a sixteen-char hex string with capital letters"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "instanceName"
saveAs: deviceInstanceNameBeforeReboot
constraints:
minLength: 16
maxLength: 16
isUpperCase: true
isHexString: true
- label: "Step 2b: Service type must be _matterc._udp"
verification: |
Run the below commands within the mentioned time interval used in open-commissioning-window in step-1.
Run the below avahi browse command in the TH terminal
avahi-browse -rt _matterc._udp
ubuntu@ubuntu:~$ avahi-browse -rt _matterc._udp
Verify the device is advertising _matterc._udp service like below output in TH terminal Log: (Verify for the DUT's actual values (like vendor ID, PID ..etc) as mentioned in the expected outcome of the test plan, The below log contains the data from the reference raspi accessory)
+ wlan0 IPv6 5A4E867284D08B13 _matterc._udp local
+ eth0 IPv6 5A4E867284D08B13 _matterc._udp local
= eth0 IPv6 5A4E867284D08B13 _matterc._udp local
hostname = [E45F010F1A010000.local]
address = [fe80::e65f:1ff:fe0f:1a01]
port = [5540]
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "VP=65521+32769"]
= wlan0 IPv6 5A4E867284D08B13 _matterc._udp local
hostname = [E45F010F1A010000.local]
address = [fe80::e65f:1ff:fe0f:1a01]
port = [5540]
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "VP=65521+32769"]
If we use Thread setup, then the Service Domain will be 422F10CDC290A406.local
verify CM flag is 1
to look for subtypes, on the raspi run $ avahi-browse -p _services._dns-sd._udp | grep _matterc
+;eth0;IPv6;_matterc;_udp;local
+;eth0;IPv6;_V65521;_sub._matterc._udp;local
+;eth0;IPv6;_S15;_sub._matterc._udp;local
+;eth0;IPv6;_L3840;_sub._matterc._udp;local
+;eth0;IPv6;_CM;_sub._matterc._udp;local
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
#validate the service type and the service domain not implemented in CI
- label:
"Step 2c: Check target hostname is derived from the 48bit or 64bit MAC
address expressed as a twelve or sixteen capital letter hex string"
PICS: "( MCORE.COM.WIFI || MCORE.COM.ETH) && !MCORE.COM.THR"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "hostName"
constraints:
minLength: 12
maxLength: 16
isUpperCase: true
isHexString: true
- label:
"Step 2c: Check target hostname is derived from the 48bit or 64bit MAC
address expressed as a twelve or sixteen capital letter hex string"
PICS: "(!MCORE.COM.WIFI && !MCORE.COM.WIFI) && MCORE.COM.THR"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "hostName"
constraints:
minLength: 12
maxLength: 16
isUpperCase: true
isHexString: true
#subtype
- label: "Step 2d: Check Long Discriminator _L"
cluster: "DiscoveryCommands"
command: "FindCommissionableByLongDiscriminator"
arguments:
values:
- name: "value"
value: discriminator
- label: "Step 2d: Check Short Discriminator (_S)"
cluster: "DiscoveryCommands"
command: "FindCommissionableByShortDiscriminator"
arguments:
values:
- name: "value"
value: shortDiscriminator
- label:
"Step 2e: If (MCORE.SC.VENDOR_SUBTYPE) present, subtype _V<ddddd> is
present must be 16-bit vendor id, encoded as a variable-length decimal
number in ASCII text, omitting any leading zeros"
PICS: MCORE.SC.VENDOR_SUBTYPE
cluster: "DiscoveryCommands"
command: "FindCommissionableByVendorId"
arguments:
values:
- name: "value"
value: vendorId
- label:
"Step 2f: If (MCORE.SC.DEVTYPE_SUBTYPE) present, subtype _T<ddd> is
present, <ddd> represents device type from Data Model and must be
represented as a variable length decimal number in ASCII without
leading zeros"
PICS: MCORE.SC.DEVTYPE_SUBTYPE
cluster: "DiscoveryCommands"
command: "FindCommissionableByDeviceType"
arguments:
values:
- name: "value"
value: deviceType
- label:
"Step 2g: Check Commissioning Mode (_CM) subtype _CM must be present"
cluster: "DiscoveryCommands"
command: "FindCommissionableByCommissioningMode"
- label:
"Step 2h: key D must be present and represents the discriminator which
must be encoded as a variable-length decimal value with up to 4 digits
omitting any leading zeros"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "longDiscriminator"
value: discriminator
constraints:
minValue: 0
maxValue: 4096
- label:
"Step 2i: If (MCORE.SC.VP_KEY) present, VP key must contain at least
Vendor ID is present"
PICS: MCORE.SC.VP_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "vendorId"
value: vendorId
- label:
"Step 2j: If (MCORE.SC.VP_KEY) present, VP key must contain at least
Product ID is present"
PICS: MCORE.SC.VP_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "productId"
value: productId
- label:
"Step 2k: If (MCORE.SC.SII_OP_DISCOVERY_KEY) present, SII key must be
an unsigned integer with units of milliseconds and shall be encoded as
a variable length decimal number in ASCII, omitting leading zeros.
Shall not exceed 3600000"
PICS: MCORE.SC.SII_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryIntervalIdle"
constraints:
maxValue: 3600000
- label:
"Step 2l: If (MCORE.SC.SAI_OP_DISCOVERY_KEY ) present, SAI key must be
an unsigned integer with units of milliseconds and shall be encoded as
a variable length decimal number in ASCII, omitting leading zeros.
Shall not exceed 3600000."
PICS: MCORE.SC.SAI_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryIntervalActive"
constraints:
maxValue: 3600000
- label:
"Step 2m: If (MCORE.SC.SAT_OP_DISCOVERY_KEY) present, SAT key must be
an unsigned integer with units of milliseconds and shall be encoded as
a variable length decimal number in ASCII, omitting leading zeros.
Shall not exceed 65535."
PICS: MCORE.SC.SAI_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryActiveThreshold"
constraints:
maxValue: 65535
- label: "Step 2n: TXT key for commissioning mode (CM) CM=1 must be present"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "commissioningMode"
value: 1
- label:
"Step 2o: If (MCORE.SC.DT_KEY) present, DT key must contain the device
type identifier from Data Model Device Types and must be encoded as a
variable length decimal ASCII number without leading zeros"
PICS: MCORE.SC.DT_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "deviceType"
value: deviceType
- label:
"Step 2p: If (MCORE.SC.DN_KEY) present, DN key must be a UTF-8 encoded
string with a maximum length of 32B"
PICS: MCORE.SC.DN_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "deviceName"
constraints:
maxLength: 32
- label:
"Step 2q: If (MCORE.SC.RI_KEY ) present, key RI must include the
Rotating Device Identifier encoded as a uppercase string with a
maximum length of 100 chars"
PICS: MCORE.SC.RI_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "rotatingIdLen"
constraints:
maxValue: 100
- label:
"Step 2r: If (MCORE.SC.PH_KEY) present, key PH must be encoded as a
variable-length decimal number in ASCII text, omitting any leading
zeros. If present value must be different of 0"
PICS: MCORE.SC.PH_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "pairingHint"
constraints:
notValue: 0
- label:
"Step 2s: If (MCORE.SC.PI_KEY) present, key PI must be encoded as a
valid UTF-8 string with a maximum length of 128 bytes"
PICS: MCORE.SC.PI_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "pairingInstruction"
constraints:
maxLength: 128
- label:
"Step 2t: DUT must publish AAAA records for each IPv6 address upon
which they are willing to accept Matter messages."
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "numIPs"
constraints:
minValue: 1
### DUT TurnOff
- label: "Step 3: Reboot/restart the DUT"
PICS: PICS_SDK_CI_ONLY
cluster: "SystemCommands"
endpoint: 0
command: "Reboot"
- label: "Step 3: Reboot target device(DUT)"
verification: |
Did the DUT successfully reboot?
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Please reboot the DUT and enter 'y' after DUT starts"
- name: "expectedValue"
value: "y"
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label:
"Step 3a: DUT put in Commissioning Mode using Open Basic Commissioning
Window command, starting advertising Commissionable Node Discovery
service using DNS-SD"
PICS: CADMIN.S.C01.Rsp
cluster: "Administrator Commissioning"
command: "OpenBasicCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- label: "Waiting after opening commissioning window"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: waitAfterCommissioning
- label:
"Step 4a: Check DNS-SD instance name must be 64-bit randomly selected
ID expressed as a sixteen-char hex string with capital letters and
must be different from the one at step 2"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "instanceName"
constraints:
minLength: 16
maxLength: 16
isUpperCase: true
isHexString: true
notValue: deviceInstanceNameBeforeReboot
- label: "Step 4b: service type must be _matterc._udp"
verification: |
Run the below avahi browse command in TH terminal
avahi-browse -rt _matterc._udp
Verify the device is advertising _matterc._udp service like below output in TH terminal Log: (Verify for the DUT's actual values (like vendor ID, PID ..etc) as mentioned in the expected outcome of the test plan, The below log contains the data from the reference raspi accessory)
+ wlan0 IPv6 F6385CBB29F7CE93 _matterc._udp local
+ eth0 IPv6 F6385CBB29F7CE93 _matterc._udp local
= eth0 IPv6 F6385CBB29F7CE93 _matterc._udp local
hostname = [E45F010F1A010000.local]
address = [fe80::e65f:1ff:fe0f:1a01]
port = [5540]
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "VP=65521+32769"]
= wlan0 IPv6 F6385CBB29F7CE93 _matterc._udp local
hostname = [E45F010F1A010000.local]
address = [fe80::e65f:1ff:fe0f:1a01]
port = [5540]
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "VP=65521+32769"]
Service Domain 422F10CDC290A406.local
verify CM flag is 1
to look for subtypes, on the raspi run $ avahi-browse -p _services._dns-sd._udp | grep _matterc
+;eth0;IPv6;_matterc;_udp;local
+;eth0;IPv6;_V65521;_sub._matterc._udp;local
+;eth0;IPv6;_S15;_sub._matterc._udp;local
+;eth0;IPv6;_L3840;_sub._matterc._udp;local
+;eth0;IPv6;_CM;_sub._matterc._udp;local
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
#validate the service type and the service domain not implemented in CI
- label:
"Step 4c: Check Hostname. If (MCORE.COM.WIFI) OR (MCORE.COM.ETH)
target hostname is derived from the 48bit or 64bit MAC address
expressed as a twelve or sixteen capital letter hex string"
PICS: "(MCORE.COM.WIFI || MCORE.COM.ETH) && !MCORE.COM.THR"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "hostName"
constraints:
minLength: 12
maxLength: 16
isUpperCase: true
isHexString: true
- label:
"Step 4c: Check Hostname. If (MCORE.COM.THR) target hostname is
derived from the 48bit or 64bit MAC address expressed as a twelve or
sixteen capital letter hex string"
PICS: "(!MCORE.COM.WIFI && !MCORE.COM.ETH) && MCORE.COM.THR"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "hostName"
constraints:
minLength: 12
maxLength: 16
isUpperCase: true
isHexString: true
- label: "Step 4d: Check Long Discriminator _L"
cluster: "DiscoveryCommands"
command: "FindCommissionableByLongDiscriminator"
arguments:
values:
- name: "value"
value: discriminator
- label: "Step 4e: Check Short Discriminator (_S)"
cluster: "DiscoveryCommands"
command: "FindCommissionableByShortDiscriminator"
arguments:
values:
- name: "value"
value: shortDiscriminator
- label:
"Step 4f: If (MCORE.SC.VENDOR_SUBTYPE ) present, subtype _V<ddddd> is
present must be 16-bit vendor id, encoded as a variable-length decimal
number in ASCII text, omitting any leading zeros"
PICS: MCORE.SC.VENDOR_SUBTYPE
cluster: "DiscoveryCommands"
command: "FindCommissionableByVendorId"
arguments:
values:
- name: "value"
value: vendorId
- label:
"Step 4g: If (MCORE.SC.DEVTYPE_SUBTYPE) present, subtype _T<ddd> is
present, <ddd> represents device type from Data Model and must be
represented as a variable length decimal number in ASCII without
leading zeros"
# The device type is not broadcasted by the accessory under CI.
PICS: MCORE.SC.DEVTYPE_SUBTYPE
cluster: "DiscoveryCommands"
command: "FindCommissionableByDeviceType"
arguments:
values:
- name: "value"
value: deviceType
- label: "Step 4h: Check Commissioning Mode (_CM) subtype _CM is present"
cluster: "DiscoveryCommands"
command: "FindCommissionableByCommissioningMode"
- label:
"Step 4i: key D must be present and represents the discriminator which
must be encoded as a variable-length decimal value with up to 4 digits
omitting any leading zeros"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "longDiscriminator"
value: discriminator
constraints:
minValue: 0
maxValue: 4096
- label:
"Step 4j: If (MCORE.SC.VP_KEY) present, VP key must contain at least
Vendor ID is present."
PICS: MCORE.SC.VP_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "vendorId"
value: vendorId
- label:
"Step 4k: If (MCORE.SC.VP_KEY) present, VP key must contain at least
Product ID is present."
PICS: MCORE.SC.VP_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "productId"
value: productId
- label:
"Step 4l: If (MCORE.SC.SII_OP_DISCOVERY_KEY ) present, SII key must be
an unsigned integer with units of milliseconds and shall be encoded as
a variable length decimal number in ASCII, omitting leading zeros.
Shall not exceed 3600000"
PICS: MCORE.SC.SII_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryIntervalIdle"
constraints:
maxValue: 3600000
- label:
"Step 4m: If (MCORE.SC.SAI_OP_DISCOVERY_KEY) present, SAI key must be
an unsigned integer with units of milliseconds and shall be encoded as
a variable length decimal number in ASCII, omitting leading zeros.
Shall not exceed 3600000."
PICS: MCORE.SC.SAI_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryIntervalActive"
constraints:
maxValue: 3600000
- label:
"Step 4n: If (MCORE.SC.SAT_OP_DISCOVERY_KEY) present, SAT key must be
an unsigned integer with units of milliseconds and shall be encoded as
a variable length decimal number in ASCII, omitting leading zeros.
Shall not exceed 65535."
PICS: MCORE.SC.SAI_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryActiveThreshold"
constraints:
maxValue: 65535
- label:
"Step 4o: TXT key for commissioning mode (CM) key CM=1 must be present"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "commissioningMode"
value: 1
- label:
"Step 4p: If (MCORE.SC.DT_KEY) present, DT key must contain the device
type identifier from Data Model Device Types and must be encoded as a
variable length decimal ASCII number without leading zeros"
PICS: MCORE.SC.DT_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "deviceType"
value: deviceType
- label:
"Step 4q: If (MCORE.SC.DN_KEY) present, DN key must be a UTF-8 encoded
string with a maximum length of 32B"
PICS: MCORE.SC.DN_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "deviceName"
constraints:
maxLength: 32
- label:
"Step 4r: If (MCORE.SC.RI_KEY) present, key RI must include the
Rotating Device Identifier encoded as a uppercase string with a
maximum length of 100 chars"
PICS: MCORE.SC.RI_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "rotatingIdLen"
constraints:
maxValue: 100
- label:
"Step 4s: If (MCORE.SC.PH_KEY) present, key PH must be encoded as a
variable-length decimal number in ASCII text, omitting any leading
zeros. If present value must be different of 0"
PICS: MCORE.SC.PH_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "pairingHint"
constraints:
notValue: 0
- label:
"Step 4t: If (MCORE.SC.PI_KEY) present, key PI must be encoded as a
valid UTF-8 string with a maximum length of 128 bytes"
PICS: MCORE.SC.PI_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "pairingInstruction"
constraints:
maxLength: 128
- label:
"Step 4u: DUT must publish AAAA records for each IPv6 address upon
which they are willing to accept Matter messages."
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "numIPs"
constraints:
minValue: 1
- label: "Step 5: Wait for OpenBasicCommissioningWindow timeout to expire"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 180000
- label:
"Step 6: DUT is Commissioned and instructed to enter in commissioning
mode using Open Commissioning Window command"
cluster: "Administrator Commissioning"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
PICS: CADMIN.S.C00.Rsp && PICS_SDK_CI_ONLY
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- name: "PAKEPasscodeVerifier"
value: PakeVerifier
- name: "Discriminator"
value: discriminator
- name: "Iterations"
value: 1000
- name: "Salt"
value: "SPAKE2P Key Salt"
#Issue https://github.com/project-chip/connectedhomeip/issues/26127
- label:
"Step 6: DUT is Commissioned and instructed to enter in commissioning
mode using Open Commissioning Window command"
verification: |
Run the below open-commissioning-window in TH Terminal
The user needs to change this command to match the longDiscriminator override.
use the same discriminator as the longDiscriminator of the DUT.
./chip-tool pairing open-commissioning-window 1 1 200 2000 <discriminator>
verify success on TH (Chip-tool) logs:
[1652341411.383669][2929:2934] CHIP:DMG: InvokeResponseMessage =
[1652341411.383720][2929:2934] CHIP:DMG: {
[1652341411.383769][2929:2934] CHIP:DMG: suppressResponse = false,
[1652341411.383821][2929:2934] CHIP:DMG: InvokeResponseIBs =
[1652341411.383886][2929:2934] CHIP:DMG: [
[1652341411.383936][2929:2934] CHIP:DMG: InvokeResponseIB =
[1652341411.384009][2929:2934] CHIP:DMG: {
[1652341411.384068][2929:2934] CHIP:DMG: CommandStatusIB =
[1652341411.384139][2929:2934] CHIP:DMG: {
[1652341411.384203][2929:2934] CHIP:DMG: CommandPathIB =
[1652341411.384278][2929:2934] CHIP:DMG: {
[1652341411.384349][2929:2934] CHIP:DMG: EndpointId = 0x0,
[1652341411.384427][2929:2934] CHIP:DMG: ClusterId = 0x3c,
[1652341411.384501][2929:2934] CHIP:DMG: CommandId = 0x0,
[1652341411.384624][2929:2934] CHIP:DMG: },
[1652341411.384722][2929:2934] CHIP:DMG:
[1652341411.384795][2929:2934] CHIP:DMG: StatusIB =
[1652341411.384877][2929:2934] CHIP:DMG: {
[1652341411.384958][2929:2934] CHIP:DMG: status = 0x00 (SUCCESS),
[1652341411.385035][2929:2934] CHIP:DMG: },
[1652341411.385116][2929:2934] CHIP:DMG:
[1652341411.385188][2929:2934] CHIP:DMG: },
[1652341411.385271][2929:2934] CHIP:DMG:
[1652341411.385337][2929:2934] CHIP:DMG: },
[1652341411.385416][2929:2934] CHIP:DMG:
[1652341411.385474][2929:2934] CHIP:DMG: ],
[1652341411.385547][2929:2934] CHIP:DMG:
[1652341411.385605][2929:2934] CHIP:DMG: InteractionModelRevision = 1
[1652341411.385662][2929:2934] CHIP:DMG: },
[1652341411.385794][2929:2934] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x0
[1652341411.385860][2929:2934] CHIP:CTL: Successfully opened pairing window on the device
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && CADMIN.S.C00.Rsp
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "Waiting after opening commissioning window"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: waitAfterCommissioning
- label:
"Step 7a: DNS-SD instance name must be 64-bit randomly selected ID
expressed as a sixteen-char hex string with capital letters"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "instanceName"
constraints:
minLength: 16
maxLength: 16
isUpperCase: true
isHexString: true
#validate the service type and the service domain not implemented in CI
- label:
"Step 7b: Check Hostname.If (MCORE.COM.WIFI) OR (MCORE.COM.ETH) target
hostname is derived from the 48bit or 64bit MAC address expressed as a
twelve or sixteen capital letter hex string."
# On macOS the hostname is the device name and because of it this test is disabled for now.
PICS: "(MCORE.COM.WIFI || MCORE.COM.ETH) && !MCORE.COM.THR"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "hostName"
constraints:
minLength: 12
maxLength: 16
isUpperCase: true
isHexString: true
- label:
"Step 7b: Check Hostname. If (MCORE.COM.THR) target hostname is
derived from the 48bit or 64bit MAC extended address expressed as a
twelve or sixteen capital letter hex string."
# On macOS the hostname is the device name and because of it this test is disabled for now.
PICS: "(!MCORE.COM.WIFI && !MCORE.COM.ETH) && MCORE.COM.THR"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "hostName"
constraints:
minLength: 12
maxLength: 16
isUpperCase: true
isHexString: true
- label: "Step 7c: Check Long Discriminator _L"
cluster: "DiscoveryCommands"
command: "FindCommissionableByLongDiscriminator"
arguments:
values:
- name: "value"
value: discriminator
- label: "Step 7d: Check Short Discriminator (_S)"
cluster: "DiscoveryCommands"
command: "FindCommissionableByShortDiscriminator"
arguments:
values:
- name: "value"
value: shortDiscriminator
- label:
"Step 7e: If (MCORE.SC.VENDOR_SUBTYPE) present, subtype _V<ddddd> is
present must be 16-bit vendor id, encoded as a variable-length decimal
number in ASCII text, omitting any leading zeros"
PICS: MCORE.SC.VENDOR_SUBTYPE
cluster: "DiscoveryCommands"
command: "FindCommissionableByVendorId"
arguments:
values:
- name: "value"
value: vendorId
- label:
"Step 7f: If (MCORE.SC.DEVTYPE_SUBTYPE) present, subtype _T<ddd> is
present, <ddd> represents device type from Data Model and must be
represented as a variable length decimal number in ASCII without
leading zeros"
# The device type is not broadcasted by the accessory under CI.
PICS: MCORE.SC.DEVTYPE_SUBTYPE
cluster: "DiscoveryCommands"
command: "FindCommissionableByDeviceType"
arguments:
values:
- name: "value"
value: deviceType
- label: "Step 7g: Check Commissioning Mode (_CM) subtype _CM is present"
cluster: "DiscoveryCommands"
command: "FindCommissionableByCommissioningMode"
- label:
"Step 7h: If (MCORE.SC.VP_KEY ) present, VP key must contain at least
Vendor ID is present."
PICS: MCORE.SC.VP_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "vendorId"
value: vendorId
- label:
"Step 7i: If (MCORE.SC.VP_KEY ) present, VP key must contain at least
Product ID is present"
PICS: MCORE.SC.VP_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "productId"
value: productId
- label:
"Step 7j: Optional TXT key for MRP Retry Interval Idle. if
(MCORE.SC.SII_OP_DISCOVERY_KEY) present, SII key must be an unsigned
integer with units of milliseconds and shall be encoded as a variable
length decimal number in ASCII, omitting leading zeros. Shall not
exceed 3600000"
PICS: MCORE.SC.SII_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryIntervalIdle"
constraints:
maxValue: 3600000
- label:
"Step 7k: Optional TXT key for MRP Retry Interval Active. if
(MCORE.SC.SAI_OP_DISCOVERY_KEY) present, SAI key must be an unsigned
integer with units of milliseconds and shall be encoded as a variable
length decimal number in ASCII, omitting leading zeros. Shall not
exceed 3600000."
PICS: MCORE.SC.SAI_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryIntervalActive"
constraints:
maxValue: 3600000
- label:
"Step 7l: Optional TXT key for MRP Retry Active Mode Threshold. If
(MCORE.SC.SAT_OP_DISCOVERY_KEY) present, SAT key must be an unsigned
integer with units of milliseconds and shall be encoded as a variable
length decimal number in ASCII, omitting leading zeros. Shall not
exceed 65535."
PICS: MCORE.SC.SAI_OP_DISCOVERY_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "mrpRetryActiveThreshold"
constraints:
maxValue: 65535
- label: "Step 7m: TXT key for commissioning mode. CM=2 must be present"
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "commissioningMode"
value: 2
- label:
"Step 7n: If (MCORE.SC.DT_KEY) present, DT key must contain the device
type identifier from Data Model Device Types and must be encoded as a
variable length decimal ASCII number without leading zeros"
PICS: MCORE.SC.DT_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "deviceType"
value: deviceType
- label:
"Step 7o: If (MCORE.SC.DN_KEY) present, DN key must be a UTF-8 encoded
string with a maximum length of 32B"
PICS: MCORE.SC.DN_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response: