From 9c177e304c57f1718034c715c75bb19cd1492185 Mon Sep 17 00:00:00 2001 From: kowsisoundhar12 <57476670+kowsisoundhar12@users.noreply.github.com> Date: Tue, 31 May 2022 21:13:55 +0530 Subject: [PATCH] Added Manual Scripts (#18730) * Added manual scripts * Added auto generated scripts * Restyled by whitespace * Added updated changes * Added Auto generated file * Restyled by clang-format * Added Auto generated file * Restyled by clang-format * Restyled by clang-format * Restyled by clang-format * Added auto generated scripts * Restyled by clang-format Co-authored-by: Restyled.io --- .../suites/certification/Test_TC_BDX_1_1.yaml | 25 - .../suites/certification/Test_TC_BDX_1_3.yaml | 27 - .../suites/certification/Test_TC_BDX_1_5.yaml | 59 -- .../suites/certification/Test_TC_BDX_1_6.yaml | 54 -- .../suites/certification/Test_TC_BDX_2_3.yaml | 34 - .../suites/certification/Test_TC_BDX_2_4.yaml | 35 - .../suites/certification/Test_TC_BDX_2_5.yaml | 32 - .../certification/Test_TC_DESC_2_1.yaml | 87 ++ .../certification/Test_TC_DESC_2_2.yaml | 116 +++ .../certification/Test_TC_DIAGLOG_1_1.yaml | 99 +++ .../certification/Test_TC_DIAGLOG_2_1.yaml | 86 ++ ..._Log_2_2.yaml => Test_TC_DIAGLOG_2_2.yaml} | 9 +- .../certification/Test_TC_DIAGLOG_3_1.yaml | 94 ++ .../certification/Test_TC_Diag_Log_2_1.yaml | 165 ---- .../certification/Test_TC_Diag_Log_2_3.yaml | 105 --- .../suites/certification/Test_TC_LO_2_1.yaml | 145 ++++ .../suites/certification/Test_TC_LO_3_1.yaml | 83 ++ .../suites/certification/Test_TC_MF_1_1.yaml | 667 +++++++------- .../suites/certification/Test_TC_MF_1_11.yaml | 41 +- .../suites/certification/Test_TC_MF_1_12.yaml | 101 ++- .../suites/certification/Test_TC_MF_1_13.yaml | 464 ++++++---- .../suites/certification/Test_TC_MF_1_16.yaml | 439 +++++----- .../suites/certification/Test_TC_MF_1_2.yaml | 814 ++++++++---------- .../suites/certification/Test_TC_MF_1_25.yaml | 73 +- .../suites/certification/Test_TC_MF_1_26.yaml | 52 +- .../suites/certification/Test_TC_MF_1_7.yaml | 265 +++--- .../suites/certification/Test_TC_SC_4_8.yaml | 56 +- .../suites/certification/Test_TC_SU_2_1.yaml | 37 +- .../suites/certification/Test_TC_SU_2_2.yaml | 102 ++- .../suites/certification/Test_TC_SU_2_3.yaml | 89 +- .../suites/certification/Test_TC_SU_2_5.yaml | 58 +- .../suites/certification/Test_TC_SU_2_7.yaml | 148 +++- .../suites/certification/Test_TC_SU_3_2.yaml | 89 +- .../suites/certification/Test_TC_SU_3_3.yaml | 42 +- .../suites/certification/Test_TC_SU_3_4.yaml | 55 +- .../suites/certification/Test_TC_SU_4_1.yaml | 192 ++++- .../suites/certification/Test_TC_SU_4_2.yaml | 14 + src/app/tests/suites/tests.js | 18 +- .../chip-tool/zap-generated/test/Commands.h | 787 ++++++++--------- 39 files changed, 3342 insertions(+), 2516 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_BDX_1_1.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_BDX_1_3.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_BDX_1_5.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_BDX_1_6.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_BDX_2_4.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_BDX_2_5.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_DESC_2_1.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_DESC_2_2.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_DIAGLOG_1_1.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_DIAGLOG_2_1.yaml rename src/app/tests/suites/certification/{Test_TC_Diag_Log_2_2.yaml => Test_TC_DIAGLOG_2_2.yaml} (90%) create mode 100644 src/app/tests/suites/certification/Test_TC_DIAGLOG_3_1.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_Diag_Log_2_1.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_Diag_Log_2_3.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_LO_2_1.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_LO_3_1.yaml diff --git a/src/app/tests/suites/certification/Test_TC_BDX_1_1.yaml b/src/app/tests/suites/certification/Test_TC_BDX_1_1.yaml deleted file mode 100644 index ba3f0276ecbbef..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BDX_1_1.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# 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: 28.1.1. [TC-BDX-1.1] Sender Initiated BDX Transfer session - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "DUT sends a SendInit message to TH" - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_1_3.yaml b/src/app/tests/suites/certification/Test_TC_BDX_1_3.yaml deleted file mode 100644 index fd1467c55a61dc..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BDX_1_3.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# 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: 28.1.3. [TC-BDX-1.3] Response to Sender Initiated BDX Transfer session - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "TH sends a SendInit message to DUT + DUT sends a SendAccept message - back to TH" - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_1_5.yaml b/src/app/tests/suites/certification/Test_TC_BDX_1_5.yaml deleted file mode 100644 index 817cf3bb82e613..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BDX_1_5.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# 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: - 28.1.5. [TC-BDX-1.5] Response to Sender Initiated BDX Transfer session - - Negative scenario - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "TH sends a SendInit message to DUT with a file designator not - supported by DUT" - disabled: true - - - label: - "TH sends a SendInit message to DUT with an invalid start offset or - one that is not supported by DUT" - disabled: true - - - label: - "TH sends a SendInit message to DUT with definite length field too - large for DUT" - disabled: true - - - label: - "TH sends a SendInit message to DUT with definite length field too - short for DUT" - disabled: true - - - label: - "TH sends a SendInit message to DUT with a missing definite length - field" - disabled: true - - - label: - "TH sends a SendInit message to DUT with proposed transfer control - method not supported by DUT" - disabled: true - - - label: - "TH sends a SendInit message to DUT when the DUT is too busy to - process another transfer" - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_1_6.yaml b/src/app/tests/suites/certification/Test_TC_BDX_1_6.yaml deleted file mode 100644 index 1a8f3a4e9aea5b..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BDX_1_6.yaml +++ /dev/null @@ -1,54 +0,0 @@ -# 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: - 28.1.6. [TC-BDX-1.6] Response to Receiver Initiated BDX Transfer session - - Negative scenario - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "TH sends a ReceiveInit message to DUT with a file designator not - supported by DUT" - disabled: true - - - label: - "TH sends a ReceiveInit message to DUT with an invalid start offset or - one that is not supported by DUT" - disabled: true - - - label: - "TH sends a ReceiveInit message to DUT with definite length field too - large for DUT" - disabled: true - - - label: - "TH sends a ReceiveInit message to DUT with a missing definite length - field" - disabled: true - - - label: - "TH sends a ReceiveInit message to DUT with proposed transfer control - method not supported by DUT" - disabled: true - - - label: - "TH sends a ReceiveInit message to DUT when the DUT is too busy to - process another transfer" - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml b/src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml deleted file mode 100644 index 2f65c3cfce4ea2..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# 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: 28.2.3. [TC-BDX-2.3] Restart Synchronous file receiving - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "IF (PICS_DT_Receiver_Driver) TH sends a SendInit message to DUT + DUT - sends a SendAccept message back to TH + DUT sends a BlockQuery message - to TH + TH sends a Block message back to DUT" - verification: | - 1. Verify that the OTA Reference Provider App logs show BlockQuery message from DUT - - [1636410922974] [59203:62969336] CHIP: [ATM] Handling received BDX Message - [1636410922974] [59203:62969336] CHIP: [ATM] BlockQuery - [1636410922974] [59203:62969336] CHIP: [ATM] Block Counter: 0 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_2_4.yaml b/src/app/tests/suites/certification/Test_TC_BDX_2_4.yaml deleted file mode 100644 index 14e431aac017cb..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BDX_2_4.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# 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: 28.2.4. [TC-BDX-2.4] Asynchronous file sending - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "DUT sends a SendInit message to TH + TH sends a SendAccept message - back to DUT + DUT sends a Block message to TH" - disabled: true - - - label: "DUT sends a Block message to TH" - disabled: true - - - label: - "DUT sends a BlockEOF message to TH + TH sends a BlockAckEOF message - back to DUT" - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_2_5.yaml b/src/app/tests/suites/certification/Test_TC_BDX_2_5.yaml deleted file mode 100644 index 03a8eec9fe4241..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BDX_2_5.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# 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: 28.2.5. [TC-BDX-2.5] Asynchronous file receiving - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "DUT sends a ReceiveInit message to TH + TH sends a ReceiveAccept - message back to DUT + TH sends a Block message to DUT" - disabled: true - - - label: - "TH sends a BlockEOF message to DUT + DUT sends a BlockAckEOF message - back to TH" - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DESC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DESC_2_1.yaml new file mode 100644 index 00000000000000..6751b292a96e2b --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DESC_2_1.yaml @@ -0,0 +1,87 @@ +# 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: 81.2. [TC-DESC-2.1] Descriptor Cluster Attributes with DUT as Server + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "TH reads DeviceTypeList attribute from DUT." + verification: | + ./chip-tool descriptor read device-list 1 0 + + [1641454498.809603][16120:16125] CHIP:TOO: Descriptor.DeviceList response: 1 entries + [1641454498.809737][16120:16125] CHIP:TOO: [1]: { + [1641454498.809780][16120:16125] CHIP:TOO: Type: 22 + [1641454498.809817][16120:16125] CHIP:TOO: Revision: 1 + [1641454498.809852][16120:16125] CHIP:TOO: } + [1641454498.809938][16120:16125] CHIP:EM: Sending Standalone Ack for MessageCounter:52943 on exchange 24061i + disabled: true + + - label: "TH reads 'ServerList' attribute. Refer to Precondition " + verification: | + ./chip-tool descriptor read server-list 1 0 + + [1650281763.417848][9672:9678] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1976976904 + [1650281763.417958][9672:9678] CHIP:TOO: server list: 25 entries + [1650281763.418002][9672:9678] CHIP:TOO: [1]: 3 + [1650281763.418028][9672:9678] CHIP:TOO: [2]: 4 + [1650281763.418053][9672:9678] CHIP:TOO: [3]: 29 + [1650281763.418077][9672:9678] CHIP:TOO: [4]: 30 + [1650281763.418101][9672:9678] CHIP:TOO: [5]: 31 + [1650281763.418125][9672:9678] CHIP:TOO: [6]: 40 + [1650281763.418149][9672:9678] CHIP:TOO: [7]: 42 + [1650281763.418173][9672:9678] CHIP:TOO: [8]: 43 + [1650281763.418197][9672:9678] CHIP:TOO: [9]: 44 + [1650281763.418218][9672:9678] CHIP:TOO: [10]: 45 + [1650281763.418238][9672:9678] CHIP:TOO: [11]: 46 + [1650281763.418257][9672:9678] CHIP:TOO: [12]: 48 + [1650281763.418277][9672:9678] CHIP:TOO: [13]: 49 + [1650281763.418297][9672:9678] CHIP:TOO: [14]: 50 + [1650281763.418316][9672:9678] CHIP:TOO: [15]: 51 + [1650281763.418336][9672:9678] CHIP:TOO: [16]: 52 + [1650281763.418356][9672:9678] CHIP:TOO: [17]: 53 + [1650281763.418382][9672:9678] CHIP:TOO: [18]: 54 + [1650281763.418406][9672:9678] CHIP:TOO: [19]: 55 + [1650281763.418430][9672:9678] CHIP:TOO: [20]: 60 + [1650281763.418454][9672:9678] CHIP:TOO: [21]: 62 + [1650281763.418478][9672:9678] CHIP:TOO: [22]: 63 + [1650281763.418502][9672:9678] CHIP:TOO: [23]: 64 + [1650281763.418526][9672:9678] CHIP:TOO: [24]: 65 + [1650281763.418550][9672:9678] CHIP:TOO: [25]: 1029 + disabled: true + + - label: "TH reads 'ClientList' attribute" + verification: | + ./chip-tool descriptor read client-list 1 0 + [1650281818.533446][9679:9684] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0002 DataVersion: 1976976904 + [1650281818.533514][9679:9684] CHIP:TOO: client list: 1 entries + [1650281818.533563][9679:9684] CHIP:TOO: [1]: 41 + disabled: true + + - label: "TH reads 'PartsList' attribute." + verification: | + ./chip-tool descriptor read parts-list 1 0 + + [1641456769.777217][16238:16244] CHIP:DMG: SuppressResponse = true, + [1641456769.777267][16238:16244] CHIP:DMG: } + [1641456769.777839][16238:16244] CHIP:TOO: Descriptor.PartsList response: 2 entries + [1641456769.777925][16238:16244] CHIP:TOO: [1]: 1 + [1641456769.777978][16238:16244] CHIP:TOO: [2]: 2 + [1641456769.778080][16238:16244] CHIP:EM: Sending Standalone Ack for MessageCounter:2830202 on exchange 38042i + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DESC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DESC_2_2.yaml new file mode 100644 index 00000000000000..8850b14bd322d5 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DESC_2_2.yaml @@ -0,0 +1,116 @@ +# 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: 81.3. [TC-DESC-2.2] Descriptor Cluster Attributes with DUT as Client + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT reads DeviceTypeList from TH." + verification: | + ./chip-tool descriptor read device-list 1 0 + + [1651220525.982478][11001:11001] CHIP:EM: Handling via exchange: 13340r, Delegate: 0xaaaaacdc5098 + [1651220525.982545][11001:11001] CHIP:IM: Received Read request + [1651220525.982624][11001:11001] CHIP:DMG: ReadRequestMessage = + [1651220525.982667][11001:11001] CHIP:DMG: { + [1651220525.982703][11001:11001] CHIP:DMG: AttributePathIBs = + [1651220525.982745][11001:11001] CHIP:DMG: [ + [1651220525.982784][11001:11001] CHIP:DMG: AttributePathIB = + [1651220525.982840][11001:11001] CHIP:DMG: { + [1651220525.982892][11001:11001] CHIP:DMG: Endpoint = 0x0, + [1651220525.982948][11001:11001] CHIP:DMG: Cluster = 0x1d, + [1651220525.983005][11001:11001] CHIP:DMG: Attribute = 0x0000_0000, + [1651220525.983054][11001:11001] CHIP:DMG: } + [1651220525.983104][11001:11001] CHIP:DMG: + [1651220525.983149][11001:11001] CHIP:DMG: ], + [1651220525.983195][11001:11001] CHIP:DMG: + [1651220525.983238][11001:11001] CHIP:DMG: isFabricFiltered = true, + [1651220525.983279][11001:11001] CHIP:DMG: InteractionModelRevision = 1 + [1651220525.983318][11001:11001] CHIP:DMG: }, + disabled: true + + - label: "DUT reads ServerList from the TH" + verification: | + ./chip-tool descriptor read server-list 1 0 + + [1651220576.025574][11001:11001] CHIP:IM: Received Read request + [1651220576.025629][11001:11001] CHIP:DMG: ReadRequestMessage = + [1651220576.025655][11001:11001] CHIP:DMG: { + [1651220576.025677][11001:11001] CHIP:DMG: AttributePathIBs = + [1651220576.025703][11001:11001] CHIP:DMG: [ + [1651220576.025728][11001:11001] CHIP:DMG: AttributePathIB = + [1651220576.025763][11001:11001] CHIP:DMG: { + [1651220576.025792][11001:11001] CHIP:DMG: Endpoint = 0x0, + [1651220576.025823][11001:11001] CHIP:DMG: Cluster = 0x1d, + [1651220576.025856][11001:11001] CHIP:DMG: Attribute = 0x0000_0001, + [1651220576.025882][11001:11001] CHIP:DMG: } + [1651220576.025910][11001:11001] CHIP:DMG: + [1651220576.025936][11001:11001] CHIP:DMG: ], + [1651220576.025964][11001:11001] CHIP:DMG: + [1651220576.025990][11001:11001] CHIP:DMG: isFabricFiltered = true, + [1651220576.026015][11001:11001] CHIP:DMG: InteractionModelRevision = 1 + [1651220576.026039][11001:11001] CHIP:DMG: }, + disabled: true + + - label: "DUT reads ClientList from the TH" + verification: | + ./chip-tool descriptor read client-list 1 0 + + [1651220639.440188][11001:11001] CHIP:IM: Received Read request + [1651220639.440259][11001:11001] CHIP:DMG: ReadRequestMessage = + [1651220639.440298][11001:11001] CHIP:DMG: { + [1651220639.440330][11001:11001] CHIP:DMG: AttributePathIBs = + [1651220639.440367][11001:11001] CHIP:DMG: [ + [1651220639.440402][11001:11001] CHIP:DMG: AttributePathIB = + [1651220639.440447][11001:11001] CHIP:DMG: { + [1651220639.440491][11001:11001] CHIP:DMG: Endpoint = 0x0, + [1651220639.440539][11001:11001] CHIP:DMG: Cluster = 0x1d, + [1651220639.440589][11001:11001] CHIP:DMG: Attribute = 0x0000_0002, + [1651220639.440634][11001:11001] CHIP:DMG: } + [1651220639.440675][11001:11001] CHIP:DMG: + [1651220639.440715][11001:11001] CHIP:DMG: ], + [1651220639.440756][11001:11001] CHIP:DMG: + [1651220639.440794][11001:11001] CHIP:DMG: isFabricFiltered = true, + [1651220639.440830][11001:11001] CHIP:DMG: InteractionModelRevision = 1 + [1651220639.440864][11001:11001] CHIP:DMG: }, + disabled: true + + - label: "DUT reads PartsList from the TH" + verification: | + ./chip-tool descriptor read parts-list 1 0 + + [1651220678.308560][11001:11001] CHIP:EM: Handling via exchange: 30507r, Delegate: 0xaaaaacdc5098 + [1651220678.308658][11001:11001] CHIP:IM: Received Read request + [1651220678.308766][11001:11001] CHIP:DMG: ReadRequestMessage = + [1651220678.308828][11001:11001] CHIP:DMG: { + [1651220678.308882][11001:11001] CHIP:DMG: AttributePathIBs = + [1651220678.308945][11001:11001] CHIP:DMG: [ + [1651220678.309053][11001:11001] CHIP:DMG: AttributePathIB = + [1651220678.309137][11001:11001] CHIP:DMG: { + [1651220678.309210][11001:11001] CHIP:DMG: Endpoint = 0x0, + [1651220678.309284][11001:11001] CHIP:DMG: Cluster = 0x1d, + [1651220678.309355][11001:11001] CHIP:DMG: Attribute = 0x0000_0003, + [1651220678.309422][11001:11001] CHIP:DMG: } + [1651220678.309485][11001:11001] CHIP:DMG: + [1651220678.309558][11001:11001] CHIP:DMG: ], + [1651220678.309629][11001:11001] CHIP:DMG: + [1651220678.309693][11001:11001] CHIP:DMG: isFabricFiltered = true, + [1651220678.309755][11001:11001] CHIP:DMG: InteractionModelRevision = 1 + [1651220678.309810][11001:11001] CHIP:DMG: }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DIAGLOG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DIAGLOG_1_1.yaml new file mode 100644 index 00000000000000..fe97ed7390dd89 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DIAGLOG_1_1.yaml @@ -0,0 +1,99 @@ +# 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: 54.1.1. [TC-DIAGLOG-1.1] Global Attributes [DUT-Server] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission DUT to TH" + verification: | + + disabled: true + + - label: "TH reads the ClusterRevision from DUT" + verification: | + sudo ./chip-tool diagnosticlogs read cluster-revision 1 0 + + + [1649670811.424717][3655:3660] CHIP:DMG: + [1649670811.424750][3655:3660] CHIP:DMG: SuppressResponse = true, + [1649670811.424783][3655:3660] CHIP:DMG: InteractionModelRevision = 1 + [1649670811.424814][3655:3660] CHIP:DMG: } + [1649670811.424949][3655:3660] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: "TH reads the FeatureMap from DUT" + verification: | + sudo ./chip-tool diagnosticlogs read feature-map 1 0 + + + [1649670512.997198][3591:3596] CHIP:DMG: + [1649670512.997231][3591:3596] CHIP:DMG: SuppressResponse = true, + [1649670512.997265][3591:3596] CHIP:DMG: InteractionModelRevision = 1 + [1649670512.997329][3591:3596] CHIP:DMG: } + [1649670512.997468][3591:3596] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: "TH reads AttributeList from DUT" + verification: | + sudo ./chip-tool diagnosticlogs read attribute-list 1 0 + + + [1649670392.536999][3576:3581] CHIP:DMG: + [1649670392.537040][3576:3581] CHIP:DMG: SuppressResponse = true, + [1649670392.537081][3576:3581] CHIP:DMG: InteractionModelRevision = 1 + [1649670392.537119][3576:3581] CHIP:DMG: } + [1649670392.537695][3576:3581] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFFB DataVersion: 1216963889 + [1649670392.537917][3576:3581] CHIP:TOO: AttributeList: 3 entries + [1649670392.537985][3576:3581] CHIP:TOO: [1]: 65528 + [1649670392.538030][3576:3581] CHIP:TOO: [2]: 65529 + [1649670392.538071][3576:3581] CHIP:TOO: [3]: 65531 + disabled: true + + - label: "TH reads AcceptedCommandList from DUT" + verification: | + sudo ./chip-tool diagnosticlogs read accepted-command-list 1 0 + + + [1649670700.139000][3624:3629] CHIP:DMG: + [1649670700.139033][3624:3629] CHIP:DMG: SuppressResponse = true, + [1649670700.139066][3624:3629] CHIP:DMG: InteractionModelRevision = 1 + [1649670700.139097][3624:3629] CHIP:DMG: } + [1649670700.139387][3624:3629] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFF9 DataVersion: 1216963889 + [1649670700.139473][3624:3629] CHIP:TOO: AcceptedCommandList: 1 entries + [1649670700.139528][3624:3629] CHIP:TOO: [1]: 0 + disabled: true + + - label: "TH reads GeneratedCommandList from DUT" + verification: | + sudo ./chip-tool diagnosticlogs read generated-command-list 1 0 + + + [1649670576.965898][3602:3607] CHIP:DMG: + [1649670576.965927][3602:3607] CHIP:DMG: SuppressResponse = true, + [1649670576.965955][3602:3607] CHIP:DMG: InteractionModelRevision = 1 + [1649670576.965987][3602:3607] CHIP:DMG: } + [1649670576.966225][3602:3607] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFF8 DataVersion: 1216963889 + [1649670576.966330][3602:3607] CHIP:TOO: GeneratedCommandList: 0 entries + disabled: true + + - label: "TH reads EventList from DUT" + verification: | + Event-list is not implemented + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DIAGLOG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DIAGLOG_2_1.yaml new file mode 100644 index 00000000000000..ec09f82ff93c6a --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DIAGLOG_2_1.yaml @@ -0,0 +1,86 @@ +# 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: + 54.2.1. [TC-DIAGLOG-2.1] Diagnostic Logs Cluster Commands Checks with BDX + [DUT Server] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Reboot DUT" + verification: | + + disabled: true + + - label: "Commission DUT to TH" + verification: | + + disabled: true + + - label: + "TH sends RetrieveLogsRequest Command (Intent = + EndUserSupport,TransferFileDesignator = 'test.txt', RequestedProtocol= + BDX) to DUT" + verification: | + sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 "test.txt" 1 0 + + + [1651207333.385887][2441:2446] CHIP:DMG: StatusIB = + [1651207333.385937][2441:2446] CHIP:DMG: { + [1651207333.385985][2441:2446] CHIP:DMG: status = 0x00 (SUCCESS), + [1651207333.386037][2441:2446] CHIP:DMG: }, + disabled: true + + - label: "TH Sends BDX SendAccept message" + verification: | + Not Verifiable + disabled: true + + - label: + "TH sends RetrieveLogsRequest Command (Intent = + EndUserSupport,TransferFileDesignator = 'test.txt', RequestedProtocol= + BDX) to DUT" + verification: | + sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 "test.txt" 1 0 + + [1651207386.883337][2457:2462] CHIP:DMG: + [1651207386.883383][2457:2462] CHIP:DMG: StatusIB = + [1651207386.883443][2457:2462] CHIP:DMG: { + [1651207386.883498][2457:2462] CHIP:DMG: status = 0x00 (SUCCESS), + [1651207386.883563][2457:2462] CHIP:DMG: }, + disabled: true + + - label: + "TH Sends StatusReport(GeneralCode: FAILURE, ProtocolId: BDX, + ProtocolCode: TRANSFER_METHOD_NOT_SUPPORTED)" + verification: | + Not Verifiable + disabled: true + + - label: + "TH sends RetrieveLogsRequest Command (Intent = EndUserSupport, + RequestedProtocol = ResponsePayload) to DUT" + verification: | + sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + + [1651207416.783607][2465:2470] CHIP:DMG: StatusIB = + [1651207416.783676][2465:2470] CHIP:DMG: { + [1651207416.783722][2465:2470] CHIP:DMG: status = 0x00 (SUCCESS), + [1651207416.783766][2465:2470] CHIP:DMG: }, + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_Diag_Log_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DIAGLOG_2_2.yaml similarity index 90% rename from src/app/tests/suites/certification/Test_TC_Diag_Log_2_2.yaml rename to src/app/tests/suites/certification/Test_TC_DIAGLOG_2_2.yaml index 8540ed0e917ba4..9a0301a8034991 100644 --- a/src/app/tests/suites/certification/Test_TC_Diag_Log_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DIAGLOG_2_2.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 54.3. [TC-Diag Log-2.2] Diagnostic Logs Cluster Commands Checks without BDX + 54.2.2. [TC-DIAGLOG-2.2] Diagnostic Logs Cluster Commands Checks without BDX [DUT Server] config: @@ -29,10 +29,11 @@ tests: disabled: true - label: - "TH sends RetrieveLogsRequest Command (Intent = EndUserSupport, - TransferFileDesignator = ''test.txt'',RequestedProtocol= BDX) to DUT" + "TH sends RetrieveLogsRequest Command (Intent = + EndUserSupport,TransferFileDesignator = 'test.txt',RequestedProtocol= + BDX) to DUT" verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 [1646209207.288823][3223:3228] CHIP:DMG: InvokeResponseMessage = [1646209207.288859][3223:3228] CHIP:DMG: { diff --git a/src/app/tests/suites/certification/Test_TC_DIAGLOG_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DIAGLOG_3_1.yaml new file mode 100644 index 00000000000000..e7d417ca3f50fc --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DIAGLOG_3_1.yaml @@ -0,0 +1,94 @@ +# 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: + 54.3.1. [TC-DIAGLOG-3.1] Diagnostic Logs Cluster Commands Checks[DUT Client] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission DUT to TH" + verification: | + + disabled: true + + - label: "DUT sends RetrieveLogsRequest Command to TH" + verification: | + ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + + + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] StatusIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] ], + [1646215088532] [15387:2221674] CHIP: [DMG] + [1646215088532] [15387:2221674] CHIP: [DMG] InteractionModelRevision = 1 + [1646215088532] [15387:2221674] CHIP: [DMG] }, + [1646215088532] [15387:2221674] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 + disabled: true + + - label: "In case TH initiates a BDX Transfer" + verification: | + grl_matter@GRL-Matters-MacBook-Air debug % sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 "test.txt" 1 0 + + + [1646208340.192138][3171:3176] CHIP:DMG: + [1646208340.192177][3171:3176] CHIP:DMG: StatusIB = + [1646208340.192224][3171:3176] CHIP:DMG: { + [1646208340.192271][3171:3176] CHIP:DMG: status = 0x0, + [1646208340.192319][3171:3176] CHIP:DMG: }, + [1646208340.192362][3171:3176] CHIP:DMG: + [1646208340.192401][3171:3176] CHIP:DMG: }, + [1646208340.192450][3171:3176] CHIP:DMG: + [1646208340.192486][3171:3176] CHIP:DMG: }, + [1646208340.192530][3171:3176] CHIP:DMG: + [1646208340.192562][3171:3176] CHIP:DMG: ], + [1646208340.192602][3171:3176] CHIP:DMG: + [1646208340.192634][3171:3176] CHIP:DMG: InteractionModelRevision = 1 + [1646208340.192665][3171:3176] CHIP:DMG: }, + [1646208340.192744][3171:3176] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 + disabled: true + + - label: "In case TH does not initiate BDX Transfer" + verification: | + ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + + + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] StatusIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] ], + [1646215088532] [15387:2221674] CHIP: [DMG] + [1646215088532] [15387:2221674] CHIP: [DMG] InteractionModelRevision = 1 + [1646215088532] [15387:2221674] CHIP: [DMG] }, + [1646215088532] [15387:2221674] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_Diag_Log_2_1.yaml b/src/app/tests/suites/certification/Test_TC_Diag_Log_2_1.yaml deleted file mode 100644 index 579d1f19fea7f9..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_Diag_Log_2_1.yaml +++ /dev/null @@ -1,165 +0,0 @@ -# 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: - 54.2. [TC-Diag Log-2.1] Diagnostic Logs Cluster Commands Checks with BDX - [DUT Server] - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Reboot DUT" - verification: | - - disabled: true - - - label: "Commission DUT to TH" - verification: | - - disabled: true - - - label: - "TH sends RetrieveLogsRequest Command (Intent = - EndUserSupport,TransferFileDesignator = ''test.txt'', - RequestedProtocol= BDX) to DUT" - verification: | - sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 "test.txt" 1 0 - - [1646208340.191466][3171:3176] CHIP:DMG: ICR moving to [ResponseRe] - [1646208340.191525][3171:3176] CHIP:DMG: InvokeResponseMessage = - [1646208340.191558][3171:3176] CHIP:DMG: { - [1646208340.191589][3171:3176] CHIP:DMG: suppressResponse = false, - [1646208340.191622][3171:3176] CHIP:DMG: InvokeResponseIBs = - [1646208340.191663][3171:3176] CHIP:DMG: [ - [1646208340.191696][3171:3176] CHIP:DMG: InvokeResponseIB = - [1646208340.191743][3171:3176] CHIP:DMG: { - [1646208340.191778][3171:3176] CHIP:DMG: CommandStatusIB = - [1646208340.191819][3171:3176] CHIP:DMG: { - [1646208340.191862][3171:3176] CHIP:DMG: CommandPathIB = - [1646208340.191907][3171:3176] CHIP:DMG: { - [1646208340.191953][3171:3176] CHIP:DMG: EndpointId = 0x0, - [1646208340.192004][3171:3176] CHIP:DMG: ClusterId = 0x32, - [1646208340.192049][3171:3176] CHIP:DMG: CommandId = 0x0, - [1646208340.192093][3171:3176] CHIP:DMG: }, - [1646208340.192138][3171:3176] CHIP:DMG: - [1646208340.192177][3171:3176] CHIP:DMG: StatusIB = - [1646208340.192224][3171:3176] CHIP:DMG: { - [1646208340.192271][3171:3176] CHIP:DMG: status = 0x0, - [1646208340.192319][3171:3176] CHIP:DMG: }, - [1646208340.192362][3171:3176] CHIP:DMG: - [1646208340.192401][3171:3176] CHIP:DMG: }, - [1646208340.192450][3171:3176] CHIP:DMG: - [1646208340.192486][3171:3176] CHIP:DMG: }, - [1646208340.192530][3171:3176] CHIP:DMG: - [1646208340.192562][3171:3176] CHIP:DMG: ], - [1646208340.192602][3171:3176] CHIP:DMG: - [1646208340.192634][3171:3176] CHIP:DMG: InteractionModelRevision = 1 - [1646208340.192665][3171:3176] CHIP:DMG: }, - [1646208340.192744][3171:3176] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 - disabled: true - - - label: "TH Sends BDX SendAccept message" - verification: | - - disabled: true - - - label: - "TH sends RetrieveLogsRequest Command (Intent = - EndUserSupport,TransferFileDesignator = ''test.txt'', - RequestedProtocol= BDX) to DUT" - verification: | - sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 "test.txt" 1 0 - - [1646208340.191466][3171:3176] CHIP:DMG: ICR moving to [ResponseRe] - [1646208340.191525][3171:3176] CHIP:DMG: InvokeResponseMessage = - [1646208340.191558][3171:3176] CHIP:DMG: { - [1646208340.191589][3171:3176] CHIP:DMG: suppressResponse = false, - [1646208340.191622][3171:3176] CHIP:DMG: InvokeResponseIBs = - [1646208340.191663][3171:3176] CHIP:DMG: [ - [1646208340.191696][3171:3176] CHIP:DMG: InvokeResponseIB = - [1646208340.191743][3171:3176] CHIP:DMG: { - [1646208340.191778][3171:3176] CHIP:DMG: CommandStatusIB = - [1646208340.191819][3171:3176] CHIP:DMG: { - [1646208340.191862][3171:3176] CHIP:DMG: CommandPathIB = - [1646208340.191907][3171:3176] CHIP:DMG: { - [1646208340.191953][3171:3176] CHIP:DMG: EndpointId = 0x0, - [1646208340.192004][3171:3176] CHIP:DMG: ClusterId = 0x32, - [1646208340.192049][3171:3176] CHIP:DMG: CommandId = 0x0, - [1646208340.192093][3171:3176] CHIP:DMG: }, - [1646208340.192138][3171:3176] CHIP:DMG: - [1646208340.192177][3171:3176] CHIP:DMG: StatusIB = - [1646208340.192224][3171:3176] CHIP:DMG: { - [1646208340.192271][3171:3176] CHIP:DMG: status = 0x0, - [1646208340.192319][3171:3176] CHIP:DMG: }, - [1646208340.192362][3171:3176] CHIP:DMG: - [1646208340.192401][3171:3176] CHIP:DMG: }, - [1646208340.192450][3171:3176] CHIP:DMG: - [1646208340.192486][3171:3176] CHIP:DMG: }, - [1646208340.192530][3171:3176] CHIP:DMG: - [1646208340.192562][3171:3176] CHIP:DMG: ], - [1646208340.192602][3171:3176] CHIP:DMG: - [1646208340.192634][3171:3176] CHIP:DMG: InteractionModelRevision = 1 - [1646208340.192665][3171:3176] CHIP:DMG: }, - [1646208340.192744][3171:3176] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 - disabled: true - - - label: - "TH Sends StatusReport(GeneralCode: FAILURE, ProtocolId: BDX, - ProtocolCode: TRANSFER_METHOD_NOT_SUPPORTED" - verification: | - - disabled: true - - - label: - "TH sends RetrieveLogsRequest Command (Intent = EndUserSupport, - RequestedProtocol = ResponsePayload) to DUT" - verification: | - ubuntu@ubuntu:~/apps$ sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 - - [1646209207.288760][3223:3228] CHIP:DMG: ICR moving to [ResponseRe] - [1646209207.288823][3223:3228] CHIP:DMG: InvokeResponseMessage = - [1646209207.288859][3223:3228] CHIP:DMG: { - [1646209207.288893][3223:3228] CHIP:DMG: suppressResponse = false, - [1646209207.288928][3223:3228] CHIP:DMG: InvokeResponseIBs = - [1646209207.288972][3223:3228] CHIP:DMG: [ - [1646209207.289006][3223:3228] CHIP:DMG: InvokeResponseIB = - [1646209207.289056][3223:3228] CHIP:DMG: { - [1646209207.289096][3223:3228] CHIP:DMG: CommandStatusIB = - [1646209207.289146][3223:3228] CHIP:DMG: { - [1646209207.289189][3223:3228] CHIP:DMG: CommandPathIB = - [1646209207.289237][3223:3228] CHIP:DMG: { - [1646209207.289285][3223:3228] CHIP:DMG: EndpointId = 0x0, - [1646209207.289338][3223:3228] CHIP:DMG: ClusterId = 0x32, - [1646209207.289391][3223:3228] CHIP:DMG: CommandId = 0x0, - [1646209207.289434][3223:3228] CHIP:DMG: }, - [1646209207.289479][3223:3228] CHIP:DMG: - [1646209207.289521][3223:3228] CHIP:DMG: StatusIB = - [1646209207.289573][3223:3228] CHIP:DMG: { - [1646209207.289619][3223:3228] CHIP:DMG: status = 0x0, - [1646209207.289666][3223:3228] CHIP:DMG: }, - [1646209207.289715][3223:3228] CHIP:DMG: - [1646209207.289756][3223:3228] CHIP:DMG: }, - [1646209207.289804][3223:3228] CHIP:DMG: - [1646209207.289842][3223:3228] CHIP:DMG: }, - [1646209207.289889][3223:3228] CHIP:DMG: - [1646209207.289923][3223:3228] CHIP:DMG: ], - [1646209207.289966][3223:3228] CHIP:DMG: - [1646209207.289999][3223:3228] CHIP:DMG: InteractionModelRevision = 1 - [1646209207.290032][3223:3228] CHIP:DMG: }, - [1646209207.290116][3223:3228] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_Diag_Log_2_3.yaml b/src/app/tests/suites/certification/Test_TC_Diag_Log_2_3.yaml deleted file mode 100644 index d57c3a3aa10dd7..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_Diag_Log_2_3.yaml +++ /dev/null @@ -1,105 +0,0 @@ -# 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: - 54.4. [TC-Diag Log-2.3] Diagnostic Logs Cluster Commands Checks[DUT Client] - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Commission DUT to TH" - verification: | - - disabled: true - - - label: "DUT sends RetrieveLogsRequest Command to TH" - verification: | - grl_matter@GRL-Matters-MacBook-Air debug % ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 - - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseMessage = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] suppressResponse = false, - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIBs = - [1646215088531] [15387:2221674] CHIP: [DMG] [ - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] CommandStatusIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] CommandPathIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] EndpointId = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] ClusterId = 0x32, - [1646215088531] [15387:2221674] CHIP: [DMG] CommandId = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] StatusIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] ], - [1646215088532] [15387:2221674] CHIP: [DMG] - [1646215088532] [15387:2221674] CHIP: [DMG] InteractionModelRevision = 1 - [1646215088532] [15387:2221674] CHIP: [DMG] }, - [1646215088532] [15387:2221674] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 - disabled: true - - - label: "In case TH initiates a BDX Transfer" - verification: | - - disabled: true - - - label: "In case TH does not initiate BDX Transfer" - verification: | - grl_matter@GRL-Matters-MacBook-Air debug % ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 - - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseMessage = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] suppressResponse = false, - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIBs = - [1646215088531] [15387:2221674] CHIP: [DMG] [ - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] CommandStatusIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] CommandPathIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] EndpointId = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] ClusterId = 0x32, - [1646215088531] [15387:2221674] CHIP: [DMG] CommandId = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] StatusIB = - [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] }, - [1646215088531] [15387:2221674] CHIP: [DMG] - [1646215088531] [15387:2221674] CHIP: [DMG] ], - [1646215088532] [15387:2221674] CHIP: [DMG] - [1646215088532] [15387:2221674] CHIP: [DMG] InteractionModelRevision = 1 - [1646215088532] [15387:2221674] CHIP: [DMG] }, - [1646215088532] [15387:2221674] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_LO_2_1.yaml b/src/app/tests/suites/certification/Test_TC_LO_2_1.yaml new file mode 100644 index 00000000000000..2f91991af832ea --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_LO_2_1.yaml @@ -0,0 +1,145 @@ +# 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: + 100.2.1. [TC-LO-2.1] Localization Configuration Cluster + Attributes[DUT-Server] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "TH reads SupportedLocales attribute from DUT" + verification: | + ./chip-tool localizationconfiguration read supported-locales 1 0 + + [1651129546.170573][174082:174087] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_0002 DataVersion: 3111654481 + [1651129546.170622][174082:174087] CHIP:TOO: SupportedLocales: 8 entries + [1651129546.170636][174082:174087] CHIP:TOO: [1]: en-US + [1651129546.170647][174082:174087] CHIP:TOO: [2]: de-DE + [1651129546.170656][174082:174087] CHIP:TOO: [3]: fr-FR + [1651129546.170664][174082:174087] CHIP:TOO: [4]: en-GB + [1651129546.170672][174082:174087] CHIP:TOO: [5]: es-ES + [1651129546.170681][174082:174087] CHIP:TOO: [6]: zh-CN + [1651129546.170689][174082:174087] CHIP:TOO: [7]: it-IT + [1651129546.170697][174082:174087] CHIP:TOO: [8]: ja-JP + disabled: true + + - label: "TH writes 'newsupportedlocales' to SupportedLocales attribute" + verification: | + ./chip-tool any write-by-id 0x002B 1 newsupportedlocales 1 0 + + [1651035119.852381][2747:2752] CHIP:DMG: InteractionModelRevision = 1 + [1651035119.852415][2747:2752] CHIP:DMG: } + [1651035119.852510][2747:2752] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR) + [1651035119.852576][2747:2752] CHIP:DMG: WriteClient moving to [AwaitingDe] + disabled: true + + - label: "TH reads SupportedLocales attribute" + verification: | + ./chip-tool localizationconfiguration read supported-locales 1 0 + [1645772065.848431][3762:3767] CHIP:TOO: SupportedLocales: 8 entries + [1645772065.850249][3762:3767] CHIP:TOO: [1]: en-US + [1645772065.850298][3762:3767] CHIP:TOO: [2]: de-DE + [1645772065.850333][3762:3767] CHIP:TOO: [3]: fr-FR + [1645772065.850368][3762:3767] CHIP:TOO: [4]: en-GB + [1645772065.850402][3762:3767] CHIP:TOO: [5]: es-ES + [1645772065.850435][3762:3767] CHIP:TOO: [6]: zh-CN + [1645772065.850469][3762:3767] CHIP:TOO: [7]: it-IT + [1645772065.850502][3762:3767] CHIP:TOO: [8]: ja-JP + [1645772065.851668][3762:3767] CHIP:EM: Sending Standalone Ack for MessageCounter:4927804 on exchange 64827i + disabled: true + + - label: "TH reads ActiveLocale Attribute from the DUT" + verification: | + ./chip-tool localizationconfiguration read active-locale 1 0 + + + [1651035208.064278][2761:2766] CHIP:DMG: SuppressResponse = true, + [1651035208.064316][2761:2766] CHIP:DMG: InteractionModelRevision = 1 + [1651035208.064350][2761:2766] CHIP:DMG: } + [1651035208.064552][2761:2766] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_0001 DataVersion: 1509240084 + [1651035208.064613][2761:2766] CHIP:TOO: ActiveLocale: en-US + disabled: true + + - label: + "TH writes new string not present in SupportedLocale attribute to + ActiveLocale Attribute." + verification: | + ./chip-tool localizationconfiguration write active-locale fw-GB 1 0 + + + [[1651130076.882814][174458:174463] CHIP:DMG: WriteResponseMessage = + [1651130076.882819][174458:174463] CHIP:DMG: { + [1651130076.882824][174458:174463] CHIP:DMG: AttributeStatusIBs = + [1651130076.882832][174458:174463] CHIP:DMG: [ + [1651130076.882835][174458:174463] CHIP:DMG: AttributeStatusIB = + [1651130076.882842][174458:174463] CHIP:DMG: { + [1651130076.882846][174458:174463] CHIP:DMG: AttributePathIB = + [1651130076.882850][174458:174463] CHIP:DMG: { + [1651130076.882855][174458:174463] CHIP:DMG: Endpoint = 0x0, + [1651130076.882861][174458:174463] CHIP:DMG: Cluster = 0x2b, + [1651130076.882867][174458:174463] CHIP:DMG: Attribute = 0x0000_0001, + [1651130076.882871][174458:174463] CHIP:DMG: } + [1651130076.882877][174458:174463] CHIP:DMG: + [1651130076.882881][174458:174463] CHIP:DMG: StatusIB = + [1651130076.882885][174458:174463] CHIP:DMG: { + [1651130076.882889][174458:174463] CHIP:DMG: status = 0x87 (CONSTRAINT_ERROR), + [1651130076.882893][174458:174463] CHIP:DMG: }, + [1651130076.882899][174458:174463] CHIP:DMG: + [1651130076.882903][174458:174463] CHIP:DMG: }, + [1651130076.882908][174458:174463] CHIP:DMG: + [1651130076.882911][174458:174463] CHIP:DMG: ], + [1651130076.882916][174458:174463] CHIP:DMG: + [1651130076.882920][174458:174463] CHIP:DMG: InteractionModelRevision = 1 + [1651130076.882923][174458:174463] CHIP:DMG: } + [1651130076.882938][174458:174463] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR) + [1651130076.882946][174458:174463] CHIP:DMG: WriteClient moving to [AwaitingDe] + [1651130076.882957][174458:174463] CHIP:EM: Sending Standalone Ack for MessageCounter + disabled: true + + - label: + "TH writes new string present in SupportedLocale attribute to + ActiveLocale Attribute" + verification: | + ./chip-tool localizationconfiguration write active-locale fr-FR 1 0 + + [1651035259.959116][2776:2781] CHIP:DMG: StatusIB = + [1651035259.959158][2776:2781] CHIP:DMG: { + [1651035259.959195][2776:2781] CHIP:DMG: status = 0x00 (SUCCESS), + [1651035259.959234][2776:2781] CHIP:DMG: }, + [1651035259.959271][2776:2781] CHIP:DMG: + [1651035259.959304][2776:2781] CHIP:DMG: }, + [1651035259.959343][2776:2781] CHIP:DMG: + [1651035259.959372][2776:2781] CHIP:DMG: ], + [1651035259.959409][2776:2781] CHIP:DMG: + [1651035259.959438][2776:2781] CHIP:DMG: InteractionModelRevision = 1 + [1651035259.959466][2776:2781] CHIP:DMG: } + [1651035259.959552][2776:2781] CHIP:DMG: WriteClient moving to [AwaitingDe] + disabled: true + + - label: "TH Reads ActiveLocale" + verification: | + ./chip-tool localizationconfiguration read active-locale 1 0 + + [1645772597.252904][3816:3821] CHIP:DMG: + [1645772597.252948][3816:3821] CHIP:DMG: SuppressResponse = true, + [1645772597.252981][3816:3821] CHIP:DMG: InteractionModelRevision = 1 + [1645772597.253024][3816:3821] CHIP:DMG: } + [1645772597.253230][3816:3821] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_0001DataVersion: 3479138639 + [1645772597.253293][3816:3821] CHIP:TOO: ActiveLocale: fr-FR + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_LO_3_1.yaml b/src/app/tests/suites/certification/Test_TC_LO_3_1.yaml new file mode 100644 index 00000000000000..efba25832b92d5 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_LO_3_1.yaml @@ -0,0 +1,83 @@ +# 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: + 100.3.1. [TC-LO-3.1] Localization Configuration Cluster + Attributes[DUT-Client] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT reads SupportedLocales attribute from TH" + verification: | + ./chip-tool localizationconfiguration read supported-locales 1 0 + + [1651227647.876273][2825:2825] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:15793025 on exchange 646r + [1651227647.876333][2825:2825] CHIP:EM: Handling via exchange: 646r, Delegate: 0xaaaae659a088 + [1651227647.876468][2825:2825] CHIP:IM: Received Read request + [1651227647.876540][2825:2825] CHIP:DMG: ReadRequestMessage = + [1651227647.876583][2825:2825] CHIP:DMG: { + [1651227647.876617][2825:2825] CHIP:DMG: AttributePathIBs = + [1651227647.876660][2825:2825] CHIP:DMG: [ + [1651227647.876699][2825:2825] CHIP:DMG: AttributePathIB = + [1651227647.876754][2825:2825] CHIP:DMG: { + [1651227647.876801][2825:2825] CHIP:DMG: Endpoint = 0x0, + [1651227647.876854][2825:2825] CHIP:DMG: Cluster = 0x2b, + [1651227647.876906][2825:2825] CHIP:DMG: Attribute = 0x0000_0002, + [1651227647.876954][2825:2825] CHIP:DMG: } + [1651227647.877002][2825:2825] CHIP:DMG: + [1651227647.877046][2825:2825] CHIP:DMG: ], + [1651227647.877091][2825:2825] CHIP:DMG: + [1651227647.877134][2825:2825] CHIP:DMG: isFabricFiltered = true, + [1651227647.877175][2825:2825] CHIP:DMG: InteractionModelRevision = 1 + [1651227647.877214][2825:2825] CHIP:DMG: }, + disabled: true + + - label: "DUT reads ActiveLocale attribute from the TH" + verification: | + ./chip-tool localizationconfiguration read active-locale 1 0 + + [1651564394.279517][8392:8397] CHIP:DMG: ReportDataMessage = + [1651564394.279566][8392:8397] CHIP:DMG: { + [1651564394.279606][8392:8397] CHIP:DMG: AttributeReportIBs = + [1651564394.279662][8392:8397] CHIP:DMG: [ + [1651564394.279706][8392:8397] CHIP:DMG: AttributeReportIB = + [1651564394.279771][8392:8397] CHIP:DMG: { + [1651564394.279821][8392:8397] CHIP:DMG: AttributeDataIB = + [1651564394.279884][8392:8397] CHIP:DMG: { + [1651564394.279944][8392:8397] CHIP:DMG: DataVersion = 0x66e5e842, + [1651564394.280008][8392:8397] CHIP:DMG: AttributePathIB = + [1651564394.280069][8392:8397] CHIP:DMG: { + [1651564394.280176][8392:8397] CHIP:DMG: Endpoint = 0x0, + [1651564394.280245][8392:8397] CHIP:DMG: Cluster = 0x2b, + [1651564394.280314][8392:8397] CHIP:DMG: Attribute = 0x0000_0001, + [1651564394.280376][8392:8397] CHIP:DMG: } + [1651564394.280440][8392:8397] CHIP:DMG: + [1651564394.280509][8392:8397] CHIP:DMG: Data = "en-US", + [1651564394.280574][8392:8397] CHIP:DMG: }, + [1651564394.280641][8392:8397] CHIP:DMG: + [1651564394.280691][8392:8397] CHIP:DMG: }, + [1651564394.280750][8392:8397] CHIP:DMG: + [1651564394.280797][8392:8397] CHIP:DMG: ], + [1651564394.280853][8392:8397] CHIP:DMG: + [1651564394.280898][8392:8397] CHIP:DMG: SuppressResponse = true, + [1651564394.280944][8392:8397] CHIP:DMG: InteractionModelRevision = 1 + [1651564394.280986][8392:8397] CHIP:DMG: } + [1651564394.281211][8392:8397] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_0001 DataVersion: 1726343234 + [1651564394.281289][8392:8397] CHIP:TOO: ActiveLocale: en-US + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml index 158d9e2dcaa907..0776af6ddfa918 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml @@ -23,13 +23,14 @@ config: tests: - label: "TH_CR1 starts a commissioning process with TH_CE" verification: | - 1. Provision the device using 1st controller chip-tool on the raspi (use above instructions) + "1. Provision the device using 1st controller chip-tool on the raspi (use above instructions) + " disabled: true - label: "TH_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM (Enhanced Commissioning - Method)" + Method)." verification: | On 1st controller using chip tool, open commissioning window using ECM @@ -62,80 +63,30 @@ tests: verification: | On 1st controller using chip tool read fabricList - ./chip-tool operationalcredentials read fabrics-list 1 0 - - CHIP:DMG: ReportData = - [1635690007.805198][3613:3618] CHIP:DMG: { - [1635690007.805247][3613:3618] CHIP:DMG: AttributeDataList = - [1635690007.805286][3613:3618] CHIP:DMG: [ - [1635690007.805334][3613:3618] CHIP:DMG: AttributeDataElement = - [1635690007.805500][3613:3618] CHIP:DMG: { - [1635690007.805541][3613:3618] CHIP:DMG: AttributePath = - [1635690007.805599][3613:3618] CHIP:DMG: { - [1635690007.805648][3613:3618] CHIP:DMG: NodeId = 0x1, - [1635690007.805712][3613:3618] CHIP:DMG: EndpointId = 0x0, - [1635690007.805763][3613:3618] CHIP:DMG: ClusterId = 0x3e, - [1635690007.805826][3613:3618] CHIP:DMG: FieldTag = 0x0000_0001, - [1635690007.805881][3613:3618] CHIP:DMG: } - [1635690007.805931][3613:3618] CHIP:DMG: - [1635690007.805987][3613:3618] CHIP:DMG: Data = [ - [1635690007.806032][3613:3618] CHIP:DMG: - [1635690007.806085][3613:3618] CHIP:DMG: { - [1635690007.806136][3613:3618] CHIP:DMG: 0x0 = 1, - [1635690007.806201][3613:3618] CHIP:DMG: 0x1 = [ - [1635690007.806283][3613:3618] CHIP:DMG: 0x4, 0x5d, 0x4, 0xcb, 0xc5, 0xe2, 0x30, 0xb2, 0x3b, 0xee, 0x54, 0xc7, 0xff, 0x3d, 0xdc, 0x65, 0x31, 0x67, 0x69, 0xa8, 0x90, 0x58, 0x5b, 0x83, 0x19, 0x85, 0x8d, 0x1d, 0x3a, 0x63, 0xba, 0x62, 0x54, 0xf8, 0x30, 0x18, 0xb3, 0x68, 0x7b, 0x66, 0x9, 0x94, - [1635690007.806359][3613:3618] CHIP:DMG: ] - [1635690007.806412][3613:3618] CHIP:DMG: 0x2 = 54600, - [1635690007.806474][3613:3618] CHIP:DMG: 0x3 = 0, - [1635690007.806530][3613:3618] CHIP:DMG: 0x4 = 1, - [1635690007.806597][3613:3618] CHIP:DMG: 0x5 = "", - [1635690007.806661][3613:3618] CHIP:DMG: }, - [1635690007.806706][3613:3618] CHIP:DMG: { - [1635690007.806763][3613:3618] CHIP:DMG: 0x0 = 2, - [1635690007.806817][3613:3618] CHIP:DMG: 0x1 = [ - [1635690007.806902][3613:3618] CHIP:DMG: 0x4, 0xc1, 0x79, 0xcc, 0x1d, 0xc3, 0xdc, 0x71, 0x74, 0xd8, 0x99, 0xcb, 0xef, 0x54, 0xa0, 0xb6, 0xb9, 0x91, 0x37, 0x6d, 0x5d, 0xf1, 0x80, 0x12, 0xa6, 0x4e, 0xc9, 0x7e, 0x34, 0x6a, 0x8d, 0x6b, 0x7a, 0x8e, 0xe2, 0xee, 0x7c, 0xd0, 0x24, 0xa2, 0x62, 0x1d - [1635690007.806980][3613:3618] CHIP:DMG: ] - [1635690007.807131][3613:3618] CHIP:DMG: 0x2 = 0, - [1635690007.807222][3613:3618] CHIP:DMG: 0x3 = 0, - [1635690007.807287][3613:3618] CHIP:DMG: 0x4 = 1, - [1635690007.807361][3613:3618] CHIP:DMG: 0x5 = "", - [1635690007.807437][3613:3618] CHIP:DMG: }, - [1635690007.807503][3613:3618] CHIP:DMG: ], - [1635690007.807586][3613:3618] CHIP:DMG: DataElementVersion = 0x0, - [1635690007.807636][3613:3618] CHIP:DMG: }, - [1635690007.807720][3613:3618] CHIP:DMG: - [1635690007.807765][3613:3618] CHIP:DMG: ], - [1635690007.807846][3613:3618] CHIP:DMG: - [1635690007.807887][3613:3618] CHIP:DMG: } - [1635690007.808091][3613:3618] CHIP:ZCL: ReadAttributesResponse: - [1635690007.808148][3613:3618] CHIP:ZCL: ClusterId: 0x0000_003E - [1635690007.808193][3613:3618] CHIP:ZCL: attributeId: 0x0000_0001 - [1635690007.808234][3613:3618] CHIP:ZCL: status: Success (0x0000) - [1635690007.808266][3613:3618] CHIP:ZCL: attribute TLV Type: 0x16 - [1635690007.808338][3613:3618] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries - [1635690007.808661][3613:3618] CHIP:TOO: FabricDescriptor[1]: - [1635690007.808711][3613:3618] CHIP:TOO: fabricIndex: 1 - [1635690007.808768][3613:3618] CHIP:ZCL: RootPublicKey: 65 - [1635690007.808805][3613:3618] CHIP:TOO: vendorId: 54600 - [1635690007.808843][3613:3618] CHIP:TOO: fabricId: 0 - [1635690007.808879][3613:3618] CHIP:TOO: nodeId: 1 - [1635690007.808930][3613:3618] CHIP:ZCL: Label: - [1635690007.808984][3613:3618] CHIP:TOO: FabricDescriptor[2]: - [1635690007.809040][3613:3618] CHIP:TOO: fabricIndex: 2 - [1635690007.809078][3613:3618] CHIP:ZCL: RootPublicKey: 65 - [1635690007.809115][3613:3618] CHIP:TOO: vendorId: 0 - [1635690007.809168][3613:3618] CHIP:TOO: fabricId: 0 - [1635690007.809206][3613:3618] CHIP:TOO: nodeId: 1 - [1635690007.809242][3613:3618] CHIP:ZCL: Label: - [1635690007.809382][3613:3618] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 8901i - [1635690007.809494][3613:3618] CHIP:IN: Prepared encrypted message 0xaaaae7c60d10 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 8901i with MessageCounter:1. + ./chip-tool operationalcredentials read fabrics 1 0 --fabric-filtered 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3621507058 + [1649245801.244173][10091:10096] CHIP:TOO: Fabrics: 1 entries + [1649245801.244305][10091:10096] CHIP:TOO: [1]: { + [1649245801.244348][10091:10096] CHIP:TOO: RootPublicKey: 045541017FCEFD0D83963C9ED7F21380C6B789EB989B5D20DC318FAE92D60D0F685666505E9C4F86C49ADC71AB3A8B9B44FD43214CF9BE2B6D47DE01F28FE1544F + [1649245801.244400][10091:10096] CHIP:TOO: VendorId: 65521 + [1649245801.244431][10091:10096] CHIP:TOO: FabricId: 1 + [1649245801.244461][10091:10096] CHIP:TOO: NodeId: 1 + [1649245801.244491][10091:10096] CHIP:TOO: Label: + [1649245801.244521][10091:10096] CHIP:TOO: FabricIndex: 1 + [1649245801.244552][10091:10096] CHIP:TOO: } + [1649245801.244671][10091:10096] CHIP:EM: Sending Standalone Ack for MessageCounter:8407998 on exchange 12989i disabled: true - label: "DUT_CR2 starts a commissioning process with TH_CE" verification: | On 2nd controller, using chip-tool connect using manual code. Below is the example when using chip tool as controller (considering 35998938564 as the manual code generated by 1st controller) - ./chip-tool pairing code 2 35998938564 + ./chip-tool pairing manualcode 2 35998938564 + + Verify whether you got below message in the log of TH + + Device commissioning completed with success disabled: true - label: @@ -147,74 +98,69 @@ tests: Below is the example when using chip tool as controller ./chip-tool basic write node-label te5new 2 0 - CHIP: [EM] Received message of type 0x7 with protocolId (0, 1) and MessageCounter:1 on exchange 44858i - [1635692170347] [30464:4576577] CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 44858i - [1635692170347] [30464:4576577] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 44858i - [1635692170347] [30464:4576577] CHIP: [DMG] WriteResponse = - [1635692170347] [30464:4576577] CHIP: [DMG] { - [1635692170347] [30464:4576577] CHIP: [DMG] AttributeStatusList = - [1635692170347] [30464:4576577] CHIP: [DMG] [ - [1635692170347] [30464:4576577] CHIP: [DMG] AttributeStatusIB = - [1635692170347] [30464:4576577] CHIP: [DMG] { - [1635692170347] [30464:4576577] CHIP: [DMG] AttributePath = - [1635692170347] [30464:4576577] CHIP: [DMG] { - [1635692170347] [30464:4576577] CHIP: [DMG] FieldTag = 0x0000_0005, - [1635692170347] [30464:4576577] CHIP: [DMG] NodeId = 0x0, - [1635692170347] [30464:4576577] CHIP: [DMG] ClusterId = 0x28, - [1635692170347] [30464:4576577] CHIP: [DMG] EndpointId = 0x0, - [1635692170347] [30464:4576577] CHIP: [DMG] } - [1635692170347] [30464:4576577] CHIP: [DMG] - [1635692170347] [30464:4576577] CHIP: [DMG] StatusIB = - [1635692170347] [30464:4576577] CHIP: [DMG] { - [1635692170347] [30464:4576577] CHIP: [DMG] status = 0x0, - [1635692170347] [30464:4576577] CHIP: [DMG] }, - [1635692170347] [30464:4576577] CHIP: [DMG] - [1635692170347] [30464:4576577] CHIP: [DMG] }, - [1635692170347] [30464:4576577] CHIP: [DMG] - [1635692170347] [30464:4576577] CHIP: [DMG] ], - [1635692170347] [30464:4576577] CHIP: [DMG] - [1635692170347] [30464:4576577] CHIP: [DMG] } - [1635692170347] [30464:4576577] CHIP: [ZCL] WriteResponse: - [1635692170347] [30464:4576577] CHIP: [ZCL] status: Success (0x0000) - [1635692170347] [30464:4576577] CHIP: [TOO] Default Success Response - [1635692170347] [30464:4576577] CHIP: [DMG] WriteClient moving to [Uninitiali] - [1635692170347] [30464:4576577] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 44858i + CHIP:DMG: WriteClient moving to [ResponseRe] + [1649671460.431199][20958:20963] CHIP:DMG: WriteResponseMessage = + [1649671460.431217][20958:20963] CHIP:DMG: { + [1649671460.431230][20958:20963] CHIP:DMG: AttributeStatusIBs = + [1649671460.431252][20958:20963] CHIP:DMG: [ + [1649671460.431266][20958:20963] CHIP:DMG: AttributeStatusIB = + [1649671460.431282][20958:20963] CHIP:DMG: { + [1649671460.431297][20958:20963] CHIP:DMG: AttributePathIB = + [1649671460.431314][20958:20963] CHIP:DMG: { + [1649671460.431331][20958:20963] CHIP:DMG: Endpoint = 0x0, + [1649671460.431347][20958:20963] CHIP:DMG: Cluster = 0x28, + [1649671460.431364][20958:20963] CHIP:DMG: Attribute = 0x0000_0005, + [1649671460.431380][20958:20963] CHIP:DMG: } + [1649671460.431403][20958:20963] CHIP:DMG: + [1649671460.431422][20958:20963] CHIP:DMG: StatusIB = + [1649671460.431445][20958:20963] CHIP:DMG: { + [1649671460.431467][20958:20963] CHIP:DMG: status = 0x00 (SUCCESS), + [1649671460.431488][20958:20963] CHIP:DMG: }, + [1649671460.431511][20958:20963] CHIP:DMG: + [1649671460.431530][20958:20963] CHIP:DMG: }, + [1649671460.431556][20958:20963] CHIP:DMG: + [1649671460.431570][20958:20963] CHIP:DMG: ], + [1649671460.431593][20958:20963] CHIP:DMG: + [1649671460.431607][20958:20963] CHIP:DMG: InteractionModelRevision = 1 + [1649671460.431620][20958:20963] CHIP:DMG: } + [1649671460.431685][20958:20963] CHIP:DMG: WriteClient moving to [AwaitingDe] + [1649671460.431729][20958:20963] CHIP:EM: Sending Standalone Ack for MessageCounter:11088724 on exchange 41848i + + Verify read attribute returns the updated value written ./chip-tool basic read node-label 1 0 - CHIP: [EM] Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 52334i - [1635692600286] [30469:4578600] CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 52334i - [1635692600286] [30469:4578600] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 52334i - [1635692600286] [30469:4578600] CHIP: [DMG] ReportData = - [1635692600286] [30469:4578600] CHIP: [DMG] { - [1635692600286] [30469:4578600] CHIP: [DMG] AttributeDataList = - [1635692600286] [30469:4578600] CHIP: [DMG] [ - [1635692600286] [30469:4578600] CHIP: [DMG] AttributeDataElement = - [1635692600286] [30469:4578600] CHIP: [DMG] { - [1635692600286] [30469:4578600] CHIP: [DMG] AttributePath = - [1635692600286] [30469:4578600] CHIP: [DMG] { - [1635692600286] [30469:4578600] CHIP: [DMG] NodeId = 0x1, - [1635692600286] [30469:4578600] CHIP: [DMG] EndpointId = 0x0, - [1635692600286] [30469:4578600] CHIP: [DMG] ClusterId = 0x28, - [1635692600286] [30469:4578600] CHIP: [DMG] FieldTag = 0x0000_0005, - [1635692600286] [30469:4578600] CHIP: [DMG] } - [1635692600286] [30469:4578600] CHIP: [DMG] - [1635692600286] [30469:4578600] CHIP: [DMG] Data = "te5new", - [1635692600286] [30469:4578600] CHIP: [DMG] DataElementVersion = 0x0, - [1635692600286] [30469:4578600] CHIP: [DMG] }, - [1635692600286] [30469:4578600] CHIP: [DMG] - [1635692600286] [30469:4578600] CHIP: [DMG] ], - [1635692600286] [30469:4578600] CHIP: [DMG] - [1635692600286] [30469:4578600] CHIP: [DMG] } - [1635692600286] [30469:4578600] CHIP: [ZCL] ReadAttributesResponse: - [1635692600286] [30469:4578600] CHIP: [ZCL] ClusterId: 0x0000_0028 - [1635692600286] [30469:4578600] CHIP: [ZCL] attributeId: 0x0000_0005 - [1635692600286] [30469:4578600] CHIP: [ZCL] status: Success (0x0000) - [1635692600286] [30469:4578600] CHIP: [ZCL] attribute TLV Type: 0x0c - [1635692600286] [30469:4578600] CHIP: [TOO] CharString attribute Response: te5new - [1635692600286] [30469:4578600] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 52334i + CHIP:DMG: ReportDataMessage = + [1649671466.310233][20969:20974] CHIP:DMG: { + [1649671466.310241][20969:20974] CHIP:DMG: AttributeReportIBs = + [1649671466.310256][20969:20974] CHIP:DMG: [ + [1649671466.310265][20969:20974] CHIP:DMG: AttributeReportIB = + [1649671466.310281][20969:20974] CHIP:DMG: { + [1649671466.310292][20969:20974] CHIP:DMG: AttributeDataIB = + [1649671466.310304][20969:20974] CHIP:DMG: { + [1649671466.310317][20969:20974] CHIP:DMG: DataVersion = 0xd581a5e8, + [1649671466.310328][20969:20974] CHIP:DMG: AttributePathIB = + [1649671466.310342][20969:20974] CHIP:DMG: { + [1649671466.310355][20969:20974] CHIP:DMG: Endpoint = 0x0, + [1649671466.310367][20969:20974] CHIP:DMG: Cluster = 0x28, + [1649671466.310380][20969:20974] CHIP:DMG: Attribute = 0x0000_0005, + [1649671466.310391][20969:20974] CHIP:DMG: } + [1649671466.310405][20969:20974] CHIP:DMG: + [1649671466.310420][20969:20974] CHIP:DMG: Data = "te8", + [1649671466.310432][20969:20974] CHIP:DMG: }, + [1649671466.310446][20969:20974] CHIP:DMG: + [1649671466.310457][20969:20974] CHIP:DMG: }, + [1649671466.310471][20969:20974] CHIP:DMG: + [1649671466.310481][20969:20974] CHIP:DMG: ], + [1649671466.310497][20969:20974] CHIP:DMG: + [1649671466.310508][20969:20974] CHIP:DMG: SuppressResponse = true, + [1649671466.310518][20969:20974] CHIP:DMG: InteractionModelRevision = 1 + [1649671466.310528][20969:20974] CHIP:DMG: } + [1649671466.310629][20969:20974] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3582043624 + [1649671466.310646][20969:20974] CHIP:TOO: NodeLabel: te8 + [1649671466.310704][20969:20974] CHIP:EM: Sending Standalone Ack for MessageCounter:15357338 on exchange 20724i disabled: true - label: "DUT_CR2 reads the list of Fabrics on TH_CE" @@ -223,30 +169,27 @@ tests: Below is the example using chip tool as controller - ./chip-tool operationalcredentials read fabrics-list 1 0 - - CHIP: [DMG] } - [1635692672664] [30472:4578967] CHIP: [ZCL] ReadAttributesResponse: - [1635692672664] [30472:4578967] CHIP: [ZCL] ClusterId: 0x0000_003E - [1635692672664] [30472:4578967] CHIP: [ZCL] attributeId: 0x0000_0001 - [1635692672664] [30472:4578967] CHIP: [ZCL] status: Success (0x0000) - [1635692672664] [30472:4578967] CHIP: [ZCL] attribute TLV Type: 0x16 - [1635692672664] [30472:4578967] CHIP: [TOO] OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries - [1635692672664] [30472:4578967] CHIP: [TOO] FabricDescriptor[1]: - [1635692672664] [30472:4578967] CHIP: [TOO] fabricIndex: 1 - [1635692672664] [30472:4578967] CHIP: [ZCL] RootPublicKey: 65 - [1635692672664] [30472:4578967] CHIP: [TOO] vendorId: 62792 - [1635692672664] [30472:4578967] CHIP: [TOO] fabricId: 0 - [1635692672664] [30472:4578967] CHIP: [TOO] nodeId: 1 - [1635692672664] [30472:4578967] CHIP: [ZCL] Label: - [1635692672664] [30472:4578967] CHIP: [TOO] FabricDescriptor[2]: - [1635692672664] [30472:4578967] CHIP: [TOO] fabricIndex: 2 - [1635692672664] [30472:4578967] CHIP: [ZCL] RootPublicKey: 65 - [1635692672664] [30472:4578967] CHIP: [TOO] vendorId: 0 - [1635692672664] [30472:4578967] CHIP: [TOO] fabricId: 0 - [1635692672664] [30472:4578967] CHIP: [TOO] nodeId: 1 - [1635692672664] [30472:4578967] CHIP: [ZCL] Label: - [1635692672664] [30472:4578967] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 42395i + sudo ./chip-tool operationalcredentials read fabrics 2 0 --fabric-filtered 0 + + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3621507063 + [1649245825.315152][10098:10103] CHIP:TOO: Fabrics: 2 entries + [1649245825.315316][10098:10103] CHIP:TOO: [1]: { + [1649245825.315370][10098:10103] CHIP:TOO: RootPublicKey: 045541017FCEFD0D83963C9ED7F21380C6B789EB989B5D20DC318FAE92D60D0F685666505E9C4F86C49ADC71AB3A8B9B44FD43214CF9BE2B6D47DE01F28FE1544F + [1649245825.315436][10098:10103] CHIP:TOO: VendorId: 65521 + [1649245825.315479][10098:10103] CHIP:TOO: FabricId: 1 + [1649245825.315518][10098:10103] CHIP:TOO: NodeId: 1 + [1649245825.315557][10098:10103] CHIP:TOO: Label: + [1649245825.315596][10098:10103] CHIP:TOO: FabricIndex: 1 + [1649245825.315637][10098:10103] CHIP:TOO: } + [1649245825.315697][10098:10103] CHIP:TOO: [2]: { + [1649245825.315747][10098:10103] CHIP:TOO: RootPublicKey: 047D75BF7D91FCFFB29DAD375D09790FEBE9205227C44D4FF8EB70ADAD02E416E08269B9F77E86FE14270525B64C41417CEA3E9FDE0552AE8DF05F8D98B6B6E2E2 + [1649245825.315789][10098:10103] CHIP:TOO: VendorId: 65521 + [1649245825.315830][10098:10103] CHIP:TOO: FabricId: 1 + [1649245825.315870][10098:10103] CHIP:TOO: NodeId: 2 + [1649245825.315908][10098:10103] CHIP:TOO: Label: + [1649245825.315947][10098:10103] CHIP:TOO: FabricIndex: 2 + [1649245825.315986][10098:10103] CHIP:TOO: } disabled: true - label: @@ -255,147 +198,94 @@ tests: verification: | On 1st controller using chip tool, write attribute and read attribute - ./chip-tool basic write node-label te5new 1 0 + ./chip-tool basic write node-label te8 1 0 CHIP:DMG: WriteResponse = - [1635693016.169157][3871:3876] CHIP:DMG: { - [1635693016.169189][3871:3876] CHIP:DMG: AttributeStatusList = - [1635693016.169227][3871:3876] CHIP:DMG: [ - [1635693016.169263][3871:3876] CHIP:DMG: AttributeStatusIB = - [1635693016.169312][3871:3876] CHIP:DMG: { - [1635693016.169351][3871:3876] CHIP:DMG: AttributePath = - [1635693016.169397][3871:3876] CHIP:DMG: { - [1635693016.169444][3871:3876] CHIP:DMG: FieldTag = 0x0000_0005, - [1635693016.169499][3871:3876] CHIP:DMG: NodeId = 0x0, - [1635693016.169549][3871:3876] CHIP:DMG: ClusterId = 0x28, - [1635693016.169596][3871:3876] CHIP:DMG: EndpointId = 0x0, - [1635693016.169646][3871:3876] CHIP:DMG: } - [1635693016.169695][3871:3876] CHIP:DMG: - [1635693016.169736][3871:3876] CHIP:DMG: StatusIB = - [1635693016.169787][3871:3876] CHIP:DMG: { - [1635693016.169831][3871:3876] CHIP:DMG: status = 0x0, - [1635693016.169877][3871:3876] CHIP:DMG: }, - [1635693016.169928][3871:3876] CHIP:DMG: - [1635693016.169967][3871:3876] CHIP:DMG: }, - [1635693016.170014][3871:3876] CHIP:DMG: - [1635693016.170049][3871:3876] CHIP:DMG: ], - [1635693016.170092][3871:3876] CHIP:DMG: - [1635693016.170125][3871:3876] CHIP:DMG: } - [1635693016.170199][3871:3876] CHIP:ZCL: WriteResponse: - [1635693016.170232][3871:3876] CHIP:ZCL: status: Success (0x0000) - [1635693016.170267][3871:3876] CHIP:TOO: Default Success Response - [1635693016.170333][3871:3876] CHIP:DMG: WriteClient moving to [Uninitiali] - [1635693016.170370][3871:3876] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 11798i + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] + Verify read attribute returns the updated value written ./chip-tool basic read node-label 1 0 - CHIP:DMG: ReportData = - [1635693045.341772][3879:3884] CHIP:DMG: { - [1635693045.341805][3879:3884] CHIP:DMG: AttributeDataList = - [1635693045.341843][3879:3884] CHIP:DMG: [ - [1635693045.341880][3879:3884] CHIP:DMG: AttributeDataElement = - [1635693045.341925][3879:3884] CHIP:DMG: { - [1635693045.341963][3879:3884] CHIP:DMG: AttributePath = - [1635693045.342006][3879:3884] CHIP:DMG: { - [1635693045.342046][3879:3884] CHIP:DMG: NodeId = 0x1, - [1635693045.342092][3879:3884] CHIP:DMG: EndpointId = 0x0, - [1635693045.342142][3879:3884] CHIP:DMG: ClusterId = 0x28, - [1635693045.342187][3879:3884] CHIP:DMG: FieldTag = 0x0000_0005, - [1635693045.342238][3879:3884] CHIP:DMG: } - [1635693045.342289][3879:3884] CHIP:DMG: - [1635693045.342339][3879:3884] CHIP:DMG: Data = "te5new", - [1635693045.342386][3879:3884] CHIP:DMG: DataElementVersion = 0x0, - [1635693045.342429][3879:3884] CHIP:DMG: }, - [1635693045.342473][3879:3884] CHIP:DMG: - [1635693045.342509][3879:3884] CHIP:DMG: ], - [1635693045.342551][3879:3884] CHIP:DMG: - [1635693045.342584][3879:3884] CHIP:DMG: } - [1635693045.342688][3879:3884] CHIP:ZCL: ReadAttributesResponse: - [1635693045.342720][3879:3884] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635693045.342756][3879:3884] CHIP:ZCL: attributeId: 0x0000_0005 - [1635693045.342786][3879:3884] CHIP:ZCL: status: Success (0x0000) - [1635693045.342816][3879:3884] CHIP:ZCL: attribute TLV Type: 0x0c - [1635693045.342851][3879:3884] CHIP:TOO: CharString attribute Response: te5new - [1635693045.343045][3879:3884] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 49307i + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te8 + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - label: - "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR2 reads, writes and then reads the Basic Information Clusters + NodeLabel mandatory attribute of TH_CE" verification: | - Using your DUT controller, write attribute and read attribute to and from TH_CE + Using your DUT controller, read, write attribute and then read attribute to and from TH_CE Below is an example of using chip tool as controller + ./chip-tool basic read node-label 2 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te8 + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i + + ./chip-tool basic write node-label te5new 2 0 - CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51363i - [1635693100458] [30494:4580771] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 51363i - [1635693100458] [30494:4580771] CHIP: [DMG] WriteResponse = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusList = - [1635693100458] [30494:4580771] CHIP: [DMG] [ - [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusIB = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] AttributePath = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] FieldTag = 0x0000_0005, - [1635693100458] [30494:4580771] CHIP: [DMG] NodeId = 0x0, - [1635693100458] [30494:4580771] CHIP: [DMG] ClusterId = 0x28, - [1635693100458] [30494:4580771] CHIP: [DMG] EndpointId = 0x0, - [1635693100458] [30494:4580771] CHIP: [DMG] } - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] StatusIB = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] status = 0x0, - [1635693100458] [30494:4580771] CHIP: [DMG] }, - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] }, - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] ], - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] } - [1635693100458] [30494:4580771] CHIP: [ZCL] WriteResponse: - [1635693100458] [30494:4580771] CHIP: [ZCL] status: Success (0x0000) - [1635693100458] [30494:4580771] CHIP: [TOO] Default Success Response - [1635693100458] [30494:4580771] CHIP: [DMG] WriteClient moving to [Uninitiali] - [1635693100458] [30494:4580771] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 51363i + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] Verify read attribute returns the updated value written ./chip-tool basic read node-label 2 0 - CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 6848i - [1635693130217] [30496:4581003] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 6848i - [1635693130217] [30496:4581003] CHIP: [DMG] ReportData = - [1635693130217] [30496:4581003] CHIP: [DMG] { - [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataList = - [1635693130217] [30496:4581003] CHIP: [DMG] [ - [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataElement = - [1635693130217] [30496:4581003] CHIP: [DMG] { - [1635693130217] [30496:4581003] CHIP: [DMG] AttributePath = - [1635693130217] [30496:4581003] CHIP: [DMG] { - [1635693130217] [30496:4581003] CHIP: [DMG] NodeId = 0x1, - [1635693130217] [30496:4581003] CHIP: [DMG] EndpointId = 0x0, - [1635693130217] [30496:4581003] CHIP: [DMG] ClusterId = 0x28, - [1635693130217] [30496:4581003] CHIP: [DMG] FieldTag = 0x0000_0005, - [1635693130217] [30496:4581003] CHIP: [DMG] } - [1635693130217] [30496:4581003] CHIP: [DMG] - [1635693130217] [30496:4581003] CHIP: [DMG] Data = "te5new", - [1635693130217] [30496:4581003] CHIP: [DMG] DataElementVersion = 0x0, - [1635693130217] [30496:4581003] CHIP: [DMG] }, - [1635693130217] [30496:4581003] CHIP: [DMG] - [1635693130217] [30496:4581003] CHIP: [DMG] ], - [1635693130217] [30496:4581003] CHIP: [DMG] - [1635693130217] [30496:4581003] CHIP: [DMG] } - [1635693130217] [30496:4581003] CHIP: [ZCL] ReadAttributesResponse: - [1635693130217] [30496:4581003] CHIP: [ZCL] ClusterId: 0x0000_0028 - [1635693130217] [30496:4581003] CHIP: [ZCL] attributeId: 0x0000_0005 - [1635693130217] [30496:4581003] CHIP: [ZCL] status: Success (0x0000) - [1635693130217] [30496:4581003] CHIP: [ZCL] attribute TLV Type: 0x0c - [1635693130218] [30496:4581003] CHIP: [TOO] CharString attribute Response: te5new - [1635693130218] [30496:4581003] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 6848i + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te5new + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - label: "Turn off TH_CR1" @@ -431,38 +321,39 @@ tests: Below is an example when using chip tool as controller - ./chip-tool administratorcommissioning revoke-commissioning 2 0 - - CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 55209i - [1635693494790] [30525:4583596] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 55209i - [1635693494790] [30525:4583596] CHIP: [DMG] InvokeCommand = - [1635693494791] [30525:4583596] CHIP: [DMG] { - [1635693494791] [30525:4583596] CHIP: [DMG] CommandList = - [1635693494791] [30525:4583596] CHIP: [DMG] [ - [1635693494791] [30525:4583596] CHIP: [DMG] CommandDataIB = - [1635693494791] [30525:4583596] CHIP: [DMG] { - [1635693494791] [30525:4583596] CHIP: [DMG] CommandPathIB = - [1635693494791] [30525:4583596] CHIP: [DMG] { - [1635693494791] [30525:4583596] CHIP: [DMG] EndpointId = 0x0, - [1635693494791] [30525:4583596] CHIP: [DMG] ClusterId = 0x3c, - [1635693494791] [30525:4583596] CHIP: [DMG] CommandId = 0x2, - [1635693494791] [30525:4583596] CHIP: [DMG] }, - [1635693494791] [30525:4583596] CHIP: [DMG] - [1635693494791] [30525:4583596] CHIP: [DMG] StatusIB = - [1635693494791] [30525:4583596] CHIP: [DMG] { - [1635693494791] [30525:4583596] CHIP: [DMG] status = 0x0, - [1635693494791] [30525:4583596] CHIP: [DMG] }, - [1635693494791] [30525:4583596] CHIP: [DMG] - [1635693494791] [30525:4583596] CHIP: [DMG] }, - [1635693494791] [30525:4583596] CHIP: [DMG] - [1635693494791] [30525:4583596] CHIP: [DMG] ], - [1635693494791] [30525:4583596] CHIP: [DMG] - [1635693494791] [30525:4583596] CHIP: [DMG] } - [1635693494791] [30525:4583596] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 - [1635693494791] [30525:4583596] CHIP: [TOO] Default Success Response - [1635693494791] [30525:4583596] CHIP: [DMG] ICR moving to [AwaitingDe] - [1635693494791] [30525:4583596] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 55209i - [1635693494791] [30525:4583596] CHIP: [IN] Prepared encrypted message 0x16f21d008 to 0x0000000000000001 of type 0x10 and protocolId (0, 0) on exchange 55209i with MessageCounter:1. + /chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP: [DMG] InvokeResponseMessage = + [1648115245106] [6681:3894448] CHIP: [DMG] { + [1648115245106] [6681:3894448] CHIP: [DMG] suppressResponse = false, + [1648115245106] [6681:3894448] CHIP: [DMG] InvokeResponseIBs = + [1648115245106] [6681:3894448] CHIP: [DMG] [ + [1648115245106] [6681:3894448] CHIP: [DMG] InvokeResponseIB = + [1648115245106] [6681:3894448] CHIP: [DMG] { + [1648115245106] [6681:3894448] CHIP: [DMG] CommandStatusIB = + [1648115245106] [6681:3894448] CHIP: [DMG] { + [1648115245106] [6681:3894448] CHIP: [DMG] CommandPathIB = + [1648115245106] [6681:3894448] CHIP: [DMG] { + [1648115245106] [6681:3894448] CHIP: [DMG] EndpointId = 0x0, + [1648115245106] [6681:3894448] CHIP: [DMG] ClusterId = 0x3c, + [1648115245106] [6681:3894448] CHIP: [DMG] CommandId = 0x2, + [1648115245106] [6681:3894448] CHIP: [DMG] }, + [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] StatusIB = + [1648115245106] [6681:3894448] CHIP: [DMG] { + [1648115245106] [6681:3894448] CHIP: [DMG] status = 0x0, + [1648115245106] [6681:3894448] CHIP: [DMG] }, + [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] }, + [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] }, + [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] ], + [1648115245107] [6681:3894448] CHIP: [DMG] + [1648115245107] [6681:3894448] CHIP: [DMG] InteractionModelRevision = 1 + [1648115245107] [6681:3894448] CHIP: [DMG] }, + [1648115245107] [6681:3894448] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 disabled: true - label: @@ -470,7 +361,12 @@ tests: with TH_CE" verification: | On 3rd controller using chip-tool connect using manual code generated from 1st controller. This attempt should fail, i.e - ./chip-tool pairing code 1 34995354639 + ./chip-tool pairing manualcode 1 34995354639 + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - label: @@ -483,70 +379,93 @@ tests: ./chip-tool basic write node-label te5new 2 0 - CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51363i - [1635693100458] [30494:4580771] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 51363i - [1635693100458] [30494:4580771] CHIP: [DMG] WriteResponse = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusList = - [1635693100458] [30494:4580771] CHIP: [DMG] [ - [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusIB = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] AttributePath = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] FieldTag = 0x0000_0005, - [1635693100458] [30494:4580771] CHIP: [DMG] NodeId = 0x0, - [1635693100458] [30494:4580771] CHIP: [DMG] ClusterId = 0x28, - [1635693100458] [30494:4580771] CHIP: [DMG] EndpointId = 0x0, - [1635693100458] [30494:4580771] CHIP: [DMG] } - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] StatusIB = - [1635693100458] [30494:4580771] CHIP: [DMG] { - [1635693100458] [30494:4580771] CHIP: [DMG] status = 0x0, - [1635693100458] [30494:4580771] CHIP: [DMG] }, - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] }, - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] ], - [1635693100458] [30494:4580771] CHIP: [DMG] - [1635693100458] [30494:4580771] CHIP: [DMG] } - [1635693100458] [30494:4580771] CHIP: [ZCL] WriteResponse: - [1635693100458] [30494:4580771] CHIP: [ZCL] status: Success (0x0000) - [1635693100458] [30494:4580771] CHIP: [TOO] Default Success Response - [1635693100458] [30494:4580771] CHIP: [DMG] WriteClient moving to [Uninitiali] - [1635693100458] [30494:4580771] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 51363i + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] Verify read attribute returns the updated value written - ./chip-tool basic read user-label 2 0 - - CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 6848i - [1635693130217] [30496:4581003] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 6848i - [1635693130217] [30496:4581003] CHIP: [DMG] ReportData = - [1635693130217] [30496:4581003] CHIP: [DMG] { - [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataList = - [1635693130217] [30496:4581003] CHIP: [DMG] [ - [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataElement = - [1635693130217] [30496:4581003] CHIP: [DMG] { - [1635693130217] [30496:4581003] CHIP: [DMG] AttributePath = - [1635693130217] [30496:4581003] CHIP: [DMG] { - [1635693130217] [30496:4581003] CHIP: [DMG] NodeId = 0x1, - [1635693130217] [30496:4581003] CHIP: [DMG] EndpointId = 0x0, - [1635693130217] [30496:4581003] CHIP: [DMG] ClusterId = 0x28, - [1635693130217] [30496:4581003] CHIP: [DMG] FieldTag = 0x0000_0005, - [1635693130217] [30496:4581003] CHIP: [DMG] } - [1635693130217] [30496:4581003] CHIP: [DMG] - [1635693130217] [30496:4581003] CHIP: [DMG] Data = "te5new", - [1635693130217] [30496:4581003] CHIP: [DMG] DataElementVersion = 0x0, - [1635693130217] [30496:4581003] CHIP: [DMG] }, - [1635693130217] [30496:4581003] CHIP: [DMG] - [1635693130217] [30496:4581003] CHIP: [DMG] ], - [1635693130217] [30496:4581003] CHIP: [DMG] - [1635693130217] [30496:4581003] CHIP: [DMG] } - [1635693130217] [30496:4581003] CHIP: [ZCL] ReadAttributesResponse: - [1635693130217] [30496:4581003] CHIP: [ZCL] ClusterId: 0x0000_0028 - [1635693130217] [30496:4581003] CHIP: [ZCL] attributeId: 0x0000_0005 - [1635693130217] [30496:4581003] CHIP: [ZCL] status: Success (0x0000) - [1635693130217] [30496:4581003] CHIP: [ZCL] attribute TLV Type: 0x0c - [1635693130218] [30496:4581003] CHIP: [TOO] CharString attribute Response: te5new - [1635693130218] [30496:4581003] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 6848i + ./chip-tool basic read node-label 2 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te8 + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i + disabled: true + + - label: "DUT_CR2 opens a commissioning window on TH_CE using ECM" + verification: | + 1. Using your DUT controller open commissioning window using ECM + + Below is an example when using chip tool as controller + ./chip-tool pairing open-commissionig-window 2 1 300 1000 3840 + + CHIP: [IN] Prepared encrypted message 0x124012e80 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 50829i with MessageCounter:0. + [1635693418549] [30519:4583024] CHIP: [IN] Sending encrypted msg 0x124012e80 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 5995099243 msec + [1635693418549] [30519:4583024] CHIP: [DMG] ICR moving to [CommandSen] + [1635693418549] [30519:4583024] CHIP: [CTL] Manual pairing code: [34995354639] + [1635693418550] [30519:4583024] CHIP: [CTL] SetupQRCode: [MT:00000CQM00YND84XX10] + [1635693418550] [30519:4583024] CHIP: [EM] Sending Standalone Ack for MessageCounter:3441918415 on exchange 50828i + [1635693418550] [30519:4583024] CHIP: [IN] Prepared plaintext message 0x16b92d198 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 50828i with MessageCounter:3727034150. + [1635693418550] [30519:4583024] CHIP: [IN] Sending plaintext msg 0x16b92d198 with Mes + disabled: true + + - label: + "Wait for commissioning window that was opened in step 13 to timeout" + verification: | + Wait for the timeout of commissioning window in the above step + disabled: true + + - label: "DUT_CR2 opens a commissioning window on TH_CE using ECM" + verification: | + 1. Using your DUT controller open commissioning window using ECM + + Below is an example when using chip tool as controller + ./chip-tool pairing open-commissionig-window 2 1 300 1000 3840 + + CHIP: [IN] Prepared encrypted message 0x124012e80 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 50829i with MessageCounter:0. + [1635693418549] [30519:4583024] CHIP: [IN] Sending encrypted msg 0x124012e80 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 5995099243 msec + [1635693418549] [30519:4583024] CHIP: [DMG] ICR moving to [CommandSen] + [1635693418549] [30519:4583024] CHIP: [CTL] Manual pairing code: [34995354639] + [1635693418550] [30519:4583024] CHIP: [CTL] SetupQRCode: [MT:00000CQM00YND84XX10] + [1635693418550] [30519:4583024] CHIP: [EM] Sending Standalone Ack for MessageCounter:3441918415 on exchange 50828i + [1635693418550] [30519:4583024] CHIP: [IN] Prepared plaintext message 0x16b92d198 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 50828i with MessageCounter:3727034150. + [1635693418550] [30519:4583024] CHIP: [IN] Sending plaintext msg 0x16b92d198 with Mes + disabled: true + + - label: + "TH_CR1 starts a commissioning process with TH_CE before the timeout + from step 15" + verification: | + On 1st controller, using chip-tool connect using manual code. + Below is the example when using chip tool as controller (considering 34995354639 as the manual code generated by DUT) + ./chip-tool pairing manualcode 2 34995354639 + + [1651786200275] [36301:315544] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1651786200275] [36301:315544] CHIP: [CTL] Device returned status 9 on receiving the NOC + [1651786200275] [36301:315544] CHIP: [CTL] Add NOC failed with error ../../src/controller/CHIPDeviceController.cpp:1187: CHIP Error 0x0000007E: Trying to add a NOC for a fabric that already exists + [1651786200275] [36301:315544] CHIP: [CTL] Error on commissioning step 'SendNOC': '../../src/controller/CHIPDeviceController.cpp:1187: CHIP Error 0x0000007E: Trying to add a NOC for a fabric that already exists' + + Verify that the commissioning process fails as TH_CE was already commissioned by TH_CR1 in step 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml index d3fabd00c6f5fc..2859225e130e9b 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 22.1.11. [TC-MF-1.11] Device exits commissioning mode after 20 failed + 3.1.11. [TC-MF-1.11] Device exits commissioning mode after 20 failed commission attempts [ECM] [DUT - Commissioner] config: @@ -25,7 +25,7 @@ config: tests: - label: "TH_CR2 starts a commissioning process with TH_CE" verification: | - 1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) , + "1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) , " disabled: true - label: @@ -66,17 +66,40 @@ tests: "Set up a DUT_CR1 to start attempting to do PASE to TH_CE and failing 20 times. This can be done using an invalid passcode" verification: | - 1. On your DUT controller connect using wrong manual code. Repeat the step for 20 times. + 1. On 2nd controller using chip-tool connect using wrong manual code. Repeat the step for 20 times. - Below the example when using chip tool as controller - ./chip-tool pairing code 1 36177160937 (With wrong passcode) + ./chip-tool pairing manualcode 1 36177160938 (With wrong manual code) + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - - label: "DUT_CR1 starts a 21st commissioning process with a valid passcode" + - label: + "DUT_CR1 starts a 21st commissioning process using a commissioning + timeout of PIXIT_COMM_WIN seconds using ECM" + verification: | + 1. On 2nd controller using chip tool connect using correct passcode. + + ./chip-tool pairing manualcode 1 36177160937 (correct passcode) + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout + disabled: true + + - label: + "TH_CR3 starts a commissioning process with TH_CE using the correct + PAKEVerifier" verification: | - 1. On your DUT controller connect using correct manual code + 1. On 3rdd controller using chip-tool connect using correct passcode - Below the example when using chip tool as controller + ./chip-tool pairing manualcode 1 36177160938 (With wrong manual code) - ./chip-tool pairing code 1 35407541839 (correct passcode) + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml index cd78f991167c22..4b7f00242f2dc3 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 22.1.12. [TC-MF-1.12] Device exits commissioning mode after 20 failed + 3.1.12. [TC-MF-1.12] Device exits commissioning mode after 20 failed commission attempts [BCM] [DUT - Commissioner] config: @@ -25,7 +25,7 @@ config: tests: - label: "TH_CR2 starts a commissioning process with TH_CE" verification: | - 1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) + "1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) disabled: true - label: @@ -34,51 +34,80 @@ tests: verification: | On the 2nd controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 - - [1635871562.958905][4336:4341] CHIP:DMG: InvokeCommand = - [1635871562.958976][4336:4341] CHIP:DMG: { - [1635871562.959031][4336:4341] CHIP:DMG: CommandList = - [1635871562.959095][4336:4341] CHIP:DMG: [ - [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = - [1635871562.959225][4336:4341] CHIP:DMG: { - [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = - [1635871562.959368][4336:4341] CHIP:DMG: { - [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, - [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, - [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, - [1635871562.959698][4336:4341] CHIP:DMG: }, - [1635871562.959776][4336:4341] CHIP:DMG: - [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = - [1635871562.959911][4336:4341] CHIP:DMG: { - [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, - [1635871562.960064][4336:4341] CHIP:DMG: }, - [1635871562.960313][4336:4341] CHIP:DMG: - [1635871562.960459][4336:4341] CHIP:DMG: }, - [1635871562.960544][4336:4341] CHIP:DMG: - [1635871562.960604][4336:4341] CHIP:DMG: ], - [1635871562.960668][4336:4341] CHIP:DMG: - [1635871562.960723][4336:4341] CHIP:DMG: } - [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 - [1635871562.960894][4336:4341] CHIP:TOO: Default Success Response + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: "Set up a DUT_CR1 to start attempting to do PASE to TH_CE and failing 20 times. This can be done using an invalid passcode" verification: | - 1. On your DUT controller connect using wrong passcode. Repeat the step for 20 times. + On 2nd controller, using chip-tool connect using wrong passcode. Repeat the step for 20 times. - Below the example when using chip tool as controller + ./chip-tool pairing onnetwork 1 20202019 (With wrong passcode) - ./chip-tool pairing onnetwork 1 20202019 (With wrong passcode) + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - - label: "DUT_CR1 starts a 21st commissioning process with a valid passcode" + - label: + "DUT_CR1 starts a 21st commissioning process using a commissioning + timeout of PIXIT_COMM_WIN seconds using BCM" verification: | - 1. On your DUT controller connect using IP address and correct passcode. - - Below the example when using chip tool as controller + On 2nd controller, using chip tool connect using correct passcode. ./chip-tool pairing onnetwork 1 20202021 (correct passcode) + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout + disabled: true + + - label: + "TH_CR3 starts a commissioning process with TH_CE using the correct + PAKEVerifier" + verification: | + 1. On 3rd controller using chip-tool connect using correct passcode + + ./chip-tool pairing onnetwork 1 20202021 + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml index 324f777a9043db..0e5831bc92f664 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 22.1.13. [TC-MF-1.13] Open commissioning window on DUT twice using ECM then + 3.1.13. [TC-MF-1.13] Open commissioning window on DUT twice using ECM then BCM [DUT - Commissionee] config: @@ -25,12 +25,14 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" verification: | - 1. Provision the device using 1st controller chip tool on the raspi (use above instructions) , + "1. Provision the device using 1st controller chip tool on the raspi (use above instructions) , + " disabled: true - label: - "TH_CR1 opens a commissioning window on DUT_CE using ECM and TH_CR3 - Commissions with DUT_CE" + "TH_CR1 opens a commissioning window on DUT_CE using a commissioning + timeout of PIXIT_COMM_WIN seconds using ECM and TH_CR3 Commissions + with DUT_CE" verification: | On the 1st controller using chip tool, open commissioning window using ECM @@ -51,12 +53,34 @@ tests: 1. On 3rd controller using chip tool connect using manual code - ./chip-tool pairing code 1 35484132896 + ./chip-tool pairing manualcode 1 35484132896 + + Verify you got below message + Device commissioning completed with success + disabled: true + + - label: "DNS-SD records shows DUT_CE advertising" + verification: | + grl@grl-ThinkPad-L480:~/2nd_cntrl/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matterc._udp + + wlp5s0 IPv6 C326228BDB082BF4 _matterc._udp local + + wlp5s0 IPv6 7B6545A75C5330BE _matterc._udp local + = wlp5s0 IPv6 7B6545A75C5330BE _matterc._udp local + hostname = [E45F010F27530000.local] + address = [fe80::e65f:1ff:fe0f:2755] + port = [5540] + txt = ["PI=" "PH=33" "CM=1" "D=3841" "T=1" "CRA=300" "CRI=5000" "VP=65521+32769"] + = wlp5s0 IPv6 C326228BDB082BF4 _matterc._udp local + hostname = [E45F010F27530000.local] + address = [fe80::e65f:1ff:fe0f:2755] + port = [5540] + txt = ["PI=" "PH=36" "CM=2" "D=3840" "T=1" "CRA=300" "CRI=5000" "VP=65521+32769"] + grl@grl-ThinkPad-L480:~/2nd_cntrl/connectedhomeip/examples/chip-tool/out/debug$ disabled: true - label: - "TH_CR1 opens a commissioning window on DUT_CE using ECM and TH_CR2 - Commissions with DUT_CE" + "TH_CR1 opens a commissioning window on DUT_CE using a commissioning + timeout of PIXIT_COMM_WIN seconds using ECM and TH_CR2 Commissions + with DUT_CE" verification: | On the 1st controller using chip tool, open commissioning window using ECM @@ -77,7 +101,10 @@ tests: 1. On 2nd controller using chip tool connect using manual code - ./chip-tool pairing code 1 35484132896 + ./chip-tool pairing manualcode 1 35484132896 + + Verify you got below message + Device commissioning completed with success disabled: true - label: @@ -102,87 +129,86 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR1 opens a 2nd - commissioning window on DUT_CE using a commissioning timeout of - PIXIT_COMM_WIN seconds using ECM" + "Before the expiration of PIXIT_COMM_WIN seconds which was set in step + 5, TH_CR1 opens a 2nd commissioning window on DUT_CE using a + commissioning timeout of PIXIT_COMM_WIN seconds using ECM" verification: | Before the timer expiry, on the 1st controller using chip tool, open commissioning window using ECM. Verify the General code return error 1 ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + CHIP:DMG: InvokeResponseMessage = + [1650527291.952055][8566:8571] CHIP:DMG: { + [1650527291.952074][8566:8571] CHIP:DMG: suppressResponse = false, + [1650527291.952091][8566:8571] CHIP:DMG: InvokeResponseIBs = + [1650527291.952116][8566:8571] CHIP:DMG: [ + [1650527291.952134][8566:8571] CHIP:DMG: InvokeResponseIB = + [1650527291.952172][8566:8571] CHIP:DMG: { + [1650527291.952195][8566:8571] CHIP:DMG: CommandStatusIB = + [1650527291.952220][8566:8571] CHIP:DMG: { + [1650527291.952245][8566:8571] CHIP:DMG: CommandPathIB = + [1650527291.952276][8566:8571] CHIP:DMG: { + [1650527291.952303][8566:8571] CHIP:DMG: EndpointId = 0x0, + [1650527291.952334][8566:8571] CHIP:DMG: ClusterId = 0x3c, + [1650527291.952369][8566:8571] CHIP:DMG: CommandId = 0x0, + [1650527291.952394][8566:8571] CHIP:DMG: }, + [1650527291.952431][8566:8571] CHIP:DMG: + [1650527291.952458][8566:8571] CHIP:DMG: StatusIB = + [1650527291.952488][8566:8571] CHIP:DMG: { + [1650527291.952519][8566:8571] CHIP:DMG: status = 0x01 (FAILURE), + [1650527291.952555][8566:8571] CHIP:DMG: cluster-status = 0x1, + [1650527291.952578][8566:8571] CHIP:DMG: }, + [1650527291.952612][8566:8571] CHIP:DMG: + [1650527291.952634][8566:8571] CHIP:DMG: }, + [1650527291.952671][8566:8571] CHIP:DMG: + [1650527291.952694][8566:8571] CHIP:DMG: }, + [1650527291.952731][8566:8571] CHIP:DMG: + [1650527291.952751][8566:8571] CHIP:DMG: ], + [1650527291.952781][8566:8571] CHIP:DMG: + [1650527291.952795][8566:8571] CHIP:DMG: InteractionModelRevision = 1 + [1650527291.952807][8566:8571] CHIP:DMG: }, + [1650527291.952886][8566:8571] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x1 + [1650527291.952931][8566:8571] CHIP:CTL: Failed to open pairing window on the device. Status IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" verification: | On 1st controller using chip tool, read fabrics list - ./chip-tool operationalcredentials read fabrics-list 1 0 - - [1635874880.498519][4577:4582] CHIP:DMG: ReportData = - [1635874880.498558][4577:4582] CHIP:DMG: { - [1635874880.498587][4577:4582] CHIP:DMG: AttributeDataList = - [1635874880.498622][4577:4582] CHIP:DMG: [ - [1635874880.498654][4577:4582] CHIP:DMG: AttributeDataElement = - [1635874880.498695][4577:4582] CHIP:DMG: { - [1635874880.498734][4577:4582] CHIP:DMG: AttributePath = - [1635874880.498783][4577:4582] CHIP:DMG: { - [1635874880.498827][4577:4582] CHIP:DMG: NodeId = 0x1, - [1635874880.498874][4577:4582] CHIP:DMG: EndpointId = 0x0, - [1635874880.498923][4577:4582] CHIP:DMG: ClusterId = 0x3e, - [1635874880.498995][4577:4582] CHIP:DMG: FieldTag = 0x0000_0001, - [1635874880.499070][4577:4582] CHIP:DMG: } - [1635874880.499148][4577:4582] CHIP:DMG: - [1635874880.499200][4577:4582] CHIP:DMG: Data = [ - [1635874880.499252][4577:4582] CHIP:DMG: - [1635874880.499305][4577:4582] CHIP:DMG: { - [1635874880.499369][4577:4582] CHIP:DMG: 0x0 = 1, - [1635874880.499429][4577:4582] CHIP:DMG: 0x1 = [ - [1635874880.499514][4577:4582] CHIP:DMG: 0x4, 0x9e, 0x26, 0x54, 0x2, 0x45, 0x18, 0xca, 0x68, 0x9c, 0xa0, 0x77, 0xef, 0xb4, 0x37, 0x0, 0xce, 0xb7, 0x15, 0x8d, 0x4a, 0xc7, 0x6a, 0x67, 0x31, 0xf2, 0xba, 0x52, 0x8f, 0xb9, 0xfd, 0x93, 0xed, 0xc0, 0xdc, 0xce, 0xf7, 0x9d, 0x3, 0x3b, 0xc8, 0x63, 0 - [1635874880.499583][4577:4582] CHIP:DMG: ] - [1635874880.499656][4577:4582] CHIP:DMG: 0x2 = 30024, - [1635874880.499726][4577:4582] CHIP:DMG: 0x3 = 0, - [1635874880.499798][4577:4582] CHIP:DMG: 0x4 = 1, - [1635874880.499854][4577:4582] CHIP:DMG: 0x5 = "", - [1635874880.499912][4577:4582] CHIP:DMG: }, - [1635874880.499967][4577:4582] CHIP:DMG: { - [1635874880.500024][4577:4582] CHIP:DMG: 0x0 = 2, - [1635874880.500082][4577:4582] CHIP:DMG: 0x1 = [ - [1635874880.500165][4577:4582] CHIP:DMG: 0x4, 0x5b, 0x93, 0x38, 0xab, 0x50, 0x6, 0x85, 0xc0, 0x50, 0xfe, 0x7d, 0x6c, 0xeb, 0x9d, 0xbd, 0x55, 0x90, 0x5e, 0x4f, 0x54, 0xed, 0x94, 0x21, 0xc0, 0x8d, 0x9d, 0x4f, 0x60, 0x48, 0xdb, 0x38, 0x4a, 0xf4, 0xe2, 0xa3, 0xf9, 0xd0, 0x55, 0xd5, 0x63, 0xd0, - [1635874880.500243][4577:4582] CHIP:DMG: ] - [1635874880.500315][4577:4582] CHIP:DMG: 0x2 = 45896, - [1635874880.500384][4577:4582] CHIP:DMG: 0x3 = 0, - [1635874880.500450][4577:4582] CHIP:DMG: 0x4 = 2, - [1635874880.500504][4577:4582] CHIP:DMG: 0x5 = "", - [1635874880.500562][4577:4582] CHIP:DMG: }, - [1635874880.500619][4577:4582] CHIP:DMG: ], - [1635874880.500671][4577:4582] CHIP:DMG: DataElementVersion = 0x0, - [1635874880.500722][4577:4582] CHIP:DMG: }, - [1635874880.500794][4577:4582] CHIP:DMG: - [1635874880.500838][4577:4582] CHIP:DMG: ], - [1635874880.500902][4577:4582] CHIP:DMG: - [1635874880.500945][4577:4582] CHIP:DMG: } - [1635874880.501124][4577:4582] CHIP:ZCL: ReadAttributesResponse: - [1635874880.501165][4577:4582] CHIP:ZCL: ClusterId: 0x0000_003E - [1635874880.501209][4577:4582] CHIP:ZCL: attributeId: 0x0000_0001 - [1635874880.501250][4577:4582] CHIP:ZCL: status: Success (0x0000) - [1635874880.501285][4577:4582] CHIP:ZCL: attribute TLV Type: 0x16 - [1635874880.501348][4577:4582] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries - [1635874880.501510][4577:4582] CHIP:TOO: FabricDescriptor[1]: - [1635874880.501556][4577:4582] CHIP:TOO: fabricIndex: 1 - [1635874880.501594][4577:4582] CHIP:ZCL: RootPublicKey: 65 - [1635874880.501632][4577:4582] CHIP:TOO: vendorId: 30024 - [1635874880.501666][4577:4582] CHIP:TOO: fabricId: 0 - [1635874880.501703][4577:4582] CHIP:TOO: nodeId: 1 - [1635874880.501739][4577:4582] CHIP:ZCL: Label: - [1635874880.501792][4577:4582] CHIP:TOO: FabricDescriptor[2]: - [1635874880.501832][4577:4582] CHIP:TOO: fabricIndex: 2 - [1635874880.501865][4577:4582] CHIP:ZCL: RootPublicKey: 65 - [1635874880.501902][4577:4582] CHIP:TOO: vendorId: 45896 - [1635874880.501943][4577:4582] CHIP:TOO: fabricId: 0 - [1635874880.501980][4577:4582] CHIP:TOO: nodeId: 2 + ./chip-tool operationalcredentials read fabrics 1 0 --fabric-filtered 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 268962768 + [1650527361.425870][15792:15797] CHIP:TOO: Fabrics: 3 entries + [1650527361.426777][15792:15797] CHIP:TOO: [1]: { + [1650527361.426859][15792:15797] CHIP:TOO: RootPublicKey: 0429A71383F336D80918C9EC655112513E428C073AF7FB44820EC793535302C6E3825C56EE6DD1A683EAA7B59E3F261B46FFA24A6D911E8D88839F4C1B3C84BA01 + [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 + [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 + [1650527361.427376][15792:15797] CHIP:TOO: } + [1650527361.427464][15792:15797] CHIP:TOO: [2]: { + [1650527361.427532][15792:15797] CHIP:TOO: RootPublicKey: 04781BCEE70118049ED61DD5B4E401CF1A09D2F78AE7F5770BE5506AD24238E5E0777277DABAFD062659651C95CC2CA7DEAACE40DB579A946CC07CADB141BE05D7 + [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 + [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 + [1650527361.427868][15792:15797] CHIP:TOO: } + [1650527361.427943][15792:15797] CHIP:TOO: [3]: { + [1650527361.428008][15792:15797] CHIP:TOO: RootPublicKey: 0403EDB5B461030A34EF7EA2F9DB0D46A36185E4755C365AF9344C4959F049EF21D55EAB903A2C7FBFC305EEFA42989250D7517A73E6156062390A60C0D4C41EBD + [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 + [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 + [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" + - label: + "Wait for the expiration of PIXIT_COMM_WIN seconds that was set in + step 6" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true @@ -193,20 +219,99 @@ tests: verification: | On the 1st controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true + + - label: "DNS-SD records shows DUT_CE advertising" + verification: | + ubuntu@ubuntu:~/may16_cntrl/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matterc._udp + + eth0 IPv6 2664ED6939FC373C _matterc._udp local + = eth0 IPv6 2664ED6939FC373C _matterc._udp local + hostname = [E45F010F27530000.local] + address = [fe80::e65f:1ff:fe0f:2753] + port = [5540] + txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "SAI=300" "SII=5000" "VP=65521+32769"] + ubuntu@ubuntu:~/may16_cntrl/connectedhomeip/examples/chip-tool/out/debug$ disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR3 opens a 2nd - commissioning window on DUT_CE using a commissioning timeout of - PIXIT_COMM_WIN seconds using BCM" + "Before the expiration of PIXIT_COMM_WIN seconds that was set in step + 9, TH_CR3 opens a 2nd commissioning window on DUT_CE using a + commissioning timeout of PIXIT_COMM_WIN seconds using BCM" verification: | On the 3rd controller using chip tool, open commissioning window using BCM before the timer expiry of the above step - ./chip-tool pairing administratorcommissioning open-basic-commissioning-window 500 1 0 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 3 0 --timedInteractionTimeoutMs 1000 + + CHIP:DMG: InvokeResponseMessage = + [1650527565.990404][24618:24623] CHIP:DMG: { + [1650527565.990476][24618:24623] CHIP:DMG: suppressResponse = false, + [1650527565.990528][24618:24623] CHIP:DMG: InvokeResponseIBs = + [1650527565.990615][24618:24623] CHIP:DMG: [ + [1650527565.990667][24618:24623] CHIP:DMG: InvokeResponseIB = + [1650527565.990755][24618:24623] CHIP:DMG: { + [1650527565.990816][24618:24623] CHIP:DMG: CommandStatusIB = + [1650527565.990900][24618:24623] CHIP:DMG: { + [1650527565.990967][24618:24623] CHIP:DMG: CommandPathIB = + [1650527565.991042][24618:24623] CHIP:DMG: { + [1650527565.991112][24618:24623] CHIP:DMG: EndpointId = 0x0, + [1650527565.991186][24618:24623] CHIP:DMG: ClusterId = 0x3c, + [1650527565.991257][24618:24623] CHIP:DMG: CommandId = 0x1, + [1650527565.991332][24618:24623] CHIP:DMG: }, + [1650527565.991441][24618:24623] CHIP:DMG: + [1650527565.991505][24618:24623] CHIP:DMG: StatusIB = + [1650527565.991574][24618:24623] CHIP:DMG: { + [1650527565.991645][24618:24623] CHIP:DMG: status = 0x01 (FAILURE), + [1650527565.991743][24618:24623] CHIP:DMG: cluster-status = 0x1, + [1650527565.991830][24618:24623] CHIP:DMG: }, + [1650527565.991918][24618:24623] CHIP:DMG: + [1650527565.991976][24618:24623] CHIP:DMG: }, + [1650527565.992061][24618:24623] CHIP:DMG: + [1650527565.992116][24618:24623] CHIP:DMG: }, + [1650527565.992202][24618:24623] CHIP:DMG: + [1650527565.992253][24618:24623] CHIP:DMG: ], + [1650527565.992316][24618:24623] CHIP:DMG: + [1650527565.992365][24618:24623] CHIP:DMG: InteractionModelRevision = 1 + [1650527565.992414][24618:24623] CHIP:DMG: }, + [1650527565.992535][24618:24623] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 + [1650527565.992601][24618:24623] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true - - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" + - label: + "Wait for the expiration of PIXIT_COMM_WIN seconds that was set in + step 11" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true @@ -215,70 +320,34 @@ tests: verification: | On 1st controller using chip tool, read fabrics list - ./chip-tool operationalcredentials read fabrics-list 1 0 - - [1635875084.555953][4590:4595] CHIP:DMG: ReportData = - [1635875084.555986][4590:4595] CHIP:DMG: { - [1635875084.556021][4590:4595] CHIP:DMG: AttributeDataList = - [1635875084.556059][4590:4595] CHIP:DMG: [ - [1635875084.556105][4590:4595] CHIP:DMG: AttributeDataElement = - [1635875084.556141][4590:4595] CHIP:DMG: { - [1635875084.556179][4590:4595] CHIP:DMG: AttributePath = - [1635875084.556216][4590:4595] CHIP:DMG: { - [1635875084.556263][4590:4595] CHIP:DMG: NodeId = 0x1, - [1635875084.556304][4590:4595] CHIP:DMG: EndpointId = 0x0, - [1635875084.556359][4590:4595] CHIP:DMG: ClusterId = 0x3e, - [1635875084.556408][4590:4595] CHIP:DMG: FieldTag = 0x0000_0001, - [1635875084.556457][4590:4595] CHIP:DMG: } - [1635875084.556509][4590:4595] CHIP:DMG: - [1635875084.556553][4590:4595] CHIP:DMG: Data = [ - [1635875084.556597][4590:4595] CHIP:DMG: - [1635875084.556642][4590:4595] CHIP:DMG: { - [1635875084.556698][4590:4595] CHIP:DMG: 0x0 = 1, - [1635875084.556752][4590:4595] CHIP:DMG: 0x1 = [ - [1635875084.556819][4590:4595] CHIP:DMG: 0x4, 0x9e, 0x26, 0x54, 0x2, 0x45, 0x18, 0xca, 0x68, 0x9c, 0xa0, 0x77, 0xef, 0xb4, 0x37, 0x0, 0xce, 0xb7, 0x15, 0x8d, 0x4a, 0xc7, 0x6a, 0x67, 0x31, 0xf2, 0xba, 0x52, 0x8f, 0xb9, 0xfd, 0x93, 0xed, 0xc0, 0xdc, 0xce, 0xf7, 0x9d, 0x3, 0x3b, 0xc8, 0x63, 0 - [1635875084.556875][4590:4595] CHIP:DMG: ] - [1635875084.556933][4590:4595] CHIP:DMG: 0x2 = 30024, - [1635875084.556975][4590:4595] CHIP:DMG: 0x3 = 0, - [1635875084.557022][4590:4595] CHIP:DMG: 0x4 = 1, - [1635875084.557070][4590:4595] CHIP:DMG: 0x5 = "", - [1635875084.557116][4590:4595] CHIP:DMG: }, - [1635875084.557168][4590:4595] CHIP:DMG: { - [1635875084.557237][4590:4595] CHIP:DMG: 0x0 = 2, - [1635875084.557295][4590:4595] CHIP:DMG: 0x1 = [ - [1635875084.557371][4590:4595] CHIP:DMG: 0x4, 0x5b, 0x93, 0x38, 0xab, 0x50, 0x6, 0x85, 0xc0, 0x50, 0xfe, 0x7d, 0x6c, 0xeb, 0x9d, 0xbd, 0x55, 0x90, 0x5e, 0x4f, 0x54, 0xed, 0x94, 0x21, 0xc0, 0x8d, 0x9d, 0x4f, 0x60, 0x48, 0xdb, 0x38, 0x4a, 0xf4, 0xe2, 0xa3, 0xf9, 0xd0, 0x55, 0xd5, 0x63, 0xd0, - [1635875084.557477][4590:4595] CHIP:DMG: ] - [1635875084.557555][4590:4595] CHIP:DMG: 0x2 = 45896, - [1635875084.557629][4590:4595] CHIP:DMG: 0x3 = 0, - [1635875084.557701][4590:4595] CHIP:DMG: 0x4 = 2, - [1635875084.557757][4590:4595] CHIP:DMG: 0x5 = "", - [1635875084.557828][4590:4595] CHIP:DMG: }, - [1635875084.557888][4590:4595] CHIP:DMG: ], - [1635875084.557948][4590:4595] CHIP:DMG: DataElementVersion = 0x0, - [1635875084.558002][4590:4595] CHIP:DMG: }, - [1635875084.558070][4590:4595] CHIP:DMG: - [1635875084.558115][4590:4595] CHIP:DMG: ], - [1635875084.558179][4590:4595] CHIP:DMG: - [1635875084.558222][4590:4595] CHIP:DMG: } - [1635875084.558385][4590:4595] CHIP:ZCL: ReadAttributesResponse: - [1635875084.558426][4590:4595] CHIP:ZCL: ClusterId: 0x0000_003E - [1635875084.558469][4590:4595] CHIP:ZCL: attributeId: 0x0000_0001 - [1635875084.558508][4590:4595] CHIP:ZCL: status: Success (0x0000) - [1635875084.558543][4590:4595] CHIP:ZCL: attribute TLV Type: 0x16 - [1635875084.558609][4590:4595] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries - [1635875084.558730][4590:4595] CHIP:TOO: FabricDescriptor[1]: - [1635875084.558772][4590:4595] CHIP:TOO: fabricIndex: 1 - [1635875084.558808][4590:4595] CHIP:ZCL: RootPublicKey: 65 - [1635875084.558844][4590:4595] CHIP:TOO: vendorId: 30024 - [1635875084.558887][4590:4595] CHIP:TOO: fabricId: 0 - [1635875084.558923][4590:4595] CHIP:TOO: nodeId: 1 - [1635875084.558954][4590:4595] CHIP:ZCL: Label: - [1635875084.559004][4590:4595] CHIP:TOO: FabricDescriptor[2]: - [1635875084.559044][4590:4595] CHIP:TOO: fabricIndex: 2 - [1635875084.559076][4590:4595] CHIP:ZCL: RootPublicKey: 65 - [1635875084.559111][4590:4595] CHIP:TOO: vendorId: 45896 - [1635875084.559143][4590:4595] CHIP:TOO: fabricId: 0 - [1635875084.559178][4590:4595] CHIP:TOO: nodeId: 2 + ./chip-tool operationalcredentials read fabrics 1 0 --fabric-filtered 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 268962768 + [1650527361.425870][15792:15797] CHIP:TOO: Fabrics: 3 entries + [1650527361.426777][15792:15797] CHIP:TOO: [1]: { + [1650527361.426859][15792:15797] CHIP:TOO: RootPublicKey: 0429A71383F336D80918C9EC655112513E428C073AF7FB44820EC793535302C6E3825C56EE6DD1A683EAA7B59E3F261B46FFA24A6D911E8D88839F4C1B3C84BA01 + [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 + [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 + [1650527361.427376][15792:15797] CHIP:TOO: } + [1650527361.427464][15792:15797] CHIP:TOO: [2]: { + [1650527361.427532][15792:15797] CHIP:TOO: RootPublicKey: 04781BCEE70118049ED61DD5B4E401CF1A09D2F78AE7F5770BE5506AD24238E5E0777277DABAFD062659651C95CC2CA7DEAACE40DB579A946CC07CADB141BE05D7 + [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 + [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 + [1650527361.427868][15792:15797] CHIP:TOO: } + [1650527361.427943][15792:15797] CHIP:TOO: [3]: { + [1650527361.428008][15792:15797] CHIP:TOO: RootPublicKey: 0403EDB5B461030A34EF7EA2F9DB0D46A36185E4755C365AF9344C4959F049EF21D55EAB903A2C7FBFC305EEFA42989250D7517A73E6156062390A60C0D4C41EBD + [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 + [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 + [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - label: @@ -288,42 +357,81 @@ tests: On the 1st controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 - - [1635922853.458816][9456:9461] CHIP:DMG: InvokeCommand = - [1635922853.458865][9456:9461] CHIP:DMG: { - [1635922853.458903][9456:9461] CHIP:DMG: CommandList = - [1635922853.458951][9456:9461] CHIP:DMG: [ - [1635922853.459031][9456:9461] CHIP:DMG: CommandDataIB = - [1635922853.459086][9456:9461] CHIP:DMG: { - [1635922853.459130][9456:9461] CHIP:DMG: CommandPathIB = - [1635922853.459184][9456:9461] CHIP:DMG: { - [1635922853.459235][9456:9461] CHIP:DMG: EndpointId = 0x0, - [1635922853.459291][9456:9461] CHIP:DMG: ClusterId = 0x3c, - [1635922853.459348][9456:9461] CHIP:DMG: CommandId = 0x1, - [1635922853.459400][9456:9461] CHIP:DMG: }, - [1635922853.459458][9456:9461] CHIP:DMG: - [1635922853.459507][9456:9461] CHIP:DMG: StatusIB = - [1635922853.459560][9456:9461] CHIP:DMG: { - [1635922853.459612][9456:9461] CHIP:DMG: status = 0x0, - [1635922853.459664][9456:9461] CHIP:DMG: }, - [1635922853.459718][9456:9461] CHIP:DMG: - [1635922853.459766][9456:9461] CHIP:DMG: }, - [1635922853.459831][9456:9461] CHIP:DMG: - [1635922853.459889][9456:9461] CHIP:DMG: ], - [1635922853.459951][9456:9461] CHIP:DMG: - [1635922853.460004][9456:9461] CHIP:DMG: } - [1635922853.460101][9456:9461] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 - [1635922853.460166][9456:9461] CHIP:TOO: Default Success Response + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR2 opens a - second commissioning window on DUT_CE using a commissioning timeout of - PIXIT_COMM_WIN seconds using BCM" + "Before the expiration of PIXIT_COMM_WIN seconds that was set in step + 14, TH_CR2 opens a second commissioning window on DUT_CE using a + commissioning timeout of PIXIT_COMM_WIN seconds using BCM" verification: | On the 2nd controller using chip tool, open commissioning window using BCM before timer expiry from above step - - ./chip-tool administratorcommissioning open-basic-commissioning-window 100 1 0 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + + CHIP:DMG: InvokeResponseMessage = + [1650527622.373450][15824:15829] CHIP:DMG: { + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = + [1650527622.373734][15824:15829] CHIP:DMG: [ + [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = + [1650527622.373913][15824:15829] CHIP:DMG: { + [1650527622.374001][15824:15829] CHIP:DMG: CommandStatusIB = + [1650527622.374087][15824:15829] CHIP:DMG: { + [1650527622.374182][15824:15829] CHIP:DMG: CommandPathIB = + [1650527622.374296][15824:15829] CHIP:DMG: { + [1650527622.374382][15824:15829] CHIP:DMG: EndpointId = 0x0, + [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, + [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, + [1650527622.374682][15824:15829] CHIP:DMG: }, + [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = + [1650527622.374979][15824:15829] CHIP:DMG: { + [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), + [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, + [1650527622.375320][15824:15829] CHIP:DMG: }, + [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375527][15824:15829] CHIP:DMG: }, + [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375704][15824:15829] CHIP:DMG: }, + [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375864][15824:15829] CHIP:DMG: ], + [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 + [1650527622.376058][15824:15829] CHIP:DMG: }, + [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 + [1650527622.376278][15824:15829] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml index 5e248daf1cf93e..81a7ad65c36f3e 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 22.1.16. [TC-MF-1.16] Open commissioning window twice on DUT using BCM then + 3.1.16. [TC-MF-1.16] Open commissioning window twice on DUT using BCM then ECM [DUT - Commissioner] config: @@ -25,12 +25,14 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" verification: | - 1. Provision the device using your DUT controller (use above instructions) , + "1. Provision the device using your DUT controller (use above instructions) , + " disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using BCM and TH_CR3 - Commissions with TH_CE" + "DUT_CR1 opens a commissioning window on TH_CE using a commissioning + timeout of PIXIT_COMM_WIN seconds using BCM and TH_CR3 Commissions + with TH_CE" verification: | On your DUT controller, open commissioning window using ECM @@ -51,12 +53,16 @@ tests: On 3rd controller using chip tool connect using manual code - ./chip-tool pairing code 1 35484132896 + ./chip-tool pairing manualcode 1 35484132896 + + Verify you got below message + Device commissioning completed with success disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using BCM and TH_CR2 - Commissions with TH_CE" + "DUT_CR1 opens a commissioning window on TH_CE using a commissioning + timeout of PIXIT_COMM_WIN seconds using BCM and TH_CR2 Commissions + with TH_CE" verification: | On your DUT controller, open commissioning window using ECM @@ -75,7 +81,10 @@ tests: [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] On 2nd controller using chip tool connect using manual code - ./chip-tool pairing code 1 35484132896 + ./chip-tool pairing manualcode 1 35484132896 + + Verify you got below message + Device commissioning completed with success disabled: true - label: @@ -85,40 +94,45 @@ tests: On your DUT controller, open commissioning window using BCM Below is the example while using chip tool as controller - - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 - - [1635924941.016801][9606:9611] CHIP:DMG: InvokeCommand = - [1635924941.016871][9606:9611] CHIP:DMG: { - [1635924941.016926][9606:9611] CHIP:DMG: CommandList = - [1635924941.016987][9606:9611] CHIP:DMG: [ - [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = - [1635924941.017115][9606:9611] CHIP:DMG: { - [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = - [1635924941.017262][9606:9611] CHIP:DMG: { - [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, - [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, - [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, - [1635924941.017615][9606:9611] CHIP:DMG: }, - [1635924941.017693][9606:9611] CHIP:DMG: - [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = - [1635924941.017834][9606:9611] CHIP:DMG: { - [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, - [1635924941.017992][9606:9611] CHIP:DMG: }, - [1635924941.018071][9606:9611] CHIP:DMG: - [1635924941.018141][9606:9611] CHIP:DMG: }, - [1635924941.018224][9606:9611] CHIP:DMG: - [1635924941.018283][9606:9611] CHIP:DMG: ], - [1635924941.018354][9606:9611] CHIP:DMG: - [1635924941.018408][9606:9611] CHIP:DMG: } - [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 - [1635924941.018574][9606:9611] CHIP:TOO: Default Success Response + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds, DUT_CR1 opens a 2nd - commissioning window on TH_CE using a commissioning timeout of - PIXIT_COMM_WIN seconds using ECM" + "Before the expiration of PIXIT_COMM_WIN seconds that is set in step + 4, DUT_CR1 opens a 2nd commissioning window on TH_CE using a + commissioning timeout of PIXIT_COMM_WIN seconds using ECM" verification: | On your DUT controller, open commissioning window using ECM before the timer expiry of the above step @@ -126,93 +140,77 @@ tests: ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 - - - [1635925972.865369][9735:9740] CHIP:SC: Success status report received. Session was established - [1635925972.865469][9735:9740] CHIP:IN: New secure session created for device 0x0000000000000001, key 40!! - [1635925972.865568][9735:9740] CHIP:CTL: OpenCommissioningWindow for device ID 1 - [1635925972.872960][9735:9740] CHIP:DMG: ICR moving to [AddingComm] - [1635925972.873019][9735:9740] CHIP:DMG: ICR moving to [AddedComma] - [1635925972.873146][9735:9740] CHIP:IN: Prepared encrypted message 0xaaaafda39d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 60358i with MessageCounter:0. - [1635925972.873205][9735:9740] CHIP:IN: Sending encrypted msg 0xaaaafda39d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13708359 msec - [1635925972.873332][9735:9740] CHIP:DMG: ICR moving to [CommandSen] - [1635925972.873391][9735:9740] CHIP:CTL: Manual pairing code: [35092514987] - [1635925972.873482][9735:9740] CHIP:CTL: SetupQRCode: [MT:00000CQM00I.KG0RJ00] - [1635925972.873554][9735:9740] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916552 on exchange 60357i + CHIP:DMG: InvokeResponseMessage = + [1650527622.373450][15824:15829] CHIP:DMG: { + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = + [1650527622.373734][15824:15829] CHIP:DMG: [ + [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = + [1650527622.373913][15824:15829] CHIP:DMG: { + [1650527622.374001][15824:15829] CHIP:DMG: CommandStatusIB = + [1650527622.374087][15824:15829] CHIP:DMG: { + [1650527622.374182][15824:15829] CHIP:DMG: CommandPathIB = + [1650527622.374296][15824:15829] CHIP:DMG: { + [1650527622.374382][15824:15829] CHIP:DMG: EndpointId = 0x0, + [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, + [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, + [1650527622.374682][15824:15829] CHIP:DMG: }, + [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = + [1650527622.374979][15824:15829] CHIP:DMG: { + [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), + [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, + [1650527622.375320][15824:15829] CHIP:DMG: }, + [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375527][15824:15829] CHIP:DMG: }, + [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375704][15824:15829] CHIP:DMG: }, + [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375864][15824:15829] CHIP:DMG: ], + [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 + [1650527622.376058][15824:15829] CHIP:DMG: }, + [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 + [1650527622.376278][15824:15829] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" verification: | - On your DUT controller, read fabrics list - - Below is the command using chip tool as controller - - ./chip-tool operationalcredentials read fabrics-list 1 0 - [1635926055.539463][10129:10134] CHIP:DMG: ReportData = - [1635926055.539502][10129:10134] CHIP:DMG: { - [1635926055.539535][10129:10134] CHIP:DMG: AttributeDataList = - [1635926055.539575][10129:10134] CHIP:DMG: [ - [1635926055.539625][10129:10134] CHIP:DMG: AttributeDataElement = - [1635926055.539673][10129:10134] CHIP:DMG: { - [1635926055.539745][10129:10134] CHIP:DMG: AttributePath = - [1635926055.539800][10129:10134] CHIP:DMG: { - [1635926055.539849][10129:10134] CHIP:DMG: NodeId = 0x1, - [1635926055.539917][10129:10134] CHIP:DMG: EndpointId = 0x0, - [1635926055.539969][10129:10134] CHIP:DMG: ClusterId = 0x3e, - [1635926055.540085][10129:10134] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926055.540187][10129:10134] CHIP:DMG: } - [1635926055.540258][10129:10134] CHIP:DMG: - [1635926055.540305][10129:10134] CHIP:DMG: Data = [ - [1635926055.540375][10129:10134] CHIP:DMG: - [1635926055.540423][10129:10134] CHIP:DMG: { - [1635926055.540490][10129:10134] CHIP:DMG: 0x0 = 1, - [1635926055.540546][10129:10134] CHIP:DMG: 0x1 = [ - [1635926055.540639][10129:10134] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 - [1635926055.540729][10129:10134] CHIP:DMG: ] - [1635926055.540790][10129:10134] CHIP:DMG: 0x2 = 50504, - [1635926055.540862][10129:10134] CHIP:DMG: 0x3 = 0, - [1635926055.540916][10129:10134] CHIP:DMG: 0x4 = 1, - [1635926055.541001][10129:10134] CHIP:DMG: 0x5 = "", - [1635926055.541085][10129:10134] CHIP:DMG: }, - [1635926055.541159][10129:10134] CHIP:DMG: { - [1635926055.541233][10129:10134] CHIP:DMG: 0x0 = 2, - [1635926055.541292][10129:10134] CHIP:DMG: 0x1 = [ - [1635926055.541373][10129:10134] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, - [1635926055.541472][10129:10134] CHIP:DMG: ] - [1635926055.541535][10129:10134] CHIP:DMG: 0x2 = 33608, - [1635926055.541588][10129:10134] CHIP:DMG: 0x3 = 0, - [1635926055.541657][10129:10134] CHIP:DMG: 0x4 = 2, - [1635926055.541719][10129:10134] CHIP:DMG: 0x5 = "", - [1635926055.541781][10129:10134] CHIP:DMG: }, - [1635926055.541852][10129:10134] CHIP:DMG: ], - [1635926055.541909][10129:10134] CHIP:DMG: DataElementVersion = 0x0, - [1635926055.541963][10129:10134] CHIP:DMG: }, - [1635926055.542032][10129:10134] CHIP:DMG: - [1635926055.542074][10129:10134] CHIP:DMG: ], - [1635926055.542137][10129:10134] CHIP:DMG: - [1635926055.542175][10129:10134] CHIP:DMG: } - [1635926055.542385][10129:10134] CHIP:ZCL: ReadAttributesResponse: - [1635926055.542427][10129:10134] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926055.542484][10129:10134] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926055.542521][10129:10134] CHIP:ZCL: status: Success (0x0000) - [1635926055.542556][10129:10134] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926055.542626][10129:10134] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries - [1635926055.542774][10129:10134] CHIP:TOO: FabricDescriptor[1]: - [1635926055.542816][10129:10134] CHIP:TOO: fabricIndex: 1 - [1635926055.542853][10129:10134] CHIP:ZCL: RootPublicKey: 65 - [1635926055.542906][10129:10134] CHIP:TOO: vendorId: 50504 - [1635926055.542938][10129:10134] CHIP:TOO: fabricId: 0 - [1635926055.542973][10129:10134] CHIP:TOO: nodeId: 1 - [1635926055.543010][10129:10134] CHIP:ZCL: Label: - [1635926055.543077][10129:10134] CHIP:TOO: FabricDescriptor[2]: - [1635926055.543117][10129:10134] CHIP:TOO: fabricIndex: 2 - [1635926055.543165][10129:10134] CHIP:ZCL: RootPublicKey: 65 - [1635926055.543228][10129:10134] CHIP:TOO: vendorId: 33608 - [1635926055.543263][10129:10134] CHIP:TOO: fabricId: 0 - [1635926055.543293][10129:10134] CHIP:TOO: nodeId: 2 + On 1st controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics 1234 0 --fabric-filtered 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 268962768 + [1650527361.425870][15792:15797] CHIP:TOO: Fabrics: 3 entries + [1650527361.426777][15792:15797] CHIP:TOO: [1]: { + [1650527361.426859][15792:15797] CHIP:TOO: RootPublicKey: 0429A71383F336D80918C9EC655112513E428C073AF7FB44820EC793535302C6E3825C56EE6DD1A683EAA7B59E3F261B46FFA24A6D911E8D88839F4C1B3C84BA01 + [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 + [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 + [1650527361.427376][15792:15797] CHIP:TOO: } + [1650527361.427464][15792:15797] CHIP:TOO: [2]: { + [1650527361.427532][15792:15797] CHIP:TOO: RootPublicKey: 04781BCEE70118049ED61DD5B4E401CF1A09D2F78AE7F5770BE5506AD24238E5E0777277DABAFD062659651C95CC2CA7DEAACE40DB579A946CC07CADB141BE05D7 + [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 + [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 + [1650527361.427868][15792:15797] CHIP:TOO: } + [1650527361.427943][15792:15797] CHIP:TOO: [3]: { + [1650527361.428008][15792:15797] CHIP:TOO: RootPublicKey: 0403EDB5B461030A34EF7EA2F9DB0D46A36185E4755C365AF9344C4959F049EF21D55EAB903A2C7FBFC305EEFA42989250D7517A73E6156062390A60C0D4C41EBD + [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 + [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 + [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" + - label: + "Wait for the expiration of PIXIT_COMM_WIN seconds that is set in step + 5" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true @@ -240,97 +238,88 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR3 opens a 2nd - commissioning window on TH_CE using a commissioning timeout of - PIXIT_COMM_WIN seconds using ECM" + "Before the expiration of PIXIT_COMM_WIN seconds that is set in step + 8, TH_CR3 opens a 2nd commissioning window on TH_CE using a + commissioning timeout of PIXIT_COMM_WIN seconds using ECM" verification: | On the 3rd controller using chip tool, open commissioning window using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 - [1635926152.609542][10140:10145] CHIP:SC: Success status report received. Session was established - [1635926152.609582][10140:10145] CHIP:IN: New secure session created for device 0x0000000000000001, key 42!! - [1635926152.609695][10140:10145] CHIP:CTL: OpenCommissioningWindow for device ID 1 - [1635926152.617050][10140:10145] CHIP:DMG: ICR moving to [AddingComm] - [1635926152.617103][10140:10145] CHIP:DMG: ICR moving to [AddedComma] - [1635926152.617228][10140:10145] CHIP:IN: Prepared encrypted message 0xaaab02ca7d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 6544i with MessageCounter:0. - [1635926152.617286][10140:10145] CHIP:IN: Sending encrypted msg 0xaaab02ca7d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13888103 msec - [1635926152.617454][10140:10145] CHIP:DMG: ICR moving to [CommandSen] - [1635926152.617523][10140:10145] CHIP:CTL: Manual pairing code: [35484132896] - [1635926152.617611][10140:10145] CHIP:CTL: SetupQRCode: [MT:00000CQM00QHQP0JG00] + CHIP:DMG: InvokeResponseMessage = + [1650527622.373450][15824:15829] CHIP:DMG: { + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = + [1650527622.373734][15824:15829] CHIP:DMG: [ + [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = + [1650527622.373913][15824:15829] CHIP:DMG: { + [1650527622.374001][15824:15829] CHIP:DMG: CommandStatusIB = + [1650527622.374087][15824:15829] CHIP:DMG: { + [1650527622.374182][15824:15829] CHIP:DMG: CommandPathIB = + [1650527622.374296][15824:15829] CHIP:DMG: { + [1650527622.374382][15824:15829] CHIP:DMG: EndpointId = 0x0, + [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, + [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, + [1650527622.374682][15824:15829] CHIP:DMG: }, + [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = + [1650527622.374979][15824:15829] CHIP:DMG: { + [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), + [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, + [1650527622.375320][15824:15829] CHIP:DMG: }, + [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375527][15824:15829] CHIP:DMG: }, + [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375704][15824:15829] CHIP:DMG: }, + [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375864][15824:15829] CHIP:DMG: ], + [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 + [1650527622.376058][15824:15829] CHIP:DMG: }, + [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 + [1650527622.376278][15824:15829] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" verification: | - On your DUT controller, read fabrics list - - Below is the command when using chip tool controller - - ./chip-tool operationalcredentials read fabrics-list 1 0 - - [1635926361.458197][10154:10159] CHIP:DMG: ReportData = - [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } - [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ - [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 - [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, - [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, - [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], - [1635926361.460357][10154:10159] CHIP:DMG: - [1635926361.460388][10154:10159] CHIP:DMG: } - [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries - [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: - [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 + On 1st controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics 1234 0 --fabric-filtered 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 268962768 + [1650527361.425870][15792:15797] CHIP:TOO: Fabrics: 3 entries + [1650527361.426777][15792:15797] CHIP:TOO: [1]: { + [1650527361.426859][15792:15797] CHIP:TOO: RootPublicKey: 0429A71383F336D80918C9EC655112513E428C073AF7FB44820EC793535302C6E3825C56EE6DD1A683EAA7B59E3F261B46FFA24A6D911E8D88839F4C1B3C84BA01 + [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 + [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 + [1650527361.427376][15792:15797] CHIP:TOO: } + [1650527361.427464][15792:15797] CHIP:TOO: [2]: { + [1650527361.427532][15792:15797] CHIP:TOO: RootPublicKey: 04781BCEE70118049ED61DD5B4E401CF1A09D2F78AE7F5770BE5506AD24238E5E0777277DABAFD062659651C95CC2CA7DEAACE40DB579A946CC07CADB141BE05D7 + [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 + [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 + [1650527361.427868][15792:15797] CHIP:TOO: } + [1650527361.427943][15792:15797] CHIP:TOO: [3]: { + [1650527361.428008][15792:15797] CHIP:TOO: RootPublicKey: 0403EDB5B461030A34EF7EA2F9DB0D46A36185E4755C365AF9344C4959F049EF21D55EAB903A2C7FBFC305EEFA42989250D7517A73E6156062390A60C0D4C41EBD + [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 + [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 + [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 + [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 + [1650527361.428335][15792:15797] CHIP:TOO: } + disabled: true + + - label: + "Wait for the expiration of PIXIT_COMM_WIN seconds that is set in step + 9" + verification: | + disabled: true - label: @@ -356,22 +345,44 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR2 opens a - second commissioning window on TH_CE using a commissioning timeout of - PIXIT_COMM_WIN seconds using ECM" + "Before the expiration of PIXIT_COMM_WIN seconds that is set in step + 12, TH_CR2 opens a second commissioning window on TH_CE using a + commissioning timeout of PIXIT_COMM_WIN seconds using ECM" verification: | On the 2nd controller using chip tool, open commissioning window using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 - [1635926434.941379][10165:10170] CHIP:SC: Success status report received. Session was established - [1635926434.941428][10165:10170] CHIP:IN: New secure session created for device 0x0000000000000001, key 44!! - [1635926434.941515][10165:10170] CHIP:CTL: OpenCommissioningWindow for device ID 1 - [1635926434.949324][10165:10170] CHIP:DMG: ICR moving to [AddingComm] - [1635926434.949381][10165:10170] CHIP:DMG: ICR moving to [AddedComma] - [1635926434.949532][10165:10170] CHIP:IN: Prepared encrypted message 0xaaaad95dbd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 19421i with MessageCounter:0. - [1635926434.949592][10165:10170] CHIP:IN: Sending encrypted msg 0xaaaad95dbd10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 14170436 msec - [1635926434.949727][10165:10170] CHIP:DMG: ICR moving to [CommandSen] - [1635926434.949788][10165:10170] CHIP:CTL: Manual pairing code: [35484132896] - [1635926434.949865][10165:10170] CHIP:CTL: SetupQRCode: [MT:00000CQM00OAX.7RA00] + CHIP:DMG: InvokeResponseMessage = + [1650527622.373450][15824:15829] CHIP:DMG: { + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = + [1650527622.373734][15824:15829] CHIP:DMG: [ + [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = + [1650527622.373913][15824:15829] CHIP:DMG: { + [1650527622.374001][15824:15829] CHIP:DMG: CommandStatusIB = + [1650527622.374087][15824:15829] CHIP:DMG: { + [1650527622.374182][15824:15829] CHIP:DMG: CommandPathIB = + [1650527622.374296][15824:15829] CHIP:DMG: { + [1650527622.374382][15824:15829] CHIP:DMG: EndpointId = 0x0, + [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, + [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, + [1650527622.374682][15824:15829] CHIP:DMG: }, + [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = + [1650527622.374979][15824:15829] CHIP:DMG: { + [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), + [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, + [1650527622.375320][15824:15829] CHIP:DMG: }, + [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375527][15824:15829] CHIP:DMG: }, + [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375704][15824:15829] CHIP:DMG: }, + [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375864][15824:15829] CHIP:DMG: ], + [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 + [1650527622.376058][15824:15829] CHIP:DMG: }, + [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 + [1650527622.376278][15824:15829] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml index 45aec18f3dd977..2462fc88390483 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml @@ -33,98 +33,61 @@ tests: verification: | On first controller, usinadministratorcommissioningg chip tool open commissioning window. - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 - - CHIP:DMG: InvokeCommand = - [1635694087.587121][3208:3213] CHIP:DMG: { - [1635694087.587168][3208:3213] CHIP:DMG: CommandList = - [1635694087.587221][3208:3213] CHIP:DMG: [ - [1635694087.587272][3208:3213] CHIP:DMG: CommandDataIB = - [1635694087.587329][3208:3213] CHIP:DMG: { - [1635694087.587392][3208:3213] CHIP:DMG: CommandPathIB = - [1635694087.587458][3208:3213] CHIP:DMG: { - [1635694087.587524][3208:3213] CHIP:DMG: EndpointId = 0x0, - [1635694087.587596][3208:3213] CHIP:DMG: ClusterId = 0x3c, - [1635694087.587666][3208:3213] CHIP:DMG: CommandId = 0x1, - [1635694087.587731][3208:3213] CHIP:DMG: }, - [1635694087.587803][3208:3213] CHIP:DMG: - [1635694087.587861][3208:3213] CHIP:DMG: StatusIB = - [1635694087.587933][3208:3213] CHIP:DMG: { - [1635694087.587997][3208:3213] CHIP:DMG: status = 0x0, - [1635694087.588067][3208:3213] CHIP:DMG: }, - [1635694087.588134][3208:3213] CHIP:DMG: - [1635694087.588193][3208:3213] CHIP:DMG: }, - [1635694087.588256][3208:3213] CHIP:DMG: - [1635694087.588306][3208:3213] CHIP:DMG: ], - [1635694087.588366][3208:3213] CHIP:DMG: - [1635694087.588412][3208:3213] CHIP:DMG: } - [1635694087.588497][3208:3213] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 - [1635694087.588555][3208:3213] CHIP:TOO: Default Success Response - [1635694087.588642][3208:3213] CHIP:DMG: ICR moving to [AwaitingDe] - [1635694087.588707][3208:3213] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 54781i + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: "TH_CR1 reads the list of Fabrics on TH_CE" verification: | On first controller, using chip tool read fabricList - ./chip-tool operationalcredentials read fabrics-list 1 0 - - CHIP:DMG: ReportData = - [1635694137.957373][3218:3223] CHIP:DMG: { - [1635694137.957420][3218:3223] CHIP:DMG: AttributeDataList = - [1635694137.957460][3218:3223] CHIP:DMG: [ - [1635694137.957510][3218:3223] CHIP:DMG: AttributeDataElement = - [1635694137.957561][3218:3223] CHIP:DMG: { - [1635694137.957615][3218:3223] CHIP:DMG: AttributePath = - [1635694137.957681][3218:3223] CHIP:DMG: { - [1635694137.957727][3218:3223] CHIP:DMG: NodeId = 0x1, - [1635694137.957786][3218:3223] CHIP:DMG: EndpointId = 0x0, - [1635694137.957834][3218:3223] CHIP:DMG: ClusterId = 0x3e, - [1635694137.957895][3218:3223] CHIP:DMG: FieldTag = 0x0000_0001, - [1635694137.957939][3218:3223] CHIP:DMG: } - [1635694137.957998][3218:3223] CHIP:DMG: - [1635694137.958040][3218:3223] CHIP:DMG: Data = [ - [1635694137.958096][3218:3223] CHIP:DMG: - [1635694137.958132][3218:3223] CHIP:DMG: { - [1635694137.958201][3218:3223] CHIP:DMG: 0x0 = 1, - [1635694137.958276][3218:3223] CHIP:DMG: 0x1 = [ - [1635694137.958356][3218:3223] CHIP:DMG: 0x4, 0x67, 0x23, 0x35, 0x8d, 0xdf, 0x2, 0xdc, 0xe6, 0xe4, 0x3e, 0xfa, 0x1a, 0xb5, 0x99, 0xb8, 0x10, 0x8b, 0x8c, 0x4d, 0x67, 0xa8, 0x4e, 0x6, 0x3e, 0x15, 0xa5, 0xf4, 0x37, 0x99, 0xd2, 0x2e, 0x39, 0x4a, 0x6c, 0xd0, 0xc5, 0xd, 0xea, 0x46, 0x3, 0x62, 0x - [1635694137.958411][3218:3223] CHIP:DMG: ] - [1635694137.958481][3218:3223] CHIP:DMG: 0x2 = 30024, - [1635694137.958549][3218:3223] CHIP:DMG: 0x3 = 0, - [1635694137.958602][3218:3223] CHIP:DMG: 0x4 = 1, - [1635694137.958666][3218:3223] CHIP:DMG: 0x5 = "", - [1635694137.958736][3218:3223] CHIP:DMG: }, - [1635694137.958783][3218:3223] CHIP:DMG: ], - [1635694137.958839][3218:3223] CHIP:DMG: DataElementVersion = 0x0, - [1635694137.958896][3218:3223] CHIP:DMG: }, - [1635694137.958959][3218:3223] CHIP:DMG: - [1635694137.959020][3218:3223] CHIP:DMG: ], - [1635694137.959084][3218:3223] CHIP:DMG: - [1635694137.959118][3218:3223] CHIP:DMG: } - [1635694137.959266][3218:3223] CHIP:ZCL: ReadAttributesResponse: - [1635694137.959313][3218:3223] CHIP:ZCL: ClusterId: 0x0000_003E - [1635694137.959349][3218:3223] CHIP:ZCL: attributeId: 0x0000_0001 - [1635694137.959380][3218:3223] CHIP:ZCL: status: Success (0x0000) - [1635694137.959410][3218:3223] CHIP:ZCL: attribute TLV Type: 0x16 - [1635694137.959467][3218:3223] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 1 entries - [1635694137.959654][3218:3223] CHIP:TOO: FabricDescriptor[1]: - [1635694137.959707][3218:3223] CHIP:TOO: fabricIndex: 1 - [1635694137.959740][3218:3223] CHIP:ZCL: RootPublicKey: 65 - [1635694137.959772][3218:3223] CHIP:TOO: vendorId: 30024 - [1635694137.959803][3218:3223] CHIP:TOO: fabricId: 0 - [1635694137.959835][3218:3223] CHIP:TOO: nodeId: 1 - [1635694137.959866][3218:3223] CHIP:ZCL: Label: - [1635694137.960006][3218:3223] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 46522i - disabled: true + ./chip-tool operationalcredentials read fabrics 1234 0 --fabric-filtered 0 - - label: "DUT_CR2 starts a commissioning process with TH_CE" - verification: | - Using your DUT Controller connect to the accessory. - Below is the example when using chip tool as controller - ./chip-tool pairing onnetwork 1 20202021 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3621507058 + [1649245801.244173][10091:10096] CHIP:TOO: Fabrics: 1 entries + [1649245801.244305][10091:10096] CHIP:TOO: [1]: { + [1649245801.244348][10091:10096] CHIP:TOO: RootPublicKey: 045541017FCEFD0D83963C9ED7F21380C6B789EB989B5D20DC318FAE92D60D0F685666505E9C4F86C49ADC71AB3A8B9B44FD43214CF9BE2B6D47DE01F28FE1544F + [1649245801.244400][10091:10096] CHIP:TOO: VendorId: 65521 + [1649245801.244431][10091:10096] CHIP:TOO: FabricId: 1 + [1649245801.244461][10091:10096] CHIP:TOO: NodeId: 1 + [1649245801.244491][10091:10096] CHIP:TOO: Label: + [1649245801.244521][10091:10096] CHIP:TOO: FabricIndex: 1 + [1649245801.244552][10091:10096] CHIP:TOO: } + [1649245801.244671][10091:10096] CHIP:EM: Sending Standalone Ack for MessageCounter:8407998 on exchange 12989i disabled: true - label: @@ -134,64 +97,39 @@ tests: Using your DUT controller write attribute and read attribute to and from TH_CE Below is the example while using chip tool on second controller, - ./chip-tool basic write user-label te5new 2 0 - [1635861872.956332][5788:5793] CHIP:DMG: WriteResponse = - [1635861872.956373][5788:5793] CHIP:DMG: { - [1635861872.956407][5788:5793] CHIP:DMG: AttributeStatusList = - [1635861872.956443][5788:5793] CHIP:DMG: [ - [1635861872.956511][5788:5793] CHIP:DMG: AttributeStatusIB = - [1635861872.956561][5788:5793] CHIP:DMG: { - [1635861872.956604][5788:5793] CHIP:DMG: AttributePath = - [1635861872.956653][5788:5793] CHIP:DMG: { - [1635861872.956704][5788:5793] CHIP:DMG: FieldTag = 0x0000_0005, - [1635861872.956753][5788:5793] CHIP:DMG: NodeId = 0x0, - [1635861872.956801][5788:5793] CHIP:DMG: ClusterId = 0x28, - [1635861872.956847][5788:5793] CHIP:DMG: EndpointId = 0x0, - [1635861872.956891][5788:5793] CHIP:DMG: } - [1635861872.956940][5788:5793] CHIP:DMG: - [1635861872.956981][5788:5793] CHIP:DMG: StatusIB = - [1635861872.957034][5788:5793] CHIP:DMG: { - [1635861872.957079][5788:5793] CHIP:DMG: status = 0x0, - [1635861872.957119][5788:5793] CHIP:DMG: }, - [1635861872.957172][5788:5793] CHIP:DMG: - [1635861872.957215][5788:5793] CHIP:DMG: }, - [1635861872.957265][5788:5793] CHIP:DMG: - [1635861872.957302][5788:5793] CHIP:DMG: ], - [1635861872.957349][5788:5793] CHIP:DMG: - [1635861872.957379][5788:5793] CHIP:DMG: } - [1635861872.957451][5788:5793] CHIP:ZCL: WriteResponse: - [1635861872.957485][5788:5793] CHIP:ZCL: status: Success (0x0000) - [1635861872.957523][5788:5793] CHIP:TOO: Default Success Response - - - ./chip-tool basic read user-label 1 0 - [1635861971.232185][5799:5804] CHIP:DMG: ReportData = - [1635861971.232222][5799:5804] CHIP:DMG: { - [1635861971.232255][5799:5804] CHIP:DMG: AttributeDataList = - [1635861971.232296][5799:5804] CHIP:DMG: [ - [1635861971.232335][5799:5804] CHIP:DMG: AttributeDataElement = - [1635861971.232378][5799:5804] CHIP:DMG: { - [1635861971.232417][5799:5804] CHIP:DMG: AttributePath = - [1635861971.232508][5799:5804] CHIP:DMG: { - [1635861971.232555][5799:5804] CHIP:DMG: NodeId = 0x1, - [1635861971.232627][5799:5804] CHIP:DMG: EndpointId = 0x0, - [1635861971.232680][5799:5804] CHIP:DMG: ClusterId = 0x28, - [1635861971.232857][5799:5804] CHIP:DMG: FieldTag = 0x0000_0005, - [1635861971.232907][5799:5804] CHIP:DMG: } - [1635861971.232960][5799:5804] CHIP:DMG: - [1635861971.233009][5799:5804] CHIP:DMG: Data = "te5new", - [1635861971.233097][5799:5804] CHIP:DMG: DataElementVersion = 0x0, - [1635861971.233135][5799:5804] CHIP:DMG: }, - [1635861971.233180][5799:5804] CHIP:DMG: - [1635861971.233217][5799:5804] CHIP:DMG: ], - [1635861971.233260][5799:5804] CHIP:DMG: - [1635861971.233290][5799:5804] CHIP:DMG: } - [1635861971.233414][5799:5804] CHIP:ZCL: ReadAttributesResponse: - [1635861971.233449][5799:5804] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635861971.233484][5799:5804] CHIP:ZCL: attributeId: 0x0000_0005 - [1635861971.233517][5799:5804] CHIP:ZCL: status: Success (0x0000) - [1635861971.233551][5799:5804] CHIP:ZCL: attribute TLV Type: 0x0c - [1635861971.233587][5799:5804] CHIP:TOO: CharString attribute Response: te5new + ./chip-tool basic write node-label te5new 2 0 + + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] + + + ./chip-tool basic read node-label 1 0 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te8 + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - label: "DUT_CR2 reads the list of Fabrics on TH_CE" @@ -199,69 +137,27 @@ tests: On your DUT controller read fabricList Below is the example while using chip tool on second controller, - ./chip-tool operationalcredentials read fabrics-list 2 0 - [1635862039.896395][5808:5813] CHIP:DMG: ReportData = - [1635862039.896430][5808:5813] CHIP:DMG: { - [1635862039.896490][5808:5813] CHIP:DMG: AttributeDataList = - [1635862039.896532][5808:5813] CHIP:DMG: [ - [1635862039.896574][5808:5813] CHIP:DMG: AttributeDataElement = - [1635862039.896636][5808:5813] CHIP:DMG: { - [1635862039.896676][5808:5813] CHIP:DMG: AttributePath = - [1635862039.896740][5808:5813] CHIP:DMG: { - [1635862039.896803][5808:5813] CHIP:DMG: NodeId = 0x1, - [1635862039.896851][5808:5813] CHIP:DMG: EndpointId = 0x0, - [1635862039.896907][5808:5813] CHIP:DMG: ClusterId = 0x3e, - [1635862039.896977][5808:5813] CHIP:DMG: FieldTag = 0x0000_0001, - [1635862039.897021][5808:5813] CHIP:DMG: } - [1635862039.897084][5808:5813] CHIP:DMG: - [1635862039.897131][5808:5813] CHIP:DMG: Data = [ - [1635862039.897190][5808:5813] CHIP:DMG: - [1635862039.897248][5808:5813] CHIP:DMG: { - [1635862039.897292][5808:5813] CHIP:DMG: 0x0 = 1, - [1635862039.897337][5808:5813] CHIP:DMG: 0x1 = [ - [1635862039.897426][5808:5813] CHIP:DMG: 0x4, 0x6f, 0x9b, 0xb2, 0xcb, 0xc2, 0x9b, 0x9c, 0x23, 0xed, 0xb5, 0xde, 0x91, 0xa7, 0xb2, 0x53, 0xd, 0x0, 0x4, 0x80, 0xe3, 0x6c, 0xa6, 0x2e, 0x1e, 0x9a, 0x24, 0x62, 0xcb, 0xf, 0x9a, 0x58, 0x8b, 0x96, 0xab, 0x3f, 0x59, 0xfd, 0x92, 0x83, 0xf0, 0x42, 0x - [1635862039.897499][5808:5813] CHIP:DMG: ] - [1635862039.897677][5808:5813] CHIP:DMG: 0x2 = 13640, - [1635862039.897837][5808:5813] CHIP:DMG: 0x3 = 0, - [1635862039.897964][5808:5813] CHIP:DMG: 0x4 = 1, - [1635862039.898041][5808:5813] CHIP:DMG: 0x5 = "", - [1635862039.898102][5808:5813] CHIP:DMG: }, - [1635862039.898159][5808:5813] CHIP:DMG: { - [1635862039.898235][5808:5813] CHIP:DMG: 0x0 = 2, - [1635862039.898289][5808:5813] CHIP:DMG: 0x1 = [ - [1635862039.898388][5808:5813] CHIP:DMG: 0x4, 0x83, 0xb3, 0x39, 0xe3, 0x71, 0xc2, 0xd4, 0x5d, 0x6d, 0xc9, 0x86, 0xba, 0x66, 0xba, 0x6e, 0x4e, 0x85, 0x3f, 0xd5, 0xbc, 0x26, 0x8b, 0x6, 0xc6, 0x3c, 0xb2, 0x6f, 0xc0, 0xd1, 0x37, 0xb4, 0xb7, 0x6c, 0x80, 0x81, 0x73, 0x2c, 0xd0, 0x16, 0xfc, 0x34, - [1635862039.898592][5808:5813] CHIP:DMG: ] - [1635862039.898705][5808:5813] CHIP:DMG: 0x2 = 58184, - [1635862039.898783][5808:5813] CHIP:DMG: 0x3 = 0, - [1635862039.898864][5808:5813] CHIP:DMG: 0x4 = 1, - [1635862039.898921][5808:5813] CHIP:DMG: 0x5 = "", - [1635862039.898997][5808:5813] CHIP:DMG: }, - [1635862039.899113][5808:5813] CHIP:DMG: ], - [1635862039.899195][5808:5813] CHIP:DMG: DataElementVersion = 0x0, - [1635862039.899254][5808:5813] CHIP:DMG: }, - [1635862039.899340][5808:5813] CHIP:DMG: - [1635862039.899385][5808:5813] CHIP:DMG: ], - [1635862039.899478][5808:5813] CHIP:DMG: - [1635862039.899521][5808:5813] CHIP:DMG: } - [1635862039.899811][5808:5813] CHIP:ZCL: ReadAttributesResponse: - [1635862039.899873][5808:5813] CHIP:ZCL: ClusterId: 0x0000_003E - [1635862039.899918][5808:5813] CHIP:ZCL: attributeId: 0x0000_0001 - [1635862039.899958][5808:5813] CHIP:ZCL: status: Success (0x0000) - [1635862039.899994][5808:5813] CHIP:ZCL: attribute TLV Type: 0x16 - [1635862039.900060][5808:5813] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries - [1635862039.900357][5808:5813] CHIP:TOO: FabricDescriptor[1]: - [1635862039.900420][5808:5813] CHIP:TOO: fabricIndex: 1 - [1635862039.900480][5808:5813] CHIP:ZCL: RootPublicKey: 65 - [1635862039.900532][5808:5813] CHIP:TOO: vendorId: 13640 - [1635862039.900564][5808:5813] CHIP:TOO: fabricId: 0 - [1635862039.900602][5808:5813] CHIP:TOO: nodeId: 1 - [1635862039.900639][5808:5813] CHIP:ZCL: Label: - [1635862039.900697][5808:5813] CHIP:TOO: FabricDescriptor[2]: - [1635862039.900739][5808:5813] CHIP:TOO: fabricIndex: 2 - [1635862039.900793][5808:5813] CHIP:ZCL: RootPublicKey: 65 - [1635862039.900826][5808:5813] CHIP:TOO: vendorId: 58184 - [1635862039.900879][5808:5813] CHIP:TOO: fabricId: 0 - [1635862039.900953][5808:5813] CHIP:TOO: nodeId: 1 + ./chip-tool operationalcredentials read fabrics 2 0 --fabric-filtered 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3229397217 + [1650277071.834099][40790:40795] CHIP:TOO: Fabrics: 2 entries + [1650277071.834120][40790:40795] CHIP:TOO: [1]: { + [1650277071.834126][40790:40795] CHIP:TOO: RootPublicKey: 0426F120BC098B3BDBA37807F6C2F7F396F5CD89F81F4AF4C80C1089B9B856F1FCDC10AA8A0CF30F629FA9E13E131330C3C53D917C3048456D73E943DB63910823 + [1650277071.834134][40790:40795] CHIP:TOO: VendorId: 65521 + [1650277071.834137][40790:40795] CHIP:TOO: FabricId: 1 + [1650277071.834141][40790:40795] CHIP:TOO: NodeId: 1 + [1650277071.834147][40790:40795] CHIP:TOO: Label: + [1650277071.834151][40790:40795] CHIP:TOO: FabricIndex: 1 + [1650277071.834155][40790:40795] CHIP:TOO: } + [1650277071.834161][40790:40795] CHIP:TOO: [2]: { + [1650277071.834165][40790:40795] CHIP:TOO: RootPublicKey: 045B7C9F80F17A0D5B2EA727562424A0AC978C2F4A7BBE659C9076978A6630771166AB1506D714279AFDF2A3B33A643025E0194A376A520B1F6773DB2E4993B5CF + [1650277071.834169][40790:40795] CHIP:TOO: VendorId: 65521 + [1650277071.834173][40790:40795] CHIP:TOO: FabricId: 1 + [1650277071.834176][40790:40795] CHIP:TOO: NodeId: 2 + [1650277071.834179][40790:40795] CHIP:TOO: Label: + [1650277071.834182][40790:40795] CHIP:TOO: FabricIndex: 2 + [1650277071.834186][40790:40795] CHIP:TOO: } + [1650277071.834215][40790:40795] CHIP:EM: Sending Standalone Ack for MessageCounter:15057119 on exchange 50631i disabled: true - label: @@ -270,131 +166,82 @@ tests: verification: | On first controller, using chip-tool write attribute, Verify read attribute returns the updated value written. - ./chip-tool basic write user-label te5new 1 0 - - [1635862117.716433][3691:3696] CHIP:DMG: WriteResponse = - [1635862117.716467][3691:3696] CHIP:DMG: { - [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = - [1635862117.716535][3691:3696] CHIP:DMG: [ - [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = - [1635862117.716608][3691:3696] CHIP:DMG: { - [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = - [1635862117.716689][3691:3696] CHIP:DMG: { - [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, - [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, - [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, - [1635862117.716914][3691:3696] CHIP:DMG: } - [1635862117.716962][3691:3696] CHIP:DMG: - [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = - [1635862117.717044][3691:3696] CHIP:DMG: { - [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, - [1635862117.717130][3691:3696] CHIP:DMG: }, - [1635862117.717173][3691:3696] CHIP:DMG: - [1635862117.717212][3691:3696] CHIP:DMG: }, - [1635862117.717256][3691:3696] CHIP:DMG: - [1635862117.717288][3691:3696] CHIP:DMG: ], - [1635862117.717330][3691:3696] CHIP:DMG: - [1635862117.717362][3691:3696] CHIP:DMG: } - [1635862117.717462][3691:3696] CHIP:ZCL: WriteResponse: - [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) - [1635862117.717525][3691:3696] CHIP:TOO: Default Success Response - - ./chip-tool basic read user-label 1 0 - [1635862186.734626][3701:3706] CHIP:DMG: ReportData = - [1635862186.734664][3701:3706] CHIP:DMG: { - [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = - [1635862186.734735][3701:3706] CHIP:DMG: [ - [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = - [1635862186.734809][3701:3706] CHIP:DMG: { - [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = - [1635862186.734895][3701:3706] CHIP:DMG: { - [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, - [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, - [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, - [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862186.735335][3701:3706] CHIP:DMG: } - [1635862186.735383][3701:3706] CHIP:DMG: - [1635862186.735431][3701:3706] CHIP:DMG: Data = "te5new", - [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, - [1635862186.735533][3701:3706] CHIP:DMG: }, - [1635862186.735581][3701:3706] CHIP:DMG: - [1635862186.735617][3701:3706] CHIP:DMG: ], - [1635862186.735657][3701:3706] CHIP:DMG: - [1635862186.735691][3701:3706] CHIP:DMG: } - [1635862186.735799][3701:3706] CHIP:ZCL: ReadAttributesResponse: - [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) - [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute Response: te5new + ./chip-tool basic write node-label te8 1 0 + + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] + + ./chip-tool basic read node-label 1 0 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te8 + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - label: - "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR2 reads, writes and then reads the Basic Information Clusters + NodeLabel mandatory attribute of TH_CE" verification: | - Using your DUT controller write attribute and read attribute to and from TH_CE + Using your DUT controller read, write attribute and then read attribute to and from TH_CE + + Below is the example while using chip tool on second controller, - ./chip-tool basic write user-label te5new 2 0 - 1635862254.426741][5821:5826] CHIP:DMG: WriteResponse = - [1635862254.426777][5821:5826] CHIP:DMG: { - [1635862254.426807][5821:5826] CHIP:DMG: AttributeStatusList = - [1635862254.426842][5821:5826] CHIP:DMG: [ - [1635862254.426876][5821:5826] CHIP:DMG: AttributeStatusIB = - [1635862254.426919][5821:5826] CHIP:DMG: { - [1635862254.426953][5821:5826] CHIP:DMG: AttributePath = - [1635862254.427002][5821:5826] CHIP:DMG: { - [1635862254.427047][5821:5826] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862254.427085][5821:5826] CHIP:DMG: NodeId = 0x0, - [1635862254.427138][5821:5826] CHIP:DMG: ClusterId = 0x28, - [1635862254.427185][5821:5826] CHIP:DMG: EndpointId = 0x0, - [1635862254.427234][5821:5826] CHIP:DMG: } - [1635862254.427283][5821:5826] CHIP:DMG: - [1635862254.427321][5821:5826] CHIP:DMG: StatusIB = - [1635862254.427360][5821:5826] CHIP:DMG: { - [1635862254.427400][5821:5826] CHIP:DMG: status = 0x0, - [1635862254.427440][5821:5826] CHIP:DMG: }, - [1635862254.427481][5821:5826] CHIP:DMG: - [1635862254.427516][5821:5826] CHIP:DMG: }, - [1635862254.427563][5821:5826] CHIP:DMG: - [1635862254.427597][5821:5826] CHIP:DMG: ], - [1635862254.427640][5821:5826] CHIP:DMG: - [1635862254.427666][5821:5826] CHIP:DMG: } - [1635862254.427733][5821:5826] CHIP:ZCL: WriteResponse: - [1635862254.427764][5821:5826] CHIP:ZCL: status: Success (0x0000) - [1635862254.427798][5821:5826] CHIP:TOO: Default Success Response - - - ./chip-tool basic read user-label 1 0 - [1635862295.008057][5829:5834] CHIP:DMG: ReportData = - [1635862295.008128][5829:5834] CHIP:DMG: { - [1635862295.008167][5829:5834] CHIP:DMG: AttributeDataList = - [1635862295.008214][5829:5834] CHIP:DMG: [ - [1635862295.008256][5829:5834] CHIP:DMG: AttributeDataElement = - [1635862295.008310][5829:5834] CHIP:DMG: { - [1635862295.008402][5829:5834] CHIP:DMG: AttributePath = - [1635862295.008493][5829:5834] CHIP:DMG: { - [1635862295.008547][5829:5834] CHIP:DMG: NodeId = 0x1, - [1635862295.008601][5829:5834] CHIP:DMG: EndpointId = 0x0, - [1635862295.008654][5829:5834] CHIP:DMG: ClusterId = 0x28, - [1635862295.008706][5829:5834] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862295.008755][5829:5834] CHIP:DMG: } - [1635862295.008810][5829:5834] CHIP:DMG: - [1635862295.008864][5829:5834] CHIP:DMG: Data = "te5new", - [1635862295.008964][5829:5834] CHIP:DMG: DataElementVersion = 0x0, - [1635862295.009035][5829:5834] CHIP:DMG: }, - [1635862295.009088][5829:5834] CHIP:DMG: - [1635862295.009130][5829:5834] CHIP:DMG: ], - [1635862295.009179][5829:5834] CHIP:DMG: - [1635862295.009218][5829:5834] CHIP:DMG: } - [1635862295.009334][5829:5834] CHIP:ZCL: ReadAttributesResponse: - [1635862295.009372][5829:5834] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862295.009412][5829:5834] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862295.009449][5829:5834] CHIP:ZCL: status: Success (0x0000) - [1635862295.009484][5829:5834] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862295.009545][5829:5834] CHIP:TOO: CharString attribute Response: te5new + ./chip-tool basic write node-label te5new 2 0 + + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] + + + ./chip-tool basic read node-label 1 0 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te5new + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - label: "Turn off TH_CR1" @@ -410,32 +257,40 @@ tests: On your DUT controller using chip-tool open commissioning widow using BCM. Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 - [1635862360.234653][5838:5843] CHIP:DMG: InvokeCommand = - [1635862360.234697][5838:5843] CHIP:DMG: { - [1635862360.234728][5838:5843] CHIP:DMG: CommandList = - [1635862360.234765][5838:5843] CHIP:DMG: [ - [1635862360.234801][5838:5843] CHIP:DMG: CommandDataIB = - [1635862360.234845][5838:5843] CHIP:DMG: { - [1635862360.234889][5838:5843] CHIP:DMG: CommandPathIB = - [1635862360.234935][5838:5843] CHIP:DMG: { - [1635862360.234978][5838:5843] CHIP:DMG: EndpointId = 0x0, - [1635862360.235022][5838:5843] CHIP:DMG: ClusterId = 0x3c, - [1635862360.235066][5838:5843] CHIP:DMG: CommandId = 0x1, - [1635862360.235106][5838:5843] CHIP:DMG: }, - [1635862360.235151][5838:5843] CHIP:DMG: - [1635862360.235186][5838:5843] CHIP:DMG: StatusIB = - [1635862360.235242][5838:5843] CHIP:DMG: { - [1635862360.235282][5838:5843] CHIP:DMG: status = 0x0, - [1635862360.235334][5838:5843] CHIP:DMG: }, - [1635862360.235386][5838:5843] CHIP:DMG: - [1635862360.235419][5838:5843] CHIP:DMG: }, - [1635862360.235461][5838:5843] CHIP:DMG: - [1635862360.235495][5838:5843] CHIP:DMG: ], - [1635862360.235536][5838:5843] CHIP:DMG: - [1635862360.235571][5838:5843] CHIP:DMG: } - [1635862360.235630][5838:5843] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 - [1635862360.235666][5838:5843] CHIP:TOO: Default Success Response + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: @@ -445,32 +300,40 @@ tests: On your DUT controller using chip-tool run revoke command Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning revoke-commissioning 2 0 - [1635862419.049107][5846:5851] CHIP:DMG: InvokeCommand = - [1635862419.049166][5846:5851] CHIP:DMG: { - [1635862419.049212][5846:5851] CHIP:DMG: CommandList = - [1635862419.049266][5846:5851] CHIP:DMG: [ - [1635862419.049317][5846:5851] CHIP:DMG: CommandDataIB = - [1635862419.049374][5846:5851] CHIP:DMG: { - [1635862419.049438][5846:5851] CHIP:DMG: CommandPathIB = - [1635862419.049517][5846:5851] CHIP:DMG: { - [1635862419.049596][5846:5851] CHIP:DMG: EndpointId = 0x0, - [1635862419.049679][5846:5851] CHIP:DMG: ClusterId = 0x3c, - [1635862419.049757][5846:5851] CHIP:DMG: CommandId = 0x2, - [1635862419.049829][5846:5851] CHIP:DMG: }, - [1635862419.049908][5846:5851] CHIP:DMG: - [1635862419.049974][5846:5851] CHIP:DMG: StatusIB = - [1635862419.050045][5846:5851] CHIP:DMG: { - [1635862419.050116][5846:5851] CHIP:DMG: status = 0x0, - [1635862419.050197][5846:5851] CHIP:DMG: }, - [1635862419.050277][5846:5851] CHIP:DMG: - [1635862419.050347][5846:5851] CHIP:DMG: }, - [1635862419.050427][5846:5851] CHIP:DMG: - [1635862419.050488][5846:5851] CHIP:DMG: ], - [1635862419.050559][5846:5851] CHIP:DMG: - [1635862419.050619][5846:5851] CHIP:DMG: } - [1635862419.050716][5846:5851] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 - [1635862419.050785][5846:5851] CHIP:TOO: Default Success Response + ./chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: @@ -479,6 +342,11 @@ tests: verification: | 1. On third controller, using chip-tool connect to the accessory. Connect attempt should fail, i.e ./chip-tool pairing onnetwork 1 20202021 + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - label: @@ -488,61 +356,141 @@ tests: Using your DUT controller, write attribute and read attribute to and from TH_CE Below is the example while using chip tool on second controller, - ./chip-tool basic write user-label te5new 2 0 - [1635864351.666441][5980:5985] CHIP:DMG: WriteResponse = - [1635864351.666480][5980:5985] CHIP:DMG: { - [1635864351.666513][5980:5985] CHIP:DMG: AttributeStatusList = - [1635864351.666555][5980:5985] CHIP:DMG: [ - [1635864351.666588][5980:5985] CHIP:DMG: AttributeStatusIB = - [1635864351.666627][5980:5985] CHIP:DMG: { - [1635864351.666665][5980:5985] CHIP:DMG: AttributePath = - [1635864351.666714][5980:5985] CHIP:DMG: { - [1635864351.666764][5980:5985] CHIP:DMG: FieldTag = 0x0000_0005, - [1635864351.666815][5980:5985] CHIP:DMG: NodeId = 0x0, - [1635864351.666862][5980:5985] CHIP:DMG: ClusterId = 0x28, - [1635864351.666908][5980:5985] CHIP:DMG: EndpointId = 0x0, - [1635864351.666951][5980:5985] CHIP:DMG: } - [1635864351.666999][5980:5985] CHIP:DMG: - [1635864351.667040][5980:5985] CHIP:DMG: StatusIB = - [1635864351.667082][5980:5985] CHIP:DMG: { - [1635864351.667125][5980:5985] CHIP:DMG: status = 0x0, - [1635864351.667171][5980:5985] CHIP:DMG: }, - [1635864351.667218][5980:5985] CHIP:DMG: - [1635864351.667261][5980:5985] CHIP:DMG: }, - [1635864351.667307][5980:5985] CHIP:DMG: - [1635864351.667343][5980:5985] CHIP:DMG: ], - [1635864351.667388][5980:5985] CHIP:DMG: - [1635864351.667418][5980:5985] CHIP:DMG: } - [1635864351.667490][5980:5985] CHIP:ZCL: WriteResponse: - [1635864351.667524][5980:5985] CHIP:ZCL: status: Success (0x0000) - [1635864351.667561][5980:5985] CHIP:TOO: Default Success Response - - ./chip-tool basic read user-label 2 0 - [1635864420.313679][5988:5993] CHIP:DMG: ReportData = - [1635864420.313742][5988:5993] CHIP:DMG: { - [1635864420.313777][5988:5993] CHIP:DMG: AttributeDataList = - [1635864420.313812][5988:5993] CHIP:DMG: [ - [1635864420.313849][5988:5993] CHIP:DMG: AttributeDataElement = - [1635864420.313911][5988:5993] CHIP:DMG: { - [1635864420.313970][5988:5993] CHIP:DMG: AttributePath = - [1635864420.314024][5988:5993] CHIP:DMG: { - [1635864420.314071][5988:5993] CHIP:DMG: NodeId = 0x2, - [1635864420.314114][5988:5993] CHIP:DMG: EndpointId = 0x0, - [1635864420.314166][5988:5993] CHIP:DMG: ClusterId = 0x28, - [1635864420.314215][5988:5993] CHIP:DMG: FieldTag = 0x0000_0005, - [1635864420.314264][5988:5993] CHIP:DMG: } - [1635864420.314339][5988:5993] CHIP:DMG: - [1635864420.314417][5988:5993] CHIP:DMG: Data = "te5new", - [1635864420.314480][5988:5993] CHIP:DMG: DataElementVersion = 0x0, - [1635864420.314542][5988:5993] CHIP:DMG: }, - [1635864420.314589][5988:5993] CHIP:DMG: - [1635864420.314627][5988:5993] CHIP:DMG: ], - [1635864420.314669][5988:5993] CHIP:DMG: - [1635864420.314703][5988:5993] CHIP:DMG: } - [1635864420.314807][5988:5993] CHIP:ZCL: ReadAttributesResponse: - [1635864420.314841][5988:5993] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635864420.314876][5988:5993] CHIP:ZCL: attributeId: 0x0000_0005 - [1635864420.314908][5988:5993] CHIP:ZCL: status: Success (0x0000) - [1635864420.314940][5988:5993] CHIP:ZCL: attribute TLV Type: 0x0c - [1635864420.314975][5988:5993] CHIP:TOO: CharString attribute Response: te5new + ./chip-tool basic write node-label te5new 2 0 + + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] + + ./chip-tool basic read node-label 2 0 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te8 + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i + disabled: true + + - label: "DUT_CR2 opens a commissioning window on TH_CE using BCM" + verification: | + On your DUT controller using chip-tool open commissioning widow using BCM. + + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true + + - label: + "Wait for commissioning window that was opened in step 13 to timeout" + verification: | + Wait for the timeout of commissioning window in the above step + disabled: true + + - label: "DUT_CR2 opens a commissioning window on TH_CE using BCM" + verification: | + On your DUT controller using chip-tool open commissioning widow using BCM. + + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true + + - label: + "TH_CR1 starts a commissioning process with TH_CE before the timeout + from step 15" + verification: | + Using your 1st Controller connect to the accessory. + + Below is the example when using chip tool as controller + ./chip-tool pairing onnetwork 1 20202021 + + [1651786200275] [36301:315544] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1651786200275] [36301:315544] CHIP: [CTL] Device returned status 9 on receiving the NOC + [1651786200275] [36301:315544] CHIP: [CTL] Add NOC failed with error ../../src/controller/CHIPDeviceController.cpp:1187: CHIP Error 0x0000007E: Trying to add a NOC for a fabric that already exists + [1651786200275] [36301:315544] CHIP: [CTL] Error on commissioning step 'SendNOC': '../../src/controller/CHIPDeviceController.cpp:1187: CHIP Error 0x0000007E: Trying to add a NOC for a fabric that already exists' + + Verify that the commissioning process fails as TH_CE was already commissioned by TH_CR1 in step 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml index 4a54f6fcc76911..df6700eff33abf 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml @@ -30,24 +30,70 @@ tests: - label: "TH_CR1 starts a commissioning process with DUT_CE using BCM" verification: | - 1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , + " disabled: true - label: - "TH_CR1 opens a commissioning window on DUT_CE with a value of 15 - minutes" + "TH_CR1 opens a commissioning window on DUT_CE with a value of 900 + seconds" verification: | On 1st controller chip tool, open commissioning window For BCM, - ./chip-tool administratorcommissioning open-basic-commissioning-window 900 1 0 + + + ./chip-tool administratorcommissioning open-basic-commissioning-window 900 2 0 --timedInteractionTimeoutMs 1000 + + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - - label: "Wait for commissioning Window to Timeout" + - label: "Wait for commissioning Window to 901 seconds" verification: | Wait for commissioning Window to Timeout disabled: true + - label: + "TH_CR1 reads the window status to verify the DUT_CE window is closed" + verification: | + ./chip-tool administratorcommissioning read window-status 1 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 + [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 + [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i + disabled: true + - label: "TH_CR1 opens a commissioning window on DUT_CE with a value of 901 seconds" @@ -55,10 +101,21 @@ tests: On 1st controller chip tool, open commissioning window For BCM, - ./chip-tool administratorcommissioning open-basic-commissioning-window 901 1 0 + ./chip-tool administratorcommissioning open-basic-commissioning-window 901 2 0 --timedInteractionTimeoutMs 1000 + + CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x85 + [1652860801.225084][9512:9517] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) + [1652860801.225173][9512:9517] CHIP:DMG: ICR moving to [AwaitingDe] + [1652860801.225294][9512:9517] CHIP:EM: Sending Standalone Ack for MessageCounter:4191961 on exchange 37827i disabled: true - - label: "Wait for commissioning Window to Timeout" + - label: + "TH_CR1 reads the window status to verify the DUT_CE window is closed" verification: | - Wait for commissioning Window to Timeout + ./chip-tool administratorcommissioning read window-status 1 0 + + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 + [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 + [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml index 4dc01d3d2d5b63..39fbc3f1c26f2f 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml @@ -23,14 +23,20 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CE to factory defaults" + verification: | + + disabled: true + - label: "TH_CR1 starts a commissioning process with DUT_CE using ECM" verification: | - 1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , + " disabled: true - label: - "TH_CR1 opens a commissioning window on DUT_CE with a value of 15 - minutes" + "TH_CR1 opens a commissioning window on DUT_CE with a value of 900 + seconds" verification: | On 1st controller chip tool, open commissioning window @@ -38,7 +44,7 @@ tests: For ECM, - ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + ./chip-tool pairing open-commissioning-window 1 1 900 1000 3840 [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! @@ -53,11 +59,21 @@ tests: [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - - label: "Wait for commissioning Window to Timeout" + - label: "Wait for commissioning Window to 901 seconds" verification: | Wait for commissioning Window to Timeout disabled: true + - label: + "TH_CR1 reads the window status to verify the DUT_CE window is closed" + verification: | + ./chip-tool administratorcommissioning read window-status 1 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 + [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 + [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i + disabled: true + - label: "TH_CR1 opens a commissioning window on DUT_CE with a value of 901 seconds" @@ -68,22 +84,20 @@ tests: For ECM, - ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + ./chip-tool pairing open-commissioning-window 1 1 901 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established - [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! - [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 - [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] - [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] - [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec - [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] - [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633] - [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i + CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x85 + [1652860801.225084][9512:9517] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) + [1652860801.225173][9512:9517] CHIP:DMG: ICR moving to [AwaitingDe] + [1652860801.225294][9512:9517] CHIP:EM: Sending Standalone Ack for MessageCounter:4191961 on exchange 37827i disabled: true - - label: "Wait for commissioning Window to Timeout" + - label: + "TH_CR1 reads the window status to verify the DUT_CE window is closed" verification: | - Wait for commissioning Window to Timeout + ./chip-tool administratorcommissioning read window-status 1 0 + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 + [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 + [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml index b5bd853c17b15f..6864e406edd5e3 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 22.1.7. [TC-MF-1.7] Commissioning window handling timeout and revocation + 3.1.7. [TC-MF-1.7] Commissioning window handling timeout and revocation using ECM [DUT - Commissioner] config: @@ -51,15 +51,41 @@ tests: [1635871058.916745][4273:4278] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714279 on exchange 21936i disabled: true + - label: + "If (PICS_User Interface Display) A User Consent screen pops up asking + for Users permission to allow second commissioner to control TH_CE" + verification: | + Verify the User Consent pop up screen. Verify that the pop up closes after user gives permission + disabled: true + + - label: + "If (PICS_User Interface Display) 11 digit Manual Code is displayed on + the screen in textual format for User to see" + verification: | + Verify that the displayed Manual Code is 11 digits long and doesn’t contain Vendor_ID or Product_ID. + disabled: true + + - label: + "If (PICS_Audio Interface) A voice prompt of the Manual Code format + should be heard" + verification: | + Verify voice prompt saying the manual code. Verify the voice prompt repeats if user asks. + disabled: true + - label: "TH_CR2 starts a commissioning process with TH_CE after PIXIT_COMM_WIN - + 10 seconds" + (that was given in step 2) + 10 seconds" verification: | On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller Below is the example when using chip tool as controller (considering 36366524220 as the manual code generated by DUT controller) - ./chip-tool pairing code 1 36366524220 + ./chip-tool pairing manualcode 1 36366524220 + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - label: @@ -70,7 +96,7 @@ tests: Below is the example while using chip tool as controller, - ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 [1635871112.112515][4282:4287] CHIP:SC: Success status report received. Session was established @@ -94,32 +120,39 @@ tests: Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning revoke-commissioning 1 0 - [1635871162.467911][4291:4296] CHIP:DMG: InvokeCommand = - [1635871162.467970][4291:4296] CHIP:DMG: { - [1635871162.468019][4291:4296] CHIP:DMG: CommandList = - [1635871162.468085][4291:4296] CHIP:DMG: [ - [1635871162.468151][4291:4296] CHIP:DMG: CommandDataIB = - [1635871162.468221][4291:4296] CHIP:DMG: { - [1635871162.468287][4291:4296] CHIP:DMG: CommandPathIB = - [1635871162.468367][4291:4296] CHIP:DMG: { - [1635871162.468447][4291:4296] CHIP:DMG: EndpointId = 0x0, - [1635871162.468541][4291:4296] CHIP:DMG: ClusterId = 0x3c, - [1635871162.468620][4291:4296] CHIP:DMG: CommandId = 0x2, - [1635871162.468708][4291:4296] CHIP:DMG: }, - [1635871162.468793][4291:4296] CHIP:DMG: - [1635871162.468861][4291:4296] CHIP:DMG: StatusIB = - [1635871162.468938][4291:4296] CHIP:DMG: { - [1635871162.469002][4291:4296] CHIP:DMG: status = 0x0, - [1635871162.469088][4291:4296] CHIP:DMG: }, - [1635871162.469160][4291:4296] CHIP:DMG: - [1635871162.469222][4291:4296] CHIP:DMG: }, - [1635871162.469297][4291:4296] CHIP:DMG: - [1635871162.469350][4291:4296] CHIP:DMG: ], - [1635871162.469478][4291:4296] CHIP:DMG: - [1635871162.469535][4291:4296] CHIP:DMG: } - [1635871162.469634][4291:4296] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 - [1635871162.469704][4291:4296] CHIP:TOO: Default Success Response + ./chip-tool administratorcommissioning revoke-commissioning 1 0 --timedInteractionTimeoutMs 1000 + + CHIP:DMG: InvokeResponseMessage = + [1650278416.248379][11064:11069] CHIP:DMG: { + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = + [1650278416.248570][11064:11069] CHIP:DMG: [ + [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = + [1650278416.248718][11064:11069] CHIP:DMG: { + [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = + [1650278416.248860][11064:11069] CHIP:DMG: { + [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = + [1650278416.249011][11064:11069] CHIP:DMG: { + [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, + [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, + [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, + [1650278416.249347][11064:11069] CHIP:DMG: }, + [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = + [1650278416.249581][11064:11069] CHIP:DMG: { + [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), + [1650278416.249738][11064:11069] CHIP:DMG: }, + [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249889][11064:11069] CHIP:DMG: }, + [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.250035][11064:11069] CHIP:DMG: }, + [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250169][11064:11069] CHIP:DMG: ], + [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 + [1650278416.250355][11064:11069] CHIP:DMG: }, + [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" @@ -128,7 +161,12 @@ tests: Below is the example when using chip tool as controller (considering 34921141778 as the manual code generated by DUT controller) - ./chip-tool pairing code 1 34921141778 + ./chip-tool pairing manualcode 1 34921141778 + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - label: @@ -139,100 +177,81 @@ tests: Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning revoke-commissioning 1 0 - - [1635871227.659965][4299:4304] CHIP:DMG: InvokeCommand = - [1635871227.659996][4299:4304] CHIP:DMG: { - [1635871227.660024][4299:4304] CHIP:DMG: CommandList = - [1635871227.660059][4299:4304] CHIP:DMG: [ - [1635871227.660091][4299:4304] CHIP:DMG: CommandDataIB = - [1635871227.660129][4299:4304] CHIP:DMG: { - [1635871227.660164][4299:4304] CHIP:DMG: CommandPathIB = - [1635871227.660236][4299:4304] CHIP:DMG: { - [1635871227.660317][4299:4304] CHIP:DMG: EndpointId = 0x0, - [1635871227.660382][4299:4304] CHIP:DMG: ClusterId = 0x3c, - [1635871227.660424][4299:4304] CHIP:DMG: CommandId = 0x2, - [1635871227.660483][4299:4304] CHIP:DMG: }, - [1635871227.660550][4299:4304] CHIP:DMG: - [1635871227.660587][4299:4304] CHIP:DMG: StatusIB = - [1635871227.660648][4299:4304] CHIP:DMG: { - [1635871227.660708][4299:4304] CHIP:DMG: status = 0x0, - [1635871227.660744][4299:4304] CHIP:DMG: }, - [1635871227.660803][4299:4304] CHIP:DMG: - [1635871227.660852][4299:4304] CHIP:DMG: }, - [1635871227.660937][4299:4304] CHIP:DMG: - [1635871227.660976][4299:4304] CHIP:DMG: ], - [1635871227.661015][4299:4304] CHIP:DMG: - [1635871227.661046][4299:4304] CHIP:DMG: } - [1635871227.661104][4299:4304] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 - [1635871227.661181][4299:4304] CHIP:TOO: Default Success Response + /chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 + + CHIP:DMG: InvokeResponseMessage = + [1650524034.111241][15422:15427] CHIP:DMG: { + [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, + [1650524034.111383][15422:15427] CHIP:DMG: InvokeResponseIBs = + [1650524034.111464][15422:15427] CHIP:DMG: [ + [1650524034.111531][15422:15427] CHIP:DMG: InvokeResponseIB = + [1650524034.111643][15422:15427] CHIP:DMG: { + [1650524034.111714][15422:15427] CHIP:DMG: CommandStatusIB = + [1650524034.111803][15422:15427] CHIP:DMG: { + [1650524034.111886][15422:15427] CHIP:DMG: CommandPathIB = + [1650524034.111979][15422:15427] CHIP:DMG: { + [1650524034.112072][15422:15427] CHIP:DMG: EndpointId = 0x0, + [1650524034.112167][15422:15427] CHIP:DMG: ClusterId = 0x3c, + [1650524034.112257][15422:15427] CHIP:DMG: CommandId = 0x2, + [1650524034.112345][15422:15427] CHIP:DMG: }, + [1650524034.112456][15422:15427] CHIP:DMG: + [1650524034.112543][15422:15427] CHIP:DMG: StatusIB = + [1650524034.112632][15422:15427] CHIP:DMG: { + [1650524034.112727][15422:15427] CHIP:DMG: status = 0x01 (FAILURE), + [1650524034.112825][15422:15427] CHIP:DMG: cluster-status = 0x3, + [1650524034.112914][15422:15427] CHIP:DMG: }, + [1650524034.113005][15422:15427] CHIP:DMG: + [1650524034.113084][15422:15427] CHIP:DMG: }, + [1650524034.113176][15422:15427] CHIP:DMG: + [1650524034.113245][15422:15427] CHIP:DMG: }, + [1650524034.113328][15422:15427] CHIP:DMG: + [1650524034.113392][15422:15427] CHIP:DMG: ], + [1650524034.113477][15422:15427] CHIP:DMG: + [1650524034.113545][15422:15427] CHIP:DMG: InteractionModelRevision = 1 + [1650524034.113610][15422:15427] CHIP:DMG: }, + [1650524034.113780][15422:15427] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x1 + [1650524034.113892][15422:15427] CHIP:TOO: Error: IM Error 0x00000603: Cluster-specific error: 0x03 disabled: true - label: "DUT_CR1 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" verification: | - On your DUT controller write and read Basic Information Cluster NodeLabel mandatory attribute of TH_CE - - Below is the example while using chip tool as controller, + Using your DUT controller, write attribute and read attribute to and from TH_CE + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 1 0 - [1635871273.030352][4308:4313] CHIP:DMG: { - [1635871273.030381][4308:4313] CHIP:DMG: AttributeStatusList = - [1635871273.030446][4308:4313] CHIP:DMG: [ - [1635871273.030516][4308:4313] CHIP:DMG: AttributeStatusIB = - [1635871273.030590][4308:4313] CHIP:DMG: { - [1635871273.030639][4308:4313] CHIP:DMG: AttributePath = - [1635871273.030709][4308:4313] CHIP:DMG: { - [1635871273.030778][4308:4313] CHIP:DMG: FieldTag = 0x0000_0005, - [1635871273.030832][4308:4313] CHIP:DMG: NodeId = 0x0, - [1635871273.030903][4308:4313] CHIP:DMG: ClusterId = 0x28, - [1635871273.031010][4308:4313] CHIP:DMG: EndpointId = 0x0, - [1635871273.031055][4308:4313] CHIP:DMG: } - [1635871273.031103][4308:4313] CHIP:DMG: - [1635871273.031145][4308:4313] CHIP:DMG: StatusIB = - [1635871273.031187][4308:4313] CHIP:DMG: { - [1635871273.031230][4308:4313] CHIP:DMG: status = 0x0, - [1635871273.031272][4308:4313] CHIP:DMG: }, - [1635871273.031322][4308:4313] CHIP:DMG: - [1635871273.031476][4308:4313] CHIP:DMG: }, - [1635871273.031529][4308:4313] CHIP:DMG: - [1635871273.031565][4308:4313] CHIP:DMG: ], - [1635871273.031608][4308:4313] CHIP:DMG: - [1635871273.031642][4308:4313] CHIP:DMG: } - [1635871273.031716][4308:4313] CHIP:ZCL: WriteResponse: - [1635871273.031745][4308:4313] CHIP:ZCL: status: Success (0x0000) - [1635871273.031780][4308:4313] CHIP:TOO: Default Success Response - - - ./chip-tool basic read node-label 1 0 - [1635871312.835941][4314:4319] CHIP:DMG: ReportData = - [1635871312.835978][4314:4319] CHIP:DMG: { - [1635871312.836007][4314:4319] CHIP:DMG: AttributeDataList = - [1635871312.836045][4314:4319] CHIP:DMG: [ - [1635871312.836085][4314:4319] CHIP:DMG: AttributeDataElement = - [1635871312.836126][4314:4319] CHIP:DMG: { - [1635871312.836164][4314:4319] CHIP:DMG: AttributePath = - [1635871312.836204][4314:4319] CHIP:DMG: { - [1635871312.836246][4314:4319] CHIP:DMG: NodeId = 0x1, - [1635871312.836296][4314:4319] CHIP:DMG: EndpointId = 0x0, - [1635871312.836345][4314:4319] CHIP:DMG: ClusterId = 0x28, - [1635871312.836395][4314:4319] CHIP:DMG: FieldTag = 0x0000_0005, - [1635871312.836440][4314:4319] CHIP:DMG: } - [1635871312.836491][4314:4319] CHIP:DMG: - [1635871312.836543][4314:4319] CHIP:DMG: Data = "te5new", - [1635871312.836588][4314:4319] CHIP:DMG: DataElementVersion = 0x0, - [1635871312.836632][4314:4319] CHIP:DMG: }, - [1635871312.836678][4314:4319] CHIP:DMG: - [1635871312.836709][4314:4319] CHIP:DMG: ], - [1635871312.836752][4314:4319] CHIP:DMG: - [1635871312.836785][4314:4319] CHIP:DMG: } - [1635871312.836891][4314:4319] CHIP:ZCL: ReadAttributesResponse: - [1635871312.836923][4314:4319] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635871312.836958][4314:4319] CHIP:ZCL: attributeId: 0x0000_0005 - [1635871312.836990][4314:4319] CHIP:ZCL: status: Success (0x0000) - [1635871312.837017][4314:4319] CHIP:ZCL: attribute TLV Type: 0x0c - [1635871312.837050][4314:4319] CHIP:TOO: CharString attribute Response: te5new + + CHIP:DMG: WriteResponseMessage = + [1649245940.788522][10110:10115] CHIP:DMG: { + [1649245940.788577][10110:10115] CHIP:DMG: AttributeStatusIBs = + [1649245940.788653][10110:10115] CHIP:DMG: [ + [1649245940.788713][10110:10115] CHIP:DMG: AttributeStatusIB = + [1649245940.788787][10110:10115] CHIP:DMG: { + [1649245940.788852][10110:10115] CHIP:DMG: AttributePathIB = + [1649245940.788931][10110:10115] CHIP:DMG: { + [1649245940.789009][10110:10115] CHIP:DMG: Endpoint = 0x0, + [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, + [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, + [1649245940.789313][10110:10115] CHIP:DMG: } + [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = + [1649245940.789519][10110:10115] CHIP:DMG: { + [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), + [1649245940.789654][10110:10115] CHIP:DMG: }, + [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789778][10110:10115] CHIP:DMG: }, + [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789885][10110:10115] CHIP:DMG: ], + [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 + [1649245940.790033][10110:10115] CHIP:DMG: } + [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] + + ./chip-tool basic read node-label 2 0 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3061847068 + [1649245950.006849][10116:10121] CHIP:TOO: NodeLabel: te8 + [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - label: @@ -264,7 +283,10 @@ tests: Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) - ./chip-tool pairing code 1 35256543344 + ./chip-tool pairing manualcode 1 35256543344 + + Verify you got below message + Device commissioning completed with success disabled: true - label: "TH_CR3 starts a commissioning process with TH_CE" @@ -273,5 +295,10 @@ tests: Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) - ./chip-tool pairing code 1 35256543344 + ./chip-tool pairing manualcode 1 35256543344 + + verify you got the following message in the TH log + CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 + CHIP:TOO: Secure Pairing Failed + CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SC_4_8.yaml b/src/app/tests/suites/certification/Test_TC_SC_4_8.yaml index 30617ce1b0c30e..2f4320881166fc 100644 --- a/src/app/tests/suites/certification/Test_TC_SC_4_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_SC_4_8.yaml @@ -15,7 +15,7 @@ name: 3.4.8. [TC-SC-4.8] Compressed Fabric ID remains the same for Nodes - commissioned to the same fabric [DUT Commissionee, TH2 Commissionee] + commissioned to the same fabric [DUT - Commissioner] config: nodeId: 0x12344321 @@ -23,47 +23,47 @@ config: endpoint: 0 tests: - - label: "TH1 creates a Fabric" + - label: "Commission TH1 to DUTs Fabric" verification: | + 1. Provision the device using 1st controller chip-tool on the raspi (use above instructions) - disabled: true - - - label: "Commission DUT to TH1s Fabric" - verification: | - ./chip-tool pairing ble-wifi 1 zigbeehome mater123 20202021 3840 (./chip-tool pairing ble-wifi {NODE ID} {SSID} {PASSWORD} {SETUPPINCODE} {DISCRIMINATOR}) - disabled: true - - label: "Commission TH2 to TH1s Fabric" - verification: | + " On first controller, using administratorcommissioningg chip tool open commissioning window. + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 disabled: true - - label: "Scan for DNS-SD advertising from DUT" + - label: "Commission TH2 to DUTs Fabric" verification: | - ./chip-tool operationalcredentials read fabrics 1 1 - disabled: true + Using your DUT Controller connect to the accessory. - - label: "Scan for DNS-SD advertising from TH2" - verification: | - ./chip-tool operationalcredentials read fabrics 2 1 - disabled: true + Below is the example when using chip tool as controller + ./chip-tool pairing onnetwork 1 20202021 - - label: "Remove DUT from TH1s fabric using Remove Fabric method" - verification: | - ./chip-tool operationalcredentials remove-fabrics 1 0 + Verify you got below message + Device commissioning completed with success disabled: true - - label: "Commission DUT to TH1s Fabric again" + - label: "Send RemoveFabric from DUT to TH1 and comission DUT to TH1 again" verification: | - ./chip-tool pairing ble-wifi 1 zigbeehome mater123 20202021 3840 (./chip-tool pairing ble-wifi {NODE ID} {SSID} {PASSWORD} {SETUPPINCODE} {DISCRIMINATOR}) - disabled: true + ./chip-tool operationalcredentials remove-fabric 1 1 0 - - label: "Scan for DNS-SD advertising from DUT" - verification: | - verify fabric ID value is exactly same as what we got in step 4 + CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1651571274.154864][10562:10567] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1651571274.155030][10562:10567] CHIP:TOO: NOCResponse: { + [1651571274.155102][10562:10567] CHIP:TOO: statusCode: 0 + [1651571274.155159][10562:10567] CHIP:TOO: fabricIndex: 1 + [1651571274.155215][10562:10567] CHIP:TOO: } disabled: true - - label: "Repeat step 7 to 9 for DUT using Factory Reset Method" + - label: "Send RemoveFabric from DUT to TH2 and comission DUT to TH2 again" verification: | - DUT vendor has to provide a way to put the device in factory reset + ./chip-tool operationalcredentials remove-fabrics 2 2 0 + + CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 + [1651571274.154864][10562:10567] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 + [1651571274.155030][10562:10567] CHIP:TOO: NOCResponse: { + [1651571274.155102][10562:10567] CHIP:TOO: statusCode: 0 + [1651571274.155159][10562:10567] CHIP:TOO: fabricIndex: 2 + [1651571274.155215][10562:10567] CHIP:TOO: } disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml index 7f5ba9b0a89c83..4b6999ad73c09a 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 31.2.1. [TC-SU-2.1] DUT will send a QueryImage Command to OTA-P to check for - software update. + 3.2.1. [TC-SU-2.1] DUT will send a QueryImage Command to OTA-P to check for + software update config: nodeId: 0x12344321 @@ -23,6 +23,39 @@ config: endpoint: 0 tests: + - label: "DUT sends a QueryImage command to the TH/OTA-P" + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Provider logs: + + [1645743053317] [97806:20280749] CHIP: [ZCL] OTA Provider received QueryImage + [1645743053317] [97806:20280749] CHIP: [ZCL] VendorID: 0xfff1 + [1645743053317] [97806:20280749] CHIP: [ZCL] ProductID: 32769 + [1645743053317] [97806:20280749] CHIP: [ZCL] SoftwareVersion: 0 + [1645743053317] [97806:20280749] CHIP: [ZCL] ProtocolsSupported: [ + [1645743053317] [97806:20280749] CHIP: [ZCL] 0 + [1645743053317] [97806:20280749] CHIP: [ZCL] ] + [1645743053317] [97806:20280749] CHIP: [ZCL] HardwareVersion: 0 + [1645743053317] [97806:20280749] CHIP: [ZCL] Location: XX + [1645743053317] [97806:20280749] CHIP: [ZCL] RequestorCanConsent: 0 + disabled: true + + - label: + "DUT sends a QueryImage command to the TH/OTA-P. Wait for 1 minute." + verification: | + Run the OTA Provider App using the command: + chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -q busy + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 1 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Provider logs that the QueryImage command is sent only once in that 1 minute interval. + disabled: true + - label: "TH2/Administrator sends an AnnounceOTAProvider command to the DUT." verification: | diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml index 3ef493c8d4942c..ea1274bb4733f0 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 31.3.1. [TC-SU-2.2] Tests the DUT behavior on different scenarios of the + 3.3.1. [TC-SU-2.2] Tests the DUT behavior on different scenarios of the QueryImageResponse sent by the TH/OTA-P config: @@ -29,6 +29,10 @@ tests: is set to 'UpdateAvailable'. Set ImageURI to the location where the image is located." verification: | + Run the OTA Provider App using the command: + + chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -q updateAvailable + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID @@ -39,48 +43,114 @@ tests: [1645748688025] [99779:20370762] CHIP: [BDX] Transfer completed, got AckEOF disabled: true + - label: + "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a + QueryImageResponse back to DUT. QueryStatus is set to 'Busy', + DelayedActionTime is set to 60 seconds." + verification: | + Run the OTA Provider App using the command: + + chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -q busy -t 60 + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify that the DUT does not send a QueryImage command before the minimum interval defined by spec which is 2 minutes (120 seconds) from the last QueryImage command. + disabled: true + + - label: + "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a + QueryImageResponse back to DUT. QueryStatus is set to 'NotAvailable', + DelayedActionTime is set to 60 seconds." + verification: | + Run the OTA Provider App using the command: + + + chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -q updateNotAvailable -t 60 + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify that the DUT does not send a QueryImage command before the minimum interval defined by spec which is 2 minutes (120 seconds) from the last QueryImage command. + disabled: true + - label: "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available, Set - DelayedActionTime to 10 minutes" + DelayedActionTime to 3 minutes" verification: | Run the OTA Provider App using the command: - ./chip-ota-provider-app -f sw_image.txt -t 600 - Check on the OTA-P/TH that the transfer of file/image to DUT starts after 600 seconds. + chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -q updateAvailable -t 180 + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify that the DUT waits for the time mentioned in the DelayedActionTime (3 minutes) before transferring the image. disabled: true - label: "DUT sends a QueryImage command to the TH/OTA-P.+ TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Busy/Not - Available, Set DelayedActionTime to 10 minutes" + Available, Set DelayedActionTime to 3 minutes. . On the subsequent + QueryImage command, TH/OTA-P sends a QueryImageResponse back to DUT. + QueryStatus is set to 'UpdateAvailable'." verification: | Run the OTA Provider App using the command: - ./chip-ota-provider-app -q updateNotAvailable -t 600 - Check on the OTA-P/TH that another QueryImage command is not sent by the DUT before 600 seconds. + ./chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -q busy -t 180 + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify that the DUT waits for the time mentioned in the DelayedActionTime (3 minutes) before issuing another QueryImage command to the TH/OTA-P. + Verify there is a transfer of the software image after the second QueryImageResponse with UpdateAvailable status from the TH/OTA-P to the DUT. + disabled: true + + - label: + "IF (PICS_DT_HTTPS_Supported), DUT sends a QueryImage command to the + TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus + is set to 'UpdateAvailable', ImageURI should have the https url from + where the image can be downloaded." + verification: | + Out of scope for V1.0 disabled: true - label: "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available, - Software Version should be set to an incorrect value." + Software Version should be set to the same or an older (numerically + lower) version." verification: | Run the OTA Provider App using the command: - ./chip-ota-provider-app -f sw_image.txt -s 0 - Use any value for software image that is older or same as the current version. + ./chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} + + Software Version of the SW_IMAGE_FILE used in above command should be the same or an older (numerically lower) version than the DUT. + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID - Check on the OTA-P/TH that the DUT does not start transferring the software image. + Verify that the DUT does not start transferring the software image. disabled: true - label: - "IF (PICS_DT_RequestorCanConsent_True) DUT sends a QueryImage command - to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. - QueryStatus is set to Available, UserConsentNeeded is set to True" + "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a + QueryImageResponse back to DUT. QueryStatus is set to + 'UpdateAvailable', ImageURI field contains an invalid BDX ImageURI." verification: | Run the OTA Provider App using the command: - ./chip-ota-provider-app -f sw_image.txt -c - Verify that the DUT obtains user consent before transferring the image. This step is vendor specific. + ./chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -i bdx://0000000000000001 + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify that the DUT does not start transferring the software image. disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml index 350f29a2bc6b9a..2056995f30eb72 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml @@ -13,7 +13,7 @@ # 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: 31.4.1. [TC-SU-2.3] Tests the transfer of images between DUT and TH/OTA-P +name: 3.4.1. [TC-SU-2.3] Tests the transfer of images between DUT and TH/OTA-P config: nodeId: 0x12344321 @@ -26,7 +26,14 @@ tests: to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available, UserConsentNeeded is set to True" verification: | - Same as 3.3.1. [TC-SU-2.2] #8 + Run the OTA Provider App using the command: + ./chip-ota-provider-app --discriminator ${PROVIDER_LONG_DISCRIMINATOR} --secured-device-port ${PROVIDER_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --filepath ${SW_IMAGE_FILE} -c + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify that the DUT obtains user consent before transferring the image. This step is vendor specific. disabled: true - label: @@ -38,6 +45,84 @@ tests: Same as 3.3.1. [TC-SU-2.2] #1 disabled: true + - label: + 'IF (PICS_DT_HTTPS_Supported) DUT sends a QueryImage command to the + TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus + is set to "UpdateAvailable". Set ImageURI with the https url of the + software image.' + verification: | + Out of scope for V1.0 + disabled: true + + - label: + "During the transfer of the image to the DUT, force fail the transfer + before it completely transfers the image. Wait for the Idle timeout so + that reading the UpdateState Attribute of the OTA Requestor returns + the value as Idle. Initiate another QueryImage Command from DUT to the + TH/OTA-P." + verification: | + ./chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Kill the OTA Provider App during the transfer of the image to the DUT before it completely transfers the image. + + Wait for atleast 5 minutes or more until reading the UpdateState Attribute of the OTA Requestor returns the value as Idle (Value 1) + chip-tool otasoftwareupdaterequestor read update-state 0x1234567890 0 + + [1651259701990] [18726:35135506] CHIP: [DMG] ReportDataMessage = + [1651259701990] [18726:35135506] CHIP: [DMG] { + [1651259701990] [18726:35135506] CHIP: [DMG] AttributeReportIBs = + [1651259701990] [18726:35135506] CHIP: [DMG] [ + [1651259701990] [18726:35135506] CHIP: [DMG] AttributeReportIB = + [1651259701990] [18726:35135506] CHIP: [DMG] { + [1651259701990] [18726:35135506] CHIP: [DMG] AttributeDataIB = + [1651259701990] [18726:35135506] CHIP: [DMG] { + [1651259701990] [18726:35135506] CHIP: [DMG] DataVersion = 0xa8a08a2a, + [1651259701990] [18726:35135506] CHIP: [DMG] AttributePathIB = + [1651259701990] [18726:35135506] CHIP: [DMG] { + [1651259701990] [18726:35135506] CHIP: [DMG] Endpoint = 0x0, + [1651259701990] [18726:35135506] CHIP: [DMG] Cluster = 0x2a, + [1651259701990] [18726:35135506] CHIP: [DMG] Attribute = 0x0000_0002, + [1651259701990] [18726:35135506] CHIP: [DMG] } + [1651259701990] [18726:35135506] CHIP: [DMG] + [1651259701990] [18726:35135506] CHIP: [DMG] Data = 1, + [1651259701990] [18726:35135506] CHIP: [DMG] }, + [1651259701990] [18726:35135506] CHIP: [DMG] + [1651259701990] [18726:35135506] CHIP: [DMG] }, + [1651259701990] [18726:35135506] CHIP: [DMG] + [1651259701990] [18726:35135506] CHIP: [DMG] ], + [1651259701990] [18726:35135506] CHIP: [DMG] + [1651259701990] [18726:35135506] CHIP: [DMG] SuppressResponse = true, + [1651259701990] [18726:35135506] CHIP: [DMG] InteractionModelRevision = 1 + [1651259701990] [18726:35135506] CHIP: [DMG] } + + Relaunch the OTA Provider App and initiate another query + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + Verify that the DUT starts a new transfer of software image when sending another QueryImage request i.e. Start Offset field in ReceiveInit message received on OTA Provider side is 0 + + [1651260350133] [18661:35147439] CHIP: [ATM] ReceiveInit + [1651260350133] [18661:35147439] CHIP: [ATM] Proposed Transfer Control: 0x20 + [1651260350133] [18661:35147439] CHIP: [ATM] Range Control: 0x0 + [1651260350133] [18661:35147439] CHIP: [ATM] Proposed Max Block Size: 1024 + [1651260350133] [18661:35147439] CHIP: [ATM] Start Offset: 0x0000000000000000 + [1651260350133] [18661:35147439] CHIP: [ATM] Proposed Max Length: 0x0000000000000000 + [1651260350133] [18661:35147439] CHIP: [ATM] File Designator Length: 8 + [1651260350133] [18661:35147439] CHIP: [ATM] File Designator: test.ota + disabled: true + + - label: + "IF (PICS_DT_RC_STARTOFS_BIT_SET) During the transfer of the image to + the DUT, force fail the transfer before it completely transfers the + image. Initiate another QueryImage Command from DUT to the TH/OTA-P. + Set the RC[STARTOFS] bit and associated STARTOFS field in the + ReceiveInit Message to indicate the resumption of a transfer + previously aborted." + verification: | + Out of scope for V1.0 + disabled: true + - label: "IF (PICS_DT_Vendor_Specific) Perform the OTA Update on DUT using vendor specific mechanism." diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml index 27d91802fd016b..7d567b921b9f69 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 31.6.1. [TC-SU-2.5] Tests the different scenarios on the DUT based on the + 3.6.1. [TC-SU-2.5] Tests the different scenarios on the DUT based on the ApplyUpdateResponse response sent by the OTA-P config: @@ -29,17 +29,67 @@ tests: verification: | Verify that the DUT starts updating its software. Once the update is finished verify the software version on the DUT to match the version downloaded for the software update. + + ./chip-tool basic read software-version-string 0x1234567890 0 + Verify on the OTA-P/TH that there is no other ApplyUpdateRequest from the DUT. disabled: true - label: "OTA-P/TH sends the ApplyUpdateResponse Command to the DUT. Action - field is set to 'Proceed' DelayedActionTime is set to 5 minutes" + field is set to 'Proceed' DelayedActionTime is set to 3 minutes" + verification: | + Run the OTA Provider App using the command: + chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -p 180 + + Verify that the DUT starts updating its software after 3 minutes. Once the update is finished verify the software version on the DUT to match the version downloaded for the software update. + + ./chip-tool basic read software-version-string 0x1234567890 0 + disabled: true + + - label: + "OTA-P/TH sends the ApplyUpdateResponse Command to the DUT. Action + field is set to 'AwaitNextAction', DelayedActionTime is set to 1 + minute." + verification: | + Run the OTA Provider App using the command: + chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -a awaitNextAction -p 60 + + Verify that the DUT waits for the minimum interval defined by spec which is 2 minutes before re-sending the ApplyUpdateRequest to the OTA-P. + Verify that the DUT does not apply the software update within this time. + disabled: true + + - label: + "OTA-P/TH sends the ApplyUpdateResponse Command to the DUT. Action + field is set to 'AwaitNextAction', DelayedActionTime is set to 3 + minutes. On the subsequent ApplyUpdateRequest command, TH/OTA-P sends + the ApplyUpdateResponse back to DUT. Action field is set to 'Proceed'" + verification: | + Run the OTA Provider App using the command: + chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -a awaitNextAction -p 180 + + Verify that the DUT waits for 3 minutes before sending the ApplyUpdateRequest to the OTA-P. + Verify that the DUT starts updating its software after the second ApplyUpdateResponse with Proceed action. + Once the update is finished, verify the software version from the Basic Information cluster on the DUT to match the version downloaded for the software update. + + chip-tool basic read software-version-string 0x1234567890 0 + disabled: true + + - label: + "OTA-P/TH sends the ApplyUpdateResponse Command to the DUT. Action + field is set to 'Discontinue'." verification: | Run the OTA Provider App using the command: - ./chip-ota-provider-app -f sw_image.txt -t 300 + chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -a discontinue + + Verify that the DUT clears its previously downloaded software image and resets the UpdateState Attribute to Idle (Value 1) + chip-tool otasoftwareupdaterequestor read update-state 0x1234567890 0 + + Verify that the DUT does not send the NotifyUpdateApplied within a reasonable time. + Verify the software version from the Basic Information cluster of the DUT to be the same as it was previously. + - Verify that the DUT starts updating its software after 5 minutes. Once the update is finished verify the software version on the DUT to match the version downloaded for the software update. + chip-tool basic read software-version-string 0x1234567890 0 disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml index ab36e2042029b3..e0ca7ba8633967 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml @@ -13,7 +13,7 @@ # 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: 31.8.1. [TC-SU-2.7] Tests Events generated by OTA-R(DUT) +name: 3.8.1. [TC-SU-2.7] Tests Events generated by OTA-R(DUT) config: nodeId: 0x12344321 @@ -21,14 +21,14 @@ config: endpoint: 0 tests: - - label: "DUT sends a software update Query to the OTA-P." + - label: "Perform a software update on the DUT." verification: | - chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + ./chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID Subscribe to StateTransition event right away after this using command - chip-tool otasoftwareupdaterequestor subscribe-event state-transition 5 10 1 2 0 + ./chip-tool otasoftwareupdaterequestor subscribe-event state-transition 5 10 0x1234567890 0 --timeout 65535 Verify that the chip-tool receives below StateTransition event notifications @@ -61,6 +61,144 @@ tests: [1644017080776] [33044:1032131] CHIP: [TOO] } disabled: true + - label: + "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a + QueryImageResponse back to DUT. QueryStatus is set to 'Busy'." + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Subscribe to StateTransition event right away after this using command + ./chip-tool otasoftwareupdaterequestor subscribe-event state-transition 5 10 0x1234567890 0 --timeout 65535 + + Verify that the chip-tool receives below StateTransition event notification + + [1651282443727] [28764:35514810] CHIP: [TOO] StateTransition: { + [1651282443727] [28764:35514810] CHIP: [TOO] PreviousState: 1 + [1651282443727] [28764:35514810] CHIP: [TOO] NewState: 2 + [1651282443727] [28764:35514810] CHIP: [TOO] Reason: 1 + [1651282443727] [28764:35514810] CHIP: [TOO] TargetSoftwareVersion: null + [1651282443727] [28764:35514810] CHIP: [TOO] } + + [1651282443727] [28764:35514810] CHIP: [TOO] StateTransition: { + [1651282443727] [28764:35514810] CHIP: [TOO] PreviousState: 2 + [1651282443727] [28764:35514810] CHIP: [TOO] NewState: 3 + [1651282443727] [28764:35514810] CHIP: [TOO] Reason: 4 + [1651282443727] [28764:35514810] CHIP: [TOO] TargetSoftwareVersion: null + [1651282443727] [28764:35514810] CHIP: [TOO] } + disabled: true + + - label: + "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P does not + respond back to DUT." + verification: | + Kill OTA Provider App before issuing query using + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Subscribe to StateTransition event right away after this using command + ./chip-tool otasoftwareupdaterequestor subscribe-event state-transition 5 10 0x1234567890 0 --timeout 65535 + + Verify that the chip-tool receives below StateTransition event notification + + [1651282794539] [28929:35519901] CHIP: [TOO] StateTransition: { + [1651282794539] [28929:35519901] CHIP: [TOO] PreviousState: 1 + [1651282794539] [28929:35519901] CHIP: [TOO] NewState: 2 + [1651282794539] [28929:35519901] CHIP: [TOO] Reason: 1 + [1651282794539] [28929:35519901] CHIP: [TOO] TargetSoftwareVersion: null + [1651282794539] [28929:35519901] CHIP: [TOO] } + + [1651282804542] [28929:35519900] CHIP: [TOO] StateTransition: { + [1651282804542] [28929:35519900] CHIP: [TOO] PreviousState: 2 + [1651282804542] [28929:35519900] CHIP: [TOO] NewState: 1 + [1651282804542] [28929:35519900] CHIP: [TOO] Reason: 2 + [1651282804542] [28929:35519900] CHIP: [TOO] TargetSoftwareVersion: null + [1651282804542] [28929:35519900] CHIP: [TOO] } + disabled: true + + - label: + "IF (PICS_DT_RequestorCanConsent_True) DUT sends a QueryImage command + to the TH/OTA-P. RequestorCanConsent is set to True by DUT. OTA-P/TH + responds with a QueryImageResponse with UserConsentNeeded field set to + True." + verification: | + Run the Provider App using + chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -c + + ./chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Subscribe to StateTransition event right away after this using command + ./chip-tool otasoftwareupdaterequestor subscribe-event state-transition 5 10 0x1234567890 0 --timeout 65535 + + Verify that the OTA-Subscriber receives a StateTransition event notification for the state change to DelayedOnUserConsent. + disabled: true + + - label: + "Force an error during the download of the OTA image to the DUT. Wait + for the Idle timeout which should be no less than 5 minutes." + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Subscribe to StateTransition event right away after this using command + ./chip-tool otasoftwareupdaterequestor subscribe-event download-error 5 10 0x1234567890 0 --timeout 65535 + + Verify that the chip-tool receives a DownloadError event notification on BDX Idle timeout which should be no less than 5 minutes. + + [1651520178426] [98732:38086919] CHIP: [TOO] DownloadError: { + [1651520178426] [98732:38086919] CHIP: [TOO] SoftwareVersion: 2 + [1651520178426] [98732:38086919] CHIP: [TOO] BytesDownloaded: 2995 + [1651520178426] [98732:38086919] CHIP: [TOO] ProgressPercent: 65 + [1651520178426] [98732:38086919] CHIP: [TOO] PlatformCode: null + [1651520178426] [98732:38086919] CHIP: [TOO] } + disabled: true + + - label: + "After the OTA image is transferred, DUT sends ApplyUpdateRequest to + the OTA-P. OTA-P/TH sends the ApplyUpdateResponse Command to the DUT. + Action field is set to 'AwaitNextAction'." + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Subscribe to StateTransition event right away after this using command + ./chip-tool otasoftwareupdaterequestor subscribe-event state-transition 5 10 0x1234567890 0 --timeout 65535 + + [1651283503471] [29332:35530821] CHIP: [TOO] StateTransition: { + [1651283503471] [29332:35530821] CHIP: [TOO] PreviousState: 1 + [1651283503471] [29332:35530821] CHIP: [TOO] NewState: 2 + [1651283503471] [29332:35530821] CHIP: [TOO] Reason: 1 + [1651283503471] [29332:35530821] CHIP: [TOO] TargetSoftwareVersion: null + [1651283503471] [29332:35530821] CHIP: [TOO] } + + [1651283503471] [29332:35530821] CHIP: [TOO] StateTransition: { + [1651283503471] [29332:35530821] CHIP: [TOO] PreviousState: 2 + [1651283503471] [29332:35530821] CHIP: [TOO] NewState: 4 + [1651283503471] [29332:35530821] CHIP: [TOO] Reason: 1 + [1651283503471] [29332:35530821] CHIP: [TOO] TargetSoftwareVersion: 2 + [1651283503471] [29332:35530821] CHIP: [TOO] } + + [1651283513475] [29332:35531053] CHIP: [TOO] StateTransition: { + [1651283513475] [29332:35531053] CHIP: [TOO] PreviousState: 4 + [1651283513475] [29332:35531053] CHIP: [TOO] NewState: 5 + [1651283513475] [29332:35531053] CHIP: [TOO] Reason: 1 + [1651283513475] [29332:35531053] CHIP: [TOO] TargetSoftwareVersion: 2 + [1651283513475] [29332:35531053] CHIP: [TOO] } + + [1651283513475] [29332:35531053] CHIP: [TOO] StateTransition: { + [1651283513475] [29332:35531053] CHIP: [TOO] PreviousState: 5 + [1651283513475] [29332:35531053] CHIP: [TOO] NewState: 6 + [1651283513475] [29332:35531053] CHIP: [TOO] Reason: 4 + [1651283513475] [29332:35531053] CHIP: [TOO] TargetSoftwareVersion: null + [1651283513475] [29332:35531053] CHIP: [TOO] } + disabled: true + - label: "DUT successfully finishes applying a software update and the new software image version is being executed on the DUT." @@ -70,7 +208,7 @@ tests: where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID Subscribe to VersionApplied event right away after this using command - chip-tool otasoftwareupdaterequestor subscribe-event version-applied 5 10 1 2 0 + ./chip-tool otasoftwareupdaterequestor subscribe-event version-applied 5 10 1 2 0 Verify that the chip-tool receives below VersionApplied event notification diff --git a/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml b/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml index 1383f3d1fd1ada..d1b733439e9fd2 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 31.10.1. [TC-SU-3.2] Tests if the DUT is sending the correct + 3.11.1. [TC-SU-3.2] Tests if the DUT is sending the correct QueryImageResponse to the OTA-R config: @@ -34,16 +34,16 @@ tests: Verify on the OTA Requestor logs - [1645743053319] [97809:20280821] CHIP: [SWU] QueryImageResponse: - [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 - [1645743053319] [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds - [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota - [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersion: 1 - [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersionString: Example-Image-V0.1 - [1645743053319] [97809:20280821] CHIP: [SWU] updateToken: 32 - [1645743053319] [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 - [1645743053319] [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 - [1645743053319] [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version + [1651265462659] [21768:35233106] CHIP: [SWU] QueryImageResponse: + [1651265462659] [21768:35233106] CHIP: [SWU] status: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] delayedActionTime: 0 seconds + [1651265462659] [21768:35233106] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota + [1651265462659] [21768:35233106] CHIP: [SWU] softwareVersion: 2 + [1651265462659] [21768:35233106] CHIP: [SWU] softwareVersionString: 2.0 + [1651265462659] [21768:35233106] CHIP: [SWU] updateToken: 32 + [1651265462659] [21768:35233106] CHIP: [SWU] userConsentNeeded: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] metadataForRequestor: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] Update available from version 1 to 2 disabled: true - label: @@ -51,6 +51,8 @@ tests: OTA-R/TH. OTA-R/TH sends a QueryImage Command to the DUT. DUT responds with the QueryImageResponse to the OTA-R/TH." verification: | + out/chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -q updateNotAvailable + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID @@ -75,14 +77,59 @@ tests: Verify on the OTA Requestor logs - [1645743053319] [97809:20280821] CHIP: [SWU] QueryImageResponse: - [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 - [1645743053319] [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds - [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota - [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersion: 1 - [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersionString: Example-Image-V0.1 - [1645743053319] [97809:20280821] CHIP: [SWU] updateToken: 32 - [1645743053319] [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 - [1645743053319] [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 - [1645743053319] [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version + [1651265462659] [21768:35233106] CHIP: [SWU] QueryImageResponse: + [1651265462659] [21768:35233106] CHIP: [SWU] status: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] delayedActionTime: 0 seconds + [1651265462659] [21768:35233106] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota + [1651265462659] [21768:35233106] CHIP: [SWU] softwareVersion: 2 + [1651265462659] [21768:35233106] CHIP: [SWU] softwareVersionString: 2.0 + [1651265462659] [21768:35233106] CHIP: [SWU] updateToken: 32 + [1651265462659] [21768:35233106] CHIP: [SWU] userConsentNeeded: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] metadataForRequestor: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] Update available from version 1 to 2 + + Verify all the image URI field requirements. + disabled: true + + - label: + "OTA-R/TH sends a QueryImage Command to the DUT. ProtocolSupported + field should list 'https'. DUT responds with a QueryImageResponse to + the OTA-R/TH." + verification: | + Out of scope for V1.0 + disabled: true + + - label: + "OTA-R/TH sends a QueryImage Command to the DUT. DUT responds with the + QueryImageResponse with QueryStatus set to 'Busy', DelayedActionTime + set to 3 minutes. On the subsequent QueryImage command, DUT sends a + QueryImageResponse back to OTA-R/TH. QueryStatus is set to + 'UpdateAvailable'." + verification: | + out/chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -q busy + + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Requestor logs + [1651265271074] [21764:35230537] CHIP: [SWU] QueryImageResponse: + [1651265271074] [21764:35230537] CHIP: [SWU] status: 1 + [1651265271074] [21764:35230537] CHIP: [SWU] delayedActionTime: 180 seconds + [1651265271074] [21764:35230537] CHIP: [SWU] userConsentNeeded: 0 + [1651265271074] [21764:35230537] CHIP: [SWU] metadataForRequestor: 0 + + Verify that the OTA-R/TH starts the download from the DUT after the second QueryImageResponse with UpdateAvailable status. + [1651265462659] [21768:35233106] CHIP: [SWU] QueryImageResponse: + [1651265462659] [21768:35233106] CHIP: [SWU] status: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] delayedActionTime: 0 seconds + [1651265462659] [21768:35233106] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota + [1651265462659] [21768:35233106] CHIP: [SWU] softwareVersion: 2 + [1651265462659] [21768:35233106] CHIP: [SWU] softwareVersionString: 2.0 + [1651265462659] [21768:35233106] CHIP: [SWU] updateToken: 32 + [1651265462659] [21768:35233106] CHIP: [SWU] userConsentNeeded: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] metadataForRequestor: 0 + [1651265462659] [21768:35233106] CHIP: [SWU] Update available from version 1 to 2 + + Verify that the Image downloaded by the OTA-R/TH is valid and is the same image that was supposed to be downloaded. disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml b/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml index 6317a8e4f50137..d1eac0de5ef329 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml @@ -13,8 +13,7 @@ # 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: - 31.11.1. [TC-SU-3.3] Tests the transfer of Images between the DUT and OTA-R +name: 3.12.1. [TC-SU-3.3] Tests the transfer of Images between the DUT and OTA-R config: nodeId: 0x12344321 @@ -44,7 +43,7 @@ tests: [1645743053319] [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 [1645743053319] [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version - Verifyon the OTA Requestor logs after image downloaded + Verify on the OTA Requestor logs after image downloaded [1645743059327] [97809:20280957] CHIP: [SWU] OTA image downloaded to test.txt disabled: true @@ -63,8 +62,9 @@ tests: UserConsentNeeded field set to True." verification: | Run the OTA Requestor App using command + chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --periodicQueryTimeout ${TIME_IN_SECONDS} -c - chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --delayQuery ${TIME_IN_SECONDS} -c + out/chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -c Verify that the DUT does not try to obtain User Consent from the user prior to transfer of software update image. disabled: true @@ -76,11 +76,43 @@ tests: verification: | Run the OTA Requestor App using command - chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --delayQuery ${TIME_IN_SECONDS} -c + chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --periodicQueryTimeout ${TIME_IN_SECONDS} -c + + out/chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin Verify that the DUT tries to obtain User Consent from the user prior to transfer of software update image. disabled: true + - label: + "During the transfer of the image from the DUT, force fail the + transfer before it completely transfers the image. Wait for the Idle + timeout. Initiate another QueryImage Command from OTA-R/TH to the DUT." + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Kill the OTA Requestor App during the transfer of the image to the DUT before it completely transfers the image. + + Verify that the BDX Idle timeout on DUT should be no less than 5 minutes. + [1651269360125] [23256:35291938] CHIP: [BDX] Transfer timed out + + Relaunch the OTA Requestor App and initiate another query + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + Verify that a new transfer of software image is started from DUT when sending another QueryImage request + disabled: true + + - label: + "During the transfer of the image from the DUT, force fail the + transfer before it completely transfers the image. Initiate another + QueryImage Command from OTA-R/TH to the DUT. Set the RC[STARTOFS] bit + and associated STARTOFS field in the ReceiveInit Message sent from the + TH to indicate the resumption of a transfer previously aborted." + verification: | + Out of scope for V1.0 + disabled: true + - label: "IF (PICS_DT_Vendor_Specific) Perform the OTA Update from DUT using vendor specific mechanism." diff --git a/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml b/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml index 802827c2fd6ff6..65ce64be9558b4 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 31.12.1. [TC-SU-3.4] Tests the scenarios on when a software update should be + 3.13.1. [TC-SU-3.4] Tests the scenarios on when a software update should be applied by the OTA-R config: @@ -33,3 +33,56 @@ tests: [1645743059328] [97809:20280957] CHIP: [SWU] action: 0 [1645743059328] [97809:20280957] CHIP: [SWU] delayedActionTime: 0 seconds disabled: true + + - label: + "OTA-R/TH on completion of image download sends an ApplyUpdateRequest + command to the DUT. DUT responds with the ApplyUpdateResponse with + Action set to 'AwaitNextAction', DelayedActionTime set to 3 minutes. + On the subsequent ApplyUpdateRequest command, DUT sends a + ApplyUpdateResponse back to DUT. Action is set to Proceed." + verification: | + Run the OTA Requestor App using command + + chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --periodicQueryTimeout ${TIME_IN_SECONDS} --autoApplyImage + + chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -a awaitNextAction -p 180 + + Verify on the OTA Requestor logs: + + [1651273867647] [25752:35374182] CHIP: [SWU] ApplyUpdateResponse: + [1651273867647] [25752:35374182] CHIP: [SWU] action: 1 + [1651273867647] [25752:35374182] CHIP: [SWU] delayedActionTime: 180 seconds + + Verify on the OTA Requestor logs after subsequent ApplyUpdateRequest: + + [1651274047655] [25752:35376683] CHIP: [SWU] ApplyUpdateResponse: + [1651274047655] [25752:35376683] CHIP: [SWU] action: 0 + [1651274047655] [25752:35376683] CHIP: [SWU] delayedActionTime: 0 seconds + disabled: true + + - label: + "OTA-R/TH on completion of image download sends an ApplyUpdateRequest + command to the DUT. DUT responds with the ApplyUpdateResponse with + Action set to 'Discontinue'. Initiate another QueryImage Command from + OTA-R/TH to the DUT." + verification: | + Run the OTA Requestor App using command + + chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --periodicQueryTimeout ${TIME_IN_SECONDS} + + chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin -a discontinue + + Verify on the OTA Requestor logs: + + [1651275906536] [26578:35409308] CHIP: [SWU] ApplyUpdateResponse: + [1651275906536] [26578:35409308] CHIP: [SWU] action: 2 + [1651275906536] [26578:35409308] CHIP: [SWU] delayedActionTime: 0 seconds + + Verify on the OTA Requestor logs after subsequent ApplyUpdateRequest: + + [1651274047655] [25752:35376683] CHIP: [SWU] ApplyUpdateResponse: + [1651274047655] [25752:35376683] CHIP: [SWU] action: 0 + [1651274047655] [25752:35376683] CHIP: [SWU] delayedActionTime: 0 seconds + + Initiate another QueryImage Command from OTA-R/TH to the DUT and verify that the entire OTA process is restarted on DUT when OTA-R/TH sends another QueryImage Request. + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml b/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml index b280a1dc55eab6..2b6a37fe8b7fb8 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml @@ -21,11 +21,121 @@ config: endpoint: 0 tests: + - label: + "TH sends a write request for the DefaultOTAProviders Attribute on the + first fabric to the DUT. TH2 is set as the default Provider for the + fabric." + verification: | + ./chip-tool otasoftwareupdaterequestor write default-ota-providers '[{"fabricIndex": 1, "providerNodeID": 3735928559, "endpoint": 0}]' 0x0000001234567890 0 + + status = 0x00 (SUCCESS), + disabled: true + + - label: + "TH sends a read request to read the DefaultOTAProviders Attribute on + the first fabric to the DUT." + verification: | + ./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0 + + [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries + [1651277342848] [26860:35431852] CHIP: [TOO] [1]: { + [1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 1 + [1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0 + [1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1 + [1651277342848] [26860:35431852] CHIP: [TOO] } + disabled: true + + - label: + "TH sends a write request for the DefaultOTAProviders Attribute on the + second fabric to the DUT. TH3 is set as the default Provider for the + fabric." + verification: | + ./chip-tool otasoftwareupdaterequestor write default-ota-providers '[{"fabricIndex": 2, "providerNodeID": 1, "endpoint": 0}]' 0x858 0 --commissioner-name beta + disabled: true + + - label: + "TH sends a read request to read the DefaultOTAProviders Attribute on + the first and second fabric to the DUT." + verification: | + ./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0 + + [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries + [1651277342848] [26860:35431852] CHIP: [TOO] [1]: { + [1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 1 + [1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0 + [1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1 + [1651277342848] [26860:35431852] CHIP: [TOO] } + + ./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x858 0 --commissioner-name beta + + [1651277543492] [26864:35434761] CHIP: [TOO] DefaultOtaProviders: 1 entries + [1651277543492] [26864:35434761] CHIP: [TOO] [1]: { + [1651277543492] [26864:35434761] CHIP: [TOO] ProviderNodeID: 5 + [1651277543492] [26864:35434761] CHIP: [TOO] Endpoint: 0 + [1651277543492] [26864:35434761] CHIP: [TOO] FabricIndex: 2 + [1651277543492] [26864:35434761] CHIP: [TOO] } + disabled: true + + - label: + "TH sends a write request for the DefaultOTAProviders Attribute on the + first fabric to the DUT. TH4 is the first Provider location and TH2 is + the second Provider location in the same write request on the first + fabric. TH sends a read request to read the DefaultOTAProviders + Attribute on the first and second fabric to the DUT." + verification: | + chip-tool otasoftwareupdaterequestor write default-ota-providers '[{"fabricIndex": 1, "providerNodeID": 10, "endpoint": 0}, {"fabricIndex": 1, "providerNodeID": 20, "endpoint": 0}]' 0x0000001234567890 0 + + [1651278243153] [27005:35448520] CHIP: [TOO] Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR) + + chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0 + + [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries + [1651277342848] [26860:35431852] CHIP: [TOO] [1]: { + [1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 10 + [1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0 + [1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1 + [1651277342848] [26860:35431852] CHIP: [TOO] } + + chip-tool otasoftwareupdaterequestor read default-ota-providers 0x858 0 --commissioner-name beta + + [1651277543492] [26864:35434761] CHIP: [TOO] DefaultOtaProviders: 1 entries + [1651277543492] [26864:35434761] CHIP: [TOO] [1]: { + [1651277543492] [26864:35434761] CHIP: [TOO] ProviderNodeID: 5 + [1651277543492] [26864:35434761] CHIP: [TOO] Endpoint: 0 + [1651277543492] [26864:35434761] CHIP: [TOO] FabricIndex: 2 + [1651277543492] [26864:35434761] CHIP: [TOO] } + disabled: true + + - label: + "TH sends a write request for the DefaultOTAProviders Attribute with + an empty provider list on the second fabric to the DUT. TH sends a + read request to read the DefaultOTAProviders Attribute on the first + and second fabric to the DUT." + verification: | + chip-tool otasoftwareupdaterequestor write default-ota-providers '[]' 0x858 0 --commissioner-name beta + + status = 0x00 (SUCCESS), + + + chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0 + + [1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries + [1651277342848] [26860:35431852] CHIP: [TOO] [1]: { + [1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 10 + [1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0 + [1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1 + [1651277342848] [26860:35431852] CHIP: [TOO] } + + chip-tool otasoftwareupdaterequestor read default-ota-providers 0x858 0 --commissioner-name beta + + [1651280268033] [27804:35481732] CHIP: [TOO] DefaultOtaProviders: 0 entries + disabled: true + - label: "TH sends a read request to read the UpdatePossible attribute from the DUT." verification: | - chip-tool otasoftwareupdaterequestor read update-possible 0x1234567890 0 + ./chip-tool otasoftwareupdaterequestor read update-possible 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID @@ -63,7 +173,7 @@ tests: "TH sends a read request to read the UpdateState attribute from the DUT" verification: | - chip-tool otasoftwareupdaterequestor read update-state 0x1234567890 0 + ./chip-tool otasoftwareupdaterequestor read update-state 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID @@ -102,7 +212,7 @@ tests: DUT is downloading the image, TH sends a read request to read the UpdateStateProgress attribute from the DUT" verification: | - chip-tool otasoftwareupdaterequestor read update-state-progress 0x1234567890 0 + ./chip-tool otasoftwareupdaterequestor read update-state-progress 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID @@ -110,57 +220,57 @@ tests: [1645823750592] [22938:21245247] CHIP: [DMG] ReportDataMessage = [1645823750592] [22938:21245247] CHIP: [DMG] { - [1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIBs = - [1645823750592] [22938:21245247] CHIP: [DMG] [ - [1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIB = - [1645823750592] [22938:21245247] CHIP: [DMG] { - [1645823750592] [22938:21245247] CHIP: [DMG] AttributeDataIB = - [1645823750592] [22938:21245247] CHIP: [DMG] { - [1645823750592] [22938:21245247] CHIP: [DMG] DataVersion = 0x3873a963, - [1645823750592] [22938:21245247] CHIP: [DMG] AttributePathIB = - [1645823750592] [22938:21245247] CHIP: [DMG] { - [1645823750592] [22938:21245247] CHIP: [DMG] Endpoint = 0x0, - [1645823750592] [22938:21245247] CHIP: [DMG] Cluster = 0x2a, - [1645823750592] [22938:21245247] CHIP: [DMG] Attribute = 0x0000_0003, - [1645823750592] [22938:21245247] CHIP: [DMG] } + [1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIBs = + [1645823750592] [22938:21245247] CHIP: [DMG] [ + [1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIB = + [1645823750592] [22938:21245247] CHIP: [DMG] { + [1645823750592] [22938:21245247] CHIP: [DMG] AttributeDataIB = + [1645823750592] [22938:21245247] CHIP: [DMG] { + [1645823750592] [22938:21245247] CHIP: [DMG] DataVersion = 0x3873a963, + [1645823750592] [22938:21245247] CHIP: [DMG] AttributePathIB = + [1645823750592] [22938:21245247] CHIP: [DMG] { + [1645823750592] [22938:21245247] CHIP: [DMG] Endpoint = 0x0, + [1645823750592] [22938:21245247] CHIP: [DMG] Cluster = 0x2a, + [1645823750592] [22938:21245247] CHIP: [DMG] Attribute = 0x0000_0003, + [1645823750592] [22938:21245247] CHIP: [DMG] } [1645823750592] [22938:21245247] CHIP: [DMG] - [1645823750592] [22938:21245247] CHIP: [DMG] Data = NULL - [1645823750592] [22938:21245247] CHIP: [DMG] }, + [1645823750592] [22938:21245247] CHIP: [DMG] Data = NULL + [1645823750592] [22938:21245247] CHIP: [DMG] }, [1645823750592] [22938:21245247] CHIP: [DMG] - [1645823750592] [22938:21245247] CHIP: [DMG] }, + [1645823750592] [22938:21245247] CHIP: [DMG] }, [1645823750592] [22938:21245247] CHIP: [DMG] - [1645823750592] [22938:21245247] CHIP: [DMG] ], + [1645823750592] [22938:21245247] CHIP: [DMG] ], [1645823750592] [22938:21245247] CHIP: [DMG] - [1645823750592] [22938:21245247] CHIP: [DMG] SuppressResponse = true, - [1645823750592] [22938:21245247] CHIP: [DMG] InteractionModelRevision = 1 + [1645823750592] [22938:21245247] CHIP: [DMG] SuppressResponse = true, + [1645823750592] [22938:21245247] CHIP: [DMG] InteractionModelRevision = 1 [1645823750592] [22938:21245247] CHIP: [DMG] } Verify that the field value is anything between 1 to 100 for an ongoing update on the chip-tool logs [1645823829292] [22944:21246546] CHIP: [DMG] ReportDataMessage = [1645823829292] [22944:21246546] CHIP: [DMG] { - [1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIBs = - [1645823829292] [22944:21246546] CHIP: [DMG] [ - [1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIB = - [1645823829292] [22944:21246546] CHIP: [DMG] { - [1645823829292] [22944:21246546] CHIP: [DMG] AttributeDataIB = - [1645823829292] [22944:21246546] CHIP: [DMG] { - [1645823829292] [22944:21246546] CHIP: [DMG] DataVersion = 0x3873a966, - [1645823829292] [22944:21246546] CHIP: [DMG] AttributePathIB = - [1645823829292] [22944:21246546] CHIP: [DMG] { - [1645823829292] [22944:21246546] CHIP: [DMG] Endpoint = 0x0, - [1645823829292] [22944:21246546] CHIP: [DMG] Cluster = 0x2a, - [1645823829292] [22944:21246546] CHIP: [DMG] Attribute = 0x0000_0003, - [1645823829292] [22944:21246546] CHIP: [DMG] } + [1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIBs = + [1645823829292] [22944:21246546] CHIP: [DMG] [ + [1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIB = + [1645823829292] [22944:21246546] CHIP: [DMG] { + [1645823829292] [22944:21246546] CHIP: [DMG] AttributeDataIB = + [1645823829292] [22944:21246546] CHIP: [DMG] { + [1645823829292] [22944:21246546] CHIP: [DMG] DataVersion = 0x3873a966, + [1645823829292] [22944:21246546] CHIP: [DMG] AttributePathIB = + [1645823829292] [22944:21246546] CHIP: [DMG] { + [1645823829292] [22944:21246546] CHIP: [DMG] Endpoint = 0x0, + [1645823829292] [22944:21246546] CHIP: [DMG] Cluster = 0x2a, + [1645823829292] [22944:21246546] CHIP: [DMG] Attribute = 0x0000_0003, + [1645823829292] [22944:21246546] CHIP: [DMG] } [1645823829292] [22944:21246546] CHIP: [DMG] - [1645823829292] [22944:21246546] CHIP: [DMG] Data = 20, - [1645823829292] [22944:21246546] CHIP: [DMG] }, + [1645823829292] [22944:21246546] CHIP: [DMG] Data = 20, + [1645823829292] [22944:21246546] CHIP: [DMG] }, [1645823829292] [22944:21246546] CHIP: [DMG] - [1645823829292] [22944:21246546] CHIP: [DMG] }, + [1645823829292] [22944:21246546] CHIP: [DMG] }, [1645823829292] [22944:21246546] CHIP: [DMG] - [1645823829292] [22944:21246546] CHIP: [DMG] ], + [1645823829292] [22944:21246546] CHIP: [DMG] ], [1645823829292] [22944:21246546] CHIP: [DMG] - [1645823829292] [22944:21246546] CHIP: [DMG] SuppressResponse = true, - [1645823829292] [22944:21246546] CHIP: [DMG] InteractionModelRevision = 1 + [1645823829292] [22944:21246546] CHIP: [DMG] SuppressResponse = true, + [1645823829292] [22944:21246546] CHIP: [DMG] InteractionModelRevision = 1 [1645823829292] [22944:21246546] CHIP: [DMG] } disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml b/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml index fd772fd5529ecc..9837321c24f013 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml @@ -22,6 +22,20 @@ config: endpoint: 0 tests: + - label: + "DUT sends a write request for the DefaultOTAProviders Attribute to + the TH." + verification: | + Verify that the OTA Requestor App receives the write command and does not reject the value as invalid. + disabled: true + + - label: + "DUT sends a read request to read the DefaultOTAProviders Attribute to + the TH." + verification: | + Verify that the OTA Requestor App responds to the read command + disabled: true + - label: "DUT sends a read request to read the UpdatePossible attribute from the TH." diff --git a/src/app/tests/suites/tests.js b/src/app/tests/suites/tests.js index ddee1005dbdcd4..32e2abf332157c 100644 --- a/src/app/tests/suites/tests.js +++ b/src/app/tests/suites/tests.js @@ -76,17 +76,10 @@ function getManualTests() { ]; const BulkDataExchangeProtocol = [ - 'Test_TC_BDX_1_1', 'Test_TC_BDX_1_2', - 'Test_TC_BDX_1_3', 'Test_TC_BDX_1_4', - 'Test_TC_BDX_1_5', - 'Test_TC_BDX_1_6', 'Test_TC_BDX_2_1', 'Test_TC_BDX_2_2', - 'Test_TC_BDX_2_3', - 'Test_TC_BDX_2_4', - 'Test_TC_BDX_2_5', ]; const bridge = [ @@ -137,13 +130,16 @@ function getManualTests() { ]; const DiagnosticsLogs = [ - 'Test_TC_Diag_Log_2_1', - 'Test_TC_Diag_Log_2_2', - 'Test_TC_Diag_Log_2_3', + 'Test_TC_DIAGLOG_1_1', + 'Test_TC_DIAGLOG_2_1', + 'Test_TC_DIAGLOG_2_2', + 'Test_TC_DIAGLOG_3_1', ]; const Descriptor = [ 'Test_TC_DESC_1_1', + 'Test_TC_DESC_2_1', + 'Test_TC_DESC_2_2', ]; const EthernetNetworkDiagnostics = [ @@ -353,6 +349,8 @@ function getManualTests() { const LocalizationConfiguration = [ 'Test_TC_LO_1_1', + 'Test_TC_LO_2_1', + 'Test_TC_LO_3_1', ]; const LevelControl = [ diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index c520786c7830b8..f41c59751146ef 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -279,17 +279,10 @@ class ManualTestList : public Command printf("Test_TC_GR_2_2\n"); printf("Test_TC_GR_3_1\n"); printf("Test_TC_GR_3_2\n"); - printf("Test_TC_BDX_1_1\n"); printf("Test_TC_BDX_1_2\n"); - printf("Test_TC_BDX_1_3\n"); printf("Test_TC_BDX_1_4\n"); - printf("Test_TC_BDX_1_5\n"); - printf("Test_TC_BDX_1_6\n"); printf("Test_TC_BDX_2_1\n"); printf("Test_TC_BDX_2_2\n"); - printf("Test_TC_BDX_2_3\n"); - printf("Test_TC_BDX_2_4\n"); - printf("Test_TC_BDX_2_5\n"); printf("Test_TC_BR_1\n"); printf("Test_TC_BR_2\n"); printf("Test_TC_BR_3\n"); @@ -325,10 +318,13 @@ class ManualTestList : public Command printf("Test_TC_DM_4_19\n"); printf("Test_TC_DM_4_20\n"); printf("Test_TC_DM_4_21\n"); - printf("Test_TC_Diag_Log_2_1\n"); - printf("Test_TC_Diag_Log_2_2\n"); - printf("Test_TC_Diag_Log_2_3\n"); + printf("Test_TC_DIAGLOG_1_1\n"); + printf("Test_TC_DIAGLOG_2_1\n"); + printf("Test_TC_DIAGLOG_2_2\n"); + printf("Test_TC_DIAGLOG_3_1\n"); printf("Test_TC_DESC_1_1\n"); + printf("Test_TC_DESC_2_1\n"); + printf("Test_TC_DESC_2_2\n"); printf("Test_TC_ETHDIAG_1_2\n"); printf("Test_TC_GC_2_2\n"); printf("Test_TC_GC_2_3\n"); @@ -466,6 +462,8 @@ class ManualTestList : public Command printf("Test_TC_LC_2_4\n"); printf("Test_TC_LC_2_5\n"); printf("Test_TC_LO_1_1\n"); + printf("Test_TC_LO_2_1\n"); + printf("Test_TC_LO_3_1\n"); printf("Test_TC_LVL_2_3\n"); printf("Test_TC_OO_3_1\n"); printf("Test_TC_OO_3_2\n"); @@ -67589,62 +67587,6 @@ class Test_TC_GR_3_2Suite : public TestCommand } }; -class Test_TC_BDX_1_1Suite : public TestCommand -{ -public: - Test_TC_BDX_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BDX_1_1", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_BDX_1_1Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_BDX_1_2Suite : public TestCommand { public: @@ -67701,62 +67643,6 @@ class Test_TC_BDX_1_2Suite : public TestCommand } }; -class Test_TC_BDX_1_3Suite : public TestCommand -{ -public: - Test_TC_BDX_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BDX_1_3", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_BDX_1_3Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_BDX_1_4Suite : public TestCommand { public: @@ -67813,118 +67699,6 @@ class Test_TC_BDX_1_4Suite : public TestCommand } }; -class Test_TC_BDX_1_5Suite : public TestCommand -{ -public: - Test_TC_BDX_1_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BDX_1_5", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_BDX_1_5Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_BDX_1_6Suite : public TestCommand -{ -public: - Test_TC_BDX_1_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BDX_1_6", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_BDX_1_6Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_BDX_2_1Suite : public TestCommand { public: @@ -68037,10 +67811,10 @@ class Test_TC_BDX_2_2Suite : public TestCommand } }; -class Test_TC_BDX_2_3Suite : public TestCommand +class Test_TC_BR_1Suite : public TestCommand { public: - Test_TC_BDX_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BDX_2_3", 0, credsIssuerConfig) + Test_TC_BR_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BR_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68048,7 +67822,7 @@ class Test_TC_BDX_2_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BDX_2_3Suite() {} + ~Test_TC_BR_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68093,10 +67867,10 @@ class Test_TC_BDX_2_3Suite : public TestCommand } }; -class Test_TC_BDX_2_4Suite : public TestCommand +class Test_TC_BR_2Suite : public TestCommand { public: - Test_TC_BDX_2_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BDX_2_4", 0, credsIssuerConfig) + Test_TC_BR_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BR_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68104,7 +67878,7 @@ class Test_TC_BDX_2_4Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BDX_2_4Suite() {} + ~Test_TC_BR_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68149,10 +67923,10 @@ class Test_TC_BDX_2_4Suite : public TestCommand } }; -class Test_TC_BDX_2_5Suite : public TestCommand +class Test_TC_BR_3Suite : public TestCommand { public: - Test_TC_BDX_2_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BDX_2_5", 0, credsIssuerConfig) + Test_TC_BR_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BR_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68160,7 +67934,7 @@ class Test_TC_BDX_2_5Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BDX_2_5Suite() {} + ~Test_TC_BR_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68205,10 +67979,10 @@ class Test_TC_BDX_2_5Suite : public TestCommand } }; -class Test_TC_BR_1Suite : public TestCommand +class Test_TC_BRAC_2_1Suite : public TestCommand { public: - Test_TC_BR_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BR_1", 0, credsIssuerConfig) + Test_TC_BRAC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BRAC_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68216,7 +67990,7 @@ class Test_TC_BR_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BR_1Suite() {} + ~Test_TC_BRAC_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68261,10 +68035,10 @@ class Test_TC_BR_1Suite : public TestCommand } }; -class Test_TC_BR_2Suite : public TestCommand +class Test_TC_BRAC_2_2Suite : public TestCommand { public: - Test_TC_BR_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BR_2", 0, credsIssuerConfig) + Test_TC_BRAC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BRAC_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68272,7 +68046,7 @@ class Test_TC_BR_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BR_2Suite() {} + ~Test_TC_BRAC_2_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68317,10 +68091,10 @@ class Test_TC_BR_2Suite : public TestCommand } }; -class Test_TC_BR_3Suite : public TestCommand +class Test_TC_BRAC_3_1Suite : public TestCommand { public: - Test_TC_BR_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BR_3", 0, credsIssuerConfig) + Test_TC_BRAC_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BRAC_3_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68328,7 +68102,7 @@ class Test_TC_BR_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BR_3Suite() {} + ~Test_TC_BRAC_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68373,10 +68147,10 @@ class Test_TC_BR_3Suite : public TestCommand } }; -class Test_TC_BRAC_2_1Suite : public TestCommand +class Test_TC_DA_1_3Suite : public TestCommand { public: - Test_TC_BRAC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BRAC_2_1", 0, credsIssuerConfig) + Test_TC_DA_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DA_1_3", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68384,7 +68158,7 @@ class Test_TC_BRAC_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BRAC_2_1Suite() {} + ~Test_TC_DA_1_3Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68429,10 +68203,10 @@ class Test_TC_BRAC_2_1Suite : public TestCommand } }; -class Test_TC_BRAC_2_2Suite : public TestCommand +class Test_TC_DM_1_2Suite : public TestCommand { public: - Test_TC_BRAC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BRAC_2_2", 0, credsIssuerConfig) + Test_TC_DM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68440,7 +68214,7 @@ class Test_TC_BRAC_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BRAC_2_2Suite() {} + ~Test_TC_DM_1_2Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -68485,10 +68259,10 @@ class Test_TC_BRAC_2_2Suite : public TestCommand } }; -class Test_TC_BRAC_3_1Suite : public TestCommand +class Test_TC_DM_1_4Suite : public TestCommand { public: - Test_TC_BRAC_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BRAC_3_1", 0, credsIssuerConfig) + Test_TC_DM_1_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_4", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -68496,175 +68270,7 @@ class Test_TC_BRAC_3_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_BRAC_3_1Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_DA_1_3Suite : public TestCommand -{ -public: - Test_TC_DA_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DA_1_3", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_DA_1_3Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_DM_1_2Suite : public TestCommand -{ -public: - Test_TC_DM_1_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_2", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_DM_1_2Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_DM_1_4Suite : public TestCommand -{ -public: - Test_TC_DM_1_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DM_1_4", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_DM_1_4Suite() {} + ~Test_TC_DM_1_4Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70315,11 +69921,11 @@ class Test_TC_DM_4_21Suite : public TestCommand } }; -class Test_TC_Diag_Log_2_1Suite : public TestCommand +class Test_TC_DIAGLOG_1_1Suite : public TestCommand { public: - Test_TC_Diag_Log_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_Diag_Log_2_1", 0, credsIssuerConfig) + Test_TC_DIAGLOG_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_1_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70327,7 +69933,7 @@ class Test_TC_Diag_Log_2_1Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_Diag_Log_2_1Suite() {} + ~Test_TC_DIAGLOG_1_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70372,11 +69978,11 @@ class Test_TC_Diag_Log_2_1Suite : public TestCommand } }; -class Test_TC_Diag_Log_2_2Suite : public TestCommand +class Test_TC_DIAGLOG_2_1Suite : public TestCommand { public: - Test_TC_Diag_Log_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_Diag_Log_2_2", 0, credsIssuerConfig) + Test_TC_DIAGLOG_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_2_1", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70384,7 +69990,7 @@ class Test_TC_Diag_Log_2_2Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_Diag_Log_2_2Suite() {} + ~Test_TC_DIAGLOG_2_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70429,11 +70035,11 @@ class Test_TC_Diag_Log_2_2Suite : public TestCommand } }; -class Test_TC_Diag_Log_2_3Suite : public TestCommand +class Test_TC_DIAGLOG_2_2Suite : public TestCommand { public: - Test_TC_Diag_Log_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_Diag_Log_2_3", 0, credsIssuerConfig) + Test_TC_DIAGLOG_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_2_2", 0, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -70441,7 +70047,64 @@ class Test_TC_Diag_Log_2_3Suite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~Test_TC_Diag_Log_2_3Suite() {} + ~Test_TC_DIAGLOG_2_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DIAGLOG_3_1Suite : public TestCommand +{ +public: + Test_TC_DIAGLOG_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_DIAGLOG_3_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DIAGLOG_3_1Suite() {} chip::System::Clock::Timeout GetWaitDuration() const override { @@ -70542,6 +70205,118 @@ class Test_TC_DESC_1_1Suite : public TestCommand } }; +class Test_TC_DESC_2_1Suite : public TestCommand +{ +public: + Test_TC_DESC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_2_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DESC_2_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_DESC_2_2Suite : public TestCommand +{ +public: + Test_TC_DESC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_2_2", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_DESC_2_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + } + return CHIP_NO_ERROR; + } +}; + class Test_TC_ETHDIAG_1_2Suite : public TestCommand { public: @@ -79385,6 +79160,118 @@ class Test_TC_LO_1_1Suite : public TestCommand } }; +class Test_TC_LO_2_1Suite : public TestCommand +{ +public: + Test_TC_LO_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LO_2_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_LO_2_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_LO_3_1Suite : public TestCommand +{ +public: + Test_TC_LO_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LO_3_1", 0, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_LO_3_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + } + return CHIP_NO_ERROR; + } +}; + class Test_TC_LVL_2_3Suite : public TestCommand { public: @@ -81432,17 +81319,10 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -81478,10 +81358,13 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), @@ -81619,6 +81502,8 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig),