blob: 6863dae8cd7e0b57e52ac3034243da100b856663 [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: 3.2.17. [TC-CC-6.4] Color Temperature functionality with client as DUT
PICS:
- CC.C
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label:
"* TH provides a server implementation of Color Control with
F04(CT)=true and reasonable values of ColorTempPhysicalMinMireds,
ColorTempPhysicalMaxMireds * DUT might read attributes like
ColorTempPhysicalMinMireds, ColorTempPhysicalMaxMireds from TH (now or
in later steps) to use those."
verification: |
./chip-tool colorcontrol read color-temp-physical-min-mireds 1 1
Verify in DUT as client side log:
[1658215472.478274][3413:3413] CHIP:IM: Received Read request
[1658215472.478456][3413:3413] CHIP:DMG: ReadRequestMessage =
[1658215472.478527][3413:3413] CHIP:DMG: {
[1658215472.478579][3413:3413] CHIP:DMG: AttributePathIBs =
[1658215472.478641][3413:3413] CHIP:DMG: [
[1658215472.478698][3413:3413] CHIP:DMG: AttributePathIB =
[1658215472.478763][3413:3413] CHIP:DMG: {
[1658215472.478843][3413:3413] CHIP:DMG: Endpoint = 0x1,
[1658215472.478921][3413:3413] CHIP:DMG: Cluster = 0x300,
[1658215472.479000][3413:3413] CHIP:DMG: Attribute = 0x0000_400B,
[1658215472.479071][3413:3413] CHIP:DMG: }
[1658215472.479140][3413:3413] CHIP:DMG:
[1658215472.479202][3413:3413] CHIP:DMG: ],
[1658215472.479271][3413:3413] CHIP:DMG:
[1658215472.479335][3413:3413] CHIP:DMG: isFabricFiltered = true,
[1658215472.479397][3413:3413] CHIP:DMG: InteractionModelRevision = 1
[1658215472.479453][3413:3413] CHIP:DMG: },
[1658215472.479633][3413:3413] CHIP:DMG: IM RH moving to [GeneratingReports]
[1658215472.479850][3413:3413] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0
[1658215472.479924][3413:3413] CHIP:DMG: <RE:Run> Cluster 300, Attribute 400b is dirty
[1658215472.479976][3413:3413] CHIP:DMG: Reading attribute: Cluster=0x0000_0300 Endpoint=1 AttributeId=0x0000_400B (expanded=0)
[1658215472.480044][3413:3413] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0300 e=1 p=v
[1658215472.480118][3413:3413] CHIP:DMG: AccessControl: allowed
./chip-tool colorcontrol read color-temp-physical-max-mireds 1 1
Verify in DUT as client side log:
[1658215497.166720][3413:3413] CHIP:IM: Received Read request
[1658215497.166886][3413:3413] CHIP:DMG: ReadRequestMessage =
[1658215497.166949][3413:3413] CHIP:DMG: {
[1658215497.167001][3413:3413] CHIP:DMG: AttributePathIBs =
[1658215497.167062][3413:3413] CHIP:DMG: [
[1658215497.167120][3413:3413] CHIP:DMG: AttributePathIB =
[1658215497.167205][3413:3413] CHIP:DMG: {
[1658215497.167273][3413:3413] CHIP:DMG: Endpoint = 0x1,
[1658215497.167349][3413:3413] CHIP:DMG: Cluster = 0x300,
[1658215497.167418][3413:3413] CHIP:DMG: Attribute = 0x0000_400C,
[1658215497.167488][3413:3413] CHIP:DMG: }
[1658215497.167559][3413:3413] CHIP:DMG:
[1658215497.167621][3413:3413] CHIP:DMG: ],
[1658215497.167687][3413:3413] CHIP:DMG:
[1658215497.167750][3413:3413] CHIP:DMG: isFabricFiltered = true,
[1658215497.167810][3413:3413] CHIP:DMG: InteractionModelRevision = 1
[1658215497.167866][3413:3413] CHIP:DMG: },
[1658215497.168046][3413:3413] CHIP:DMG: IM RH moving to [GeneratingReports]
[1658215497.168296][3413:3413] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0
[1658215497.168369][3413:3413] CHIP:DMG: <RE:Run> Cluster 300, Attribute 400c is dirty
[1658215497.168422][3413:3413] CHIP:DMG: Reading attribute: Cluster=0x0000_0300 Endpoint=1 AttributeId=0x0000_400C (expanded=0)
[1658215497.168491][3413:3413] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0300 e=1 p=v
[1658215497.168570][3413:3413] CHIP:DMG: AccessControl: allowed
disabled: true
- label: "DUT sends MoveToColorTemperature command to TH"
PICS: CC.C.C0A.Rsp
verification: |
./chip-tool colorcontrol move-to-color-temperature 150 300 0 0 1 1
Verify in DUT as client side log:
[1657911906.102478][2977:2977] CHIP:DMG: InvokeRequestMessage =
[1657911906.102603][2977:2977] CHIP:DMG: {
[1657911906.102633][2977:2977] CHIP:DMG: suppressResponse = false,
[1657911906.102674][2977:2977] CHIP:DMG: timedRequest = false,
[1657911906.102703][2977:2977] CHIP:DMG: InvokeRequests =
[1657911906.102744][2977:2977] CHIP:DMG: [
[1657911906.102814][2977:2977] CHIP:DMG: CommandDataIB =
[1657911906.102853][2977:2977] CHIP:DMG: {
[1657911906.102885][2977:2977] CHIP:DMG: CommandPathIB =
[1657911906.102923][2977:2977] CHIP:DMG: {
[1657911906.102964][2977:2977] CHIP:DMG: EndpointId = 0x1,
[1657911906.103007][2977:2977] CHIP:DMG: ClusterId = 0x300,
[1657911906.103049][2977:2977] CHIP:DMG: CommandId = 0xa,
[1657911906.103088][2977:2977] CHIP:DMG: },
[1657911906.103129][2977:2977] CHIP:DMG:
[1657911906.103166][2977:2977] CHIP:DMG: CommandFields =
[1657911906.103205][2977:2977] CHIP:DMG: {
[1657911906.103243][2977:2977] CHIP:DMG: 0x0 = 150,
[1657911906.103285][2977:2977] CHIP:DMG: 0x1 = 300,
[1657911906.103327][2977:2977] CHIP:DMG: 0x2 = 0,
[1657911906.103369][2977:2977] CHIP:DMG: 0x3 = 0,
[1657911906.103406][2977:2977] CHIP:DMG: },
[1657911906.103440][2977:2977] CHIP:DMG: },
[1657911906.103479][2977:2977] CHIP:DMG:
[1657911906.103506][2977:2977] CHIP:DMG: ],
[1657911906.103543][2977:2977] CHIP:DMG:
[1657911906.103570][2977:2977] CHIP:DMG: InteractionModelRevision = 1
[1657911906.103600][2977:2977] CHIP:DMG: },
[1657911906.103683][2977:2977] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0300 e=1 p=o
[1657911906.103726][2977:2977] CHIP:DMG: AccessControl: allowed
[1657911906.103757][2977:2977] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0300 Command=0x0000_000A
disabled: true
- label: "DUT sends MoveColorTemperature command to TH"
PICS: CC.C.C4B.Rsp
verification: |
./chip-tool colorcontrol move-color-temperature 1 10 5 250 0 0 1 1
Verify in DUT as client side log:
[1657911964.250866][2977:2977] CHIP:DMG: InvokeRequestMessage =
[1657911964.250894][2977:2977] CHIP:DMG: {
[1657911964.250917][2977:2977] CHIP:DMG: suppressResponse = false,
[1657911964.250952][2977:2977] CHIP:DMG: timedRequest = false,
[1657911964.250991][2977:2977] CHIP:DMG: InvokeRequests =
[1657911964.251026][2977:2977] CHIP:DMG: [
[1657911964.251050][2977:2977] CHIP:DMG: CommandDataIB =
[1657911964.251090][2977:2977] CHIP:DMG: {
[1657911964.251120][2977:2977] CHIP:DMG: CommandPathIB =
[1657911964.251156][2977:2977] CHIP:DMG: {
[1657911964.251192][2977:2977] CHIP:DMG: EndpointId = 0x1,
[1657911964.251230][2977:2977] CHIP:DMG: ClusterId = 0x300,
[1657911964.251260][2977:2977] CHIP:DMG: CommandId = 0x4b,
[1657911964.251283][2977:2977] CHIP:DMG: },
[1657911964.251328][2977:2977] CHIP:DMG:
[1657911964.251359][2977:2977] CHIP:DMG: CommandFields =
[1657911964.251394][2977:2977] CHIP:DMG: {
[1657911964.251430][2977:2977] CHIP:DMG: 0x0 = 1,
[1657911964.251477][2977:2977] CHIP:DMG: 0x1 = 10,
[1657911964.251516][2977:2977] CHIP:DMG: 0x2 = 5,
[1657911964.251553][2977:2977] CHIP:DMG: 0x3 = 250,
[1657911964.251600][2977:2977] CHIP:DMG: 0x4 = 0,
[1657911964.251639][2977:2977] CHIP:DMG: 0x5 = 0,
[1657911964.251675][2977:2977] CHIP:DMG: },
[1657911964.251713][2977:2977] CHIP:DMG: },
[1657911964.251748][2977:2977] CHIP:DMG:
[1657911964.251772][2977:2977] CHIP:DMG: ],
[1657911964.251812][2977:2977] CHIP:DMG:
[1657911964.251838][2977:2977] CHIP:DMG: InteractionModelRevision = 1
[1657911964.251861][2977:2977] CHIP:DMG: },
[1657911964.251947][2977:2977] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0300 e=1 p=o
[1657911964.252028][2977:2977] CHIP:DMG: AccessControl: allowed
[1657911964.252083][2977:2977] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0300 Command=0x0000_004B
disabled: true
- label: "DUT sends StepColorTemperature command to TH"
PICS: CC.C.C4C.Rsp
verification: |
./chip-tool colorcontrol step-color-temperature 1 10 200 5 250 0 0 1 1
Verify in DUT as client side log:
[1657911996.200187][2977:2977] CHIP:DMG: InvokeRequestMessage =
[1657911996.200216][2977:2977] CHIP:DMG: {
[1657911996.200238][2977:2977] CHIP:DMG: suppressResponse = false,
[1657911996.200265][2977:2977] CHIP:DMG: timedRequest = false,
[1657911996.200304][2977:2977] CHIP:DMG: InvokeRequests =
[1657911996.200337][2977:2977] CHIP:DMG: [
[1657911996.200361][2977:2977] CHIP:DMG: CommandDataIB =
[1657911996.200389][2977:2977] CHIP:DMG: {
[1657911996.200424][2977:2977] CHIP:DMG: CommandPathIB =
[1657911996.200465][2977:2977] CHIP:DMG: {
[1657911996.200507][2977:2977] CHIP:DMG: EndpointId = 0x1,
[1657911996.200543][2977:2977] CHIP:DMG: ClusterId = 0x300,
[1657911996.200592][2977:2977] CHIP:DMG: CommandId = 0x4c,
[1657911996.200626][2977:2977] CHIP:DMG: },
[1657911996.200659][2977:2977] CHIP:DMG:
[1657911996.200701][2977:2977] CHIP:DMG: CommandFields =
[1657911996.200735][2977:2977] CHIP:DMG: {
[1657911996.200768][2977:2977] CHIP:DMG: 0x0 = 1,
[1657911996.200816][2977:2977] CHIP:DMG: 0x1 = 10,
[1657911996.200850][2977:2977] CHIP:DMG: 0x2 = 200,
[1657911996.200893][2977:2977] CHIP:DMG: 0x3 = 5,
[1657911996.200931][2977:2977] CHIP:DMG: 0x4 = 250,
[1657911996.200967][2977:2977] CHIP:DMG: 0x5 = 0,
[1657911996.201010][2977:2977] CHIP:DMG: 0x6 = 0,
[1657911996.201046][2977:2977] CHIP:DMG: },
[1657911996.201075][2977:2977] CHIP:DMG: },
[1657911996.201119][2977:2977] CHIP:DMG:
[1657911996.201144][2977:2977] CHIP:DMG: ],
[1657911996.201176][2977:2977] CHIP:DMG:
[1657911996.201200][2977:2977] CHIP:DMG: InteractionModelRevision = 1
[1657911996.201237][2977:2977] CHIP:DMG: },
[1657911996.201314][2977:2977] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0300 e=1 p=o
[1657911996.201367][2977:2977] CHIP:DMG: AccessControl: allowed
[1657911996.201395][2977:2977] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0300 Command=0x0000_004C
disabled: true
- label: "DUT sends StopMoveStep command to TH."
PICS: CC.C.C47.Rsp
verification: |
./chip-tool colorcontrol stop-move-step 0 0 1 1
Verify in DUT as client side log:
[1657912016.927414][2977:2977] CHIP:DMG: InvokeRequestMessage =
[1657912016.927442][2977:2977] CHIP:DMG: {
[1657912016.927464][2977:2977] CHIP:DMG: suppressResponse = false,
[1657912016.927490][2977:2977] CHIP:DMG: timedRequest = false,
[1657912016.927514][2977:2977] CHIP:DMG: InvokeRequests =
[1657912016.927557][2977:2977] CHIP:DMG: [
[1657912016.927581][2977:2977] CHIP:DMG: CommandDataIB =
[1657912016.927608][2977:2977] CHIP:DMG: {
[1657912016.927642][2977:2977] CHIP:DMG: CommandPathIB =
[1657912016.927675][2977:2977] CHIP:DMG: {
[1657912016.927705][2977:2977] CHIP:DMG: EndpointId = 0x1,
[1657912016.927739][2977:2977] CHIP:DMG: ClusterId = 0x300,
[1657912016.927770][2977:2977] CHIP:DMG: CommandId = 0x47,
[1657912016.927809][2977:2977] CHIP:DMG: },
[1657912016.927841][2977:2977] CHIP:DMG:
[1657912016.927866][2977:2977] CHIP:DMG: CommandFields =
[1657912016.927905][2977:2977] CHIP:DMG: {
[1657912016.927935][2977:2977] CHIP:DMG: 0x0 = 0,
[1657912016.927976][2977:2977] CHIP:DMG: 0x1 = 0,
[1657912016.928008][2977:2977] CHIP:DMG: },
[1657912016.928035][2977:2977] CHIP:DMG: },
[1657912016.928090][2977:2977] CHIP:DMG:
[1657912016.928124][2977:2977] CHIP:DMG: ],
[1657912016.928154][2977:2977] CHIP:DMG:
[1657912016.928178][2977:2977] CHIP:DMG: InteractionModelRevision = 1
[1657912016.928201][2977:2977] CHIP:DMG: },
[1657912016.928282][2977:2977] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0300 e=1 p=o
[1657912016.928328][2977:2977] CHIP:DMG: AccessControl: allowed
[1657912016.928356][2977:2977] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0300 Command=0x0000_0047
disabled: true