forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_IDM_5_2.yaml
132 lines (113 loc) · 7.5 KB
/
Test_TC_IDM_5_2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# 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.5.2. [TC-IDM-5.2] Status Response from DUT in response to a Timed Request
Action from TH.
PICS:
- MCORE.IDM.S
config:
nodeId: 0x12344321
cluster: "Basic Information"
endpoint: 0
tests:
- label:
"Step 1: TH sends a Timed Request Message with the timeout value set.
(Example - 200 milliseconds). +"
verification: |
./chip-tool onoff on 1 1 --timedInteractionTimeoutMs 200
Verify on TH(chip-tool) receives the StatusResponseMessage for the data sent in the above command
[1655798564.112839][7055:7060] CHIP:DMG: StatusResponseMessage =
[1655798564.112870][7055:7060] CHIP:DMG: {
[1655798564.112898][7055:7060] CHIP:DMG: Status = 0x00 (SUCCESS),
[1655798564.112927][7055:7060] CHIP:DMG: InteractionModelRevision = 1
[1655798564.112954][7055:7060] CHIP:DMG: }
[1655798564.112983][7055:7060] CHIP:IM: Received status response, status is 0x00 (SUCCESS)
disabled: true
- label:
"Step 2: TH sends a Timed Request Message(Timed Write Transaction)
with the timeout value set. (Example - 200 milliseconds). Wait for the
status response message to be received. Send the Write Request Message
to the DUT."
verification: |
./chip-tool levelcontrol write on-level 1 1 1 --timedInteractionTimeoutMs 500
Verify on TH(chip-tool) receives the WriteResponseMessage for the data sent in the above command
[1655798786.131890][7065:7070] CHIP:DMG: WriteResponseMessage =
[1655798786.131932][7065:7070] CHIP:DMG: {
[1655798786.131984][7065:7070] CHIP:DMG: AttributeStatusIBs =
[1655798786.132035][7065:7070] CHIP:DMG: [
[1655798786.132089][7065:7070] CHIP:DMG: AttributeStatusIB =
[1655798786.132142][7065:7070] CHIP:DMG: {
[1655798786.132246][7065:7070] CHIP:DMG: AttributePathIB =
[1655798786.132311][7065:7070] CHIP:DMG: {
[1655798786.132377][7065:7070] CHIP:DMG: Endpoint = 0x1,
[1655798786.132439][7065:7070] CHIP:DMG: Cluster = 0x8,
[1655798786.132512][7065:7070] CHIP:DMG: Attribute = 0x0000_0011,
[1655798786.132578][7065:7070] CHIP:DMG: }
[1655798786.132635][7065:7070] CHIP:DMG:
[1655798786.132704][7065:7070] CHIP:DMG: StatusIB =
[1655798786.132770][7065:7070] CHIP:DMG: {
[1655798786.132822][7065:7070] CHIP:DMG: status = 0x00 (SUCCESS),
[1655798786.132892][7065:7070] CHIP:DMG: },
[1655798786.132960][7065:7070] CHIP:DMG:
[1655798786.133006][7065:7070] CHIP:DMG: },
[1655798786.133070][7065:7070] CHIP:DMG:
[1655798786.133109][7065:7070] CHIP:DMG: ],
[1655798786.133173][7065:7070] CHIP:DMG:
[1655798786.133213][7065:7070] CHIP:DMG: InteractionModelRevision = 1
[1655798786.133269][7065:7070] CHIP:DMG: }
[1655798786.133385][7065:7070] CHIP:DMG: WriteClient moving to [AwaitingDe]
By sending a ReadRequest that the Write action was performed correctly.
./chip-tool levelcontrol read on-level 1 1
[1655799013.466144][7075:7080] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 737039642
[1655799013.466237][7075:7080] CHIP:TOO: on level: 1
[1655799013.466336][7075:7080] CHIP:EM: Sending Standalone Ack for MessageCounter:202402347 on exchange 58038i
disabled: true
- label:
"Step 3: TH sends a Timed Request Message(Timed Invoke Transaction)
with the timeout value set. (Example - 200 milliseconds). Wait for the
status response message to be received. Wait for 5 seconds(Timer has
expired) and then send the Invoke Request Message to the DUT."
verification: |
./chip-tool onoff on 1 1 --repeat-delay-ms 5000 --timedInteractionTimeoutMs 200
If the device being certified is Matter release 1.4 or later, verify DUT sends back a Status response with the TIMEOUT status code.
If the device being certified is Matter release 1.3 or earlier, verify the DUT sends back a Status response with either TIMEOUT or UNSUPPORTED_ACCESS status code.
[1718641649.158222][1587554:1587556] CHIP:EM: Rxd Ack; Removing MessageCounter:70404585 from Retrans Table on exchange 44026i
[1718641649.158241][1587554:1587556] CHIP:DMG: ICR moving to [ResponseRe]
[1718641649.158261][1587554:1587556] CHIP:DMG: StatusResponseMessage =
[1718641649.158276][1587554:1587556] CHIP:DMG: {
[1718641649.158290][1587554:1587556] CHIP:DMG: Status = 0x94 (TIMEOUT),
[1718641649.158304][1587554:1587556] CHIP:DMG: InteractionModelRevision = 11
[1718641649.158318][1587554:1587556] CHIP:DMG: }
[1718641649.158332][1587554:1587556] CHIP:IM: Received status response, status is 0x94 (TIMEOUT)
[1718641649.158355][1587554:1587556] CHIP:TOO: Error: IM Error 0x00000594: General error: 0x94 (TIMEOUT)
disabled: true
- label:
"Step 4: TH sends a Timed Request Message(Timed Write Transaction)
with the timeout value set. (Example - 200 milliseconds). Wait for the
status response message to be received. Wait for 5 seconds(Timer has
expired) and then send the Write Request Message to the DUT."
verification: |
./chip-tool modeselect write on-mode 0 1 1 --repeat-delay-ms 1000 --timedInteractionTimeoutMs 500
If the device being certified is Matter release 1.4 or later, verify DUT sends back a Status response with the TIMEOUT status code.
If the device being certified is Matter release 1.3 or earlier, verify the DUT sends back a Status response with either TIMEOUT or UNSUPPORTED_ACCESS status code.
[1720104134.620521][3325282:3325284] CHIP:DMG: WriteClient moving to [ResponseRe]
[1720104134.620540][3325282:3325284] CHIP:DMG: StatusResponseMessage =
[1720104134.620555][3325282:3325284] CHIP:DMG: {
[1720104134.620569][3325282:3325284] CHIP:DMG: Status = 0x94 (TIMEOUT),
[1720104134.620583][3325282:3325284] CHIP:DMG: InteractionModelRevision = 11
[1720104134.620596][3325282:3325284] CHIP:DMG: }
[1720104134.620611][3325282:3325284] CHIP:IM: Received status response, status is 0x94 (TIMEOUT)
[1720104134.620689][3325282:3325284] CHIP:TOO: Error: IM Error 0x00000594: General error: 0x94 (TIMEOUT)
disabled: true