blob: c2526b965e5dcd5046d1da0ea2f8340b2032439e [file] [log] [blame]
# 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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
name:
4.1.14. [TC-CADMIN-1.14] Open commissioning window twice on DUT using BCM
then ECM [DUT - Commissioner]
PICS:
- CADMIN.C
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label: "Note"
verification: |
For DUT as comissioner test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command.
disabled: true
- label: "Precondition"
verification: |
Reset Devices to factory defaults
disabled: true
- label: "DUT_CR1 starts a commissioning process with TH_CE"
PICS: CADMIN.C
verification: |
"1. Provision the device using your DUT controller (use above instructions) ,
"
disabled: true
- label:
"DUT_CR1 sends command to TH_CE to open a commissioning window with a
commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM and
TH_CR3 Commissions with TH_CE"
PICS: CADMIN.C.C01.Tx
verification: |
On first controller, open commissioning window using BCM
./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000
CHIP:DMG: InvokeResponseMessage =
[1650278416.248379][11064:11069] CHIP:DMG: {
[1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false,
[1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs =
[1650278416.248570][11064:11069] CHIP:DMG: [
[1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB =
[1650278416.248718][11064:11069] CHIP:DMG: {
[1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB =
[1650278416.248860][11064:11069] CHIP:DMG: {
[1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB =
[1650278416.249011][11064:11069] CHIP:DMG: {
[1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0,
[1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c,
[1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1,
[1650278416.249347][11064:11069] CHIP:DMG: },
[1650278416.249430][11064:11069] CHIP:DMG:
[1650278416.249501][11064:11069] CHIP:DMG: StatusIB =
[1650278416.249581][11064:11069] CHIP:DMG: {
[1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS),
[1650278416.249738][11064:11069] CHIP:DMG: },
[1650278416.249823][11064:11069] CHIP:DMG:
[1650278416.249889][11064:11069] CHIP:DMG: },
[1650278416.249969][11064:11069] CHIP:DMG:
[1650278416.250035][11064:11069] CHIP:DMG: },
[1650278416.250113][11064:11069] CHIP:DMG:
[1650278416.250169][11064:11069] CHIP:DMG: ],
[1650278416.250241][11064:11069] CHIP:DMG:
[1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1
[1650278416.250355][11064:11069] CHIP:DMG: },
[1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0
[1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe]
On 3rd controller, using chip tool connect to the accessory
./chip-tool pairing onnetwork 1 20202021
Verify you got below message
Device commissioning completed with success
disabled: true
- label:
"DUT_CR1 sends command to TH_CE to open a commissioning window with a
commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM and
TH_CR2 Commissions with TH_CE"
PICS: CADMIN.C.C01.Tx
verification: |
On first controller, open commissioning window using BCM
./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000
CHIP:DMG: InvokeResponseMessage =
[1650278416.248379][11064:11069] CHIP:DMG: {
[1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false,
[1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs =
[1650278416.248570][11064:11069] CHIP:DMG: [
[1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB =
[1650278416.248718][11064:11069] CHIP:DMG: {
[1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB =
[1650278416.248860][11064:11069] CHIP:DMG: {
[1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB =
[1650278416.249011][11064:11069] CHIP:DMG: {
[1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0,
[1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c,
[1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1,
[1650278416.249347][11064:11069] CHIP:DMG: },
[1650278416.249430][11064:11069] CHIP:DMG:
[1650278416.249501][11064:11069] CHIP:DMG: StatusIB =
[1650278416.249581][11064:11069] CHIP:DMG: {
[1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS),
[1650278416.249738][11064:11069] CHIP:DMG: },
[1650278416.249823][11064:11069] CHIP:DMG:
[1650278416.249889][11064:11069] CHIP:DMG: },
[1650278416.249969][11064:11069] CHIP:DMG:
[1650278416.250035][11064:11069] CHIP:DMG: },
[1650278416.250113][11064:11069] CHIP:DMG:
[1650278416.250169][11064:11069] CHIP:DMG: ],
[1650278416.250241][11064:11069] CHIP:DMG:
[1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1
[1650278416.250355][11064:11069] CHIP:DMG: },
[1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0
[1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe]
On 2nd controller, using chip tool connect to the accessory
./chip-tool pairing onnetwork 1 20202021
Verify you got below message
Device commissioning completed with success
disabled: true
- label:
"DUT_CR1 sends command to TH_CE to open a commissioning window with a
commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM"
PICS: CADMIN.C.C01.Tx
verification: |
On first controller, open commissioning window using BCM
./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000
CHIP:DMG: InvokeResponseMessage =
[1650278416.248379][11064:11069] CHIP:DMG: {
[1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false,
[1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs =
[1650278416.248570][11064:11069] CHIP:DMG: [
[1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB =
[1650278416.248718][11064:11069] CHIP:DMG: {
[1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB =
[1650278416.248860][11064:11069] CHIP:DMG: {
[1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB =
[1650278416.249011][11064:11069] CHIP:DMG: {
[1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0,
[1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c,
[1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1,
[1650278416.249347][11064:11069] CHIP:DMG: },
[1650278416.249430][11064:11069] CHIP:DMG:
[1650278416.249501][11064:11069] CHIP:DMG: StatusIB =
[1650278416.249581][11064:11069] CHIP:DMG: {
[1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS),
[1650278416.249738][11064:11069] CHIP:DMG: },
[1650278416.249823][11064:11069] CHIP:DMG:
[1650278416.249889][11064:11069] CHIP:DMG: },
[1650278416.249969][11064:11069] CHIP:DMG:
[1650278416.250035][11064:11069] CHIP:DMG: },
[1650278416.250113][11064:11069] CHIP:DMG:
[1650278416.250169][11064:11069] CHIP:DMG: ],
[1650278416.250241][11064:11069] CHIP:DMG:
[1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1
[1650278416.250355][11064:11069] CHIP:DMG: },
[1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0
[1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe]
disabled: true
- label:
"Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set
in step 4, DUT_CR1 sends command to TH_CE to read WindowStatus
attribute"
PICS: CADMIN.C.A0000
verification: |
On first controller, read WindowStatus
./chip-tool administratorcommissioning read window-status 1 0
disabled: true
- label:
"Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set
in step 4, DUT_CR1 sends command to TH_CE to open a 2nd commissioning
window with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds
using ECM"
PICS: CADMIN.C.C00.Tx
verification: |
On 1st controller chip tool, open commissioning window using ECM
./chip-tool pairing open-commissioning-window 1 1 180 1000 3840
disabled: true
- label:
"Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that is
set in step 4"
verification: |
verification step to be updated.
disabled: true
- label:
"DUT_CR1 sends command to TH_CE to re-opens a commissioning window
with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using
ECM"
PICS: CADMIN.C.C00.Tx
verification: |
On 1st controller chip tool, open commissioning window using ECM
./chip-tool pairing open-commissioning-window 1 1 180 1000 3840
[1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established
[1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!!
[1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1
[1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm]
[1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma]
[1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0.
[1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec
[1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen]
[1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633]
[1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10]
[1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i
disabled: true
- label:
"Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set
in step 8, DUT_CR1 sends command to TH_CE to read WindowStatus
attribute"
PICS: CADMIN.C.A0000
verification: |
On first controller, read WindowStatus
./chip-tool administratorcommissioning read window-status 1 0
disabled: true
- label:
"Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set
in step 8, TH_CR3 sends command to TH_CE to open a 2nd commissioning
window with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds
using ECM"
PICS: CADMIN.C.C00.Tx
verification: |
On 3rd controller chip tool, open commissioning window using ECM
./chip-tool pairing open-commissioning-window 1 1 180 1000 3840
[1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established
[1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!!
[1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1
[1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm]
[1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma]
[1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0.
[1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec
[1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen]
[1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633]
[1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10]
[1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i
disabled: true
- label:
"Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that is
set in step 8"
verification: |
verification step to be updated.
disabled: true
- label:
"DUT_CR1 sends command to TH_CE to open a commissioning window with a
commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM"
PICS: CADMIN.C.C00.Tx
verification: |
On 1st controller chip tool, open commissioning window using ECM
./chip-tool pairing open-commissioning-window 1 1 180 1000 3840
[1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established
[1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!!
[1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1
[1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm]
[1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma]
[1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0.
[1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec
[1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen]
[1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633]
[1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10]
[1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i
disabled: true
- label:
"Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set
in step 12, TH_CR2 sends command to TH_CE to open a second
commissioning window with a commissioning timeout of
PIXIT.CADMIN.CwDuration seconds using ECM"
PICS: CADMIN.C.C00.Tx
verification: |
On 2nd controller using chip tool connect to the accessory using ECM
./chip-tool pairing open-commissioning-window 1 1 180 1000 3840
disabled: true
- label:
"Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that is
set in step 12"
verification: |
verification step to be updated.
disabled: true
- label: "DUT_CR1 sends command to TH_CE to read WindowStatus attribute"
PICS: CADMIN.C.A0000
verification: |
On first controller, read WindowStatus
./chip-tool administratorcommissioning read window-status 1 0
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592
[1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0
[1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i"
disabled: true
- label: "DUT_CR1 sends command to TH_CE to read AdminFabricIndex attribute"
PICS: CADMIN.C.A0001
verification: |
On first controller, read AdminFabricIndex
./chip-tool administratorcommissioning read admin-fabric-index 1 0
[1659097193.389295][11728:11733] CHIP:DMG: }
[1659097193.389588][11728:11733] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0001 DataVersion: 1299585105
[1659097193.389731][11728:11733] CHIP:TOO: AdminFabricIndex: 0
[1659097193.389913][11728:11733] CHIP:EM: Sending Standalone Ack for MessageCounter:195671426 on exchange 34244i
disabled: true
- label: "DUT_CR1 sends command to TH_CE to read AdminVendorId attribute"
PICS: CADMIN.C.A0002
verification: |
On first controller, read AdminVendorId
./chip-tool administratorcommissioning read admin-vendor-id 1 0
[1658838521.588942][9317:9322] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0002 DataVersion: 2423106591
[1658838521.589005][9317:9322] CHIP:TOO: AdminVendorId: 0
[1658838521.589079][9317:9322] CHIP:EM: Sending Standalone Ack for MessageCounter:217165763 on exchange 55683i
disabled: true