| # 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.21. [TC-CADMIN-1.21] Open commissioning window - durations max and max+1 |
| [BCM] [DUT - Commissionee] |
| |
| PICS: |
| - CADMIN.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: "Precondition" |
| verification: | |
| Reset Devices to factory defaults |
| disabled: true |
| |
| - label: "TH_CR1 starts a commissioning process with DUT_CE using BCM" |
| PICS: CADMIN.S.C01.Rsp |
| verification: | |
| "1. Provision the device using 1st controller chip tool(use above instructions) , |
| " |
| disabled: true |
| |
| - label: |
| "TH_CR1 opens a commissioning window on DUT_CE with a value of 900 |
| seconds" |
| PICS: CADMIN.S.C01.Rsp |
| verification: | |
| On 1st controller chip tool, open commissioning window |
| |
| For BCM, |
| |
| |
| ./chip-tool administratorcommissioning open-basic-commissioning-window 900 2 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: "Wait for commissioning Window to 901 seconds" |
| verification: | |
| Wait for commissioning Window to Timeout |
| disabled: true |
| |
| - label: |
| "TH_CR1 reads the window status to verify the DUT_CE window is closed" |
| PICS: CADMIN.S.A0000 |
| verification: | |
| ./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: |
| "TH_CR1 opens a commissioning window on DUT_CE with a value of 901 |
| seconds" |
| PICS: CADMIN.S.C01.Rsp |
| verification: | |
| On 1st controller chip tool, open commissioning window |
| |
| For BCM, |
| ./chip-tool administratorcommissioning open-basic-commissioning-window 901 2 0 --timedInteractionTimeoutMs 1000 |
| |
| CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x85 |
| [1652860801.225084][9512:9517] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) |
| [1652860801.225173][9512:9517] CHIP:DMG: ICR moving to [AwaitingDe] |
| [1652860801.225294][9512:9517] CHIP:EM: Sending Standalone Ack for MessageCounter:4191961 on exchange 37827i |
| disabled: true |
| |
| - label: |
| "TH_CR1 reads the window status to verify the DUT_CE window is closed" |
| PICS: CADMIN.S.A0000 |
| verification: | |
| On 1st controller read window status |
| |
| ./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 |