blob: 24db2438da578cf0513368c731b47a0951024605 [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.
name: 31.3.1. [TC-FLW-3.1] Attributes with Client as DUT
PICS:
- FLW.C
- FLW.C.AM-READ
- FLW.C.AO-READ
- FLW.C.AM-WRITE
- FLW.C.AO-WRITE
config:
nodeId: 0x12344321
cluster: "Flow Measurement"
endpoint: 0
tests:
#- label: "Wait for the device to be commissioned"
# cluster: "DelayCommands"
# command: "WaitForCommissioning"
- label: "Read attribute: MeasuredValue"
PICS: FLW.C.AM-READ
wait: "readAttribute"
attribute: "MeasuredValue"
- label: "Read attribute: MinMeasuredValue"
PICS: FLW.C.AM-READ
wait: "readAttribute"
attribute: "MinMeasuredValue"
- label: "Read attribute: MaxMeasuredValue"
PICS: FLW.C.AM-READ
wait: "readAttribute"
attribute: "MaxMeasuredValue"
- label: "Read attribute: Tolerance"
PICS: FLW.C.AO-READ
wait: "readAttribute"
attribute: "Tolerance"
- label:
"Configure TH such that it implements mandatory and none of the
optional attributes of the server-side of the cluster, and that it
also reflects this in global attributes such as FeatureMap and
AttributeList. Commission DUT to TH again."
verification: |
Verify TH(all-clusters-minimal-app) that it implements mandatory and none of the optional attributes of the server-side of the cluster, and that it also reflects this in global attributes such as FeatureMap and AttributeList.
./chip-tool flowmeasurement read attribute-list 1 1
Verify AttributeList response on the TH(all-clusters-minimal-app) Log:
ReportDataMessage =
[1666851487.507946][18927:18927] CHIP:DMG: {
[1666851487.507950][18927:18927] CHIP:DMG: AttributeReportIBs =
[1666851487.507957][18927:18927] CHIP:DMG: [
[1666851487.507961][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.507969][18927:18927] CHIP:DMG: {
[1666851487.507974][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.507979][18927:18927] CHIP:DMG: {
[1666851487.507984][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.507990][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.507995][18927:18927] CHIP:DMG: {
[1666851487.508001][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508007][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508012][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508018][18927:18927] CHIP:DMG: }
[1666851487.508024][18927:18927] CHIP:DMG:
[1666851487.508030][18927:18927] CHIP:DMG: Data = [
[1666851487.508035][18927:18927] CHIP:DMG:
[1666851487.508041][18927:18927] CHIP:DMG: ],
[1666851487.508045][18927:18927] CHIP:DMG: },
[1666851487.508053][18927:18927] CHIP:DMG:
[1666851487.508057][18927:18927] CHIP:DMG: },
[1666851487.508068][18927:18927] CHIP:DMG:
[1666851487.508072][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508080][18927:18927] CHIP:DMG: {
[1666851487.508085][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508089][18927:18927] CHIP:DMG: {
[1666851487.508094][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508098][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508104][18927:18927] CHIP:DMG: {
[1666851487.508108][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508113][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508119][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508124][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508128][18927:18927] CHIP:DMG: }
[1666851487.508134][18927:18927] CHIP:DMG:
[1666851487.508139][18927:18927] CHIP:DMG: Data = 0,
[1666851487.508143][18927:18927] CHIP:DMG: },
[1666851487.508149][18927:18927] CHIP:DMG:
[1666851487.508152][18927:18927] CHIP:DMG: },
[1666851487.508161][18927:18927] CHIP:DMG:
[1666851487.508165][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508173][18927:18927] CHIP:DMG: {
[1666851487.508178][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508183][18927:18927] CHIP:DMG: {
[1666851487.508189][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508194][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508199][18927:18927] CHIP:DMG: {
[1666851487.508204][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508210][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508216][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508221][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508225][18927:18927] CHIP:DMG: }
[1666851487.508232][18927:18927] CHIP:DMG:
[1666851487.508237][18927:18927] CHIP:DMG: Data = 1,
[1666851487.508242][18927:18927] CHIP:DMG: },
[1666851487.508249][18927:18927] CHIP:DMG:
[1666851487.508254][18927:18927] CHIP:DMG: },
[1666851487.508264][18927:18927] CHIP:DMG:
[1666851487.508268][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508275][18927:18927] CHIP:DMG: {
[1666851487.508280][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508285][18927:18927] CHIP:DMG: {
[1666851487.508289][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508293][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508298][18927:18927] CHIP:DMG: {
[1666851487.508303][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508307][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508314][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508318][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508324][18927:18927] CHIP:DMG: }
[1666851487.508331][18927:18927] CHIP:DMG:
[1666851487.508337][18927:18927] CHIP:DMG: Data = 2,
[1666851487.508341][18927:18927] CHIP:DMG: },
[1666851487.508348][18927:18927] CHIP:DMG:
[1666851487.508353][18927:18927] CHIP:DMG: },
[1666851487.508363][18927:18927] CHIP:DMG:
[1666851487.508367][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508374][18927:18927] CHIP:DMG: {
[1666851487.508377][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508382][18927:18927] CHIP:DMG: {
[1666851487.508386][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508390][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508395][18927:18927] CHIP:DMG: {
[1666851487.508399][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508406][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508411][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508416][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508420][18927:18927] CHIP:DMG: }
[1666851487.508426][18927:18927] CHIP:DMG:
[1666851487.508431][18927:18927] CHIP:DMG: Data = 65528,
[1666851487.508436][18927:18927] CHIP:DMG: },
[1666851487.508443][18927:18927] CHIP:DMG:
[1666851487.508447][18927:18927] CHIP:DMG: },
[1666851487.508456][18927:18927] CHIP:DMG:
[1666851487.508461][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508468][18927:18927] CHIP:DMG: {
[1666851487.508471][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508475][18927:18927] CHIP:DMG: {
[1666851487.508480][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508486][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508491][18927:18927] CHIP:DMG: {
[1666851487.508495][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508500][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508506][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508511][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508515][18927:18927] CHIP:DMG: }
[1666851487.508521][18927:18927] CHIP:DMG:
[1666851487.508526][18927:18927] CHIP:DMG: Data = 65529,
[1666851487.508531][18927:18927] CHIP:DMG: },
[1666851487.508538][18927:18927] CHIP:DMG:
[1666851487.508543][18927:18927] CHIP:DMG: },
[1666851487.508554][18927:18927] CHIP:DMG:
[1666851487.508557][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508564][18927:18927] CHIP:DMG: {
[1666851487.508569][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508574][18927:18927] CHIP:DMG: {
[1666851487.508579][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508584][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508590][18927:18927] CHIP:DMG: {
[1666851487.508595][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508601][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508607][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508611][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508616][18927:18927] CHIP:DMG: }
[1666851487.508622][18927:18927] CHIP:DMG:
[1666851487.508627][18927:18927] CHIP:DMG: Data = 65531,
[1666851487.508632][18927:18927] CHIP:DMG: },
[1666851487.508638][18927:18927] CHIP:DMG:
[1666851487.508642][18927:18927] CHIP:DMG: },
[1666851487.508652][18927:18927] CHIP:DMG:
[1666851487.508656][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508663][18927:18927] CHIP:DMG: {
[1666851487.508668][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508673][18927:18927] CHIP:DMG: {
[1666851487.508678][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508683][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508688][18927:18927] CHIP:DMG: {
[1666851487.508692][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508699][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508705][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508710][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508714][18927:18927] CHIP:DMG: }
[1666851487.508721][18927:18927] CHIP:DMG:
[1666851487.508726][18927:18927] CHIP:DMG: Data = 65532,
[1666851487.508730][18927:18927] CHIP:DMG: },
[1666851487.508737][18927:18927] CHIP:DMG:
[1666851487.508741][18927:18927] CHIP:DMG: },
[1666851487.508750][18927:18927] CHIP:DMG:
[1666851487.508754][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851487.508761][18927:18927] CHIP:DMG: {
[1666851487.508766][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851487.508771][18927:18927] CHIP:DMG: {
[1666851487.508775][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851487.508780][18927:18927] CHIP:DMG: AttributePathIB =
[1666851487.508785][18927:18927] CHIP:DMG: {
[1666851487.508790][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851487.508796][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851487.508803][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666851487.508808][18927:18927] CHIP:DMG: ListIndex = Null,
[1666851487.508814][18927:18927] CHIP:DMG: }
[1666851487.508820][18927:18927] CHIP:DMG:
[1666851487.508825][18927:18927] CHIP:DMG: Data = 65533,
[1666851487.508829][18927:18927] CHIP:DMG: },
[1666851487.508836][18927:18927] CHIP:DMG:
[1666851487.508840][18927:18927] CHIP:DMG: },
[1666851487.508847][18927:18927] CHIP:DMG:
[1666851487.508851][18927:18927] CHIP:DMG: ],
[1666851487.508879][18927:18927] CHIP:DMG:
[1666851487.508884][18927:18927] CHIP:DMG: SuppressResponse = true,
[1666851487.508888][18927:18927] CHIP:DMG: InteractionModelRevision = 1
[1666851487.508892][18927:18927] CHIP:DMG: }
[1666851487.508896][18927:18927] CHIP:DMG:
./chip-tool flowmeasurement read feature-map 1 1
Verify FeatureMap attribute response on the TH(all-clusters-minimal-app) Log:
ReportDataMessage =
[1666851643.847203][18927:18927] CHIP:DMG: {
[1666851643.847206][18927:18927] CHIP:DMG: AttributeReportIBs =
[1666851643.847211][18927:18927] CHIP:DMG: [
[1666851643.847214][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851643.847219][18927:18927] CHIP:DMG: {
[1666851643.847222][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851643.847226][18927:18927] CHIP:DMG: {
[1666851643.847229][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851643.847232][18927:18927] CHIP:DMG: AttributePathIB =
[1666851643.847236][18927:18927] CHIP:DMG: {
[1666851643.847240][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851643.847244][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851643.847249][18927:18927] CHIP:DMG: Attribute = 0x0000_FFFC,
[1666851643.847252][18927:18927] CHIP:DMG: }
[1666851643.847256][18927:18927] CHIP:DMG:
[1666851643.847261][18927:18927] CHIP:DMG: Data = 0,
[1666851643.847264][18927:18927] CHIP:DMG: },
[1666851643.847269][18927:18927] CHIP:DMG:
[1666851643.847272][18927:18927] CHIP:DMG: },
[1666851643.847276][18927:18927] CHIP:DMG:
[1666851643.847279][18927:18927] CHIP:DMG: ],
[1666851643.847285][18927:18927] CHIP:DMG:
[1666851643.847288][18927:18927] CHIP:DMG: SuppressResponse = true,
[1666851643.847291][18927:18927] CHIP:DMG: InteractionModelRevision = 1
[1666851643.847294][18927:18927] CHIP:DMG: }
./chip-tool flowmeasurement read measured-value 1 1
Verify MeasuredValue response on the TH(all-clusters-minimal-app) Log:
ReportDataMessage =
[1666851671.893452][18927:18927] CHIP:DMG: {
[1666851671.893455][18927:18927] CHIP:DMG: AttributeReportIBs =
[1666851671.893460][18927:18927] CHIP:DMG: [
[1666851671.893462][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851671.893467][18927:18927] CHIP:DMG: {
[1666851671.893471][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851671.893476][18927:18927] CHIP:DMG: {
[1666851671.893479][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851671.893484][18927:18927] CHIP:DMG: AttributePathIB =
[1666851671.893487][18927:18927] CHIP:DMG: {
[1666851671.893493][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851671.893496][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851671.893501][18927:18927] CHIP:DMG: Attribute = 0x0000_0000,
[1666851671.893506][18927:18927] CHIP:DMG: }
[1666851671.893511][18927:18927] CHIP:DMG:
[1666851671.893517][18927:18927] CHIP:DMG: Data = 0,
[1666851671.893520][18927:18927] CHIP:DMG: },
[1666851671.893526][18927:18927] CHIP:DMG:
[1666851671.893529][18927:18927] CHIP:DMG: },
[1666851671.893534][18927:18927] CHIP:DMG:
[1666851671.893538][18927:18927] CHIP:DMG: ],
[1666851671.893545][18927:18927] CHIP:DMG:
[1666851671.893549][18927:18927] CHIP:DMG: SuppressResponse = true,
[1666851671.893552][18927:18927] CHIP:DMG: InteractionModelRevision = 1
[1666851671.893555][18927:18927] CHIP:DMG: }
./chip-tool flowmeasurement read min-measured-value 1 1
Verify MinMeasuredValue response on the TH(all-clusters-minimal-app) Log:
ReportDataMessage =
[1666851700.451575][18927:18927] CHIP:DMG: {
[1666851700.451579][18927:18927] CHIP:DMG: AttributeReportIBs =
[1666851700.451585][18927:18927] CHIP:DMG: [
[1666851700.451589][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851700.451596][18927:18927] CHIP:DMG: {
[1666851700.451599][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851700.451603][18927:18927] CHIP:DMG: {
[1666851700.451606][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851700.451611][18927:18927] CHIP:DMG: AttributePathIB =
[1666851700.451615][18927:18927] CHIP:DMG: {
[1666851700.451620][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851700.451625][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851700.451630][18927:18927] CHIP:DMG: Attribute = 0x0000_0001,
[1666851700.451633][18927:18927] CHIP:DMG: }
[1666851700.451638][18927:18927] CHIP:DMG:
[1666851700.451644][18927:18927] CHIP:DMG: Data = 0,
[1666851700.451647][18927:18927] CHIP:DMG: },
[1666851700.451652][18927:18927] CHIP:DMG:
[1666851700.451655][18927:18927] CHIP:DMG: },
[1666851700.451661][18927:18927] CHIP:DMG:
[1666851700.451665][18927:18927] CHIP:DMG: ],
[1666851700.451671][18927:18927] CHIP:DMG:
[1666851700.451674][18927:18927] CHIP:DMG: SuppressResponse = true,
[1666851700.451677][18927:18927] CHIP:DMG: InteractionModelRevision = 1
[1666851700.451681][18927:18927] CHIP:DMG: }
./chip-tool flowmeasurement read max-measured-value 1 1
Verify MaxMeasured Value response on the TH(all-clusters-minimal-app) Log:
ReportDataMessage =
[1666851727.140175][18927:18927] CHIP:DMG: {
[1666851727.140178][18927:18927] CHIP:DMG: AttributeReportIBs =
[1666851727.140185][18927:18927] CHIP:DMG: [
[1666851727.140190][18927:18927] CHIP:DMG: AttributeReportIB =
[1666851727.140197][18927:18927] CHIP:DMG: {
[1666851727.140201][18927:18927] CHIP:DMG: AttributeDataIB =
[1666851727.140206][18927:18927] CHIP:DMG: {
[1666851727.140210][18927:18927] CHIP:DMG: DataVersion = 0xca67ce55,
[1666851727.140214][18927:18927] CHIP:DMG: AttributePathIB =
[1666851727.140220][18927:18927] CHIP:DMG: {
[1666851727.140225][18927:18927] CHIP:DMG: Endpoint = 0x1,
[1666851727.140230][18927:18927] CHIP:DMG: Cluster = 0x404,
[1666851727.140235][18927:18927] CHIP:DMG: Attribute = 0x0000_0002,
[1666851727.140240][18927:18927] CHIP:DMG: }
[1666851727.140247][18927:18927] CHIP:DMG:
[1666851727.140253][18927:18927] CHIP:DMG: Data = 0,
[1666851727.140258][18927:18927] CHIP:DMG: },
[1666851727.140264][18927:18927] CHIP:DMG:
[1666851727.140267][18927:18927] CHIP:DMG: },
[1666851727.140275][18927:18927] CHIP:DMG:
[1666851727.140278][18927:18927] CHIP:DMG: ],
[1666851727.140285][18927:18927] CHIP:DMG:
[1666851727.140290][18927:18927] CHIP:DMG: SuppressResponse = true,
[1666851727.140295][18927:18927] CHIP:DMG: InteractionModelRevision = 1
[1666851727.140298][18927:18927] CHIP:DMG: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"DUT reads all supported optional attributes from TH one at a time in
a manufacturer specific order"
verification: |
Verify TH(all-clusters-minimal-app) receives the read command, and responds that this attribute is not available and also DUT is aware that the optional attributes are not available, and does not issue read requests for the attributes which it did read in step 2
./chip-tool flowmeasurement read tolerance 1 1
Verify Tolerance response on the TH(all-clusters-minimal-app) Log:
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && FLW.C.AO-READ
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"DUT writes a suitable value to all supported optional attributes on
the TH one at a time in a manufacturer specific order"
verification: |
This cluster doesn't have any writable attributes
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"