Skip to content

Commit 816d536

Browse files
committed
Modified ICMD scripts
TC-ICDM-4.1 TC-ICDM-5.1 TC-ICDM-5.2 TC-ICDM-6.1
1 parent 0e3434a commit 816d536

File tree

4 files changed

+593
-114
lines changed

4 files changed

+593
-114
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
15-
16-
name: "[TC-ICDM-4.1] Stay Active Request with DUT as Server"
1714

15+
name: 217.2.6 [TC-ICDM-4.1] Stay Active Request with DUT as Server
1816
PICS:
1917
- ICDM.S
2018
- ICDM.S.F02

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

+117-111
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
1515

16-
name: 217.2.7. [TC-ICDM-5.1] Functionality with DUT as Client
16+
name: 217.2.7 [TC-ICDM-5.1] Operating Mode with DUT as Server
1717

1818
PICS:
1919
- ICDM.C
@@ -24,122 +24,128 @@ config:
2424
endpoint: 0
2525

2626
tests:
27-
- label:
28-
"Step 1: DUT issues an C_REGISTER_CLIENT command to the Test Harness."
29-
PICS: ICDM.S.C00.Tx
27+
- label: "Step 1a: TH reads from the DUT the RegisteredClients attribute."
3028
verification: |
31-
From DUT:
32-
./chip-tool icdmanagement register-client 1 1 hex:1234567890abcdef1234567890abcdef 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890
33-
34-
From TH: lit-icd-app
35-
[1704407463921] [48858:527745] [DMG] InvokeRequestMessage =
36-
[1704407463921] [48858:527745] [DMG] {
37-
[1704407463921] [48858:527745] [DMG] suppressResponse = false,
38-
[1704407463921] [48858:527745] [DMG] timedRequest = false,
39-
[1704407463921] [48858:527745] [DMG] InvokeRequests =
40-
[1704407463921] [48858:527745] [DMG] [
41-
[1704407463921] [48858:527745] [DMG] CommandDataIB =
42-
[1704407463921] [48858:527745] [DMG] {
43-
[1704407463921] [48858:527745] [DMG] CommandPathIB =
44-
[1704407463921] [48858:527745] [DMG] {
45-
[1704407463921] [48858:527745] [DMG] EndpointId = 0x0,
46-
[1704407463921] [48858:527745] [DMG] ClusterId = 0x46,
47-
[1704407463921] [48858:527745] [DMG] CommandId = 0x0,
48-
[1704407463921] [48858:527745] [DMG] },
49-
[1704407463921] [48858:527745] [DMG]
50-
[1704407463921] [48858:527745] [DMG] CommandFields =
51-
[1704407463921] [48858:527745] [DMG] {
52-
[1704407463921] [48858:527745] [DMG] 0x0 = 1,
53-
[1704407463921] [48858:527745] [DMG] 0x1 = 1,
54-
[1704407463921] [48858:527745] [DMG] 0x2 = [
55-
[1704407463921] [48858:527745] [DMG] 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef,
56-
[1704407463921] [48858:527745] [DMG] ] (16 bytes)
57-
[1704407463921] [48858:527745] [DMG] 0x3 = [
58-
[1704407463921] [48858:527745] [DMG] 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90,
59-
[1704407463921] [48858:527745] [DMG] ] (16 bytes)
60-
[1704407463921] [48858:527745] [DMG] },
61-
[1704407463921] [48858:527745] [DMG] },
62-
[1704407463921] [48858:527745] [DMG]
63-
[1704407463921] [48858:527745] [DMG] ],
64-
[1704407463921] [48858:527745] [DMG]
65-
[1704407463921] [48858:527745] [DMG] InteractionModelRevision = 11
66-
[1704407463921] [48858:527745] [DMG] },
29+
TH reads the RegisteredClients attribute from the DUT. If a RegisteredClients entry is present, TH sends an unregisterclient command and ensures that the RegisteredClients attribute is empty.
30+
31+
./chip-tool icdmanagement read registered-clients 1 0
32+
33+
[1718186218.461754][2099:2101] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 547950371
34+
[1718186218.461826][2099:2101] CHIP:TOO: RegisteredClients: 1 entries
35+
[1718186218.461901][2099:2101] CHIP:TOO: [1]: {
36+
[1718186218.461924][2099:2101] CHIP:TOO: CheckInNodeID: 3
37+
[1718186218.461946][2099:2101] CHIP:TOO: MonitoredSubject: 6
38+
[1718186218.461969][2099:2101] CHIP:TOO: FabricIndex: 1
39+
[1718186218.461991][2099:2101] CHIP:TOO: }
40+
[1718186218.462248][2099:2101] CHIP:EM: <<< [E:10805i S:42978 M:235351977 (Ack:106930163)] (S) Msg TX to 1:0000000000000001 [2695] [UDP:[fe80::e65f:1ff:fe49:ae1a%eth0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
41+
42+
43+
If any entries are present, please send the command below to remove them:
44+
./chip-tool icdmanagement unregister-client 3 1 0
45+
46+
18186251.447533][2103:2105] CHIP:DMG: },
47+
[1718186251.447593][2103:2105] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0
48+
[1718186251.447638][2103:2105] CHIP:DMG: ICR moving to [AwaitingDe]
49+
50+
51+
./chip-tool icdmanagement read registered-clients 1 0
52+
[1718186254.440634][2107:2109] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0003 DataVersion: 547950372
53+
[1718186254.440702][2107:2109] CHIP:TOO: RegisteredClients: 0 entries
54+
[1718186254.440975][2107:2109] CHIP:EM: <<< [E:34037i S:6387 M:176502552 (Ack:72711783)] (S) Msg TX to 1:0000000000000001 [2695] [UDP:[fe80::e65f:1ff:fe49:ae1a%eth0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
6755
disabled: true
6856

69-
- label:
70-
"Step 2: DUT issues an C_UNREGISTER_CLIENT command to the Test
71-
Harness."
72-
PICS: ICDM.S.C02.Tx
57+
- label: "Step 1b: TH reads from the DUT the OperatingMode attribute."
58+
verification: |
59+
./chip-tool icdmanagement read operating-mode 1 0
60+
On TH, Verify that the DUT response contains value of OperatingMode=0 (SIT Operating Mode).
61+
[1718186318.144714][2111:2113] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0008 DataVersion: 547950372
62+
[1718186318.144768][2111:2113] CHIP:TOO: OperatingMode: 0
63+
[1718186318.145033][2111:2113] CHIP:EM: <<< [E:841i S:49562 M:173701653 (Ack:236448256)] (S) Msg TX to 1:0000000000000001 [2695] [UDP:[fe80::e65f:1ff:fe49:ae1a%eth0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
64+
[1718186318.145179][2111:2113] CHIP:EM: Flushed pending ack for MessageCounter:236448256 on exchange 841i
65+
disabled: true
66+
67+
- label: "Step 1c: Verify that the ICD DNS-SD TXT key is present."
7368
verification: |
74-
From DUT:
75-
./chip-tool icdmanagement unregister-client 1 1 0 --VerificationKey hex:abcdef1234567890abcdef1234567890
76-
77-
From TH: lit-icd-app
78-
[1704407560687] [49015:529245] [DMG] InvokeRequestMessage =
79-
[1704407560687] [49015:529245] [DMG] {
80-
[1704407560687] [49015:529245] [DMG] suppressResponse = false,
81-
[1704407560687] [49015:529245] [DMG] timedRequest = false,
82-
[1704407560687] [49015:529245] [DMG] InvokeRequests =
83-
[1704407560687] [49015:529245] [DMG] [
84-
[1704407560687] [49015:529245] [DMG] CommandDataIB =
85-
[1704407560687] [49015:529245] [DMG] {
86-
[1704407560687] [49015:529245] [DMG] CommandPathIB =
87-
[1704407560687] [49015:529245] [DMG] {
88-
[1704407560687] [49015:529245] [DMG] EndpointId = 0x0,
89-
[1704407560687] [49015:529245] [DMG] ClusterId = 0x46,
90-
[1704407560687] [49015:529245] [DMG] CommandId = 0x2,
91-
[1704407560687] [49015:529245] [DMG] },
92-
[1704407560687] [49015:529245] [DMG]
93-
[1704407560687] [49015:529245] [DMG] CommandFields =
94-
[1704407560687] [49015:529245] [DMG] {
95-
[1704407560687] [49015:529245] [DMG] 0x0 = 1,
96-
[1704407560687] [49015:529245] [DMG] 0x1 = [
97-
[1704407560687] [49015:529245] [DMG] 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x90,
98-
[1704407560687] [49015:529245] [DMG] ] (16 bytes)
99-
[1704407560687] [49015:529245] [DMG] },
100-
[1704407560687] [49015:529245] [DMG] },
101-
[1704407560687] [49015:529245] [DMG]
102-
[1704407560687] [49015:529245] [DMG] ],
103-
[1704407560687] [49015:529245] [DMG]
104-
[1704407560687] [49015:529245] [DMG] InteractionModelRevision = 11
105-
[1704407560687] [49015:529245] [DMG] },
69+
avahi-browse -r _matter._tcp
70+
on TH, Verify that ICD DNS-SD TXT key shows ICD=0.
71+
+ eth0 IPv6 DB629ADF675D2695-0000000000000001 _matter._tcp local
72+
= eth0 IPv6 DB629ADF675D2695-0000000000000001 _matter._tcp local
73+
hostname = [E45F0149AE1B0000.local]
74+
address = [fe80::e65f:1ff:fe49:ae1a]
75+
port = [5540]
76+
txt = ["ICD=0" "SAT=5000" "SAI=500" "SII=5500"]
10677
disabled: true
10778

10879
- label:
109-
"Step 3: DUT issues an C_STAY_ACTIVE_REQUEST command to the Test
110-
Harness."
111-
PICS: ICDM.S.C03.Tx
80+
"Step 2: TH sends RegisterClient command. - CheckInNodeID:
81+
CheckInNodeID1 - MonitoredSubject: MonitoredSubID1 - Key: Key1"
82+
verification: |
83+
./chip-tool icdmanagement register-client 1 2 hex:abcdef1234567890abcdef1234567890 1 1 0
84+
85+
On TH, Verify that DUT responds w/ status SUCCESS(0x00) response and ICDCounter.
86+
[1720525842.157] [3915:3917] [DMG] },
87+
[1720525842.157] [3915:3917] [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0001
88+
[1720525842.157] [3915:3917] [TOO] Endpoint: 0 Cluster: 0x0000_0046 Command 0x0000_0001
89+
[1720525842.157] [3915:3917] [TOO] RegisterClientResponse: {
90+
[1720525842.157] [3915:3917] [TOO] ICDCounter: 107030765
91+
[1720525842.157] [3915:3917] [TOO] }
92+
[1720525842.162] [3915:3917] [DMG] ICR moving to [AwaitingDe]
93+
[1720525842.162] [3915:3917] [EM] <<< [E:37646i S:31390 M:250907743 (Ack:224253965)] (S) Msg TX to 1:0000000000000001 [D503] [UDP:[fe80::e65f:1ff:fe49:ae1a%eth0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
94+
disabled: true
95+
96+
- label: "Step 3a: TH reads from the DUT the OperatingMode attribute."
97+
verification: |
98+
./chip-tool icdmanagement read operating-mode 1 0
99+
On TH, Verify that the DUT response contains value of OperatingMode=1 LIT Operating Mode).
100+
101+
[1718186495.396762][2125:2127] CHIP:DMG: }
102+
[1718186495.396950][2125:2127] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0008 DataVersion: 547950373
103+
[1718186495.397008][2125:2127] CHIP:TOO: OperatingMode: 1
104+
[1718186495.397302][2125:2127] CHIP:EM: <<< [E:57791i S:63297 M:51633949 (Ack:59403812)] (S) Msg TX to 1:0000000000000001 [2695] [UDP:[fe80::e65f:1ff:fe49:ae1a%eth0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
105+
disabled: true
106+
107+
- label: "Step 3b: Verify that mDNS is advertising ICD key."
108+
verification: |
109+
avahi-browse -r _matter._tcp
110+
On TH, Verify that ICD DNS-SD TXT key shows ICD=1.
111+
+ eth0 IPv6 DB629ADF675D2695-0000000000000001 _matter._tcp local
112+
= eth0 IPv6 DB629ADF675D2695-0000000000000001 _matter._tcp local
113+
hostname = [E45F0149AE1B0000.local]
114+
address = [fe80::e65f:1ff:fe49:ae1a]
115+
port = [5540]
116+
txt = ["ICD=1" "SAT=5000" "SAI=500"]
117+
disabled: true
118+
119+
- label: "Step 4: TH sends UnregisterClient command with CheckInNodeID1."
120+
verification: |
121+
./chip-tool icdmanagement unregister-client 1 1 0
122+
On TH, Verify DUT responds w/ status SUCCESS(0x00).
123+
[1718186510.645227][2129:2131] CHIP:DMG: InteractionModelRevision = 11
124+
[1718186510.645245][2129:2131] CHIP:DMG: },
125+
[1718186510.645305][2129:2131] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0002 Status=0x0
126+
[1718186510.645350][2129:2131] CHIP:DMG: ICR moving to [AwaitingDe]
127+
[1718186510.645544][2129:2131] CHIP:EM: <<< [E:53513i S:56794 M:173497704 (Ack:185568327)] (S) Msg TX to 1:0000000000000001 [2695] [UDP:[fe80::e65f:1ff:fe49:ae1a%eth0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
128+
disabled: true
129+
130+
- label: "Step 5a: TH reads from the DUT the OperatingMode attribute."
131+
verification: |
132+
./chip-tool icdmanagement read operating-mode 1 0
133+
On TH, Verify that the DUT response contains value of OperatingMode=0 (SIT Operating Mode).
134+
135+
[1718186522.088293][2132:2134] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0046 Attribute 0x0000_0008 DataVersion: 547950374
136+
[1718186522.088342][2132:2134] CHIP:TOO: OperatingMode: 0
137+
[1718186522.088586][2132:2134] CHIP:EM: <<< [E:823i S:35955 M:257477970 (Ack:51810478)] (S) Msg TX to 1:0000000000000001 [2695] [UDP:[fe80::e65f:1ff:fe49:ae1a%eth0]:5540] --- Type 0000:10 (SecureChannel:StandaloneAck)
138+
[1718186522.088724][2132:2134] CHIP:EM: Flushed pending ack for MessageCounter:51810478 on exchange 823i
139+
disabled: true
140+
141+
- label: "Step 5b: Verify that mDNS is advertising ICD key."
112142
verification: |
113-
From DUT:
114-
./chip-tool icdmanagement stay-active-request 1 0
115-
116-
From TH: lit-icd-app
117-
[1704406259650] [46741:509053] [DMG] InvokeRequestMessage =
118-
[1704406259650] [46741:509053] [DMG] {
119-
[1704406259650] [46741:509053] [DMG] suppressResponse = false,
120-
[1704406259650] [46741:509053] [DMG] timedRequest = false,
121-
[1704406259650] [46741:509053] [DMG] InvokeRequests =
122-
[1704406259650] [46741:509053] [DMG] [
123-
[1704406259650] [46741:509053] [DMG] CommandDataIB =
124-
[1704406259650] [46741:509053] [DMG] {
125-
[1704406259650] [46741:509053] [DMG] CommandPathIB =
126-
[1704406259650] [46741:509053] [DMG] {
127-
[1704406259650] [46741:509053] [DMG] EndpointId = 0x0,
128-
[1704406259650] [46741:509053] [DMG] ClusterId = 0x46,
129-
[1704406259650] [46741:509053] [DMG] CommandId = 0x3,
130-
[1704406259650] [46741:509053] [DMG] },
131-
[1704406259650] [46741:509053] [DMG]
132-
[1704406259650] [46741:509053] [DMG] CommandFields =
133-
[1704406259650] [46741:509053] [DMG] {
134-
[1704406259650] [46741:509053] [DMG] },
135-
[1704406259650] [46741:509053] [DMG] },
136-
[1704406259650] [46741:509053] [DMG]
137-
[1704406259650] [46741:509053] [DMG] ],
138-
[1704406259650] [46741:509053] [DMG]
139-
[1704406259650] [46741:509053] [DMG] InteractionModelRevision = 11
140-
[1704406259650] [46741:509053] [DMG] },
141-
[1704406259650] [46741:509053] [DMG] AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0046 e=0 p=m
142-
[1704406259650] [46741:509053] [DMG] AccessControl: allowed
143-
[1704406259650] [46741:509053] [DMG] Received command for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0003
144-
[1704406259650] [46741:509053] [DMG] Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0003 status 0x81 (UNSUPPORTED_COMMAND) (no additional context)
143+
avahi-browse -r _matter._tcp
144+
on TH, Verify that ICD DNS-SD TXT key shows ICD=0.
145+
+ eth0 IPv6 DB629ADF675D2695-0000000000000001 _matter._tcp local
146+
= eth0 IPv6 DB629ADF675D2695-0000000000000001 _matter._tcp local
147+
hostname = [E45F0149AE1B0000.local]
148+
address = [fe80::e65f:1ff:fe49:ae1a]
149+
port = [5540]
150+
txt = ["ICD=0" "SAT=5000" "SAI=500" "SII=5500"]
145151
disabled: true

0 commit comments

Comments
 (0)