blob: e098e12f326d939ff5274fd123f498a543b9ac1e [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: 10.3.1. [TC-RH-3.1] Attributes with Client as DUT
PICS:
- RH.C
- RH.C.AM-READ
- RH.C.AO-READ
- RH.C.AM-WRITE
- RH.C.AO-WRITE
config:
nodeId: 0x12344321
cluster: "Relative Humidity Measurement"
endpoint: 0
tests:
#- label: "Wait for the device to be commissioned"
# cluster: "DelayCommands"
# command: "WaitForCommissioning"
- label: "Read attribute MeasuredValue"
wait: "readAttribute"
attribute: "MeasuredValue"
- label: "Read attribute MinMeasuredValue"
wait: "readAttribute"
attribute: "MinMeasuredValue"
- label: "Read attribute MaxMeasuredValue"
wait: "readAttribute"
attribute: "MaxMeasuredValue"
- label: "Read attribute Tolerance"
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: |
./chip-tool relativehumiditymeasurement read feature-map 1 1
verify TH recieves "feature-map response" on the TH (all-cluster-minimal-app) log:
[1666943749.218050][12769:12769] CHIP:DMG:
[1666943749.218060][12769:12769] CHIP:DMG: ReportDataMessage =
[1666943749.218062][12769:12769] CHIP:DMG: {
[1666943749.218064][12769:12769] CHIP:DMG: AttributeReportIBs =
[1666943749.218067][12769:12769] CHIP:DMG: [
[1666943749.218069][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943749.218074][12769:12769] CHIP:DMG: {
[1666943749.218076][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943749.218078][12769:12769] CHIP:DMG: {
[1666943749.218081][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943749.218083][12769:12769] CHIP:DMG: AttributePathIB =
[1666943749.218086][12769:12769] CHIP:DMG: {
[1666943749.218088][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943749.218091][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943749.218093][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFC,
[1666943749.218095][12769:12769] CHIP:DMG: }
[1666943749.218098][12769:12769] CHIP:DMG:
[1666943749.218101][12769:12769] CHIP:DMG: Data = 0,
[1666943749.218103][12769:12769] CHIP:DMG: },
[1666943749.218106][12769:12769] CHIP:DMG:
[1666943749.218108][12769:12769] CHIP:DMG: },
[1666943749.218112][12769:12769] CHIP:DMG:
[1666943749.218114][12769:12769] CHIP:DMG: ],
[1666943749.218117][12769:12769] CHIP:DMG:
./chip-tool relativehumiditymeasurement read attribute-list 1 1
verify TH recieves "attribute-list response" on the TH (all-cluster-minimal-app) log:
[1666943792.254338][12769:12769] CHIP:DMG:
[1666943792.254369][12769:12769] CHIP:DMG: ReportDataMessage =
[1666943792.254372][12769:12769] CHIP:DMG: {
[1666943792.254374][12769:12769] CHIP:DMG: AttributeReportIBs =
[1666943792.254378][12769:12769] CHIP:DMG: [
[1666943792.254381][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254385][12769:12769] CHIP:DMG: {
[1666943792.254388][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254392][12769:12769] CHIP:DMG: {
[1666943792.254395][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254397][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254399][12769:12769] CHIP:DMG: {
[1666943792.254402][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254404][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254406][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254409][12769:12769] CHIP:DMG: }
[1666943792.254411][12769:12769] CHIP:DMG:
[1666943792.254414][12769:12769] CHIP:DMG: Data = [
[1666943792.254418][12769:12769] CHIP:DMG:
[1666943792.254422][12769:12769] CHIP:DMG: ],
[1666943792.254424][12769:12769] CHIP:DMG: },
[1666943792.254427][12769:12769] CHIP:DMG:
[1666943792.254430][12769:12769] CHIP:DMG: },
[1666943792.254435][12769:12769] CHIP:DMG:
[1666943792.254437][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254441][12769:12769] CHIP:DMG: {
[1666943792.254443][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254446][12769:12769] CHIP:DMG: {
[1666943792.254449][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254453][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254456][12769:12769] CHIP:DMG: {
[1666943792.254459][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254463][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254465][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254470][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254473][12769:12769] CHIP:DMG: }
[1666943792.254477][12769:12769] CHIP:DMG:
[1666943792.254480][12769:12769] CHIP:DMG: Data = 0,
[1666943792.254483][12769:12769] CHIP:DMG: },
[1666943792.254487][12769:12769] CHIP:DMG:
[1666943792.254489][12769:12769] CHIP:DMG: },
[1666943792.254495][12769:12769] CHIP:DMG:
[1666943792.254497][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254501][12769:12769] CHIP:DMG: {
[1666943792.254504][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254506][12769:12769] CHIP:DMG: {
[1666943792.254509][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254513][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254516][12769:12769] CHIP:DMG: {
[1666943792.254519][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254522][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254525][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254527][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254530][12769:12769] CHIP:DMG: }
[1666943792.254534][12769:12769] CHIP:DMG:
[1666943792.254538][12769:12769] CHIP:DMG: Data = 1,
[1666943792.254540][12769:12769] CHIP:DMG: },
[1666943792.254544][12769:12769] CHIP:DMG:
[1666943792.254546][12769:12769] CHIP:DMG: },
[1666943792.254551][12769:12769] CHIP:DMG:
[1666943792.254553][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254557][12769:12769] CHIP:DMG: {
[1666943792.254559][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254562][12769:12769] CHIP:DMG: {
[1666943792.254565][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254569][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254571][12769:12769] CHIP:DMG: {
[1666943792.254573][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254576][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254578][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254580][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254582][12769:12769] CHIP:DMG: }
[1666943792.254586][12769:12769] CHIP:DMG:
[1666943792.254589][12769:12769] CHIP:DMG: Data = 2,
[1666943792.254592][12769:12769] CHIP:DMG: },
[1666943792.254596][12769:12769] CHIP:DMG:
[1666943792.254598][12769:12769] CHIP:DMG: },
[1666943792.254604][12769:12769] CHIP:DMG:
[1666943792.254606][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254610][12769:12769] CHIP:DMG: {
[1666943792.254612][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254615][12769:12769] CHIP:DMG: {
[1666943792.254618][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254621][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254624][12769:12769] CHIP:DMG: {
[1666943792.254627][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254630][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254633][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254635][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254638][12769:12769] CHIP:DMG: }
[1666943792.254642][12769:12769] CHIP:DMG:
[1666943792.254645][12769:12769] CHIP:DMG: Data = 65528,
[1666943792.254647][12769:12769] CHIP:DMG: },
[1666943792.254651][12769:12769] CHIP:DMG:
[1666943792.254653][12769:12769] CHIP:DMG: },
[1666943792.254658][12769:12769] CHIP:DMG:
[1666943792.254660][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254664][12769:12769] CHIP:DMG: {
[1666943792.254666][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254669][12769:12769] CHIP:DMG: {
[1666943792.254672][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254674][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254677][12769:12769] CHIP:DMG: {
[1666943792.254680][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254683][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254686][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254689][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254691][12769:12769] CHIP:DMG: }
[1666943792.254695][12769:12769] CHIP:DMG:
[1666943792.254698][12769:12769] CHIP:DMG: Data = 65529,
[1666943792.254700][12769:12769] CHIP:DMG: },
[1666943792.254704][12769:12769] CHIP:DMG:
[1666943792.254707][12769:12769] CHIP:DMG: },
[1666943792.254712][12769:12769] CHIP:DMG:
[1666943792.254714][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254718][12769:12769] CHIP:DMG: {
[1666943792.254720][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254723][12769:12769] CHIP:DMG: {
[1666943792.254726][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254729][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254732][12769:12769] CHIP:DMG: {
[1666943792.254735][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254738][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254740][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254743][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254746][12769:12769] CHIP:DMG: }
[1666943792.254750][12769:12769] CHIP:DMG:
[1666943792.254753][12769:12769] CHIP:DMG: Data = 65531,
[1666943792.254756][12769:12769] CHIP:DMG: },
[1666943792.254759][12769:12769] CHIP:DMG:
[1666943792.254762][12769:12769] CHIP:DMG: },
[1666943792.254767][12769:12769] CHIP:DMG:
[1666943792.254769][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254773][12769:12769] CHIP:DMG: {
[1666943792.254775][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254778][12769:12769] CHIP:DMG: {
[1666943792.254780][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254783][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254786][12769:12769] CHIP:DMG: {
[1666943792.254789][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254792][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254797][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254799][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254802][12769:12769] CHIP:DMG: }
[1666943792.254804][12769:12769] CHIP:DMG:
[1666943792.254807][12769:12769] CHIP:DMG: Data = 65532,
[1666943792.254809][12769:12769] CHIP:DMG: },
[1666943792.254811][12769:12769] CHIP:DMG:
[1666943792.254813][12769:12769] CHIP:DMG: },
[1666943792.254820][12769:12769] CHIP:DMG:
[1666943792.254822][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943792.254826][12769:12769] CHIP:DMG: {
[1666943792.254828][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943792.254831][12769:12769] CHIP:DMG: {
[1666943792.254833][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943792.254835][12769:12769] CHIP:DMG: AttributePathIB =
[1666943792.254837][12769:12769] CHIP:DMG: {
[1666943792.254842][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943792.254845][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943792.254849][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFB,
[1666943792.254851][12769:12769] CHIP:DMG: ListIndex = Null,
[1666943792.254853][12769:12769] CHIP:DMG: }
[1666943792.254856][12769:12769] CHIP:DMG:
[1666943792.254859][12769:12769] CHIP:DMG: Data = 65533,
[1666943792.254861][12769:12769] CHIP:DMG: },
[1666943792.254865][12769:12769] CHIP:DMG:
[1666943792.254867][12769:12769] CHIP:DMG: },
[1666943792.254872][12769:12769] CHIP:DMG:
[1666943792.254874][12769:12769] CHIP:DMG: ],
[1666943792.254884][12769:12769] CHIP:DMG:
[1666943792.254886][12769:12769] CHIP:DMG: SuppressResponse = true,
[1666943792.254889][12769:12769] CHIP:DMG: InteractionModelRevision = 1
[1666943792.254891][12769:12769] CHIP:DMG: }
[1666943792.254894][12769:12769] CHIP:DMG:
./chip-tool relativehumiditymeasurement read measured-value 1 1
verify TH recieves "measured-value response" on the TH (all-cluster-minimal-app) log:
[1666943851.649935][12769:12769] CHIP:DMG:
[1666943851.649947][12769:12769] CHIP:DMG: ReportDataMessage =
[1666943851.649950][12769:12769] CHIP:DMG: {
[1666943851.649952][12769:12769] CHIP:DMG: AttributeReportIBs =
[1666943851.649956][12769:12769] CHIP:DMG: [
[1666943851.649958][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943851.649962][12769:12769] CHIP:DMG: {
[1666943851.649965][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943851.649967][12769:12769] CHIP:DMG: {
[1666943851.649970][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943851.649973][12769:12769] CHIP:DMG: AttributePathIB =
[1666943851.649975][12769:12769] CHIP:DMG: {
[1666943851.649978][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943851.649981][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943851.649984][12769:12769] CHIP:DMG: Attribute = 0x0000_0000,
[1666943851.649987][12769:12769] CHIP:DMG: }
[1666943851.649990][12769:12769] CHIP:DMG:
[1666943851.649994][12769:12769] CHIP:DMG: Data = 0,
[1666943851.649997][12769:12769] CHIP:DMG: },
[1666943851.650001][12769:12769] CHIP:DMG:
[1666943851.650003][12769:12769] CHIP:DMG: },
[1666943851.650007][12769:12769] CHIP:DMG:
[1666943851.650009][12769:12769] CHIP:DMG: ],
[1666943851.650013][12769:12769] CHIP:DMG:
[1666943851.650015][12769:12769] CHIP:DMG: SuppressResponse = true,
[1666943851.650017][12769:12769] CHIP:DMG: InteractionModelRevision = 1
./chip-tool relativehumiditymeasurement read min-measured-value 1 1
verify TH recieves "min-measured-value response" on the TH (all-cluster-minimal-app) log:
1651147834.075387][2336:2336] CHIP:IM: Received Read request
[1666943887.048829][12769:12769] CHIP:DMG: ReportDataMessage =
[1666943887.048832][12769:12769] CHIP:DMG: {
[1666943887.048835][12769:12769] CHIP:DMG: AttributeReportIBs =
[1666943887.048840][12769:12769] CHIP:DMG: [
[1666943887.048842][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943887.048846][12769:12769] CHIP:DMG: {
[1666943887.048848][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943887.048851][12769:12769] CHIP:DMG: {
[1666943887.048853][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943887.048855][12769:12769] CHIP:DMG: AttributePathIB =
[1666943887.048857][12769:12769] CHIP:DMG: {
[1666943887.048859][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943887.048862][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943887.048865][12769:12769] CHIP:DMG: Attribute = 0x0000_0001,
[1666943887.048868][12769:12769] CHIP:DMG: }
[1666943887.048871][12769:12769] CHIP:DMG:
[1666943887.048874][12769:12769] CHIP:DMG: Data = 0,
[1666943887.048877][12769:12769] CHIP:DMG: },
[1666943887.048881][12769:12769] CHIP:DMG:
[1666943887.048883][12769:12769] CHIP:DMG: },
[1666943887.048887][12769:12769] CHIP:DMG:
[1666943887.048889][12769:12769] CHIP:DMG: ],
[1666943887.048893][12769:12769] CHIP:DMG:
[1666943887.048894][12769:12769] CHIP:DMG: SuppressResponse = true,
[1666943887.048897][12769:12769] CHIP:DMG: InteractionModelRevision = 1
./chip-tool relativehumiditymeasurement read max-measured-value 1 1
verify TH recieves "max-measured-value response" on the TH (all-cluster-minimal-app) log:
[1666943902.417737][12769:12769] CHIP:DMG: ReportDataMessage =
[1666943902.417740][12769:12769] CHIP:DMG: {
[1666943902.417742][12769:12769] CHIP:DMG: AttributeReportIBs =
[1666943902.417747][12769:12769] CHIP:DMG: [
[1666943902.417749][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943902.417755][12769:12769] CHIP:DMG: {
[1666943902.417758][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943902.417761][12769:12769] CHIP:DMG: {
[1666943902.417764][12769:12769] CHIP:DMG: DataVersion = 0xff7445f8,
[1666943902.417767][12769:12769] CHIP:DMG: AttributePathIB =
[1666943902.417771][12769:12769] CHIP:DMG: {
[1666943902.417774][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943902.417777][12769:12769] CHIP:DMG: Cluster = 0x405,
[1666943902.417781][12769:12769] CHIP:DMG: Attribute = 0x0000_0002,
[1666943902.417784][12769:12769] CHIP:DMG: }
[1666943902.417788][12769:12769] CHIP:DMG:
[1666943902.417791][12769:12769] CHIP:DMG: Data = 10000,
[1666943902.417794][12769:12769] CHIP:DMG: },
[1666943902.417798][12769:12769] CHIP:DMG:
[1666943902.417801][12769:12769] CHIP:DMG: },
[1666943902.417805][12769:12769] CHIP:DMG:
[1666943902.417808][12769:12769] CHIP:DMG: ],
[1666943902.417812][12769:12769] CHIP:DMG:
[1666943902.417815][12769:12769] CHIP:DMG: SuppressResponse = true,
[1666943902.417819][12769:12769] CHIP:DMG: InteractionModelRevision = 1
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: |
TH all-clusters-minimal-app does not support optional attributes
./chip-tool relativehumiditymeasurement read tolerance 1 1
status = 0x86 (UNSUPPORTED_ATTRIBUTE),
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
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"