| # 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: 19.9.4. [TC-AUDIOOUTPUT-7.4] Rename Output Verification (DUT as Client) |
| |
| PICS: |
| - AUDIOOUTPUT.C |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: "DUT sends RenameOutput command to TH" |
| PICS: AUDIOOUTPUT.C.C01.Tx |
| verification: | |
| If the DUT knows the Index value, then those can be sent as the argument. |
| Else User needs to execute the following command to know the index InputList |
| |
| ./chip-tool audiooutput read output-list 1 1 |
| |
| ./chip-tool audiooutput rename-output 1 'Kitchen Speakers' 1 1 |
| The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. |
| |
| [1653156045562] [89108:1734332] CHIP: [DMG] InvokeRequestMessage = |
| [1653156045562] [89108:1734332] CHIP: [DMG] { |
| [1653156045562] [89108:1734332] CHIP: [DMG] suppressResponse = false, |
| [1653156045562] [89108:1734332] CHIP: [DMG] timedRequest = false, |
| [1653156045562] [89108:1734332] CHIP: [DMG] InvokeRequests = |
| [1653156045562] [89108:1734332] CHIP: [DMG] [ |
| [1653156045562] [89108:1734332] CHIP: [DMG] CommandDataIB = |
| [1653156045562] [89108:1734332] CHIP: [DMG] { |
| [1653156045562] [89108:1734332] CHIP: [DMG] CommandPathIB = |
| [1653156045562] [89108:1734332] CHIP: [DMG] { |
| [1653156045562] [89108:1734332] CHIP: [DMG] EndpointId = 0x1, |
| [1653156045562] [89108:1734332] CHIP: [DMG] ClusterId = 0x50b, |
| [1653156045562] [89108:1734332] CHIP: [DMG] CommandId = 0x1, |
| [1653156045562] [89108:1734332] CHIP: [DMG] }, |
| [1653156045562] [89108:1734332] CHIP: [DMG] |
| [1653156045562] [89108:1734332] CHIP: [DMG] CommandData = |
| [1653156045562] [89108:1734332] CHIP: [DMG] { |
| [1653156045562] [89108:1734332] CHIP: [DMG] 0x0 = 1, |
| [1653156045562] [89108:1734332] CHIP: [DMG] 0x1 = "Kitchen Speakers", |
| [1653156045562] [89108:1734332] CHIP: [DMG] }, |
| [1653156045562] [89108:1734332] CHIP: [DMG] }, |
| [1653156045562] [89108:1734332] CHIP: [DMG] |
| [1653156045562] [89108:1734332] CHIP: [DMG] ], |
| [1653156045562] [89108:1734332] CHIP: [DMG] |
| [1653156045562] [89108:1734332] CHIP: [DMG] InteractionModelRevision = 1 |
| [1653156045562] [89108:1734332] CHIP: [DMG] }, |
| |
| |
| Enter the below command to read the current input. |
| ./chip-tool audiooutput read output-list 1 1 |
| disabled: true |