| # 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: 80.2.2. [TC-MOD-2.2] ChangeToMode Verification (DUT as Client) |
| |
| PICS: |
| - MOD.C.C00.Tx |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: "Note" |
| verification: | |
| For DUT as client 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: "DUT reads the SupportedModes attribute from the TH" |
| PICS: MOD.C.A0002 |
| verification: | |
| ./chip-tool modeselect read supported-modes 1 1 |
| |
| verify the "supported-modes response" on the TH (all-cluster-app) log: |
| |
| [1659591404.431063][3214:3214] CHIP:IM: Received Read request |
| [1659591404.431235][3214:3214] CHIP:DMG: ReadRequestMessage = |
| [1659591404.431304][3214:3214] CHIP:DMG: { |
| [1659591404.431360][3214:3214] CHIP:DMG: AttributePathIBs = |
| [1659591404.431482][3214:3214] CHIP:DMG: [ |
| [1659591404.431549][3214:3214] CHIP:DMG: AttributePathIB = |
| [1659591404.431687][3214:3214] CHIP:DMG: { |
| [1659591404.431820][3214:3214] CHIP:DMG: Endpoint = 0x1, |
| [1659591404.432034][3214:3214] CHIP:DMG: Cluster = 0x50, |
| [1659591404.432118][3214:3214] CHIP:DMG: Attribute = 0x0000_0002, |
| [1659591404.432192][3214:3214] CHIP:DMG: } |
| [1659591404.432260][3214:3214] CHIP:DMG: |
| [1659591404.432322][3214:3214] CHIP:DMG: ], |
| [1659591404.432384][3214:3214] CHIP:DMG: |
| [1659591404.432441][3214:3214] CHIP:DMG: isFabricFiltered = true, |
| [1659591404.432497][3214:3214] CHIP:DMG: InteractionModelRevision = 1 |
| [1659591404.432549][3214:3214] CHIP:DMG: }, |
| [1659591404.432701][3214:3214] CHIP:DMG: IM RH moving to [GeneratingReports] |
| [1659591404.432906][3214:3214] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 |
| [1659591404.432967][3214:3214] CHIP:DMG: <RE:Run> Cluster 50, Attribute 2 is dirty |
| [1659591404.433013][3214:3214] CHIP:DMG: Reading attribute: Cluster=0x0000_0050 Endpoint=1 AttributeId=0x0000_0002 (expanded=0) |
| [1659591404.433321][3214:3214] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0050 e=1 p=v |
| [1659591404.433466][3214:3214] CHIP:DMG: AccessControl: allowed |
| disabled: true |
| |
| - label: |
| "DUT sends a ChangeToMode command to the TH with a integer from the |
| list in step 1." |
| PICS: MOD.C.C00.Tx |
| verification: | |
| ./chip-tool modeselect change-to-mode 4 1 1 |
| |
| verify the "change-to-modes response" on the TH (all-cluster-app) log: |
| |
| [1659591478.638391][3214:3214] CHIP:DMG: InvokeRequestMessage = |
| [1659591478.638460][3214:3214] CHIP:DMG: { |
| [1659591478.638519][3214:3214] CHIP:DMG: suppressResponse = false, |
| [1659591478.638588][3214:3214] CHIP:DMG: timedRequest = false, |
| [1659591478.638652][3214:3214] CHIP:DMG: InvokeRequests = |
| [1659591478.638730][3214:3214] CHIP:DMG: [ |
| [1659591478.638792][3214:3214] CHIP:DMG: CommandDataIB = |
| [1659591478.638863][3214:3214] CHIP:DMG: { |
| [1659591478.638938][3214:3214] CHIP:DMG: CommandPathIB = |
| [1659591478.639019][3214:3214] CHIP:DMG: { |
| [1659591478.639101][3214:3214] CHIP:DMG: EndpointId = 0x1, |
| [1659591478.639198][3214:3214] CHIP:DMG: ClusterId = 0x50, |
| [1659591478.639285][3214:3214] CHIP:DMG: CommandId = 0x0, |
| [1659591478.639366][3214:3214] CHIP:DMG: }, |
| [1659591478.639495][3214:3214] CHIP:DMG: |
| [1659591478.639572][3214:3214] CHIP:DMG: CommandFields = |
| [1659591478.639654][3214:3214] CHIP:DMG: { |
| [1659591478.639739][3214:3214] CHIP:DMG: 0x0 = 4, |
| [1659591478.639833][3214:3214] CHIP:DMG: }, |
| [1659591478.639917][3214:3214] CHIP:DMG: }, |
| [1659591478.639998][3214:3214] CHIP:DMG: |
| [1659591478.640060][3214:3214] CHIP:DMG: ], |
| [1659591478.640135][3214:3214] CHIP:DMG: |
| [1659591478.640197][3214:3214] CHIP:DMG: InteractionModelRevision = 1 |
| [1659591478.640257][3214:3214] CHIP:DMG: }, |
| [1659591478.640403][3214:3214] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0050 e=1 p=o |
| [1659591478.640486][3214:3214] CHIP:DMG: AccessControl: allowed |
| [1659591478.640556][3214:3214] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 |
| [1659591478.640631][3214:3214] CHIP:ZCL: ModeSelect: Entering emberAfModeSelectClusterChangeToModeCallback |
| [1659591478.641038][3214:3214] CHIP:DL: writing settings to file (/tmp/chip_kvs-FK3J0v) |
| [1659591478.642863][3214:3214] CHIP:DL: renamed tmp file to file (/tmp/chip_kvs) |
| [1659591478.643014][3214:3214] CHIP:DMG: Endpoint 1, Cluster 0x0000_0050 update version to dad78d3a |
| [1659591478.643085][3214:3214] CHIP:ZCL: ModeSelect: ChangeToMode successful |
| disabled: true |