From 3340fc2b62ccdc369c875e99c6d3e66da13c9bec Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Wed, 6 Jul 2022 14:31:31 -0400 Subject: [PATCH 01/15] Switch from readline to editline (#20330) Readline is GPL'd software and may not be available in the build environment. Vendor editline which is permissively licensed and drop it in as a replacement for readline. --- .gitmodules | 3 + build_overrides/editline.gni | 18 ++ examples/build_overrides/editline.gni | 18 ++ examples/chip-tool/BUILD.gn | 11 +- .../interactive/InteractiveCommands.cpp | 3 +- examples/darwin-framework-tool/BUILD.gn | 9 +- third_party/editline/BUILD.gn | 33 ++++ third_party/editline/include/config.h | 171 ++++++++++++++++++ third_party/editline/repo | 1 + 9 files changed, 257 insertions(+), 10 deletions(-) create mode 100644 build_overrides/editline.gni create mode 100644 examples/build_overrides/editline.gni create mode 100644 third_party/editline/BUILD.gn create mode 100644 third_party/editline/include/config.h create mode 160000 third_party/editline/repo diff --git a/.gitmodules b/.gitmodules index ed490c7ed0dd40..2a733a8e6a026e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -266,3 +266,6 @@ url = https://github.com/SiliconLabs/wiseconnect-wifi-bt-sdk.git branch = master platforms = efr32 +[submodule "editline"] + path = third_party/editline/repo + url = https://github.com/troglobit/editline.git diff --git a/build_overrides/editline.gni b/build_overrides/editline.gni new file mode 100644 index 00000000000000..cd3133fdc3397b --- /dev/null +++ b/build_overrides/editline.gni @@ -0,0 +1,18 @@ +# Copyright (c) 2022 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. + +declare_args() { + # Root directory for editline. + editline_root = "//third_party/editline" +} diff --git a/examples/build_overrides/editline.gni b/examples/build_overrides/editline.gni new file mode 100644 index 00000000000000..7f20e53733eeb7 --- /dev/null +++ b/examples/build_overrides/editline.gni @@ -0,0 +1,18 @@ +# Copyright (c) 2022 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. + +declare_args() { + # Root directory for editline. + editline_root = "//third_party/connectedhomeip/third_party/editline" +} diff --git a/examples/chip-tool/BUILD.gn b/examples/chip-tool/BUILD.gn index 1e47fb4f2ed1bb..2c5880cea2d9a0 100644 --- a/examples/chip-tool/BUILD.gn +++ b/examples/chip-tool/BUILD.gn @@ -19,6 +19,10 @@ import("${chip_root}/build/chip/tools.gni") import("${chip_root}/examples/chip-tool/chip-tool.gni") import("${chip_root}/src/lib/core/core.gni") +if (config_use_interactive_mode) { + import("//build_overrides/editline.gni") +} + assert(chip_build_tools) config("config") { @@ -37,10 +41,6 @@ config("config") { ] cflags = [ "-Wconversion" ] - - if (config_use_interactive_mode) { - libs = [ "readline" ] - } } static_library("chip-tool-utils") { @@ -77,8 +77,11 @@ static_library("chip-tool-utils") { "config/PersistentStorage.cpp", ] + deps = [] + if (config_use_interactive_mode) { sources += [ "commands/interactive/InteractiveCommands.cpp" ] + deps += [ "${editline_root}:editline" ] } if (config_enable_yaml_tests) { diff --git a/examples/chip-tool/commands/interactive/InteractiveCommands.cpp b/examples/chip-tool/commands/interactive/InteractiveCommands.cpp index dbb3a6fbc1c5f0..8a0235f7bb0fb3 100644 --- a/examples/chip-tool/commands/interactive/InteractiveCommands.cpp +++ b/examples/chip-tool/commands/interactive/InteractiveCommands.cpp @@ -18,9 +18,8 @@ #include "InteractiveCommands.h" +#include #include -#include -#include #include char kInteractiveModeName[] = ""; diff --git a/examples/darwin-framework-tool/BUILD.gn b/examples/darwin-framework-tool/BUILD.gn index 3b59737e8c42b3..5469315293126e 100644 --- a/examples/darwin-framework-tool/BUILD.gn +++ b/examples/darwin-framework-tool/BUILD.gn @@ -18,6 +18,10 @@ import("//build_overrides/chip.gni") import("${chip_root}/build/chip/tools.gni") import("${chip_root}/examples//chip-tool/chip-tool.gni") +if (config_use_interactive_mode) { + import("//build_overrides/editline.gni") +} + assert(chip_build_tools) config("config") { @@ -43,10 +47,6 @@ config("config") { "-Wconversion", "-fobjc-arc", ] - - if (config_use_interactive_mode) { - libs = [ "readline" ] - } } executable("darwin-framework-tool") { @@ -81,6 +81,7 @@ executable("darwin-framework-tool") { if (config_use_interactive_mode) { sources += [ "commands/interactive/InteractiveCommands.mm" ] + deps += [ "${editline_root}:editline" ] } if (config_enable_yaml_tests) { diff --git a/third_party/editline/BUILD.gn b/third_party/editline/BUILD.gn new file mode 100644 index 00000000000000..9eb8a2cd495fda --- /dev/null +++ b/third_party/editline/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright (c) 2022 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. + +config("editline_config") { + include_dirs = [ "repo/include" ] +} + +static_library("editline") { + public = [ "repo/include/editline.h" ] + + sources = [ + "repo/src/complete.c", + "repo/src/editline.c", + "repo/src/editline.h", + "repo/src/sysunix.c", + "repo/src/unix.h", + ] + + public_configs = [ ":editline_config" ] + + include_dirs = [ "include" ] +} diff --git a/third_party/editline/include/config.h b/third_party/editline/include/config.h new file mode 100644 index 00000000000000..b4dad5de3a8444 --- /dev/null +++ b/third_party/editline/include/config.h @@ -0,0 +1,171 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if the `closedir' function returns void instead of int. */ +/* #undef CLOSEDIR_VOID */ + +/* Define to include ANSI arrow keys support. */ +#define CONFIG_ANSI_ARROWS 1 + +/* Define to enable EOF (Ctrl-D) key. */ +#define CONFIG_EOF 1 + +/* Define to enable SIGINT (Ctrl-C) key. */ +#define CONFIG_SIGINT 1 + +/* Define to enable SIGSTOP (Ctrl-Z) key. */ +/* #undef CONFIG_SIGSTOP */ + +/* Define to enable terminal bell on completion. */ +/* #undef CONFIG_TERMINAL_BELL */ + +/* Define to skip duplicate lines in the scrollback history. */ +#define CONFIG_UNIQUE_HISTORY 1 + +/* Define to use the termcap library for terminal size. */ +/* #undef CONFIG_USE_TERMCAP */ + +/* Define to 1 if `TIOCGWINSZ' requires . */ +#define GWINSZ_IN_SYS_IOCTL 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `curses' library (-lcurses). */ +/* #undef HAVE_LIBCURSES */ + +/* Define to 1 if you have the `ncurses' library (-lncurses). */ +/* #undef HAVE_LIBNCURSES */ + +/* Define to 1 if you have the `termcap' library (-ltermcap). */ +/* #undef HAVE_LIBTERMCAP */ + +/* Define to 1 if you have the `terminfo' library (-lterminfo). */ +/* #undef HAVE_LIBTERMINFO */ + +/* Define to 1 if you have the `tinfo' library (-ltinfo). */ +/* #undef HAVE_LIBTINFO */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the `perror' function. */ +#define HAVE_PERROR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SGTTY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define to 1 if `stat' has the bug that it succeeds when given the + zero-length file name argument. */ +/* #undef HAVE_STAT_EMPTY_STRING_BUG */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the `tcgetattr' function. */ +#define HAVE_TCGETATTR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMCAP_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMIO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing + slash. */ +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "editline" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "https://github.com/troglobit/editline/issues" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "editline" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "editline 1.17.1" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "editline" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "1.17.1" + +/* Define to 1 if the `S_IS*' macros in do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ +#define STDC_HEADERS 1 + +/* Default to UNIX backend, should be detected. */ +#define SYS_UNIX 1 + +/* Version number of package */ +#define VERSION "1.17.1" + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ diff --git a/third_party/editline/repo b/third_party/editline/repo new file mode 160000 index 00000000000000..9fa05ba3841f3a --- /dev/null +++ b/third_party/editline/repo @@ -0,0 +1 @@ +Subproject commit 9fa05ba3841f3a7776b0b3645a3a92f32259d988 From 5f4eff33a401cebfc6a65d7cabcfa247adb007c6 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 6 Jul 2022 15:14:37 -0400 Subject: [PATCH 02/15] Increase cloudbuild disk size from 200G to 500G for smoke tests (#20391) --- integrations/cloudbuild/smoke-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index f12a1d8e202191..46c7bc7ab9ccf6 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -110,4 +110,4 @@ artifacts: # building instead of docker download/checkout/bootstrap) options: machineType: "E2_HIGHCPU_32" - diskSizeGb: 200 + diskSizeGb: 500 From e1bddec73c06d85aabfcfaa75d85fbce257412c0 Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Wed, 6 Jul 2022 16:20:03 -0400 Subject: [PATCH 03/15] Fix sdk configurations for sleepy devices (#20380) --- third_party/silabs/efr32_sdk.gni | 51 +++++++++---------------------- third_party/silabs/matter_support | 2 +- 2 files changed, 16 insertions(+), 37 deletions(-) diff --git a/third_party/silabs/efr32_sdk.gni b/third_party/silabs/efr32_sdk.gni index a40cda2108c7b3..2460cb23368ca5 100644 --- a/third_party/silabs/efr32_sdk.gni +++ b/third_party/silabs/efr32_sdk.gni @@ -26,6 +26,8 @@ declare_args() { sdk_support_root = "${chip_root}/third_party/silabs/matter_support" enable_openthread_cli = true kvs_max_entries = 75 + + use_external_flash = true } assert(efr32_sdk_root != "", "efr32_sdk_root must be specified") @@ -194,30 +196,20 @@ template("efr32_sdk") { if ((defined(invoker.chip_enable_pw_rpc) && invoker.chip_enable_pw_rpc) || chip_build_libshell || enable_openthread_cli || (defined(invoker.show_qr_code) && invoker.show_qr_code) || - (defined(invoker.disable_lcd) && !invoker.disable_lcd)) { + (defined(invoker.disable_lcd) && !invoker.disable_lcd) || + (defined(invoker.use_external_flash) && use_external_flash)) { defines += [ "CONFIG_ENABLE_UART" ] + if (defined(invoker.use_external_flash) && use_external_flash) { + defines += [ "CONFIG_USE_EXTERNAL_FLASH" ] + } + _include_dirs += [ "${efr32_sdk_root}/platform/emdrv/uartdrv/inc", "${efr32_sdk_root}/platform/emdrv/uartdrv/config", + "${efr32_sdk_root}/hardware/driver/memlcd/inc/memlcd_usart", + "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/inc/sl_mx25_flash_shutdown_usart", ] - - if (efr32_family == "efr32mg12") { - _include_dirs += [ - "${efr32_sdk_root}/hardware/driver/memlcd/inc/memlcd_usart", - "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/inc/sl_mx25_flash_shutdown_usart", - ] - } else if (efr32_family == "efr32mg21") { - _include_dirs += [ - "${efr32_sdk_root}/hardware/driver/memlcd/inc/memlcd_usart", - "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/inc/sl_mx25_flash_shutdown_usart", - ] - } else if (efr32_family == "efr32mg24") { - _include_dirs += [ - "${efr32_sdk_root}/hardware/driver/memlcd/inc/memlcd_usart", - "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/inc/sl_mx25_flash_shutdown_usart", - ] - } } if (efr32_family == "efr32mg12") { @@ -511,31 +503,17 @@ template("efr32_sdk") { if ((defined(invoker.chip_enable_pw_rpc) && invoker.chip_enable_pw_rpc) || chip_build_libshell || enable_openthread_cli || (defined(invoker.show_qr_code) && invoker.show_qr_code) || - (defined(invoker.disable_lcd) && !invoker.disable_lcd)) { + (defined(invoker.disable_lcd) && !invoker.disable_lcd) || + (defined(invoker.use_external_flash) && use_external_flash)) { sources += [ + "${efr32_sdk_root}/hardware/driver/memlcd/src/memlcd_usart/sl_memlcd_spi.c", + "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/src/sl_mx25_flash_shutdown_usart/sl_mx25_flash_shutdown.c", "${efr32_sdk_root}/platform/emdrv/uartdrv/src/uartdrv.c", "${efr32_sdk_root}/platform/emlib/src/em_eusart.c", "${efr32_sdk_root}/platform/emlib/src/em_leuart.c", "${efr32_sdk_root}/platform/emlib/src/em_usart.c", "${sdk_support_root}/matter/efr32/${efr32_family}/${efr32_board}/autogen/sl_uartdrv_init.c", ] - - if (efr32_family == "efr32mg12") { - sources += [ - "${efr32_sdk_root}/hardware/driver/memlcd/src/memlcd_usart/sl_memlcd_spi.c", - "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/src/sl_mx25_flash_shutdown_usart/sl_mx25_flash_shutdown.c", - ] - } else if (efr32_family == "efr32mg21") { - sources += [ - "${efr32_sdk_root}/hardware/driver/memlcd/src/memlcd_usart/sl_memlcd_spi.c", - "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/src/sl_mx25_flash_shutdown_usart/sl_mx25_flash_shutdown.c", - ] - } else if (efr32_family == "efr32mg24") { - sources += [ - "${efr32_sdk_root}/hardware/driver/memlcd/src/memlcd_usart/sl_memlcd_spi.c", - "${efr32_sdk_root}/hardware/driver/mx25_flash_shutdown/src/sl_mx25_flash_shutdown_usart/sl_mx25_flash_shutdown.c", - ] - } } if ((defined(invoker.show_qr_code) && invoker.show_qr_code) || @@ -557,6 +535,7 @@ template("efr32_sdk") { "${efr32_sdk_root}/platform/middleware/glib/glib/glib_string.c", ] } + if (use_wf200) { sources += [ "${efr32_sdk_root}/platform/radio/wifi/wfx_fmac_driver/bus/sl_wfx_bus.c", diff --git a/third_party/silabs/matter_support b/third_party/silabs/matter_support index accc18a5a8812b..30833b582a73f7 160000 --- a/third_party/silabs/matter_support +++ b/third_party/silabs/matter_support @@ -1 +1 @@ -Subproject commit accc18a5a8812b6c67a1e9e77760cb3f2de18739 +Subproject commit 30833b582a73f73737cbf3df2556184c3728555e From bd5746ae22906900dd8b395f2b11b934bc95259a Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Wed, 6 Jul 2022 16:24:05 -0400 Subject: [PATCH 04/15] Add a way to disable openthread in build_examples.py (#20377) This enables a build that has no runtime dependencies other than libc: 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] This makes it easy to deploy on embedded Linux without installing other libraries. Tested via ./scripts/build/build_examples.py --target linux-arm64-chip-tool-ipv6only-no-ble-no-wifi-no-thread-asan-clang build ./scripts/build/build_examples.py --target linux-arm64-all-clusters-ipv6only-no-ble-no-wifi-no-thread-asan-clang build --- examples/all-clusters-app/linux/main-common.cpp | 1 + scripts/build/build/targets.py | 5 +++++ scripts/build/builders/host.py | 11 ++++++++--- scripts/build/testdata/build_linux_on_x64.txt | 12 ++++++++++++ 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/examples/all-clusters-app/linux/main-common.cpp b/examples/all-clusters-app/linux/main-common.cpp index aa22bb0a3148d1..ea2b7e5094c95e 100644 --- a/examples/all-clusters-app/linux/main-common.cpp +++ b/examples/all-clusters-app/linux/main-common.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 3c588beab98ed8..46a44715d35b92 100644 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -270,6 +270,7 @@ def HostTargets(): builder.AppendVariant(name="ipv6only", enable_ipv4=False), builder.AppendVariant(name="no-ble", enable_ble=False), builder.AppendVariant(name="no-wifi", enable_wifi=False), + builder.AppendVariant(name="no-thread", enable_thread=False), builder.AppendVariant(name="tsan", conflicts=['asan'], use_tsan=True), builder.AppendVariant(name="asan", conflicts=['tsan'], use_asan=True), builder.AppendVariant(name="libfuzzer", requires=[ @@ -305,6 +306,10 @@ def HostTargets(): yield target_native.Extend('address-resolve-tool-platform-mdns-ipv6only', app=HostApp.ADDRESS_RESOLVE, use_platform_mdns=True, enable_ipv4=False).GlobBlacklist("Reduce default build variants") + nodeps_args = dict(enable_ipv4=False, enable_ble=False, enable_wifi=False, enable_thread=False) + yield target_native.Extend('chip-tool-nodeps', app=HostApp.CHIP_TOOL, **nodeps_args) + yield target_native.Extend('all-clusters-app-nodeps', app=HostApp.ALL_CLUSTERS, **nodeps_args) + test_target = Target(HostBoard.NATIVE.PlatformName(), HostBuilder) yield test_target.Extend(HostBoard.NATIVE.BoardName() + '-tests', board=HostBoard.NATIVE, app=HostApp.TESTS) yield test_target.Extend(HostBoard.NATIVE.BoardName() + '-tests-clang', board=HostBoard.NATIVE, app=HostApp.TESTS, use_clang=True) diff --git a/scripts/build/builders/host.py b/scripts/build/builders/host.py index 5e6a22aadf3379..1f487259ca2972 100644 --- a/scripts/build/builders/host.py +++ b/scripts/build/builders/host.py @@ -192,9 +192,11 @@ def PlatformName(self): class HostBuilder(GnBuilder): - def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, enable_ipv4=True, - enable_ble=True, enable_wifi=True, use_tsan=False, use_asan=False, separate_event_loop=True, - use_libfuzzer=False, use_clang=False, interactive_mode=True, extra_tests=False, + def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, + enable_ipv4=True, enable_ble=True, enable_wifi=True, + enable_thread=True, use_tsan=False, use_asan=False, + separate_event_loop=True, use_libfuzzer=False, use_clang=False, + interactive_mode=True, extra_tests=False, use_platform_mdns=False, enable_rpcs=False): super(HostBuilder, self).__init__( root=os.path.join(root, 'examples', app.ExamplePath()), @@ -216,6 +218,9 @@ def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, enable_ip if not enable_wifi: self.extra_gn_options.append('chip_enable_wifi=false') + if not enable_thread: + self.extra_gn_options.append('chip_enable_openthread=false') + if use_tsan: self.extra_gn_options.append('is_tsan=true') diff --git a/scripts/build/testdata/build_linux_on_x64.txt b/scripts/build/testdata/build_linux_on_x64.txt index 8639b028349183..a6510e1fa9c76a 100644 --- a/scripts/build/testdata/build_linux_on_x64.txt +++ b/scripts/build/testdata/build_linux_on_x64.txt @@ -150,6 +150,9 @@ gn gen --check --fail-on-unused-args --export-compile-commands --root={root} {ou # Generating linux-x64-all-clusters gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux {out}/linux-x64-all-clusters +# Generating linux-x64-all-clusters-app-nodeps +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false' {out}/linux-x64-all-clusters-app-nodeps + # Generating linux-x64-all-clusters-ipv6only gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-all-clusters-ipv6only @@ -177,6 +180,9 @@ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/exa # Generating linux-x64-chip-tool-no-interactive-ipv6only gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_inet_config_enable_ipv4=false config_use_interactive_mode=false' {out}/linux-x64-chip-tool-no-interactive-ipv6only +# Generating linux-x64-chip-tool-nodeps +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false' {out}/linux-x64-chip-tool-nodeps + # Generating linux-x64-light gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux {out}/linux-x64-light @@ -345,6 +351,9 @@ ninja -C {out}/linux-x64-address-resolve-tool src/lib/address_resolve:address-re # Building linux-x64-all-clusters ninja -C {out}/linux-x64-all-clusters +# Building linux-x64-all-clusters-app-nodeps +ninja -C {out}/linux-x64-all-clusters-app-nodeps + # Building linux-x64-all-clusters-ipv6only ninja -C {out}/linux-x64-all-clusters-ipv6only @@ -372,6 +381,9 @@ ninja -C {out}/linux-x64-chip-tool-ipv6only # Building linux-x64-chip-tool-no-interactive-ipv6only ninja -C {out}/linux-x64-chip-tool-no-interactive-ipv6only +# Building linux-x64-chip-tool-nodeps +ninja -C {out}/linux-x64-chip-tool-nodeps + # Building linux-x64-light ninja -C {out}/linux-x64-light From 5c35d9bd2952e13231262843ffe94e3f21a94771 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Wed, 6 Jul 2022 16:25:08 -0400 Subject: [PATCH 05/15] Allow set up code pairing to continue even if BLE is compiled out (#20325) Currently chip-tool pairing code 9876 'MT:-24J0YXE00KA0648G00' fails immediately if BLE is compiled out, due to returning CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE. Allow the pairer to continue in this case, so that ethernet pairing can be used. --- src/controller/SetUpCodePairer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/SetUpCodePairer.cpp b/src/controller/SetUpCodePairer.cpp index addd337ee4d798..5457687e6bb2b4 100644 --- a/src/controller/SetUpCodePairer.cpp +++ b/src/controller/SetUpCodePairer.cpp @@ -78,7 +78,7 @@ CHIP_ERROR SetUpCodePairer::Connect(SetupPayload & payload) { isRunning = true; } - VerifyOrReturnError(searchOverAll || CHIP_NO_ERROR == err, err); + VerifyOrReturnError(searchOverAll || CHIP_NO_ERROR == err || CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE == err, err); } if (searchOverAll || payload.rendezvousInformation == RendezvousInformationFlag::kSoftAP) @@ -87,7 +87,7 @@ CHIP_ERROR SetUpCodePairer::Connect(SetupPayload & payload) { isRunning = true; } - VerifyOrReturnError(searchOverAll || CHIP_NO_ERROR == err, err); + VerifyOrReturnError(searchOverAll || CHIP_NO_ERROR == err || CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE == err, err); } // We always want to search on network because any node that has already been commissioned will use on-network regardless of the From 240fd46f95c9d732c30331c380509395f963a9ae Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 6 Jul 2022 13:29:54 -0700 Subject: [PATCH 06/15] Updating SVE cherry-pick rules (#20387) * Updating SVE rules * Fixing paths --- .github/labeler.yml | 5 +++ .github/workflows/cherry-picks.yaml | 68 +++++++++++++++-------------- 2 files changed, 41 insertions(+), 32 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index ae076f92e36001..6e52598d8782b7 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -126,6 +126,11 @@ setup payload: ############################################################ platform: - src/platform/* + - config/tizen/chip-gn/platform/* + - examples/platform/* + - scripts/tools/memory/platform/* + - src/include/platform/* + - src/lib/dnssd/platform/* darwin: - src/platform/Darwin/* diff --git a/.github/workflows/cherry-picks.yaml b/.github/workflows/cherry-picks.yaml index 9b24d369bb2019..ac113172aa4748 100644 --- a/.github/workflows/cherry-picks.yaml +++ b/.github/workflows/cherry-picks.yaml @@ -1,38 +1,42 @@ name: Cherry-Pick Merges on: - pull_request_target: - branches: - - master - types: ["closed"] + pull_request_target: + branches: + - master + types: ["closed"] jobs: - cherry_pick_release_v1_0: - runs-on: ubuntu-latest - name: Cherry-Pick into SVE - if: | - (github.event.pull_request.merged == true) - && ( - (contains(github.event.pull_request.labels.*.name, 'sve')) - || (contains(github.event.pull_request.labels.*.name, 'cert blocker')) - || (contains(github.event.pull_request.labels.*.name, 'spec')) - || (contains(github.event.pull_request.labels.*.name, 'platform')) - || (contains(github.event.pull_request.labels.*.name, 'darwin')) - || (contains(github.event.pull_request.labels.*.name, 'android')) - || (contains(github.event.pull_request.labels.*.name, 'sve cherry-pick')) - ) - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Cherry-Pick into sve branch - uses: carloscastrojumo/github-cherry-pick-action@v1.0.1 - with: - token: ${{ secrets.MATTER_PAT }} - branch: sve - reviewers: | - woody-apple - andy31415 + cherry_pick_release_v1_0: + runs-on: ubuntu-latest + name: Cherry-Pick into SVE + if: | + (github.event.pull_request.merged == true) + && ( + (contains(github.event.pull_request.labels.*.name, 'sve')) + || (contains(github.event.pull_request.labels.*.name, 'cert blocker')) + || (contains(github.event.pull_request.labels.*.name, 'spec')) + || (contains(github.event.pull_request.labels.*.name, 'platform')) + || (contains(github.event.pull_request.labels.*.name, 'darwin')) + || (contains(github.event.pull_request.labels.*.name, 'android')) + || (contains(github.event.pull_request.labels.*.name, 'examples')) + || (contains(github.event.pull_request.labels.*.name, 'scripts')) + || (contains(github.event.pull_request.labels.*.name, 'workflows')) + || (contains(github.event.pull_request.labels.*.name, 'github')) + || (contains(github.event.pull_request.labels.*.name, 'sve cherry-pick')) + ) + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Cherry-Pick into sve branch + uses: carloscastrojumo/github-cherry-pick-action@v1.0.1 + with: + token: ${{ secrets.MATTER_PAT }} + branch: sve + reviewers: | + woody-apple + andy31415 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 9e982ceb5b96cc0dd6957dbffb12659e84117254 Mon Sep 17 00:00:00 2001 From: manjunath-grl <102359958+manjunath-grl@users.noreply.github.com> Date: Thu, 7 Jul 2022 02:10:27 +0530 Subject: [PATCH 07/15] Modified test july 6 (#20381) * Modified tests TC-BOOL-1.1 TC-CC-1.1 TC-DESC-1.1 TC-I-1.1 TC-ILL-2.1 TC-MC-1.2 TC-MC-1.6 TC-MC-1.7 TC-MC-1.8 TC-MC-1.11 TC-MC-5.3 TC-MF-1.27 TC-MF-1.28 TC-OO-1.1 TC-TSTAT-1.1 TC-ULABEL-1.1 Removed test TC-OCC-2.2 * Auto generated files * Restyled by astyle * Restyled by clang-format * Restyled by prettier * Restyled by whitespace * Restyled by clang-format Co-authored-by: Restyled.io --- .../certification/Test_TC_BOOL_1_1.yaml | 2 +- .../suites/certification/Test_TC_CC_1_1.yaml | 6 +- .../certification/Test_TC_DESC_1_1.yaml | 2 +- .../suites/certification/Test_TC_ILL_2_1.yaml | 3 +- .../suites/certification/Test_TC_I_1_1.yaml | 2 +- .../suites/certification/Test_TC_MC_1_11.yaml | 3 +- .../suites/certification/Test_TC_MC_1_2.yaml | 3 +- .../suites/certification/Test_TC_MC_1_6.yaml | 3 +- .../suites/certification/Test_TC_MC_1_7.yaml | 3 +- .../suites/certification/Test_TC_MC_1_8.yaml | 2 +- .../suites/certification/Test_TC_MC_5_3.yaml | 22 + .../suites/certification/Test_TC_MF_1_27.yaml | 16 +- .../suites/certification/Test_TC_MF_1_28.yaml | 17 +- .../suites/certification/Test_TC_OCC_2_2.yaml | 56 - .../suites/certification/Test_TC_OO_1_1.yaml | 15 +- .../certification/Test_TC_TSTAT_1_1.yaml | 7 +- .../certification/Test_TC_ULABEL_1_1.yaml | 2 +- .../tests/suites/certification/ci-pics-values | 18 +- src/app/tests/suites/tests.js | 1600 ++++++++--------- .../chip-tool/zap-generated/test/Commands.h | 435 ++--- .../zap-generated/test/Commands.h | 247 ++- 21 files changed, 1102 insertions(+), 1362 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml index f6629faaaef1f1..9e6685b6732b21 100644 --- a/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml @@ -48,9 +48,9 @@ tests: command: "readAttribute" attribute: "AttributeList" response: - value: [0, 65528, 65529, 65531, 65532, 65533] constraints: type: list + contains: [0, 65528, 65529, 65531, 65532, 65533] - label: "Read the global attribute: AcceptedCommandList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml index 79b5213dd31d1c..e79f7c2a0ef708 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml @@ -37,14 +37,14 @@ tests: type: uint16 - label: "Read the global attribute constraints : FeatureMap" - PICS: - PICS_SKIP_SAMPLE_APP && (CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03) + PICS: (CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03) command: "readAttribute" attribute: "FeatureMap" response: - value: 1 constraints: type: map32 + minValue: 0 + maxValue: 31 - label: "Read the global attribute: AttributeList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_DESC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DESC_1_1.yaml index 686de6f8cd87dc..de618503146889 100644 --- a/src/app/tests/suites/certification/Test_TC_DESC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DESC_1_1.yaml @@ -49,9 +49,9 @@ tests: command: "readAttribute" attribute: "AttributeList" response: - value: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533] constraints: type: list + contains: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533] - label: "Read the global attribute: AcceptedCommandList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_ILL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ILL_2_1.yaml index 437aa2092b8c6e..42f7ec252b227d 100644 --- a/src/app/tests/suites/certification/Test_TC_ILL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ILL_2_1.yaml @@ -29,13 +29,12 @@ tests: value: nodeId - label: "TH reads MeasuredValue attribute from DUT" - PICS: PICS_SKIP_SAMPLE_APP command: "readAttribute" attribute: "MeasuredValue" response: constraints: type: uint16 - minValue: 1 + minValue: 0 maxValue: 65534 - label: "TH reads MinMeasuredValue attribute from DUT" diff --git a/src/app/tests/suites/certification/Test_TC_I_1_1.yaml b/src/app/tests/suites/certification/Test_TC_I_1_1.yaml index 717969e0c0823c..0172010ca6af04 100644 --- a/src/app/tests/suites/certification/Test_TC_I_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_I_1_1.yaml @@ -48,9 +48,9 @@ tests: command: "readAttribute" attribute: "AttributeList" response: - value: [0, 1, 65528, 65529, 65531, 65532, 65533] constraints: type: list + contains: [0, 1, 65528, 65529, 65531, 65532, 65533] - label: "Read the global attribute: AcceptedCommandList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_MC_1_11.yaml b/src/app/tests/suites/certification/Test_TC_MC_1_11.yaml index 136a6c3cdf321c..a91e1a9b5d161f 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_1_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_1_11.yaml @@ -43,9 +43,10 @@ tests: command: "readAttribute" attribute: "FeatureMap" response: - value: 1 constraints: type: map32 + minValue: 0 + maxValue: 3 - label: "Read the global attribute: AttributeList" PICS: MC_CONTENTLAUNCHER.S.A0000 && MC_CONTENTLAUNCHER.S.A0001 diff --git a/src/app/tests/suites/certification/Test_TC_MC_1_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_1_2.yaml index 64a70312eaa054..0dd4c86dd9fa17 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_1_2.yaml @@ -42,9 +42,10 @@ tests: command: "readAttribute" attribute: "FeatureMap" response: - value: 1 constraints: type: map32 + minValue: 0 + maxValue: 7 - label: "Read the global attribute: AttributeList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_MC_1_6.yaml b/src/app/tests/suites/certification/Test_TC_MC_1_6.yaml index 88c7edaa0bb2e4..1e84b7774c842e 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_1_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_1_6.yaml @@ -41,9 +41,10 @@ tests: command: "readAttribute" attribute: "FeatureMap" response: - value: 1 constraints: type: map32 + minValue: 0 + maxValue: 3 - label: "Read the global attribute: AttributeList" PICS: MC_CHANNEL.S.A0000 && MC_CHANNEL.S.A0001 && MC_CHANNEL.S.A0002 diff --git a/src/app/tests/suites/certification/Test_TC_MC_1_7.yaml b/src/app/tests/suites/certification/Test_TC_MC_1_7.yaml index f9cac4bc8d2fc3..607f9da4dcb4c1 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_1_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_1_7.yaml @@ -43,9 +43,10 @@ tests: command: "readAttribute" attribute: "FeatureMap" response: - value: 1 constraints: type: map32 + minValue: 0 + maxValue: 3 - label: "Read the global attribute: AttributeList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_MC_1_8.yaml b/src/app/tests/suites/certification/Test_TC_MC_1_8.yaml index 89762206f52889..cad2fb133d9a85 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_1_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_1_8.yaml @@ -49,9 +49,9 @@ tests: command: "readAttribute" attribute: "AttributeList" response: - value: [0, 1, 65528, 65529, 65531, 65532, 65533] constraints: type: list + contains: [0, 1, 65528, 65529, 65531, 65532, 65533] - label: "Read the global attribute: AcceptedCommandList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml b/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml index df2a1c7c039591..f5fb299a5492a7 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_5_3.yaml @@ -34,6 +34,28 @@ tests: - name: "nodeId" value: nodeId + - label: + "Reads the Lineup attribute from the DUT and Verify that the response + contains a lineup info object" + PICS: MC_CHANNEL.S.A0001 && PICS_USER_PROMPT + verification: | + ./chip-tool channel read lineup 1 1 + [1653999659095] [94964:7676726] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0504 Attribute 0x0000_0001 DataVersion: 3623945891 + [1653999659097] [94964:7676726] CHIP: [TOO] Lineup: { + [1653999659097] [94964:7676726] CHIP: [TOO] OperatorName: Comcast + [1653999659097] [94964:7676726] CHIP: [TOO] LineupName: Comcast King County + [1653999659097] [94964:7676726] CHIP: [TOO] PostalCode: 98052 + [1653999659097] [94964:7676726] CHIP: [TOO] LineupInfoType: 0 + [1653999659097] [94964:7676726] CHIP: [TOO] } + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" + - label: "Reads the ChannelList attribute from the DUT" PICS: MC_CHANNEL.S.A0000 command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_27.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_27.yaml index 035986c5b445cb..9ce258fb7e6c7a 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_27.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_27.yaml @@ -13,7 +13,7 @@ # limitations under the License. name: - 22.1.27. [TC-MF-1.27] Open commissioning window - durations min and min-1 + 24.1.27. [TC-MF-1.27] Open commissioning window - durations min and min-1 [BCM] [DUT - Commissionee] config: @@ -23,9 +23,23 @@ config: tests: - label: "Factory Reset the DUT_CE" + PICS: PICS_SDK_CI_ONLY cluster: "SystemCommands" command: "FactoryReset" + - label: "Factory Reset the DUT_CE" + verification: | + Not implemented in YAML + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_SKIP_SAMPLE_APP + arguments: + values: + - name: "message" + value: "Please reboot the DUT and enter 'y' after DUT starts" + - name: "expectedValue" + value: "y" + - label: "TH_CR1 starts a commissioning process with DUT_CE" cluster: "DelayCommands" command: "WaitForCommissionee" diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_28.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_28.yaml index 15e8f2869a9b9d..03c88bc5cc933e 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_28.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_28.yaml @@ -13,8 +13,8 @@ # limitations under the License. name: - 22.1.30. [TC-MF-1.30] Open commissioning window - normal operation and - closing [ECM] [DUT - Commissionee] + 24.1.28. [TC-MF-1.28] Open commissioning window - durations min and min-1 + [ECM] [DUT - Commissionee] config: nodeId: 0x12344321 @@ -26,6 +26,19 @@ tests: cluster: "SystemCommands" command: "FactoryReset" + - label: "Factory Reset the DUT_CE" + verification: | + Not implemented in YAML + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_SKIP_SAMPLE_APP + arguments: + values: + - name: "message" + value: "Please reboot the DUT and enter 'y' after DUT starts" + - name: "expectedValue" + value: "y" + - label: "TH_CR1 starts a commissioning process with DUT_CE" cluster: "DelayCommands" command: "WaitForCommissionee" diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml deleted file mode 100644 index 4a5027eac92fb9..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml +++ /dev/null @@ -1,56 +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. - -name: 30.2.2. [TC-OCC-2.2] Primary functionality with server as DUT - -config: - nodeId: 0x12344321 - cluster: "Occupancy Sensing" - endpoint: 1 - -tests: - - label: "Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Reads Occupancy attribute from DUT" - command: "readAttribute" - attribute: "occupancy" - PICS: A_OCCUPANCY - response: - value: 0 - saveAs: OccupancyValue - - - label: "Operate on DUT to change the occupancy status" - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" - - - label: "Reads back Occupancy attribute from DUT after few seconds" - command: "readAttribute" - attribute: "occupancy" - PICS: A_OCCUPANCY - response: - constraints: - notvalue: OccupancyValue diff --git a/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml b/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml index 0536bbe5365a3a..baa28ef6b658cf 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml @@ -49,10 +49,21 @@ tests: command: "readAttribute" attribute: "AttributeList" response: - value: - [0, 16384, 16385, 16386, 16387, 65528, 65529, 65531, 65532, 65533] constraints: type: list + contains: + [ + 0, + 16384, + 16385, + 16386, + 16387, + 65528, + 65529, + 65531, + 65532, + 65533, + ] - label: "Read the global attribute: AcceptedCommandList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml index 2b77c8cb46b7d4..8fbcb156eb24d1 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml @@ -38,14 +38,15 @@ tests: - label: "Read the optional global attribute constraints: FeatureMap" PICS: - PICS_SKIP_SAMPLE_APP && ( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC || - TSTAT_SCH || TSTAT_SB || TSTAT_AUTO ) + ( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC || TSTAT_SCH || TSTAT_SB || + TSTAT_AUTO ) command: "readAttribute" attribute: "FeatureMap" response: - value: 1 constraints: type: map32 + minValue: 0 + maxValue: 63 - label: "Read the global attribute: AttributeList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_ULABEL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_ULABEL_1_1.yaml index 5eb44862aa81c4..e78deaba7ee13e 100644 --- a/src/app/tests/suites/certification/Test_TC_ULABEL_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ULABEL_1_1.yaml @@ -48,9 +48,9 @@ tests: command: "readAttribute" attribute: "AttributeList" response: - value: [0, 65528, 65529, 65531, 65532, 65533] constraints: type: list + contains: [0, 65528, 65529, 65531, 65532, 65533] - label: "Read the global attribute: AcceptedCommandList" command: "readAttribute" diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values index 62fbb5b98be9ec..789ab35bfb40b7 100644 --- a/src/app/tests/suites/certification/ci-pics-values +++ b/src/app/tests/suites/certification/ci-pics-values @@ -277,25 +277,25 @@ MC_APPLAUNCHER.S.A0000=1 MC_APPLAUNCHER.S.A0001=1 MC_MEDIAINPUT.S.A0000=1 MC_MEDIAINPUT.S.A0001=1 -MC_CHANNEL.S.CL=0 +MC_CHANNEL.S.CL=1 MC_CHANNEL.C.C0000=1 MC_CHANNEL.C.C0002=1 MC_CHANNEL.C.C0003=1 -MC_MEDIAPLAYBACK.S.AS=0 -MC_MEDIAPLAYBACK.S.VS=0 +MC_MEDIAPLAYBACK.S.AS=1 +MC_MEDIAPLAYBACK.S.VS=1 NAMEUPDATES=0 MC_TGTNAV.S.A0001=1 MC_APBSC.S.A0000=1 MC_APBSC.S.A0001=1 MC_APBSC.S.A0003=1 -MC_CONTENTLAUNCHER.S.CS=0 -MC_CONTENTLAUNCHER.S.UP=0 +MC_CONTENTLAUNCHER.S.CS=1 +MC_CONTENTLAUNCHER.S.UP=1 MC_CONTENTLAUNCHER.S.A0000=1 MC_CONTENTLAUNCHER.S.A0001=1 MC_APPLAUNCHER.S.AP=0 -MC_KEYPADINPUT.S.LK=0 -MC_KEYPADINPUT.S.NK=0 -MC_KEYPADINPUT.S.NV=0 +MC_KEYPADINPUT.S.LK=1 +MC_KEYPADINPUT.S.NK=1 +MC_KEYPADINPUT.S.NV=1 MC_MEDIAINPUT.S.NU=0 MC_LOWPOWER.S=1 @@ -320,7 +320,7 @@ MC_APPLAUNCHER.S.C0002=1 MC_APPLAUNCHER.C.C0001=1 MC_WAKEONLAN.S.A0000=1 -MC_CHANNEL.S.LI=0 +MC_CHANNEL.S.LI=1 MC_CHANNEL.S.A0000=1 MC_CHANNEL.S.A0001=1 MC_CHANNEL.S.A0002=1 diff --git a/src/app/tests/suites/tests.js b/src/app/tests/suites/tests.js index 1445964cde50a4..e8a0efade92b56 100644 --- a/src/app/tests/suites/tests.js +++ b/src/app/tests/suites/tests.js @@ -29,866 +29,752 @@ function disable(testName) // clang-format off function getManualTests() { - const DeviceDiscovery = [ - 'Test_TC_DD_1_5', - 'Test_TC_DD_1_6', - 'Test_TC_DD_1_7', - 'Test_TC_DD_1_8', - 'Test_TC_DD_1_9', - 'Test_TC_DD_1_10', - 'Test_TC_DD_1_11', - 'Test_TC_DD_1_12', - 'Test_TC_DD_1_13', - 'Test_TC_DD_1_14', - 'Test_TC_DD_1_15', - 'Test_TC_DD_2_1', - 'Test_TC_DD_2_2', - 'Test_TC_DD_3_1', - 'Test_TC_DD_3_2', - 'Test_TC_DD_3_3', - 'Test_TC_DD_3_4', - 'Test_TC_DD_3_5', - 'Test_TC_DD_3_6', - 'Test_TC_DD_3_7', - 'Test_TC_DD_3_8', - 'Test_TC_DD_3_9', - 'Test_TC_DD_3_10', - 'Test_TC_DD_3_11', - 'Test_TC_DD_3_12', - 'Test_TC_DD_3_13', - 'Test_TC_DD_3_14', - 'Test_TC_DD_3_15', - 'Test_TC_DD_3_16', - 'Test_TC_DD_3_17', - 'Test_TC_DD_3_18', - 'Test_TC_DD_3_19', - 'Test_TC_DD_3_20', - ]; - - const Groups = [ - 'TestGroupDemoCommand', - 'TestGroupDemoConfig', - 'Test_TC_G_1_1', - 'Test_TC_G_2_1', - 'Test_TC_G_2_2', - 'Test_TC_G_2_3', - 'Test_TC_G_3_1', - 'Test_TC_G_3_2', - ]; - - 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 = [ - 'Test_TC_BR_1', - 'Test_TC_BR_2', - 'Test_TC_BR_3', - ]; - - const DeviceAttestation = [ - 'Test_TC_DA_1_1', - 'Test_TC_DA_1_2', - 'Test_TC_DA_1_3', - 'Test_TC_DA_1_4', - 'Test_TC_DA_1_5', - 'Test_TC_DA_1_6', - ]; - - const DeviceManagement = [ - 'Test_TC_BINFO_1_1', - 'Test_TC_OPCREDS_1_2', - 'Test_TC_CNET_1_3', - 'Test_TC_BINFO_2_2', - 'Test_TC_BINFO_2_4', - 'Test_TC_OPCREDS_3_1', - 'Test_TC_OPCREDS_3_2', - 'Test_TC_OPCREDS_3_3', - 'Test_TC_OPCREDS_3_4', - 'Test_TC_CNET_4_1', - 'Test_TC_CNET_4_2', - 'Test_TC_CNET_4_3', - 'Test_TC_CNET_4_4', - 'Test_TC_CNET_4_5', - 'Test_TC_CNET_4_6', - 'Test_TC_CNET_4_7', - 'Test_TC_CNET_4_8', - 'Test_TC_CNET_4_9', - 'Test_TC_CNET_4_10', - 'Test_TC_CNET_4_11', - 'Test_TC_CNET_4_12', - 'Test_TC_CNET_4_13', - 'Test_TC_CNET_4_14', - 'Test_TC_CNET_4_15', - 'Test_TC_CNET_4_16', - 'Test_TC_CNET_4_17', - 'Test_TC_CNET_4_18', - 'Test_TC_CNET_4_19', - 'Test_TC_CNET_4_20', - 'Test_TC_CNET_4_21', - ]; - - const DiagnosticsLogs = [ - 'Test_TC_DLOG_1_1', - 'Test_TC_DLOG_2_1', - 'Test_TC_DLOG_2_2', - 'Test_TC_DLOG_3_1', - ]; - - const Descriptor = [ - 'Test_TC_DESC_2_1', - 'Test_TC_DESC_2_2', - ]; - - const EthernetNetworkDiagnostics = [ - 'Test_TC_DGETH_1_1', - 'Test_TC_DGETH_3_1', - 'Test_TC_DGETH_3_2', - ]; - - const GeneralCommissioning = [ - 'Test_TC_CGEN_2_2', - 'Test_TC_CGEN_2_3', - 'Test_TC_CGEN_2_4', - ]; - - const GeneralDiagnostics = [ - 'Test_TC_DGGEN_2_2', - 'Test_TC_DGGEN_2_3', - 'Test_TC_DGGEN_3_1', - 'Test_TC_DGGEN_3_2', - ]; - - const Identify = [ - 'Test_TC_I_3_1', - 'Test_TC_I_3_2', - ]; - - const IlluminanceMeasurement = [ - 'Test_TC_ILL_2_2', - 'Test_TC_ILL_3_1', - ]; - - const InteractionDataModel = [ - 'Test_TC_IDM_1_1', - 'Test_TC_IDM_1_2', - 'Test_TC_IDM_2_1', - 'Test_TC_IDM_2_2', - 'Test_TC_IDM_3_1', - 'Test_TC_IDM_3_2', - 'Test_TC_IDM_4_1', - 'Test_TC_IDM_4_2', - 'Test_TC_IDM_4_3', - 'Test_TC_IDM_5_1', - 'Test_TC_IDM_5_2', - 'Test_TC_IDM_6_1', - 'Test_TC_IDM_6_2', - 'Test_TC_IDM_6_3', - 'Test_TC_IDM_6_4', - 'Test_TC_IDM_7_1', - 'Test_TC_IDM_8_1', - ]; - - const MediaControl = [ - 'Test_TC_MC_2_2', - 'Test_TC_MC_3_7_1', - 'Test_TC_MC_3_8_1', - 'Test_TC_MC_3_9_1', - 'Test_TC_MC_3_14', - 'Test_TC_MC_3_15', - 'Test_TC_MC_3_16', - 'Test_TC_MC_3_17', - 'Test_TC_MC_4_1', - 'Test_TC_MC_5_4', - 'Test_TC_MC_5_5', - 'Test_TC_MC_5_6', - 'Test_TC_MC_6_5', - 'Test_TC_MC_6_7', - 'Test_TC_MC_7_3', - 'Test_TC_MC_7_4', - 'Test_TC_MC_10_3', - 'Test_TC_MC_10_5', - 'Test_TC_MC_10_7', - 'Test_TC_MC_11_1', - 'Test_TC_MC_11_2', - 'Test_TC_MC_12_1', - 'Test_TC_MC_12_2', - ]; - - const MultipleFabrics = [ - 'Test_TC_MF_1_1', - 'Test_TC_MF_1_2', - 'Test_TC_MF_1_7', - 'Test_TC_MF_1_8', - 'Test_TC_MF_1_11', - 'Test_TC_MF_1_12', - 'Test_TC_MF_1_13', - 'Test_TC_MF_1_14', - 'Test_TC_MF_1_16', - 'Test_TC_MF_1_17', - 'Test_TC_MF_1_18', - 'Test_TC_MF_1_19', - 'Test_TC_MF_1_20', - 'Test_TC_MF_1_21', - 'Test_TC_MF_1_22', - 'Test_TC_MF_1_23', - 'Test_TC_MF_1_24', - 'Test_TC_MF_1_25', - 'Test_TC_MF_1_26', - 'Test_TC_MF_1_27', - 'Test_TC_MF_1_28', - // Slow tests that should not run in CI because they take many minutes each - 'Test_TC_MF_1_5', - 'Test_TC_MF_1_6', - 'Test_TC_MF_1_9', - 'Test_TC_MF_1_10', - 'Test_TC_MF_1_15', - ]; - - const ModeSelect = [ - 'Test_TC_MOD_1_2', - 'Test_TC_MOD_1_3', - 'Test_TC_MOD_2_1', - 'Test_TC_MOD_2_2', - 'Test_TC_MOD_3_1', - 'Test_TC_MOD_3_2', - 'Test_TC_MOD_3_3', - 'Test_TC_MOD_3_4', - ]; - - const OTASoftwareUpdate = [ - 'Test_TC_SU_1_1', - 'Test_TC_SU_2_1', - 'Test_TC_SU_2_2', - 'Test_TC_SU_2_3', - 'Test_TC_SU_2_4', - 'Test_TC_SU_2_5', - 'Test_TC_SU_2_6', - 'Test_TC_SU_2_7', - 'Test_TC_SU_2_8', - 'Test_TC_SU_3_1', - 'Test_TC_SU_3_2', - 'Test_TC_SU_3_3', - 'Test_TC_SU_3_4', - 'Test_TC_SU_4_1', - 'Test_TC_SU_4_2', - ]; - - const PowerSourceConfiguration = [ - 'Test_TC_PSCFG_2_1', - 'Test_TC_PSCFG_2_2', - 'Test_TC_PSCFG_3_1', - ]; - - const SecureChannel = [ - 'Test_TC_SC_1_1', - 'Test_TC_SC_1_2', - 'Test_TC_SC_1_3', - 'Test_TC_SC_1_4', - 'Test_TC_SC_2_1', - 'Test_TC_SC_2_2', - 'Test_TC_SC_2_3', - 'Test_TC_SC_2_4', - 'Test_TC_SC_3_1', - 'Test_TC_SC_3_2', - 'Test_TC_SC_3_3', - 'Test_TC_SC_3_4', - 'Test_TC_SC_4_1', - 'Test_TC_SC_4_3', - 'Test_TC_SC_4_4', - 'Test_TC_SC_4_5', - 'Test_TC_SC_4_6', - 'Test_TC_SC_4_7', - 'Test_TC_SC_4_8', - 'Test_TC_SC_4_9', - 'Test_TC_SC_4_10', - ]; - - const SoftwareDiagnostics = [ - 'Test_TC_DGSW_1_1', - 'Test_TC_DGSW_3_1', - 'Test_TC_DGSW_3_2', - ]; - - const WiFiNetworkDiagnostics = [ - 'Test_TC_DGWIFI_1_1', - 'Test_TC_DGWIFI_2_2', - 'Test_TC_DGWIFI_3_1', - 'Test_TC_DGWIFI_3_2', - ]; - - const WindowCovering = [ - 'Test_TC_WNCV_6_1', - 'Test_TC_WNCV_7_1', - ]; - - const FlowMeasurement = [ - 'Test_TC_FLW_2_2', - 'Test_TC_FLW_3_1', - ]; - - const OccupancySensing = [ - 'Test_TC_OCC_2_2', - 'Test_TC_OCC_2_3', - 'Test_TC_OCC_2_4', - 'Test_TC_OCC_3_1', - 'Test_TC_OCC_3_2', - ]; - - const PressureMeasurement = [ - 'Test_TC_PRS_2_2', - 'Test_TC_PRS_3_1', - ]; - - const PowerSource = [ - 'Test_TC_PS_2_2', - 'Test_TC_PS_3_1', - ]; - - const BooleanState = [ - 'Test_TC_BOOL_2_2', - 'Test_TC_BOOL_3_1', - ]; - - const ColorControl = [ - 'Test_TC_CC_2_2', - 'Test_TC_CC_3_4', - 'Test_TC_CC_4_5', - 'Test_TC_CC_5_4', - 'Test_TC_CC_6_4', - 'Test_TC_CC_7_5', - 'Test_TC_CC_9_4', - // Slow tests that should not run in CI because they take many minutes each - 'Test_TC_CC_9_1', - 'Test_TC_CC_9_2', - 'Test_TC_CC_9_3', - ]; - - const DoorLock = [ - 'Test_TC_DLRK_1_1', - 'Test_TC_DLRK_2_1', - 'Test_TC_DLRK_2_6', - 'Test_TC_DLRK_2_8', - 'Test_TC_DLRK_2_10', - ]; - - const LocalizationConfiguration = [ - 'Test_TC_LCFG_1_1', - 'Test_TC_LCFG_2_1', - 'Test_TC_LCFG_3_1', - ]; - - const LevelControl = [ - 'Test_TC_LVL_2_3', - 'Test_TC_LVL_8_1', - ]; - - const OnOff = [ - 'Test_TC_OO_2_3', - 'Test_TC_OO_3_1', - 'Test_TC_OO_3_2', - ]; - - const RelativeHumidityMeasurement = [ - 'Test_TC_RH_2_2', - 'Test_TC_RH_3_1', - ]; - - const Switch = [ - 'Test_TC_SWTCH_1_1', - 'Test_TC_SWTCH_2_2', - 'Test_TC_SWTCH_3_1', - 'Test_TC_SWTCH_3_2', - ]; - - const TemperatureMeasurement = [ - 'Test_TC_TM_2_2', - 'Test_TC_TM_3_1', - ]; - - const Thermostat = [ - 'Test_TC_TSTAT_3_1', - 'Test_TC_TSTAT_3_2', - ]; - - const ThermostatUserConfiguration = [ - 'Test_TC_TSUIC_3_1', - ]; - - const ThreadNetworkDiagnostics = [ - 'Test_TC_DIAG_TH_NW_1_1', - 'Test_TC_DIAG_TH_NW_2_5', - 'Test_TC_DIAG_TH_NW_3_1', - 'Test_TC_DIAG_TH_NW_3_2', - 'Test_TC_DIAG_TH_NW_3_3', - 'Test_TC_DIAG_TH_NW_3_4', - 'Test_TC_DIAG_TH_NW_3_5', - ]; - - const Actions = [ - 'Test_TC_ACT_2_1', - 'Test_TC_ACT_2_2', - 'Test_TC_ACT_3_1', - ]; - - const TimeFormatLocalization = [ - 'Test_TC_TFL_1_1', - 'Test_TC_TFL_1_2', - 'Test_TC_TFL_2_1', - 'Test_TC_TFL_3_1', - ]; - - const UnitLocalization = [ - 'Test_TC_UL_1_1', - 'Test_TC_UL_1_2', - 'Test_TC_UL_2_1', - 'Test_TC_UL_3_1', - ]; - - const FixedLabel = [ - 'Test_TC_FLABEL_1_1', - 'Test_TC_FLABEL_2_1', - 'Test_TC_FLABEL_2_2', - ]; - - const Binding = [ - 'Test_TC_BIND_1_1', - 'Test_TC_BIND_2_1', - ]; - - const Scenes = [ - 'Test_TC_S_1_1', - 'Test_TC_S_2_1', - 'Test_TC_S_2_2', - 'Test_TC_S_2_3', - 'Test_TC_S_3_1', - ]; - - const PumpConfigurationControl = [ - 'Test_TC_PCC_3_1', - ]; - - const tests = [ - DeviceDiscovery, - Groups, - BulkDataExchangeProtocol, - bridge, - DeviceAttestation, - DeviceManagement, - DiagnosticsLogs, - Descriptor, - EthernetNetworkDiagnostics, - GeneralCommissioning, - GeneralDiagnostics, - Identify, - IlluminanceMeasurement, - InteractionDataModel, - MediaControl, - MultipleFabrics, - ModeSelect, - OTASoftwareUpdate, - PowerSourceConfiguration, - SecureChannel, - SoftwareDiagnostics, - WiFiNetworkDiagnostics, - WindowCovering, - FlowMeasurement, - OccupancySensing, - PressureMeasurement, - PowerSource, - BooleanState, - ColorControl, - DoorLock, - LocalizationConfiguration, - LevelControl, - OnOff, - RelativeHumidityMeasurement, - Switch, - TemperatureMeasurement, - Thermostat, - ThermostatUserConfiguration, - ThreadNetworkDiagnostics, - Actions, - TimeFormatLocalization, - UnitLocalization, - FixedLabel, - Binding, - Scenes, - PumpConfigurationControl, - ].flat(1); - - tests.disable = disable.bind(tests); - return tests; + const DeviceDiscovery = [ + "Test_TC_DD_1_5", + "Test_TC_DD_1_6", + "Test_TC_DD_1_7", + "Test_TC_DD_1_8", + "Test_TC_DD_1_9", + "Test_TC_DD_1_10", + "Test_TC_DD_1_11", + "Test_TC_DD_1_12", + "Test_TC_DD_1_13", + "Test_TC_DD_1_14", + "Test_TC_DD_1_15", + "Test_TC_DD_2_1", + "Test_TC_DD_2_2", + "Test_TC_DD_3_1", + "Test_TC_DD_3_2", + "Test_TC_DD_3_3", + "Test_TC_DD_3_4", + "Test_TC_DD_3_5", + "Test_TC_DD_3_6", + "Test_TC_DD_3_7", + "Test_TC_DD_3_8", + "Test_TC_DD_3_9", + "Test_TC_DD_3_10", + "Test_TC_DD_3_11", + "Test_TC_DD_3_12", + "Test_TC_DD_3_13", + "Test_TC_DD_3_14", + "Test_TC_DD_3_15", + "Test_TC_DD_3_16", + "Test_TC_DD_3_17", + "Test_TC_DD_3_18", + "Test_TC_DD_3_19", + "Test_TC_DD_3_20", + ]; + + const Groups = [ + "TestGroupDemoCommand", + "TestGroupDemoConfig", + "Test_TC_G_1_1", + "Test_TC_G_2_1", + "Test_TC_G_2_2", + "Test_TC_G_2_3", + "Test_TC_G_3_1", + "Test_TC_G_3_2", + ]; + + 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 = ["Test_TC_BR_1", "Test_TC_BR_2", "Test_TC_BR_3"]; + + const DeviceAttestation = [ + "Test_TC_DA_1_1", + "Test_TC_DA_1_2", + "Test_TC_DA_1_3", + "Test_TC_DA_1_4", + "Test_TC_DA_1_5", + "Test_TC_DA_1_6", + ]; + + const DeviceManagement = [ + "Test_TC_BINFO_1_1", + "Test_TC_OPCREDS_1_2", + "Test_TC_CNET_1_3", + "Test_TC_BINFO_2_2", + "Test_TC_BINFO_2_4", + "Test_TC_OPCREDS_3_1", + "Test_TC_OPCREDS_3_2", + "Test_TC_OPCREDS_3_3", + "Test_TC_OPCREDS_3_4", + "Test_TC_CNET_4_1", + "Test_TC_CNET_4_2", + "Test_TC_CNET_4_3", + "Test_TC_CNET_4_4", + "Test_TC_CNET_4_5", + "Test_TC_CNET_4_6", + "Test_TC_CNET_4_7", + "Test_TC_CNET_4_8", + "Test_TC_CNET_4_9", + "Test_TC_CNET_4_10", + "Test_TC_CNET_4_11", + "Test_TC_CNET_4_12", + "Test_TC_CNET_4_13", + "Test_TC_CNET_4_14", + "Test_TC_CNET_4_15", + "Test_TC_CNET_4_16", + "Test_TC_CNET_4_17", + "Test_TC_CNET_4_18", + "Test_TC_CNET_4_19", + "Test_TC_CNET_4_20", + "Test_TC_CNET_4_21", + ]; + + const DiagnosticsLogs = [ + "Test_TC_DLOG_1_1", + "Test_TC_DLOG_2_1", + "Test_TC_DLOG_2_2", + "Test_TC_DLOG_3_1", + ]; + + const Descriptor = ["Test_TC_DESC_2_1", "Test_TC_DESC_2_2"]; + + const EthernetNetworkDiagnostics = [ + "Test_TC_DGETH_1_1", + "Test_TC_DGETH_3_1", + "Test_TC_DGETH_3_2", + ]; + + const GeneralCommissioning = [ + "Test_TC_CGEN_2_2", + "Test_TC_CGEN_2_3", + "Test_TC_CGEN_2_4", + ]; + + const GeneralDiagnostics = [ + "Test_TC_DGGEN_2_2", + "Test_TC_DGGEN_2_3", + "Test_TC_DGGEN_3_1", + "Test_TC_DGGEN_3_2", + ]; + + const Identify = ["Test_TC_I_3_1", "Test_TC_I_3_2"]; + + const IlluminanceMeasurement = ["Test_TC_ILL_2_2", "Test_TC_ILL_3_1"]; + + const InteractionDataModel = [ + "Test_TC_IDM_1_1", + "Test_TC_IDM_1_2", + "Test_TC_IDM_2_1", + "Test_TC_IDM_2_2", + "Test_TC_IDM_3_1", + "Test_TC_IDM_3_2", + "Test_TC_IDM_4_1", + "Test_TC_IDM_4_2", + "Test_TC_IDM_4_3", + "Test_TC_IDM_5_1", + "Test_TC_IDM_5_2", + "Test_TC_IDM_6_1", + "Test_TC_IDM_6_2", + "Test_TC_IDM_6_3", + "Test_TC_IDM_6_4", + "Test_TC_IDM_7_1", + "Test_TC_IDM_8_1", + ]; + + const MediaControl = [ + "Test_TC_MC_2_2", + "Test_TC_MC_3_7_1", + "Test_TC_MC_3_8_1", + "Test_TC_MC_3_9_1", + "Test_TC_MC_3_14", + "Test_TC_MC_3_15", + "Test_TC_MC_3_16", + "Test_TC_MC_3_17", + "Test_TC_MC_4_1", + "Test_TC_MC_5_4", + "Test_TC_MC_5_5", + "Test_TC_MC_5_6", + "Test_TC_MC_6_5", + "Test_TC_MC_6_7", + "Test_TC_MC_7_3", + "Test_TC_MC_7_4", + "Test_TC_MC_10_3", + "Test_TC_MC_10_5", + "Test_TC_MC_10_7", + "Test_TC_MC_11_1", + "Test_TC_MC_11_2", + "Test_TC_MC_12_1", + "Test_TC_MC_12_2", + ]; + + const MultipleFabrics = [ + "Test_TC_MF_1_1", + "Test_TC_MF_1_2", + "Test_TC_MF_1_7", + "Test_TC_MF_1_8", + "Test_TC_MF_1_11", + "Test_TC_MF_1_12", + "Test_TC_MF_1_13", + "Test_TC_MF_1_14", + "Test_TC_MF_1_16", + "Test_TC_MF_1_17", + "Test_TC_MF_1_18", + "Test_TC_MF_1_19", + "Test_TC_MF_1_20", + "Test_TC_MF_1_21", + "Test_TC_MF_1_22", + "Test_TC_MF_1_23", + "Test_TC_MF_1_24", + "Test_TC_MF_1_25", + "Test_TC_MF_1_26", + "Test_TC_MF_1_27", + "Test_TC_MF_1_28", + // Slow tests that should not run in CI because they take many minutes each + "Test_TC_MF_1_5", + "Test_TC_MF_1_6", + "Test_TC_MF_1_9", + "Test_TC_MF_1_10", + "Test_TC_MF_1_15", + ]; + + const ModeSelect = [ + "Test_TC_MOD_1_2", + "Test_TC_MOD_1_3", + "Test_TC_MOD_2_1", + "Test_TC_MOD_2_2", + "Test_TC_MOD_3_1", + "Test_TC_MOD_3_2", + "Test_TC_MOD_3_3", + "Test_TC_MOD_3_4", + ]; + + const OTASoftwareUpdate = [ + "Test_TC_SU_1_1", + "Test_TC_SU_2_1", + "Test_TC_SU_2_2", + "Test_TC_SU_2_3", + "Test_TC_SU_2_4", + "Test_TC_SU_2_5", + "Test_TC_SU_2_6", + "Test_TC_SU_2_7", + "Test_TC_SU_2_8", + "Test_TC_SU_3_1", + "Test_TC_SU_3_2", + "Test_TC_SU_3_3", + "Test_TC_SU_3_4", + "Test_TC_SU_4_1", + "Test_TC_SU_4_2", + ]; + + const PowerSourceConfiguration = [ + "Test_TC_PSCFG_2_1", + "Test_TC_PSCFG_2_2", + "Test_TC_PSCFG_3_1", + ]; + + const SecureChannel = [ + "Test_TC_SC_1_1", + "Test_TC_SC_1_2", + "Test_TC_SC_1_3", + "Test_TC_SC_1_4", + "Test_TC_SC_2_1", + "Test_TC_SC_2_2", + "Test_TC_SC_2_3", + "Test_TC_SC_2_4", + "Test_TC_SC_3_1", + "Test_TC_SC_3_2", + "Test_TC_SC_3_3", + "Test_TC_SC_3_4", + "Test_TC_SC_4_1", + "Test_TC_SC_4_3", + "Test_TC_SC_4_4", + "Test_TC_SC_4_5", + "Test_TC_SC_4_6", + "Test_TC_SC_4_7", + "Test_TC_SC_4_8", + "Test_TC_SC_4_9", + "Test_TC_SC_4_10", + ]; + + const SoftwareDiagnostics = [ + "Test_TC_DGSW_1_1", + "Test_TC_DGSW_3_1", + "Test_TC_DGSW_3_2", + ]; + + const WiFiNetworkDiagnostics = [ + "Test_TC_DGWIFI_1_1", + "Test_TC_DGWIFI_2_2", + "Test_TC_DGWIFI_3_1", + "Test_TC_DGWIFI_3_2", + ]; + + const WindowCovering = ["Test_TC_WNCV_6_1", "Test_TC_WNCV_7_1"]; + + const FlowMeasurement = ["Test_TC_FLW_2_2", "Test_TC_FLW_3_1"]; + + const OccupancySensing = [ + "Test_TC_OCC_2_3", + "Test_TC_OCC_2_4", + "Test_TC_OCC_3_1", + "Test_TC_OCC_3_2", + ]; + + const PressureMeasurement = ["Test_TC_PRS_2_2", "Test_TC_PRS_3_1"]; + + const PowerSource = ["Test_TC_PS_2_2", "Test_TC_PS_3_1"]; + + const BooleanState = ["Test_TC_BOOL_2_2", "Test_TC_BOOL_3_1"]; + + const ColorControl = [ + "Test_TC_CC_2_2", + "Test_TC_CC_3_4", + "Test_TC_CC_4_5", + "Test_TC_CC_5_4", + "Test_TC_CC_6_4", + "Test_TC_CC_7_5", + "Test_TC_CC_9_4", + // Slow tests that should not run in CI because they take many minutes each + "Test_TC_CC_9_1", + "Test_TC_CC_9_2", + "Test_TC_CC_9_3", + ]; + + const DoorLock = [ + "Test_TC_DLRK_1_1", + "Test_TC_DLRK_2_1", + "Test_TC_DLRK_2_6", + "Test_TC_DLRK_2_8", + "Test_TC_DLRK_2_10", + ]; + + const LocalizationConfiguration = [ + "Test_TC_LCFG_1_1", + "Test_TC_LCFG_2_1", + "Test_TC_LCFG_3_1", + ]; + + const LevelControl = ["Test_TC_LVL_2_3", "Test_TC_LVL_8_1"]; + + const OnOff = ["Test_TC_OO_2_3", "Test_TC_OO_3_1", "Test_TC_OO_3_2"]; + + const RelativeHumidityMeasurement = ["Test_TC_RH_2_2", "Test_TC_RH_3_1"]; + + const Switch = [ + "Test_TC_SWTCH_1_1", + "Test_TC_SWTCH_2_2", + "Test_TC_SWTCH_3_1", + "Test_TC_SWTCH_3_2", + ]; + + const TemperatureMeasurement = ["Test_TC_TM_2_2", "Test_TC_TM_3_1"]; + + const Thermostat = ["Test_TC_TSTAT_3_1", "Test_TC_TSTAT_3_2"]; + + const ThermostatUserConfiguration = ["Test_TC_TSUIC_3_1"]; + + const ThreadNetworkDiagnostics = [ + "Test_TC_DIAG_TH_NW_1_1", + "Test_TC_DIAG_TH_NW_2_5", + "Test_TC_DIAG_TH_NW_3_1", + "Test_TC_DIAG_TH_NW_3_2", + "Test_TC_DIAG_TH_NW_3_3", + "Test_TC_DIAG_TH_NW_3_4", + "Test_TC_DIAG_TH_NW_3_5", + ]; + + const Actions = ["Test_TC_ACT_2_1", "Test_TC_ACT_2_2", "Test_TC_ACT_3_1"]; + + const TimeFormatLocalization = [ + "Test_TC_TFL_1_1", + "Test_TC_TFL_1_2", + "Test_TC_TFL_2_1", + "Test_TC_TFL_3_1", + ]; + + const UnitLocalization = [ + "Test_TC_UL_1_1", + "Test_TC_UL_1_2", + "Test_TC_UL_2_1", + "Test_TC_UL_3_1", + ]; + + const FixedLabel = [ + "Test_TC_FLABEL_1_1", + "Test_TC_FLABEL_2_1", + "Test_TC_FLABEL_2_2", + ]; + + const Binding = ["Test_TC_BIND_1_1", "Test_TC_BIND_2_1"]; + + const Scenes = [ + "Test_TC_S_1_1", + "Test_TC_S_2_1", + "Test_TC_S_2_2", + "Test_TC_S_2_3", + "Test_TC_S_3_1", + ]; + + const PumpConfigurationControl = ["Test_TC_PCC_3_1"]; + + const tests = [ + DeviceDiscovery, + Groups, + BulkDataExchangeProtocol, + bridge, + DeviceAttestation, + DeviceManagement, + DiagnosticsLogs, + Descriptor, + EthernetNetworkDiagnostics, + GeneralCommissioning, + GeneralDiagnostics, + Identify, + IlluminanceMeasurement, + InteractionDataModel, + MediaControl, + MultipleFabrics, + ModeSelect, + OTASoftwareUpdate, + PowerSourceConfiguration, + SecureChannel, + SoftwareDiagnostics, + WiFiNetworkDiagnostics, + WindowCovering, + FlowMeasurement, + OccupancySensing, + PressureMeasurement, + PowerSource, + BooleanState, + ColorControl, + DoorLock, + LocalizationConfiguration, + LevelControl, + OnOff, + RelativeHumidityMeasurement, + Switch, + TemperatureMeasurement, + Thermostat, + ThermostatUserConfiguration, + ThreadNetworkDiagnostics, + Actions, + TimeFormatLocalization, + UnitLocalization, + FixedLabel, + Binding, + Scenes, + PumpConfigurationControl, + ].flat(1); + + tests.disable = disable.bind(tests); + return tests; } function getTests() { - const AccessControl = [ - 'TestAccessControlCluster', - ]; - - const BooleanState = [ - 'Test_TC_BOOL_1_1', - 'Test_TC_BOOL_2_1', - ]; - - const Actions = [ - 'Test_TC_ACT_1_1', - ]; - - const ColorControl = [ - 'Test_TC_CC_1_1', - 'Test_TC_CC_2_1', - 'Test_TC_CC_3_1', - 'Test_TC_CC_3_2', - 'Test_TC_CC_3_3', - 'Test_TC_CC_4_1', - 'Test_TC_CC_4_2', - 'Test_TC_CC_4_3', - 'Test_TC_CC_4_4', - 'Test_TC_CC_5_1', - 'Test_TC_CC_5_2', - 'Test_TC_CC_5_3', - 'Test_TC_CC_6_1', - 'Test_TC_CC_6_2', - 'Test_TC_CC_6_3', - 'Test_TC_CC_7_1', - 'Test_TC_CC_7_2', - 'Test_TC_CC_7_3', - 'Test_TC_CC_7_4', - 'Test_TC_CC_8_1', - ]; - - const DeviceManagement = [ - 'Test_TC_BINFO_2_1', - ]; - - const Descriptor = [ - 'Test_TC_DESC_1_1', - ]; - - const EthernetNetworkDiagnostics = [ - 'Test_TC_DGETH_2_1', - 'Test_TC_DGETH_2_2', - ]; - - const FlowMeasurement = [ - 'Test_TC_FLW_1_1', - 'Test_TC_FLW_2_1', - ]; - - const GeneralCommissioning = [ - 'Test_TC_CGEN_1_1', - 'Test_TC_CGEN_2_1', - ]; - - const GeneralDiagnostics = [ - 'Test_TC_DGGEN_1_1', - 'Test_TC_DGGEN_2_1', - ]; - - const Identify = [ - 'Test_TC_I_1_1', - 'Test_TC_I_2_1', - 'Test_TC_I_2_2', - 'Test_TC_I_2_3', - ]; - - const IlluminanceMeasurement = [ - 'Test_TC_ILL_1_1', - 'Test_TC_ILL_2_1', - ]; - - const OccupancySensing = [ - 'Test_TC_OCC_1_1', - 'Test_TC_OCC_2_1', - ]; - - const LevelControl = [ - 'Test_TC_LVL_1_1', - 'Test_TC_LVL_2_1', - 'Test_TC_LVL_2_2', - 'Test_TC_LVL_3_1', - 'Test_TC_LVL_4_1', - 'Test_TC_LVL_5_1', - 'Test_TC_LVL_6_1', - ]; - - const UserLabel = [ - 'Test_TC_ULABEL_1_1', - 'Test_TC_ULABEL_2_2', - 'Test_TC_ULABEL_2_3', - 'Test_TC_ULABEL_2_4', - 'Test_TC_ULABEL_2_5', - ]; - - const MediaControl = [ - 'Test_TC_MC_1_1', - 'Test_TC_MC_1_2', - 'Test_TC_MC_1_3', - 'Test_TC_MC_1_4', - 'Test_TC_MC_1_5', - 'Test_TC_MC_1_6', - 'Test_TC_MC_1_7', - 'Test_TC_MC_1_8', - 'Test_TC_MC_1_9', - 'Test_TC_MC_1_10', - 'Test_TC_MC_1_11', - 'Test_TC_MC_1_12', - 'Test_TC_MC_2_1', - 'Test_TC_MC_3_2', - 'Test_TC_MC_3_3', - 'Test_TC_MC_3_5', - 'Test_TC_MC_3_6', - 'Test_TC_MC_3_7', - 'Test_TC_MC_3_8', - 'Test_TC_MC_3_9', - 'Test_TC_MC_3_10', - 'Test_TC_MC_3_11', - 'Test_TC_MC_3_12', - 'Test_TC_MC_3_13', - 'Test_TC_MC_5_1', - 'Test_TC_MC_5_2', - 'Test_TC_MC_5_3', - 'Test_TC_MC_6_1', - 'Test_TC_MC_6_2', - 'Test_TC_MC_6_3', - 'Test_TC_MC_6_4', - 'Test_TC_MC_7_1', - 'Test_TC_MC_7_2', - 'Test_TC_MC_8_1', - 'Test_TC_MC_9_1', - 'Test_TC_MC_10_1', - ]; - - const ModeSelect = [ - 'Test_TC_MOD_1_1', - ]; - - const MultipleFabrics = [ - 'Test_TC_MF_1_3', - 'Test_TC_MF_1_4', - ]; - - const OTASoftwareUpdate = [ - 'OTA_SuccessfulTransfer', - ]; - - const OnOff = [ - 'Test_TC_OO_1_1', - 'Test_TC_OO_2_1', - 'Test_TC_OO_2_2', - 'Test_TC_OO_2_4', - ]; - - const PowerSource = [ - 'Test_TC_PS_1_1', - 'Test_TC_PS_2_1', - ]; - - const PressureMeasurement = [ - 'Test_TC_PRS_1_1', - 'Test_TC_PRS_2_1', - ]; - - const PumpConfigurationControl = [ - 'Test_TC_PCC_1_1', - 'Test_TC_PCC_2_1', - 'Test_TC_PCC_2_2', - 'Test_TC_PCC_2_3', - 'Test_TC_PCC_2_4', - ]; - - const PowerSourceConfiguration = [ - 'Test_TC_PSCFG_1_1', - ]; - - const RelativeHumidityMeasurement = [ - 'Test_TC_RH_1_1', - 'Test_TC_RH_2_1', - ]; - - const SecureChannel = [ - 'Test_TC_SC_4_2', - ]; - - const Switch = [ - 'Test_TC_SWTCH_2_1', - ]; - - const TemperatureMeasurement = [ - 'Test_TC_TM_1_1', - 'Test_TC_TM_2_1', - ]; - - const Thermostat = [ - 'Test_TC_TSTAT_1_1', - 'Test_TC_TSTAT_2_1', - 'Test_TC_TSTAT_2_2', - ]; - - const ThermostatUserConfiguration = [ - 'Test_TC_TSUIC_1_1', - 'Test_TC_TSUIC_2_1', - 'Test_TC_TSUIC_2_2', - ]; - - const ThreadNetworkDiagnostics = [ - 'Test_TC_DIAG_TH_NW_2_1', - 'Test_TC_DIAG_TH_NW_2_2', - 'Test_TC_DIAG_TH_NW_2_3', - 'Test_TC_DIAG_TH_NW_2_4', - ]; - - const WiFiNetworkDiagnostics = [ - 'Test_TC_DGWIFI_2_1', - 'Test_TC_DGWIFI_2_3', - ]; - - const WindowCovering = [ - 'Test_TC_WNCV_1_1', - 'Test_TC_WNCV_2_1', - 'Test_TC_WNCV_2_2', - 'Test_TC_WNCV_2_3', - 'Test_TC_WNCV_2_4', - 'Test_TC_WNCV_2_5', - 'Test_TC_WNCV_3_1', - 'Test_TC_WNCV_3_2', - 'Test_TC_WNCV_3_3', - 'Test_TC_WNCV_3_4', - 'Test_TC_WNCV_3_5', - 'Test_TC_WNCV_4_1', - 'Test_TC_WNCV_4_2', - 'Test_TC_WNCV_4_3', - 'Test_TC_WNCV_4_4', - 'Test_TC_WNCV_4_5', - ]; - - const TV = [ - 'TV_TargetNavigatorCluster', - 'TV_AudioOutputCluster', - 'TV_ApplicationLauncherCluster', - 'TV_KeypadInputCluster', - 'TV_AccountLoginCluster', - 'TV_WakeOnLanCluster', - 'TV_ApplicationBasicCluster', - 'TV_MediaPlaybackCluster', - 'TV_ChannelCluster', - 'TV_LowPowerCluster', - 'TV_ContentLauncherCluster', - 'TV_MediaInputCluster', - ]; - - const Others = [ - 'TestCluster', - 'TestClusterComplexTypes', - 'TestConstraints', - 'TestDelayCommands', - 'TestEvents', - 'TestDiscovery', - 'TestLogCommands', - 'TestSaveAs', - 'TestConfigVariables', - 'TestDescriptorCluster', - 'TestBasicInformation', - 'TestGeneralCommissioning', - 'TestIdentifyCluster', - 'TestOperationalCredentialsCluster', - 'TestModeSelectCluster', - 'TestSelfFabricRemoval', - 'TestSystemCommands', - 'TestBinding', - 'TestUserLabelCluster', - 'TestArmFailSafe', - 'TestFanControl', - ]; - - const MultiAdmin = [ - 'TestMultiAdmin', - ]; - - const SoftwareDiagnostics = [ - 'Test_TC_DGSW_2_1', - 'Test_TC_DGSW_2_2', - 'Test_TC_DGSW_2_3', - ]; - - const Subscriptions = [ - 'TestSubscribe_OnOff', - ]; - - const DoorLock = [ - 'DL_UsersAndCredentials', - 'DL_LockUnlock', - 'DL_Schedules', - 'Test_TC_DLRK_2_2', - 'Test_TC_DLRK_2_3', - 'Test_TC_DLRK_2_4', - 'Test_TC_DLRK_2_5', - 'Test_TC_DLRK_2_7', - 'Test_TC_DLRK_2_9', - ]; - - const Groups = [ - 'TestGroupMessaging', - 'TestGroupsCluster', - 'TestGroupKeyManagementCluster', - ]; - - const tests = [ - AccessControl, - BooleanState, - Actions, - ColorControl, - DeviceManagement, - Descriptor, - EthernetNetworkDiagnostics, - FlowMeasurement, - GeneralCommissioning, - GeneralDiagnostics, - Identify, - IlluminanceMeasurement, - LevelControl, - MediaControl, - ModeSelect, - MultipleFabrics, - OTASoftwareUpdate, - OccupancySensing, - OnOff, - PowerSource, - PressureMeasurement, - PumpConfigurationControl, - PowerSourceConfiguration, - RelativeHumidityMeasurement, - SecureChannel, - Switch, - TemperatureMeasurement, - Thermostat, - ThermostatUserConfiguration, - ThreadNetworkDiagnostics, - UserLabel, - WiFiNetworkDiagnostics, - WindowCovering, - TV, - Others, - MultiAdmin, - SoftwareDiagnostics, - Subscriptions, - DoorLock, - Groups, - ].flat(1); - - tests.disable = disable.bind(tests); - return tests; + const AccessControl = ["TestAccessControlCluster"]; + + const BooleanState = ["Test_TC_BOOL_1_1", "Test_TC_BOOL_2_1"]; + + const Actions = ["Test_TC_ACT_1_1"]; + + const ColorControl = [ + "Test_TC_CC_1_1", + "Test_TC_CC_2_1", + "Test_TC_CC_3_1", + "Test_TC_CC_3_2", + "Test_TC_CC_3_3", + "Test_TC_CC_4_1", + "Test_TC_CC_4_2", + "Test_TC_CC_4_3", + "Test_TC_CC_4_4", + "Test_TC_CC_5_1", + "Test_TC_CC_5_2", + "Test_TC_CC_5_3", + "Test_TC_CC_6_1", + "Test_TC_CC_6_2", + "Test_TC_CC_6_3", + "Test_TC_CC_7_1", + "Test_TC_CC_7_2", + "Test_TC_CC_7_3", + "Test_TC_CC_7_4", + "Test_TC_CC_8_1", + ]; + + const DeviceManagement = ["Test_TC_BINFO_2_1"]; + + const Descriptor = ["Test_TC_DESC_1_1"]; + + const EthernetNetworkDiagnostics = [ + "Test_TC_DGETH_2_1", + "Test_TC_DGETH_2_2", + ]; + + const FlowMeasurement = ["Test_TC_FLW_1_1", "Test_TC_FLW_2_1"]; + + const GeneralCommissioning = ["Test_TC_CGEN_1_1", "Test_TC_CGEN_2_1"]; + + const GeneralDiagnostics = ["Test_TC_DGGEN_1_1", "Test_TC_DGGEN_2_1"]; + + const Identify = [ + "Test_TC_I_1_1", + "Test_TC_I_2_1", + "Test_TC_I_2_2", + "Test_TC_I_2_3", + ]; + + const IlluminanceMeasurement = ["Test_TC_ILL_1_1", "Test_TC_ILL_2_1"]; + + const OccupancySensing = ["Test_TC_OCC_1_1", "Test_TC_OCC_2_1"]; + + const LevelControl = [ + "Test_TC_LVL_1_1", + "Test_TC_LVL_2_1", + "Test_TC_LVL_2_2", + "Test_TC_LVL_3_1", + "Test_TC_LVL_4_1", + "Test_TC_LVL_5_1", + "Test_TC_LVL_6_1", + ]; + + const UserLabel = [ + "Test_TC_ULABEL_1_1", + "Test_TC_ULABEL_2_2", + "Test_TC_ULABEL_2_3", + "Test_TC_ULABEL_2_4", + "Test_TC_ULABEL_2_5", + ]; + + const MediaControl = [ + "Test_TC_MC_1_1", + "Test_TC_MC_1_2", + "Test_TC_MC_1_3", + "Test_TC_MC_1_4", + "Test_TC_MC_1_5", + "Test_TC_MC_1_6", + "Test_TC_MC_1_7", + "Test_TC_MC_1_8", + "Test_TC_MC_1_9", + "Test_TC_MC_1_10", + "Test_TC_MC_1_11", + "Test_TC_MC_1_12", + "Test_TC_MC_2_1", + "Test_TC_MC_3_2", + "Test_TC_MC_3_3", + "Test_TC_MC_3_5", + "Test_TC_MC_3_6", + "Test_TC_MC_3_7", + "Test_TC_MC_3_8", + "Test_TC_MC_3_9", + "Test_TC_MC_3_10", + "Test_TC_MC_3_11", + "Test_TC_MC_3_12", + "Test_TC_MC_3_13", + "Test_TC_MC_5_1", + "Test_TC_MC_5_2", + "Test_TC_MC_5_3", + "Test_TC_MC_6_1", + "Test_TC_MC_6_2", + "Test_TC_MC_6_3", + "Test_TC_MC_6_4", + "Test_TC_MC_7_1", + "Test_TC_MC_7_2", + "Test_TC_MC_8_1", + "Test_TC_MC_9_1", + "Test_TC_MC_10_1", + ]; + + const ModeSelect = ["Test_TC_MOD_1_1"]; + + const MultipleFabrics = ["Test_TC_MF_1_3", "Test_TC_MF_1_4"]; + + const OTASoftwareUpdate = ["OTA_SuccessfulTransfer"]; + + const OnOff = [ + "Test_TC_OO_1_1", + "Test_TC_OO_2_1", + "Test_TC_OO_2_2", + "Test_TC_OO_2_4", + ]; + + const PowerSource = ["Test_TC_PS_1_1", "Test_TC_PS_2_1"]; + + const PressureMeasurement = ["Test_TC_PRS_1_1", "Test_TC_PRS_2_1"]; + + const PumpConfigurationControl = [ + "Test_TC_PCC_1_1", + "Test_TC_PCC_2_1", + "Test_TC_PCC_2_2", + "Test_TC_PCC_2_3", + "Test_TC_PCC_2_4", + ]; + + const PowerSourceConfiguration = ["Test_TC_PSCFG_1_1"]; + + const RelativeHumidityMeasurement = ["Test_TC_RH_1_1", "Test_TC_RH_2_1"]; + + const SecureChannel = ["Test_TC_SC_4_2"]; + + const Switch = ["Test_TC_SWTCH_2_1"]; + + const TemperatureMeasurement = ["Test_TC_TM_1_1", "Test_TC_TM_2_1"]; + + const Thermostat = [ + "Test_TC_TSTAT_1_1", + "Test_TC_TSTAT_2_1", + "Test_TC_TSTAT_2_2", + ]; + + const ThermostatUserConfiguration = [ + "Test_TC_TSUIC_1_1", + "Test_TC_TSUIC_2_1", + "Test_TC_TSUIC_2_2", + ]; + + const ThreadNetworkDiagnostics = [ + "Test_TC_DIAG_TH_NW_2_1", + "Test_TC_DIAG_TH_NW_2_2", + "Test_TC_DIAG_TH_NW_2_3", + "Test_TC_DIAG_TH_NW_2_4", + ]; + + const WiFiNetworkDiagnostics = ["Test_TC_DGWIFI_2_1", "Test_TC_DGWIFI_2_3"]; + + const WindowCovering = [ + "Test_TC_WNCV_1_1", + "Test_TC_WNCV_2_1", + "Test_TC_WNCV_2_2", + "Test_TC_WNCV_2_3", + "Test_TC_WNCV_2_4", + "Test_TC_WNCV_2_5", + "Test_TC_WNCV_3_1", + "Test_TC_WNCV_3_2", + "Test_TC_WNCV_3_3", + "Test_TC_WNCV_3_4", + "Test_TC_WNCV_3_5", + "Test_TC_WNCV_4_1", + "Test_TC_WNCV_4_2", + "Test_TC_WNCV_4_3", + "Test_TC_WNCV_4_4", + "Test_TC_WNCV_4_5", + ]; + + const TV = [ + "TV_TargetNavigatorCluster", + "TV_AudioOutputCluster", + "TV_ApplicationLauncherCluster", + "TV_KeypadInputCluster", + "TV_AccountLoginCluster", + "TV_WakeOnLanCluster", + "TV_ApplicationBasicCluster", + "TV_MediaPlaybackCluster", + "TV_ChannelCluster", + "TV_LowPowerCluster", + "TV_ContentLauncherCluster", + "TV_MediaInputCluster", + ]; + + const Others = [ + "TestCluster", + "TestClusterComplexTypes", + "TestConstraints", + "TestDelayCommands", + "TestEvents", + "TestDiscovery", + "TestLogCommands", + "TestSaveAs", + "TestConfigVariables", + "TestDescriptorCluster", + "TestBasicInformation", + "TestGeneralCommissioning", + "TestIdentifyCluster", + "TestOperationalCredentialsCluster", + "TestModeSelectCluster", + "TestSelfFabricRemoval", + "TestSystemCommands", + "TestBinding", + "TestUserLabelCluster", + "TestArmFailSafe", + "TestFanControl", + ]; + + const MultiAdmin = ["TestMultiAdmin"]; + + const SoftwareDiagnostics = [ + "Test_TC_DGSW_2_1", + "Test_TC_DGSW_2_2", + "Test_TC_DGSW_2_3", + ]; + + const Subscriptions = ["TestSubscribe_OnOff"]; + + const DoorLock = [ + "DL_UsersAndCredentials", + "DL_LockUnlock", + "DL_Schedules", + "Test_TC_DLRK_2_2", + "Test_TC_DLRK_2_3", + "Test_TC_DLRK_2_4", + "Test_TC_DLRK_2_5", + "Test_TC_DLRK_2_7", + "Test_TC_DLRK_2_9", + ]; + + const Groups = [ + "TestGroupMessaging", + "TestGroupsCluster", + "TestGroupKeyManagementCluster", + ]; + + const tests = [ + AccessControl, + BooleanState, + Actions, + ColorControl, + DeviceManagement, + Descriptor, + EthernetNetworkDiagnostics, + FlowMeasurement, + GeneralCommissioning, + GeneralDiagnostics, + Identify, + IlluminanceMeasurement, + LevelControl, + MediaControl, + ModeSelect, + MultipleFabrics, + OTASoftwareUpdate, + OccupancySensing, + OnOff, + PowerSource, + PressureMeasurement, + PumpConfigurationControl, + PowerSourceConfiguration, + RelativeHumidityMeasurement, + SecureChannel, + Switch, + TemperatureMeasurement, + Thermostat, + ThermostatUserConfiguration, + ThreadNetworkDiagnostics, + UserLabel, + WiFiNetworkDiagnostics, + WindowCovering, + TV, + Others, + MultiAdmin, + SoftwareDiagnostics, + Subscriptions, + DoorLock, + Groups, + ].flat(1); + + tests.disable = disable.bind(tests); + return tests; } // clang-format on diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 9c2c21f6ff14b2..c3bd19a940089b 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -472,7 +472,6 @@ class ManualTestList : public Command printf("Test_TC_WNCV_7_1\n"); printf("Test_TC_FLW_2_2\n"); printf("Test_TC_FLW_3_1\n"); - printf("Test_TC_OCC_2_2\n"); printf("Test_TC_OCC_2_3\n"); printf("Test_TC_OCC_2_4\n"); printf("Test_TC_OCC_3_1\n"); @@ -1914,23 +1913,13 @@ class Test_TC_BOOL_1_1Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 0)); - VerifyOrReturn(CheckValue("attributeList[0]", iter_0.GetValue(), 0UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 1)); - VerifyOrReturn(CheckValue("attributeList[1]", iter_0.GetValue(), 65528UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 2)); - VerifyOrReturn(CheckValue("attributeList[2]", iter_0.GetValue(), 65529UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 3)); - VerifyOrReturn(CheckValue("attributeList[3]", iter_0.GetValue(), 65531UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 4)); - VerifyOrReturn(CheckValue("attributeList[4]", iter_0.GetValue(), 65532UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 5)); - VerifyOrReturn(CheckValue("attributeList[5]", iter_0.GetValue(), 65533UL)); - VerifyOrReturn(CheckNoMoreListItems("attributeList", iter_0, 6)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65533UL)); } break; case 4: @@ -2304,8 +2293,9 @@ class Test_TC_CC_1_1Suite : public TestCommand { uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("featureMap", value, 1UL)); VerifyOrReturn(CheckConstraintType("value", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 31UL)); } break; case 3: @@ -2389,7 +2379,7 @@ class Test_TC_CC_1_1Suite : public TestCommand } case 2: { LogStep(2, "Read the global attribute constraints : FeatureMap"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && (CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03)"), + VerifyOrDo(!ShouldSkip("(CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03)"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::FeatureMap::Id, true, chip::NullOptional); @@ -10124,29 +10114,16 @@ class Test_TC_DESC_1_1Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 0)); - VerifyOrReturn(CheckValue("attributeList[0]", iter_0.GetValue(), 0UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 1)); - VerifyOrReturn(CheckValue("attributeList[1]", iter_0.GetValue(), 1UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 2)); - VerifyOrReturn(CheckValue("attributeList[2]", iter_0.GetValue(), 2UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 3)); - VerifyOrReturn(CheckValue("attributeList[3]", iter_0.GetValue(), 3UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 4)); - VerifyOrReturn(CheckValue("attributeList[4]", iter_0.GetValue(), 65528UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 5)); - VerifyOrReturn(CheckValue("attributeList[5]", iter_0.GetValue(), 65529UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 6)); - VerifyOrReturn(CheckValue("attributeList[6]", iter_0.GetValue(), 65531UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 7)); - VerifyOrReturn(CheckValue("attributeList[7]", iter_0.GetValue(), 65532UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 8)); - VerifyOrReturn(CheckValue("attributeList[8]", iter_0.GetValue(), 65533UL)); - VerifyOrReturn(CheckNoMoreListItems("attributeList", iter_0, 9)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 1UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 2UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 3UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65533UL)); } break; case 4: @@ -11867,25 +11844,14 @@ class Test_TC_I_1_1Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 0)); - VerifyOrReturn(CheckValue("attributeList[0]", iter_0.GetValue(), 0UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 1)); - VerifyOrReturn(CheckValue("attributeList[1]", iter_0.GetValue(), 1UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 2)); - VerifyOrReturn(CheckValue("attributeList[2]", iter_0.GetValue(), 65528UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 3)); - VerifyOrReturn(CheckValue("attributeList[3]", iter_0.GetValue(), 65529UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 4)); - VerifyOrReturn(CheckValue("attributeList[4]", iter_0.GetValue(), 65531UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 5)); - VerifyOrReturn(CheckValue("attributeList[5]", iter_0.GetValue(), 65532UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 6)); - VerifyOrReturn(CheckValue("attributeList[6]", iter_0.GetValue(), 65533UL)); - VerifyOrReturn(CheckNoMoreListItems("attributeList", iter_0, 7)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 1UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65533UL)); } break; case 4: @@ -12884,7 +12850,7 @@ class Test_TC_ILL_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 1U)); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); VerifyOrReturn(CheckConstraintMaxValue("value", value, 65534U)); } break; @@ -12952,7 +12918,6 @@ class Test_TC_ILL_2_1Suite : public TestCommand } case 1: { LogStep(1, "TH reads MeasuredValue attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), IlluminanceMeasurement::Id, IlluminanceMeasurement::Attributes::MeasuredValue::Id, true, chip::NullOptional); } @@ -15225,8 +15190,9 @@ class Test_TC_MC_1_2Suite : public TestCommand { uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("featureMap", value, 1UL)); VerifyOrReturn(CheckConstraintType("value", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 7UL)); } break; case 3: @@ -15910,8 +15876,9 @@ class Test_TC_MC_1_6Suite : public TestCommand { uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("featureMap", value, 1UL)); VerifyOrReturn(CheckConstraintType("value", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 3UL)); } break; case 3: @@ -16077,8 +16044,9 @@ class Test_TC_MC_1_7Suite : public TestCommand { uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("featureMap", value, 1UL)); VerifyOrReturn(CheckConstraintType("value", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 3UL)); } break; case 3: @@ -16252,25 +16220,14 @@ class Test_TC_MC_1_8Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 0)); - VerifyOrReturn(CheckValue("attributeList[0]", iter_0.GetValue(), 0UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 1)); - VerifyOrReturn(CheckValue("attributeList[1]", iter_0.GetValue(), 1UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 2)); - VerifyOrReturn(CheckValue("attributeList[2]", iter_0.GetValue(), 65528UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 3)); - VerifyOrReturn(CheckValue("attributeList[3]", iter_0.GetValue(), 65529UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 4)); - VerifyOrReturn(CheckValue("attributeList[4]", iter_0.GetValue(), 65531UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 5)); - VerifyOrReturn(CheckValue("attributeList[5]", iter_0.GetValue(), 65532UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 6)); - VerifyOrReturn(CheckValue("attributeList[6]", iter_0.GetValue(), 65533UL)); - VerifyOrReturn(CheckNoMoreListItems("attributeList", iter_0, 7)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 1UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65533UL)); } break; case 4: @@ -16794,8 +16751,9 @@ class Test_TC_MC_1_11Suite : public TestCommand { uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("featureMap", value, 1UL)); VerifyOrReturn(CheckConstraintType("value", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 3UL)); } break; case 3: @@ -18619,7 +18577,7 @@ class Test_TC_MC_5_2Suite : public TestCommand class Test_TC_MC_5_3Suite : public TestCommand { public: - Test_TC_MC_5_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_3", 6, credsIssuerConfig) + Test_TC_MC_5_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MC_5_3", 7, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -18661,6 +18619,10 @@ class Test_TC_MC_5_3Suite : public TestCommand shouldContinue = true; break; case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::DecodableList value; @@ -18668,7 +18630,7 @@ class Test_TC_MC_5_3Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "list")); } break; - case 2: + case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -18676,14 +18638,14 @@ class Test_TC_MC_5_3Suite : public TestCommand VerifyOrReturn(CheckValueNonNull("currentChannel", value)); } break; - case 3: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 4: + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 5: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -18715,19 +18677,29 @@ class Test_TC_MC_5_3Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Reads the ChannelList attribute from the DUT"); + LogStep(1, "Reads the Lineup attribute from the DUT and Verify that the response contains a lineup info object"); + VerifyOrDo(!ShouldSkip("MC_CHANNEL.S.A0001 && PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); + } + case 2: { + LogStep(2, "Reads the ChannelList attribute from the DUT"); VerifyOrDo(!ShouldSkip("MC_CHANNEL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::ChannelList::Id, true, chip::NullOptional); } - case 2: { - LogStep(2, "Reads the CurrentChannel attribute from the DUT"); + case 3: { + LogStep(3, "Reads the CurrentChannel attribute from the DUT"); VerifyOrDo(!ShouldSkip("MC_CHANNEL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::CurrentChannel::Id, true, chip::NullOptional); } - case 3: { - LogStep(3, "Sends a SkipChannel command to the DUT"); + case 4: { + LogStep(4, "Sends a SkipChannel command to the DUT"); VerifyOrDo(!ShouldSkip("MC_CHANNEL.S.C0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::Channel::Commands::SkipChannel::Type value; @@ -18737,8 +18709,8 @@ class Test_TC_MC_5_3Suite : public TestCommand ); } - case 4: { - LogStep(4, "Verify that the channel has changed on the device"); + case 5: { + LogStep(5, "Verify that the channel has changed on the device"); VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; @@ -18748,8 +18720,8 @@ class Test_TC_MC_5_3Suite : public TestCommand value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); return UserPrompt(kIdentityAlpha, value); } - case 5: { - LogStep(5, "Reads the CurrentChannel attribute from the DUT"); + case 6: { + LogStep(6, "Reads the CurrentChannel attribute from the DUT"); VerifyOrDo(!ShouldSkip("MC_CHANNEL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::CurrentChannel::Id, true, chip::NullOptional); @@ -21897,31 +21869,17 @@ class Test_TC_OO_1_1Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 0)); - VerifyOrReturn(CheckValue("attributeList[0]", iter_0.GetValue(), 0UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 1)); - VerifyOrReturn(CheckValue("attributeList[1]", iter_0.GetValue(), 16384UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 2)); - VerifyOrReturn(CheckValue("attributeList[2]", iter_0.GetValue(), 16385UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 3)); - VerifyOrReturn(CheckValue("attributeList[3]", iter_0.GetValue(), 16386UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 4)); - VerifyOrReturn(CheckValue("attributeList[4]", iter_0.GetValue(), 16387UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 5)); - VerifyOrReturn(CheckValue("attributeList[5]", iter_0.GetValue(), 65528UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 6)); - VerifyOrReturn(CheckValue("attributeList[6]", iter_0.GetValue(), 65529UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 7)); - VerifyOrReturn(CheckValue("attributeList[7]", iter_0.GetValue(), 65531UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 8)); - VerifyOrReturn(CheckValue("attributeList[8]", iter_0.GetValue(), 65532UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 9)); - VerifyOrReturn(CheckValue("attributeList[9]", iter_0.GetValue(), 65533UL)); - VerifyOrReturn(CheckNoMoreListItems("attributeList", iter_0, 10)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 16384UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 16385UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 16386UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 16387UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65533UL)); } break; case 4: @@ -27095,8 +27053,9 @@ class Test_TC_TSTAT_1_1Suite : public TestCommand { uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("featureMap", value, 1UL)); VerifyOrReturn(CheckConstraintType("value", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 63UL)); } break; case 3: @@ -27165,10 +27124,8 @@ class Test_TC_TSTAT_1_1Suite : public TestCommand } case 2: { LogStep(2, "Read the optional global attribute constraints: FeatureMap"); - VerifyOrDo( - !ShouldSkip( - "PICS_SKIP_SAMPLE_APP && ( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC || TSTAT_SCH || TSTAT_SB || TSTAT_AUTO )"), - return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC || TSTAT_SCH || TSTAT_SB || TSTAT_AUTO )"), + return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Thermostat::Id, Thermostat::Attributes::FeatureMap::Id, true, chip::NullOptional); } @@ -31932,23 +31889,13 @@ class Test_TC_ULABEL_1_1Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 0)); - VerifyOrReturn(CheckValue("attributeList[0]", iter_0.GetValue(), 0UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 1)); - VerifyOrReturn(CheckValue("attributeList[1]", iter_0.GetValue(), 65528UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 2)); - VerifyOrReturn(CheckValue("attributeList[2]", iter_0.GetValue(), 65529UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 3)); - VerifyOrReturn(CheckValue("attributeList[3]", iter_0.GetValue(), 65531UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 4)); - VerifyOrReturn(CheckValue("attributeList[4]", iter_0.GetValue(), 65532UL)); - VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 5)); - VerifyOrReturn(CheckValue("attributeList[5]", iter_0.GetValue(), 65533UL)); - VerifyOrReturn(CheckNoMoreListItems("attributeList", iter_0, 6)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("value", value, 65533UL)); } break; case 4: @@ -73579,7 +73526,7 @@ class Test_TC_MF_1_26Suite : public TestCommand class Test_TC_MF_1_27Suite : public TestCommand { public: - Test_TC_MF_1_27Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_27", 7, credsIssuerConfig) + Test_TC_MF_1_27Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_27", 8, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); @@ -73617,12 +73564,16 @@ class Test_TC_MF_1_27Suite : public TestCommand break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -73630,10 +73581,10 @@ class Test_TC_MF_1_27Suite : public TestCommand VerifyOrReturn(CheckValue("windowStatus", value, 0U)); } break; - case 5: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); break; - case 6: + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -73658,19 +73609,31 @@ class Test_TC_MF_1_27Suite : public TestCommand { case 0: { LogStep(0, "Factory Reset the DUT_CE"); + VerifyOrDo(!ShouldSkip("PICS_SDK_CI_ONLY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::SystemCommands::Commands::FactoryReset::Type value; return FactoryReset(kIdentityAlpha, value); } case 1: { - LogStep(1, "TH_CR1 starts a commissioning process with DUT_CE"); + LogStep(1, "Factory Reset the DUT_CE"); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Please reboot the DUT and enter 'y' after DUT startsgarbage: not in length on purpose", 52); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); + } + case 2: { + LogStep(2, "TH_CR1 starts a commissioning process with DUT_CE"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee(kIdentityAlpha, value); } - case 2: { - LogStep(2, "TH_CR1 opens a commissioning window on DUT_CE"); + case 3: { + LogStep(3, "TH_CR1 opens a commissioning window on DUT_CE"); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -73680,20 +73643,20 @@ class Test_TC_MF_1_27Suite : public TestCommand ); } - case 3: { - LogStep(3, "Wait for commissioning Window to 301 seconds"); + case 4: { + LogStep(4, "Wait for commissioning Window to 301 seconds"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 181000UL; return WaitForMs(kIdentityAlpha, value); } - case 4: { - LogStep(4, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + case 5: { + LogStep(5, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); } - case 5: { - LogStep(5, "TH_CR1 opens a commissioning window on DUT_CE"); + case 6: { + LogStep(6, "TH_CR1 opens a commissioning window on DUT_CE"); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 179U; @@ -73703,8 +73666,8 @@ class Test_TC_MF_1_27Suite : public TestCommand ); } - case 6: { - LogStep(6, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + case 7: { + LogStep(7, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); } @@ -73716,7 +73679,7 @@ class Test_TC_MF_1_27Suite : public TestCommand class Test_TC_MF_1_28Suite : public TestCommand { public: - Test_TC_MF_1_28Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_28", 7, credsIssuerConfig) + Test_TC_MF_1_28Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_28", 8, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); @@ -73754,12 +73717,16 @@ class Test_TC_MF_1_28Suite : public TestCommand break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -73767,10 +73734,10 @@ class Test_TC_MF_1_28Suite : public TestCommand VerifyOrReturn(CheckValue("windowStatus", value, 0U)); } break; - case 5: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); break; - case 6: + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -73800,14 +73767,25 @@ class Test_TC_MF_1_28Suite : public TestCommand return FactoryReset(kIdentityAlpha, value); } case 1: { - LogStep(1, "TH_CR1 starts a commissioning process with DUT_CE"); + LogStep(1, "Factory Reset the DUT_CE"); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Please reboot the DUT and enter 'y' after DUT startsgarbage: not in length on purpose", 52); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); + } + case 2: { + LogStep(2, "TH_CR1 starts a commissioning process with DUT_CE"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee(kIdentityAlpha, value); } - case 2: { - LogStep(2, "TH_CR1 opens a commissioning window on DUT_CE"); + case 3: { + LogStep(3, "TH_CR1 opens a commissioning window on DUT_CE"); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -73826,20 +73804,20 @@ class Test_TC_MF_1_28Suite : public TestCommand ); } - case 3: { - LogStep(3, "Wait for commissioning Window to 301 seconds"); + case 4: { + LogStep(4, "Wait for commissioning Window to 301 seconds"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 181000UL; return WaitForMs(kIdentityAlpha, value); } - case 4: { - LogStep(4, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + case 5: { + LogStep(5, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); } - case 5: { - LogStep(5, "TH_CR1 opens a commissioning window on DUT_CE"); + case 6: { + LogStep(6, "TH_CR1 opens a commissioning window on DUT_CE"); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 179U; @@ -73858,8 +73836,8 @@ class Test_TC_MF_1_28Suite : public TestCommand ); } - case 6: { - LogStep(6, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + case 7: { + LogStep(7, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); } @@ -78718,118 +78696,6 @@ class Test_TC_FLW_3_1Suite : public TestCommand } }; -class Test_TC_OCC_2_2Suite : public TestCommand -{ -public: - Test_TC_OCC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_OCC_2_2", 4, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_OCC_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; - - uint8_t OccupancyValue; - - 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) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("occupancy", value, 0U)); - - OccupancyValue = value; - } - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - } - break; - 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) - { - case 0: { - LogStep(0, "Wait for the commissioned device to be retrieved"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Reads Occupancy attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id, - true, chip::NullOptional); - } - case 2: { - LogStep(2, "Operate on DUT to change the occupancy status"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - case 3: { - LogStep(3, "Reads back Occupancy attribute from DUT after few seconds"); - VerifyOrDo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id, - true, chip::NullOptional); - } - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_OCC_2_3Suite : public TestCommand { public: @@ -87327,7 +87193,6 @@ 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), diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index 473388849bb5b0..4d498a43c0ef49 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -2201,18 +2201,14 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("AttributeList", [actualValue count], static_cast(6))); - VerifyOrReturn(CheckValue("", actualValue[0], 0UL)); - VerifyOrReturn(CheckValue("", actualValue[1], 65528UL)); - VerifyOrReturn(CheckValue("", actualValue[2], 65529UL)); - VerifyOrReturn(CheckValue("", actualValue[3], 65531UL)); - VerifyOrReturn(CheckValue("", actualValue[4], 65532UL)); - VerifyOrReturn(CheckValue("", actualValue[5], 65533UL)); - } - VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65533UL)); + NextTest(); }]; @@ -2661,7 +2657,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Read the global attribute constraints : FeatureMap\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP && (CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03)")) { + if (ShouldSkip("(CC.S.F00 || CC.S.F01 || CC.S.F02 || CC.S.F03)")) { NextTest(); return; } @@ -2782,12 +2778,10 @@ class Test_TC_CC_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("FeatureMap", actualValue, 1UL)); - } - VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("featureMap", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("featureMap", [value unsignedIntValue], 31UL)); + NextTest(); }]; @@ -16943,21 +16937,17 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("AttributeList", [actualValue count], static_cast(9))); - VerifyOrReturn(CheckValue("", actualValue[0], 0UL)); - VerifyOrReturn(CheckValue("", actualValue[1], 1UL)); - VerifyOrReturn(CheckValue("", actualValue[2], 2UL)); - VerifyOrReturn(CheckValue("", actualValue[3], 3UL)); - VerifyOrReturn(CheckValue("", actualValue[4], 65528UL)); - VerifyOrReturn(CheckValue("", actualValue[5], 65529UL)); - VerifyOrReturn(CheckValue("", actualValue[6], 65531UL)); - VerifyOrReturn(CheckValue("", actualValue[7], 65532UL)); - VerifyOrReturn(CheckValue("", actualValue[8], 65533UL)); - } - VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 1UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 2UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 3UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65533UL)); + NextTest(); }]; @@ -19833,19 +19823,15 @@ class Test_TC_I_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("AttributeList", [actualValue count], static_cast(7))); - VerifyOrReturn(CheckValue("", actualValue[0], 0UL)); - VerifyOrReturn(CheckValue("", actualValue[1], 1UL)); - VerifyOrReturn(CheckValue("", actualValue[2], 65528UL)); - VerifyOrReturn(CheckValue("", actualValue[3], 65529UL)); - VerifyOrReturn(CheckValue("", actualValue[4], 65531UL)); - VerifyOrReturn(CheckValue("", actualValue[5], 65532UL)); - VerifyOrReturn(CheckValue("", actualValue[6], 65533UL)); - } - VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 1UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65533UL)); + NextTest(); }]; @@ -21395,10 +21381,6 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : TH reads MeasuredValue attribute from DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { - NextTest(); - return; - } err = TestThReadsMeasuredValueAttributeFromDut_1(); break; case 2: @@ -21489,7 +21471,7 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); - VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value unsignedShortValue], 1U)); + VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value unsignedShortValue], 0U)); VerifyOrReturn(CheckConstraintMaxValue("measuredValue", [value unsignedShortValue], 65534U)); } @@ -25596,12 +25578,10 @@ class Test_TC_MC_1_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("FeatureMap", actualValue, 1UL)); - } - VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("featureMap", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("featureMap", [value unsignedIntValue], 7UL)); + NextTest(); }]; @@ -26672,12 +26652,10 @@ class Test_TC_MC_1_6 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("FeatureMap", actualValue, 1UL)); - } - VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("featureMap", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("featureMap", [value unsignedIntValue], 3UL)); + NextTest(); }]; @@ -26931,12 +26909,10 @@ class Test_TC_MC_1_7 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("FeatureMap", actualValue, 1UL)); - } - VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("featureMap", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("featureMap", [value unsignedIntValue], 3UL)); + NextTest(); }]; @@ -27212,19 +27188,15 @@ class Test_TC_MC_1_8 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("AttributeList", [actualValue count], static_cast(7))); - VerifyOrReturn(CheckValue("", actualValue[0], 0UL)); - VerifyOrReturn(CheckValue("", actualValue[1], 1UL)); - VerifyOrReturn(CheckValue("", actualValue[2], 65528UL)); - VerifyOrReturn(CheckValue("", actualValue[3], 65529UL)); - VerifyOrReturn(CheckValue("", actualValue[4], 65531UL)); - VerifyOrReturn(CheckValue("", actualValue[5], 65532UL)); - VerifyOrReturn(CheckValue("", actualValue[6], 65533UL)); - } - VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 1UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65533UL)); + NextTest(); }]; @@ -28032,12 +28004,10 @@ class Test_TC_MC_1_11 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("FeatureMap", actualValue, 1UL)); - } - VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("featureMap", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("featureMap", [value unsignedIntValue], 3UL)); + NextTest(); }]; @@ -30182,44 +30152,54 @@ class Test_TC_MC_5_3 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the ChannelList attribute from the DUT\n"); - if (ShouldSkip("MC_CHANNEL.S.A0000")) { + ChipLogProgress(chipTool, + " ***** Test Step 1 : Reads the Lineup attribute from the DUT and Verify that the response contains a lineup info " + "object\n"); + if (ShouldSkip("MC_CHANNEL.S.A0001 && PICS_USER_PROMPT")) { NextTest(); return; } - err = TestReadsTheChannelListAttributeFromTheDut_1(); + err = TestReadsTheLineupAttributeFromTheDutAndVerifyThatTheResponseContainsALineupInfoObject_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the CurrentChannel attribute from the DUT\n"); - if (ShouldSkip("MC_CHANNEL.S.A0002")) { + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the ChannelList attribute from the DUT\n"); + if (ShouldSkip("MC_CHANNEL.S.A0000")) { NextTest(); return; } - err = TestReadsTheCurrentChannelAttributeFromTheDut_2(); + err = TestReadsTheChannelListAttributeFromTheDut_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Sends a SkipChannel command to the DUT\n"); - if (ShouldSkip("MC_CHANNEL.S.C0003")) { + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads the CurrentChannel attribute from the DUT\n"); + if (ShouldSkip("MC_CHANNEL.S.A0002")) { NextTest(); return; } - err = TestSendsASkipChannelCommandToTheDut_3(); + err = TestReadsTheCurrentChannelAttributeFromTheDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Verify that the channel has changed on the device\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + ChipLogProgress(chipTool, " ***** Test Step 4 : Sends a SkipChannel command to the DUT\n"); + if (ShouldSkip("MC_CHANNEL.S.C0003")) { NextTest(); return; } - err = TestVerifyThatTheChannelHasChangedOnTheDevice_4(); + err = TestSendsASkipChannelCommandToTheDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Reads the CurrentChannel attribute from the DUT\n"); + ChipLogProgress(chipTool, " ***** Test Step 5 : Verify that the channel has changed on the device\n"); + if (ShouldSkip("PICS_USER_PROMPT")) { + NextTest(); + return; + } + err = TestVerifyThatTheChannelHasChangedOnTheDevice_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Reads the CurrentChannel attribute from the DUT\n"); if (ShouldSkip("MC_CHANNEL.S.A0002")) { NextTest(); return; } - err = TestReadsTheCurrentChannelAttributeFromTheDut_5(); + err = TestReadsTheCurrentChannelAttributeFromTheDut_6(); break; } @@ -30250,6 +30230,9 @@ class Test_TC_MC_5_3 : public TestCommandBridge { case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -30263,7 +30246,7 @@ class Test_TC_MC_5_3 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; chip::Optional mNodeId; chip::Optional mCluster; @@ -30279,7 +30262,16 @@ class Test_TC_MC_5_3 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_1() + CHIP_ERROR TestReadsTheLineupAttributeFromTheDutAndVerifyThatTheResponseContainsALineupInfoObject_1() + { + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt("alpha", value); + } + + CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_2() { MTRDevice * device = GetDevice("alpha"); MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -30297,7 +30289,7 @@ class Test_TC_MC_5_3 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_2() + CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_3() { MTRDevice * device = GetDevice("alpha"); MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -30320,7 +30312,7 @@ class Test_TC_MC_5_3 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsASkipChannelCommandToTheDut_3() + CHIP_ERROR TestSendsASkipChannelCommandToTheDut_4() { MTRDevice * device = GetDevice("alpha"); MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -30340,7 +30332,7 @@ class Test_TC_MC_5_3 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyThatTheChannelHasChangedOnTheDevice_4() + CHIP_ERROR TestVerifyThatTheChannelHasChangedOnTheDevice_5() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message @@ -30350,7 +30342,7 @@ class Test_TC_MC_5_3 : public TestCommandBridge { return UserPrompt("alpha", value); } - CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_5() + CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_6() { MTRDevice * device = GetDevice("alpha"); MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -35701,22 +35693,18 @@ class Test_TC_OO_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("AttributeList", [actualValue count], static_cast(10))); - VerifyOrReturn(CheckValue("", actualValue[0], 0UL)); - VerifyOrReturn(CheckValue("", actualValue[1], 16384UL)); - VerifyOrReturn(CheckValue("", actualValue[2], 16385UL)); - VerifyOrReturn(CheckValue("", actualValue[3], 16386UL)); - VerifyOrReturn(CheckValue("", actualValue[4], 16387UL)); - VerifyOrReturn(CheckValue("", actualValue[5], 65528UL)); - VerifyOrReturn(CheckValue("", actualValue[6], 65529UL)); - VerifyOrReturn(CheckValue("", actualValue[7], 65531UL)); - VerifyOrReturn(CheckValue("", actualValue[8], 65532UL)); - VerifyOrReturn(CheckValue("", actualValue[9], 65533UL)); - } - VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 16384UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 16385UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 16386UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 16387UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65533UL)); + NextTest(); }]; @@ -43434,8 +43422,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Read the optional global attribute constraints: FeatureMap\n"); - if (ShouldSkip( - "PICS_SKIP_SAMPLE_APP && ( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC || TSTAT_SCH || TSTAT_SB || TSTAT_AUTO )")) { + if (ShouldSkip("( TSTAT_HEAT || TSTAT_COOL || TSTAT_OCC || TSTAT_SCH || TSTAT_SB || TSTAT_AUTO )")) { NextTest(); return; } @@ -43554,12 +43541,10 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("FeatureMap", actualValue, 1UL)); - } - VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); + VerifyOrReturn(CheckConstraintMinValue("featureMap", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("featureMap", [value unsignedIntValue], 63UL)); + NextTest(); }]; @@ -49851,18 +49836,14 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("AttributeList", [actualValue count], static_cast(6))); - VerifyOrReturn(CheckValue("", actualValue[0], 0UL)); - VerifyOrReturn(CheckValue("", actualValue[1], 65528UL)); - VerifyOrReturn(CheckValue("", actualValue[2], 65529UL)); - VerifyOrReturn(CheckValue("", actualValue[3], 65531UL)); - VerifyOrReturn(CheckValue("", actualValue[4], 65532UL)); - VerifyOrReturn(CheckValue("", actualValue[5], 65533UL)); - } - VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 0UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65533UL)); + NextTest(); }]; From 7c5c207f5276db8074e8623e6072565a3ad25200 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 6 Jul 2022 19:13:03 -0400 Subject: [PATCH 08/15] Blacklist nrf52840dongle-all-clusters - runst out of flash (#20400) * Blacklist nrf52840dongle-all-clusters - runst out of flash * Undo repo update * Fix unit tests --- scripts/build/build/targets.py | 2 +- scripts/build/testdata/all_targets_except_host.txt | 2 +- scripts/build/testdata/glob_star_targets_except_host.txt | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 46a44715d35b92..ac92a809ecd555 100644 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -418,7 +418,7 @@ def NrfTargets(): ] # Enable nrf52840dongle for all-clusters and lighting app only - yield target.Extend('nrf52840dongle-all-clusters', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS) + yield target.Extend('nrf52840dongle-all-clusters', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS).GlobBlacklist('Out of flash when linking') yield target.Extend('nrf52840dongle-all-clusters-minimal', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS_MINIMAL) yield target.Extend('nrf52840dongle-light', board=NrfBoard.NRF52840DONGLE, app=NrfApp.LIGHT) diff --git a/scripts/build/testdata/all_targets_except_host.txt b/scripts/build/testdata/all_targets_except_host.txt index 4611cdeacd917b..082430b019ac39 100644 --- a/scripts/build/testdata/all_targets_except_host.txt +++ b/scripts/build/testdata/all_targets_except_host.txt @@ -214,7 +214,7 @@ nrf-nrf52840dk-lock nrf-nrf52840dk-pump nrf-nrf52840dk-pump-controller nrf-nrf52840dk-shell -nrf-nrf52840dongle-all-clusters +nrf-nrf52840dongle-all-clusters (NOGLOB: Out of flash when linking) nrf-nrf52840dongle-all-clusters-minimal nrf-nrf52840dongle-light nrf-nrf5340dk-all-clusters diff --git a/scripts/build/testdata/glob_star_targets_except_host.txt b/scripts/build/testdata/glob_star_targets_except_host.txt index 94dce9283947eb..e8bcb0bf1568d2 100644 --- a/scripts/build/testdata/glob_star_targets_except_host.txt +++ b/scripts/build/testdata/glob_star_targets_except_host.txt @@ -94,7 +94,6 @@ nrf-nrf52840dk-lock nrf-nrf52840dk-pump nrf-nrf52840dk-pump-controller nrf-nrf52840dk-shell -nrf-nrf52840dongle-all-clusters nrf-nrf52840dongle-all-clusters-minimal nrf-nrf52840dongle-light nrf-nrf5340dk-all-clusters From 782cc93a2986501979afbab70ea258711d5664b5 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Wed, 6 Jul 2022 20:03:02 -0400 Subject: [PATCH 09/15] Don't sweat interactive mode in build_examples.py (#20389) As of 3340fc2b62c ("Switch from readline to editline (#20330)") there is no longer an issue with respect to the availability of libreadline. --- scripts/build/build/targets.py | 8 +------ scripts/build/testdata/build_linux_on_x64.txt | 22 ++++++++++--------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index ac92a809ecd555..cc43e37e3989ee 100644 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -278,7 +278,6 @@ def HostTargets(): builder.AppendVariant(name="clang", use_clang=True), builder.AppendVariant(name="test", extra_tests=True), - builder.WhitelistVariantNameForGlob('no-interactive-ipv6only') builder.WhitelistVariantNameForGlob('ipv6only') for target in app_targets: @@ -289,12 +288,7 @@ def HostTargets(): builder.targets.append(target) for target in builder.AllVariants(): - if cross_compile and 'chip-tool' in target.name and 'arm64' in target.name and '-no-interactive' not in target.name: - # Interactive builds will not compile by default on arm cross compiles - # because libreadline is not part of the default sysroot - yield target.GlobBlacklist('Arm crosscompile does not support libreadline-dev') - else: - yield target + yield target # Without extra build variants yield target_native.Extend('chip-cert', app=HostApp.CERT_TOOL) diff --git a/scripts/build/testdata/build_linux_on_x64.txt b/scripts/build/testdata/build_linux_on_x64.txt index a6510e1fa9c76a..6633aab1c72dbc 100644 --- a/scripts/build/testdata/build_linux_on_x64.txt +++ b/scripts/build/testdata/build_linux_on_x64.txt @@ -31,10 +31,15 @@ bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/bridge-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-bridge-ipv6only' -# Generating linux-arm64-chip-tool-no-interactive-ipv6only +# Generating linux-arm64-chip-tool bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false config_use_interactive_mode=false target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool-no-interactive-ipv6only' + gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool' + +# Generating linux-arm64-chip-tool-ipv6only +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool-ipv6only' # Generating linux-arm64-light bash -c ' @@ -177,9 +182,6 @@ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/exa # Generating linux-x64-chip-tool-ipv6only gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-chip-tool-ipv6only -# Generating linux-x64-chip-tool-no-interactive-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_inet_config_enable_ipv4=false config_use_interactive_mode=false' {out}/linux-x64-chip-tool-no-interactive-ipv6only - # Generating linux-x64-chip-tool-nodeps gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false' {out}/linux-x64-chip-tool-nodeps @@ -276,8 +278,11 @@ ninja -C {out}/linux-arm64-bridge # Building linux-arm64-bridge-ipv6only ninja -C {out}/linux-arm64-bridge-ipv6only -# Building linux-arm64-chip-tool-no-interactive-ipv6only -ninja -C {out}/linux-arm64-chip-tool-no-interactive-ipv6only +# Building linux-arm64-chip-tool +ninja -C {out}/linux-arm64-chip-tool + +# Building linux-arm64-chip-tool-ipv6only +ninja -C {out}/linux-arm64-chip-tool-ipv6only # Building linux-arm64-light ninja -C {out}/linux-arm64-light @@ -378,9 +383,6 @@ ninja -C {out}/linux-x64-chip-tool # Building linux-x64-chip-tool-ipv6only ninja -C {out}/linux-x64-chip-tool-ipv6only -# Building linux-x64-chip-tool-no-interactive-ipv6only -ninja -C {out}/linux-x64-chip-tool-no-interactive-ipv6only - # Building linux-x64-chip-tool-nodeps ninja -C {out}/linux-x64-chip-tool-nodeps From 4f595e4812cef32fee3efddd627ad9d10e1d22a7 Mon Sep 17 00:00:00 2001 From: kowsisoundhar12 <57476670+kowsisoundhar12@users.noreply.github.com> Date: Thu, 7 Jul 2022 06:58:40 +0530 Subject: [PATCH 10/15] Added PICS condition (#20320) --- src/app/tests/suites/certification/PICS.yaml | 416 ++++- .../certification/Test_TC_BIND_2_1.yaml | 101 +- .../certification/Test_TC_BIND_2_2.yaml | 119 ++ .../certification/Test_TC_BIND_2_3.yaml | 121 ++ .../suites/certification/Test_TC_DD_1_11.yaml | 8 + .../suites/certification/Test_TC_DD_1_12.yaml | 105 +- .../suites/certification/Test_TC_DD_1_5.yaml | 37 +- .../suites/certification/Test_TC_DD_1_8.yaml | 53 +- .../suites/certification/Test_TC_DD_2_1.yaml | 125 +- .../suites/certification/Test_TC_DD_2_2.yaml | 8 + .../suites/certification/Test_TC_DD_3_1.yaml | 1 + .../suites/certification/Test_TC_DD_3_11.yaml | 67 +- .../suites/certification/Test_TC_DD_3_12.yaml | 84 +- .../suites/certification/Test_TC_DD_3_13.yaml | 88 +- .../suites/certification/Test_TC_DD_3_14.yaml | 57 +- .../suites/certification/Test_TC_DD_3_15.yaml | 45 +- .../suites/certification/Test_TC_DD_3_16.yaml | 179 +-- .../suites/certification/Test_TC_DD_3_17.yaml | 220 +-- .../suites/certification/Test_TC_DD_3_18.yaml | 90 +- .../suites/certification/Test_TC_DD_3_19.yaml | 28 +- .../suites/certification/Test_TC_DD_3_2.yaml | 1 + .../suites/certification/Test_TC_DD_3_20.yaml | 8 +- .../suites/certification/Test_TC_DD_3_3.yaml | 598 +------ .../suites/certification/Test_TC_DD_3_4.yaml | 595 +------ .../suites/certification/Test_TC_DD_3_5.yaml | 51 +- .../suites/certification/Test_TC_DD_3_6.yaml | 5 +- .../suites/certification/Test_TC_DD_3_7.yaml | 17 +- .../suites/certification/Test_TC_DD_3_8.yaml | 12 +- .../certification/Test_TC_DGETH_2_1.yaml | 23 +- .../certification/Test_TC_DGETH_2_2.yaml | 12 +- .../certification/Test_TC_DGETH_3_1.yaml | 320 +--- .../certification/Test_TC_DGETH_3_2.yaml | 5 +- .../certification/Test_TC_DGWIFI_2_1.yaml | 20 +- .../certification/Test_TC_DGWIFI_2_2.yaml | 3 + .../certification/Test_TC_DGWIFI_2_3.yaml | 14 +- .../certification/Test_TC_DGWIFI_3_1.yaml | 51 +- .../certification/Test_TC_DGWIFI_3_2.yaml | 3 +- .../suites/certification/Test_TC_IDM_1_1.yaml | 146 +- .../suites/certification/Test_TC_IDM_1_2.yaml | 124 +- .../suites/certification/Test_TC_IDM_2_2.yaml | 460 +++--- .../suites/certification/Test_TC_IDM_3_1.yaml | 488 +++--- .../suites/certification/Test_TC_IDM_3_2.yaml | 162 +- .../suites/certification/Test_TC_IDM_4_1.yaml | 571 +++---- .../suites/certification/Test_TC_IDM_4_2.yaml | 77 +- .../suites/certification/Test_TC_IDM_4_3.yaml | 1429 ++++++----------- .../suites/certification/Test_TC_IDM_5_1.yaml | 246 +-- .../suites/certification/Test_TC_IDM_5_2.yaml | 205 +-- .../suites/certification/Test_TC_IDM_6_1.yaml | 145 +- .../suites/certification/Test_TC_IDM_6_2.yaml | 1314 +++++++++------ .../suites/certification/Test_TC_IDM_6_3.yaml | 66 +- .../suites/certification/Test_TC_IDM_6_4.yaml | 243 +-- .../suites/certification/Test_TC_IDM_7_1.yaml | 289 +++- .../suites/certification/Test_TC_LVL_2_1.yaml | 20 +- .../suites/certification/Test_TC_LVL_2_2.yaml | 19 + .../suites/certification/Test_TC_LVL_2_3.yaml | 548 +++++-- .../suites/certification/Test_TC_LVL_3_1.yaml | 13 + .../suites/certification/Test_TC_LVL_4_1.yaml | 12 +- .../suites/certification/Test_TC_LVL_5_1.yaml | 8 + .../suites/certification/Test_TC_LVL_6_1.yaml | 9 + .../suites/certification/Test_TC_LVL_7_1.yaml | 169 ++ .../suites/certification/Test_TC_OCC_2_2.yaml | 220 +++ .../suites/certification/Test_TC_OCC_2_3.yaml | 2 + .../suites/certification/Test_TC_OCC_2_4.yaml | 2 + .../suites/certification/Test_TC_OCC_3_1.yaml | 6 +- .../suites/certification/Test_TC_OCC_3_2.yaml | 5 +- .../tests/suites/certification/ci-pics-values | 121 +- src/app/tests/suites/tests.js | 14 +- .../chip-tool/zap-generated/test/Commands.h | 391 ++++- .../zap-generated/test/Commands.h | 402 ++++- 69 files changed, 6424 insertions(+), 5192 deletions(-) create mode 100644 src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_LVL_7_1.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml diff --git a/src/app/tests/suites/certification/PICS.yaml b/src/app/tests/suites/certification/PICS.yaml index 1fb5b9230bc998..763e551ca6a18f 100644 --- a/src/app/tests/suites/certification/PICS.yaml +++ b/src/app/tests/suites/certification/PICS.yaml @@ -651,15 +651,6 @@ PICS: - label: "Supports a System Mode of Auto" id: TSTAT_AUTO - # Occupency sensing cluster - - label: "Does the device implement the Occupancy attribute?" - id: A_OCCUPANCY - - - label: - "Can the Occupancy attribute changed by physical control at the - device?" - id: MANUAL_OCCUPANCY_CHANGE - # Window covering cluster ## WC-Features - label: "Does the device implement the Lift feature?" @@ -956,6 +947,7 @@ PICS: device?" id: PRS.M.PressureChange + # Occupency sensing cluster - label: "Does the device implement the Occupancy attribute?" id: OCC.S.A0000 @@ -1009,20 +1001,153 @@ PICS: PhysicalContactUnoccupiedToOccupiedThreshold attribute?" id: OCC.S.A0032 + - label: + "Can the Occupancy attribute changed by physical control at the + device?" + id: OCC.M.OccupancyChange + + - label: "Does the device implement the Occupancy attribute?" + id: OCC.C.A0000 + + - label: "Does the device implement the OccupancySensorType attribute?" + id: OCC.C.A0001 + + - label: + "Does the device implement the OccupancySensorTypeBitmap attribute?" + id: OCC.C.A0002 + + - label: + "Does the device implement the PIROccupiedToUnoccupiedDelay attribute?" + id: OCC.C.A0010 + + - label: + "Does the device implement the PIRUnoccupiedToOccupiedDelay attribute?" + id: OCC.C.A0011 + + - label: + "Does the device implement the PIRUnoccupiedToOccupiedThreshold + attribute?" + id: OCC.C.A0012 + + - label: + "Does the device implement the UltrasonicOccupiedToUnoccupiedDelay + attribute?" + id: OCC.C.A0020 + + - label: + "Does the device implement the UltrasonicUnoccupiedToOccupiedDelay + attribute?" + id: OCC.C.A0021 + + - label: + "Does the device implement the UltrasonicUnoccupiedToOccupiedThreshold + attribute?" + id: OCC.C.A0022 + + - label: + "Does the device implement the + PhysicalContactOccupiedToUnoccupiedDelay attribute?" + id: OCC.C.A0030 + + - label: + "Does the device implement the + PhysicalContactUnoccupiedToOccupiedDelay attribute?" + id: OCC.C.A0031 + + - label: + "Does the device implement the + PhysicalContactUnoccupiedToOccupiedThreshold attribute?" + id: OCC.C.A0032 + - label: "Does the device implement the Tolerance attribute?" id: FLW.S.A0003 + - label: "Does the device support extended range and resolution?" + id: PRS.S.F00 + + #Level Control Cluster + - label: + "Does the DUT(server) support the Behavior that supports lighting + applications feature?" + id: LVL.S.F01 + - label: "Does the DUT(server) support the Frequency attributes and behavior feature?" id: LVL.S.F02 - - label: "Does the DUT(server) support the MaxLevel attribute?" - id: LVL.S.A0003 + - label: "Does the DUT(server) support the CurrentLevel attribute?" + id: LVL.S.A0000 + + - label: "Does the DUT(server) support the RemainingTime attribute?" + id: LVL.S.A0001 - label: "Does the DUT(server) support the MinLevel attribute?" id: LVL.S.A0002 + - label: "Does the DUT(server) support the MaxLevel attribute?" + id: LVL.S.A0003 + + - label: "Does the DUT(server) support the CurrentFrequency attribute?" + id: LVL.S.A0004 + + - label: "Does the DUT(server) support the MinFrequency attribute?" + id: LVL.S.A0005 + + - label: "Does the DUT(server) support the MaxFrequency attribute?" + id: LVL.S.A0006 + + - label: "Does the DUT(server) support the Options attribute?" + id: LVL.S.A000f + + - label: "Does the DUT(server) support the OnOffTransitionTime attribute?" + id: LVL.S.A0010 + + - label: "Does the DUT(server) support the OnLevel attribute?" + id: LVL.S.A0011 + + - label: "Does the DUT(server) support the OnTransitionTime attribute?" + id: LVL.S.A0012 + + - label: "Does the DUT(server) support the OffTransitionTime attribute?" + id: LVL.S.A0013 + + - label: "Does the DUT(server) support the DefaultMoveRate attribute?" + id: LVL.S.A0014 + + - label: "Does the DUT(server) support the StartUpCurrentLevel attribute?" + id: LVL.S.A4000 + + - label: "Does the DUT(server) support the MoveToLevel command?" + id: LVL.S.C00.Rsp + + - label: "Does the DUT(server) support the Move command?" + id: LVL.S.C01.Rsp + + - label: "Does the DUT(server) support the Step command?" + id: LVL.S.C02.Rsp + + - label: "Does the DUT(server) support the Stop command?" + id: LVL.S.C03.Rsp + + - label: "Does the DUT(server) support the MoveToLevel with On/Off command?" + id: LVL.S.C04.Rsp + + - label: "Does the DUT(server) support the Move with On/Off command?" + id: LVL.S.C05.Rsp + + - label: "Does the DUT(server) support the Step with On/Off command?" + id: LVL.S.C06.Rsp + + - label: "Does the DUT(server) support the Stop with On/Off command?" + id: LVL.S.C07.Rsp + + - label: "Does the DUT(server) support the MoveToClosestFrequency command?" + id: LVL.S.C08.Rsp + + - label: "Is the DUT(server) able to move at a variable rate feature?" + id: LVL.S.M.VarRate + #Groups Cluster - label: "Does the DUT(Server) support NameSupport attribute?" id: G.S.A0000 @@ -1234,11 +1359,6 @@ PICS: - label: "Does the MS device support Momentary Switch MultiPress?" id: SWTCH.S.F04 - - label: - "Does the DUT(server) support the Behavior that supports lighting - applications feature?" - id: LVL.S.F01 - #General Commissioning Cluster - label: "Does the device(Server) support Breadcrumb attribute?" id: CGEN.S.A0000 @@ -2272,3 +2392,267 @@ PICS: "Does the device implement the ScheduleProgrammingVisibility attribute?" id: TSUIC.S.A0002 + #Binding Cluster + - label: "Does the DUT(server) support the Binding attribute?" + id: BIND.S.A0000 + + - label: "Does the DUT(client) implement the GroupKeyMap attribute?" + id: GRPKEY.C.A0000 + + - label: "Does the DUT(client) implement sending the Off command?" + id: OO.C.C00.Tx + + - label: "Does the DUT(client) implement sending the On command?" + id: OO.C.C01.Tx + + - label: "Does the DUT(Client) implement sending Keysetwrite command?" + id: GRPKEY.C.C00.Tx + + - label: "Does the DUT(Client) implement sending AddGroup command?" + id: G.C.C00.Tx + + #Device Discovery + - label: + "Does the device support discovery over Bluetooth Low Energy (BLE)?" + id: MCORE.DD.BLE + + - label: "Does the device support discovery over WiFi?" + id: MCORE.DD.WIFI + + - label: "Does the device only function within a Matter network?" + id: MCORE.DD.CHIP_DEV + + - label: "Is the device a lock device?" + id: MCORE.DD.DEV_LOCK + + - label: "Is the device a barrier access device?" + id: MCORE.DD.DEV_BARRIER + + - label: "Does the device have a vendor specific information element (IE)?" + id: MCORE.DD.IE + + - label: + "Does the device or device packaging have a QR code based onboarding + payload?" + id: MCORE.DD.QR + + - label: "Does the device or device packaging have a Manual Pairing Code?" + id: MCORE.DD.MANUAL_PC + + - label: "Does the packed binary data structure contain encoded TLV Data?" + id: MCORE.DD.TLV + + - label: + "Does the QR code contain multiple concatenated onboarding payloads?" + id: MCORE.DD.CONCAT + + - label: "Does the device have a NFC tag containing the onboarding payload?" + id: MCORE.DD.NFC + + - label: "Does the device support dynamic passcodes?" + id: MCORE.DD.PASSCODE + + - label: "Does the device support user interface?" + id: MCORE.DD.UI + + - label: "Does the device support Commissioner Discovery?" + id: MCORE.DD.COMM_DISCOVERY + + - label: "Is the DUT a Controller?" + id: MCORE.DD.CONTROLLER + + - label: "Does the DUT support scanning concatenated QR codes?" + id: MCORE.DD.CTRL_CONCATENATED_QR_CODE_1 + + - label: + "Does the DUT support indicating to user the need to commission device + one by one for concatenated QR codes?" + id: MCORE.DD.CTRL_CONCATENATED_QR_CODE_2 + + - label: "Is the DUT a Commissioner?" + id: MCORE.DD.COMMISSIONER + + - label: "Does the DUT require a custom commissioning flow?" + id: MCORE.DD.CUSTOM_COMM_FLOW + + - label: "Does the DUT support Discovery Capability over BLE?" + id: MCORE.DD.DT_BLE + + - label: "Is the DUT a Controller?" + id: MCORE.DD.CONTROLLER + + - label: "Does the DUT support Discovery Capability over IP Network?" + id: MCORE.DD.DT_IP + + - label: "Does the DUT support Discovery Capability over SoftAP?" + id: MCORE.DD.DT_SOFTAP + + - label: "Does the DUT support Standard Commissioning Flow?" + id: MCORE.DD.STANDARD_COMM_FLOW + + - label: "Does the DUT support User-Intent Commissioning Flow?" + id: MCORE.DD.USER_INTENT_COMM_FLOW + + - label: "Does the DUT support Custom Commissioning Flow?" + id: MCORE.DD.CUSTOM_COMM_FLOW + + - label: + "Does the DUT commissioner support accepting an 11-digit Manual + Pairing Code for commissioning?" + id: MCORE.DD.11_MANUAL_PC + + - label: + "Does the DUT commissioner support accepting a 21-digit Manual Pairing + Code for commissioning?" + id: MCORE.DD.21_MANUAL_PC + + - label: + "Does the device is subject to physical tampering (doorbell, camera, + door lock, designed for outdoor usage)?" + id: MCORE.DD.PHYSICAL_TAMPERING + + - label: + "Does the device support scanning NFC tags containing the onboarding + payload?" + id: MCORE.DD.SCAN_NFC + + - label: + "Does the DUT support scanning QR codes containing the onboarding + payload?" + id: MCORE.DD.SCAN_QR_CODE + + - label: "Does the device support Thread interface?" + id: MCORE.DD.THREAD + + - label: "Does the device support Wifi or Thread interfaces?" + id: MCORE.DD.WIRELESS + + #Ethernet Network Diagnostics Cluster + - label: "Does the device implement the ResetCounts command?" + id: DGETH.S.C00 + + - label: "Does the device implement the PHYRate attribute?" + id: DGETH.S.A0000 + + - label: "Does the device implement the FullDuplex attribute?" + id: DGETH.S.A0001 + + - label: "Does the device implement the PacketRxCount attribute?" + id: DGETH.S.A0002 + + - label: "Does the device implement the PacketTxCount attribute?" + id: DGETH.S.A0003 + + - label: "Does the device implement the TxErrCount attribute?" + id: DGETH.S.A0004 + + - label: "Does the device implement the CollisionCount attribute?" + id: DGETH.S.A0005 + + - label: "Does the device implement the OverrunCount attribute?" + id: DGETH.S.A0006 + + - label: "Does the device implement the CarrierDetect attribute?" + id: DGETH.S.A0007 + + - label: "Does the device implement the CarrierDetect attribute?" + id: DGETH.S.A0008 + + #Wi-Fi Network Diagnostics Cluster + - label: + "Counts for the number of received and transmitted packets on the + ethernet interface." + id: DGWIFI.S.F00 + + - label: + "Counts for the number of errors during the reception and transmission + of packets on the ethernet interface." + id: DGWIFI.S.F01 + + - label: + "Indicates the BSSID for which the Wi-Fi network the Node is currently + connected. If the interface not configured, a NULL value should be + presented." + id: DGWIFI.S.A0000 + + - label: "The current type of WiFi security being used." + id: DGWIFI.S.A0001 + + - label: "Indicates the current 802.11 standard version in use by the Node." + id: DGWIFI.S.A0002 + + - label: + "Indicate the channel that Wi-Fi communication is currently operating + on. If the interface not configured, a NULL value should be presented" + id: DGWIFI.S.A0003 + + - label: + "Indicates the current RSSI of the Node 's Wi-Fi radio in dB. If the + interface not configured or operational, a NULL value should be + presented. This value should not be subscribed." + id: DGWIFI.S.A0004 + + - label: + "Indicates the count of the number of received beacons. This value + should not be subscribed." + id: DGWIFI.S.A0005 + + - label: + "Indicates the count of the number of received beacons. This value + should not be subscribed." + id: DGWIFI.S.A0006 + + - label: + "Indicates the number of multicast packets received by the Node. This + value should not be subscribed." + id: DGWIFI.S.A0007 + + - label: + "Indicates the number of mul5icast packets transmitted by the Node. + This value should not be subscribed." + id: DGWIFI.S.A0008 + + - label: + "Indicates the number of uicast packets received by the Node. This + value should not be subscribed." + id: DGWIFI.S.A0009 + + - label: + "Indicates the number of unicast packets transmitted by the Node. This + value should not be subscribed." + id: DGWIFI.S.A000a + + - label: + "Indicates the current maximum PHY rate of transfer of data in + bytes-per-second." + id: DGWIFI.S.A000b + + - label: + "Indicates the number of packets dropped either at ingress or egress, + due to lack of buffer memory to retain all packets on the ethernet + network interface. This attribute SHALL be reset to 0 upon a reboot of + the Node. This value should not be subscribed." + id: DGWIFI.S.A000c + + - label: + "Indicates Node’s Wi-Fi connection has been disconnected as a result + of de-authenticated or dis-association and indicates the reason." + id: DGWIFI.S.E00 + + - label: + "Indicates unsuccessful connection and reconnection to WiFi access + point after exhaustive retries. AssociationFailure fields are to + indicate the cause and status. Each field set values are described in + 11.14.6.2" + id: DGWIFI.S.E01 + + - label: + "Indicates that a Node’s connection status to a Wi-Fi network has + changed." + id: DGWIFI.S.E02 + + - label: + "Reset the following attributes to 0; BeaconLostCount, BeaconRxCount, + PacketMulticastRxCount, PacketMulticastTxCount, PacketUnicastRxCount, + PacketUnicastTxCount" + id: DGWIFI.S.C00 diff --git a/src/app/tests/suites/certification/Test_TC_BIND_2_1.yaml b/src/app/tests/suites/certification/Test_TC_BIND_2_1.yaml index ce54fc7d7fc75d..6c20a583032e76 100644 --- a/src/app/tests/suites/certification/Test_TC_BIND_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BIND_2_1.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: 117.2.1. [TC-BIND-2.1] Binding Cluster Attributes [DUT-Controller] +name: 117.2.1. [TC-BIND-2.1] Binding Cluster Attributes-Node [DUT-Controller] config: nodeId: 0x12344321 @@ -26,115 +26,66 @@ tests: disabled: true - - label: - "TH1 writes Binding cluster entries into DUT as per precondition TH1 - enables DUT as Controller" + - label: "Commission DUT to TH1s fabric" verification: | - ./chip-tool binding write binding '[{"node" : 1 , "cluster" : "0x0006" , "endpoint" : 1 }, { "group" : "0x0001" }]' 1 0 - [1652941260.571580][5157:5162] CHIP:DMG: StatusIB = - [1652941260.571625][5157:5162] CHIP:DMG: { - [1652941260.571670][5157:5162] CHIP:DMG: status = 0x00 (SUCCESS), - [1652941260.571720][5157:5162] CHIP:DMG: }, disabled: true - - label: "DUT and TH2 are commissioned" + - label: "Commission TH2 to TH1s fabric (Node ID = 2)" verification: | disabled: true - - label: "TH1 reads the Binding entries from DUT" + - label: "Commission TH3 to TH1s fabric (Node ID = 3)" verification: | - ./chip-tool binding read binding 1 0 - - [1653895089.593475][5416:5421] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_0000 DataVersion: 3570434286 - [1653895089.593580][5416:5421] CHIP:TOO: Binding: 2 entries - [1653895089.593781][5416:5421] CHIP:TOO: [1]: { - [1653895089.593839][5416:5421] CHIP:TOO: Node: 1 - [1653895089.593908][5416:5421] CHIP:TOO: Endpoint: 1 - [1653895089.593954][5416:5421] CHIP:TOO: Cluster: 6 - [1653895089.593987][5416:5421] CHIP:TOO: FabricIndex: 1 - [1653895089.594019][5416:5421] CHIP:TOO: } - [1653895089.594073][5416:5421] CHIP:TOO: [2]: { - [1653895089.594108][5416:5421] CHIP:TOO: Group: 1 - [1653895089.594152][5416:5421] CHIP:TOO: FabricIndex: 1 - [1653895089.594183][5416:5421] CHIP:TOO: } + disabled: true - label: - "If Node Field is readable, DUT sends On command for the Node and - Endpoint1" + "TH1 writes Binding entries into DUT on the endpoint with the On/Off + client with Entry 1: Node = 2 Cluster = 0x0006(onoff) Endpoint = 1 + Entry 2: Node = 3 Cluster = 0x0006(onoff) Endpoint = 2 Note: Node 2 + corresponds to TH2s Node ID Node 3 corresponds to TH3s Node ID" verification: | - ./chip-tool onoff on 1 1 - [1653045100.385974][2688:2693] CHIP:DMG: StatusIB = - [1653045100.386048][2688:2693] CHIP:DMG: { - [1653045100.386125][2688:2693] CHIP:DMG: status = 0x00 (SUCCESS), - [1653045100.386200][2688:2693] CHIP:DMG: }, disabled: true - - label: "DUT reads OnOff attribute on the respective Endpoint1" + - label: "TH1 enables DUT as Controller" verification: | - ./chip-tool onoff read on-off 1 1 - [1653045143.391779][2698:2703] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 4174089266 - [1653045143.393401][2698:2703] CHIP:TOO: OnOff: TRUE disabled: true - - label: - "If Group field is readable,DUT sends a multicast On command to Node - and Endpoint1" + - label: "DUT is triggered to send On command to its binding node entries" + PICS: OO.C.C01.Tx verification: | - ./chip-tool onoff on 0x0001 1 - - [1653045301.383221][2725:2730] CHIP:DMG: StatusIB = - [1653045301.383280][2725:2730] CHIP:DMG: { - [1653045301.383335][2725:2730] CHIP:DMG: status = 0x00 (SUCCESS), - [1653045301.383393][2725:2730] CHIP:DMG: }, + TH2 receives On command(Endpoint 1) TH3 receives On command(Endpoint 2) disabled: true - - label: "DUT reads OnOff attribute on the above Endpoint1" + - label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" + PICS: OO.C.C01.Tx verification: | - ./chip-tool onoff read on-off 1 1 - - [1653045340.155414][2734:2739] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 4174089266 - [1653045340.155481][2734:2739] CHIP:TOO: OnOff: TRUE + Verify that the value is set to On disabled: true - - label: "DUT removes entry from the Binding for the Node and EndPoint1" + - label: "TH1 removes second binding entry corresponding to TH3 from DUT" verification: | - ./chip-tool binding write binding [] 1 0 - [1653567762.886755][4839:4844] CHIP:DMG: StatusIB = - [1653567762.886829][4839:4844] CHIP:DMG: { - [1653567762.886888][4839:4844] CHIP:DMG: status = 0x00 (SUCCESS), - [1653567762.886966][4839:4844] CHIP:DMG: }, disabled: true - - label: - "If Node Field is readable, DUT sends On command for the above Node - and Endpoint 1" + - label: "DUT is triggered to send off command to its binding entries" + PICS: OO.C.C00.Tx verification: | - ./chip-tool onoff on 1 1 - - [1653567890.077539][4867:4872] CHIP:DMG: StatusIB = - [1653567890.077584][4867:4872] CHIP:DMG: { - [1653567890.077626][4867:4872] CHIP:DMG: status = 0x00 (SUCCESS), - [1653567890.077670][4867:4872] CHIP:DMG: }, + TH2 receives off command (Endpoint 1) TH3 does not receive off command (Endpoint 2) disabled: true - - label: "Read SupportedFabrics from the DUT." + - label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" + PICS: OO.C.C00.Tx verification: | - ./chip-tool operationalcredentials read supported-fabrics 1 0 - - [1653045735.101037][2767:2772] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0002 DataVersion: 38458521 - [1653045735.101214][2767:2772] CHIP:TOO: SupportedFabrics: 16 + Verify that the value is set to Off disabled: true - - label: - "TH1 writes Binding entries into DUT for all the clusters that support - Binding Run TC-BC-1.1 to make sure all mandatory attributes/commands - are implemented for all the binding clusters" + - label: "TH1 reads OnOff attribute from TH3 (Endpoint 2)" + PICS: OO.C.C01.Tx verification: | - + Verify that the value is set to On disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml b/src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml new file mode 100644 index 00000000000000..d84ec28c3e5ba6 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml @@ -0,0 +1,119 @@ +# 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: + 117.2.2. [TC-BIND-2.2] Binding Cluster Attributes-DUT handles its Groups + settings [DUT-Controller] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Factory Reset DUT" + verification: | + + disabled: true + + - label: "Commission DUT to TH1s fabric" + verification: | + + disabled: true + + - label: "TH1 enables DUT as Controller" + verification: | + + disabled: true + + - label: "Commission TH2 to TH1s fabric (Node ID = 2)" + verification: | + + disabled: true + + - label: + "DUT generates fabric-unique GroupID, GroupName, random key, EpochKey0 + and GroupKeySetID." + verification: | + ./chip-tool groupkeymanagement key-set-read 42 1 0 + disabled: true + + - label: + "DUT sends KeySetWrite command to GroupKeyManagement cluster to TH2 on + Endpoint 0." + PICS: GRPKEY.C.C00.Tx + verification: | + ./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42, + "groupKeySecurityPolicy": 0, "epochKey0": + "d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1": + "d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2": + "d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002 }' 1 0 + disabled: true + + - label: + "DUT sends AddGroup( Group Name and Group-ID) Command to TH2 on + Endpoint 1." + PICS: G.C.C00.Tx + verification: | + ./chip-tool groups add-group 0x0001 grp1 1 1 + disabled: true + + - label: + "DUT binds GroupId with GroupKeySetID in the GroupKeyMap attribute + list on GroupKeyManagement cluster to TH2 on Endpoint 0" + PICS: GRPKEY.C.A0000 + verification: | + ./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 1 0 + disabled: true + + - label: + "TH1 writes Binding entry into DUT with Entry 1: Group = The Group ID + in the AddGroup command sent from DUT to TH2" + verification: | + ./chip-tool binding write binding '[{"Group" : 0x0001 }]' 1 0 + disabled: true + + - label: + "DUT is triggered to send Multicast message On command to its binding + entries" + PICS: OO.C.C01.Tx + verification: | + ./chip-tool onoff on 0x0001 1 + disabled: true + + - label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" + PICS: OO.C.C01.Tx + verification: | + ./chip-tool onoff read on-off 1 1 + disabled: true + + - label: "TH1 removes all the binding entries from DUT" + verification: | + ./chip-tool binding write binding [] 1 0 + disabled: true + + - label: + "DUT is triggered to send Multicast message off command to its binding + entries" + PICS: OO.C.C00.Tx + verification: | + ./chip-tool onoff on 0x0001 1 + disabled: true + + - label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" + PICS: OO.C.C01.Tx + verification: | + ./chip-tool onoff read on-off 1 1 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml b/src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml new file mode 100644 index 00000000000000..0640a6570d9347 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml @@ -0,0 +1,121 @@ +# 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: + 117.2.3. [TC-BIND-2.3] Binding Cluster Attributes-TH1 enables DUT to handle + its Group settings [DUT-Controller] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Factory Reset DUT" + verification: | + + disabled: true + + - label: "Commission DUT to TH1s fabric" + verification: | + + disabled: true + + - label: "TH1 enables DUT as Controller" + verification: | + + disabled: true + + - label: "Commission TH2 to TH1s fabric (Node ID = 2)" + verification: | + + disabled: true + + - label: + "TH1 generates fabric-unique GroupID, GroupName, random key, EpochKey0 + and GroupKeySetID." + verification: | + As TH generates it is not required to verify + disabled: true + + - label: + "TH1 sends KeySetWrite command to GroupKeyManagement cluster to TH2 on + Endpoint 0." + verification: | + ./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42, + "groupKeySecurityPolicy": 0, "epochKey0": + "d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1": + "d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2": + "d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002 }' 1 0 + disabled: true + + - label: + "TH1 sends AddGroup( Group Name and Group-ID) Command to TH2 on + Endpoint 1." + verification: | + ./chip-tool groups add-group 0x0001 grp1 1 1 + disabled: true + + - label: + "TH1 binds GroupId with GroupKeySetID in the GroupKeyMap attribute + list on GroupKeyManagement cluster to TH2 on Endpoint 0" + verification: | + ./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 1 0 + disabled: true + + - label: + "TH1 writes Binding entry into DUT with Entry 1: Group = The Group ID + in the AddGroup command sent from TH1 to TH2" + verification: | + ./chip-tool binding write binding '[{"Group" : 0x0001 }]' 1 0 + disabled: true + + - label: "TH1 sets up group settings on DUT" + verification: | + + disabled: true + + - label: + "DUT is triggered to send Multicast message On command to its binding + entries" + PICS: OO.C.C01.Tx + verification: | + ./chip-tool onoff on 0x0001 1 + disabled: true + + - label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" + PICS: OO.C.C01.Tx + verification: | + ./chip-tool onoff read on-off 1 1 + disabled: true + + - label: "TH1 removes all the binding entries from DUT" + verification: | + ./chip-tool binding write binding [] 1 0 + disabled: true + + - label: + "DUT is triggered to send Multicast message off command to its binding + entries" + PICS: OO.C.C00.Tx + verification: | + ./chip-tool onoff on 0x0001 1 + disabled: true + + - label: "TH1 reads OnOff attribute from TH2 (Endpoint 1)" + PICS: OO.C.C01.Tx + verification: | + ./chip-tool onoff read on-off 1 1 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_1_11.yaml b/src/app/tests/suites/certification/Test_TC_DD_1_11.yaml index 1632e9ee09c4e3..7df34462215563 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_1_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_1_11.yaml @@ -26,6 +26,7 @@ tests: - label: "If (PICS_DT_CTRL_CONCATENATED_QR_CODE_1), scan larger QR code that will support the commissioning of all the devices" + PICS: MCORE.DD.CTRL_CONCATENATED_QR_CODE_1 verification: | '' ./chip-all-clusters-app @@ -60,6 +61,7 @@ tests: disabled: true - label: "If (PICS_DT_CTRL_CONCATENATED_QR_CODE_1)" + PICS: MCORE.DD.CTRL_CONCATENATED_QR_CODE_1 verification: | Vendor specific field testcase disabled: true @@ -67,6 +69,9 @@ tests: - label: "If !(PICS_DT_CTRL_CONCATENATED_QR_CODE_1) && PICS_DT_CTRL_CONCATENATED_QR_CODE_2" + PICS: + "!MCORE.DD.CTRL_CONCATENATED_QR_CODE_1 && + MCORE.DD.CTRL_CONCATENATED_QR_CODE_2" verification: | Vendor specific field testcase disabled: true @@ -74,6 +79,9 @@ tests: - label: "If !(PICS_DT_CTRL_CONCATENATED_QR_CODE_1) && !(PICS_DT_CTRL_CONCATENATED_QR_CODE_2)" + PICS: + "!MCORE.DD.CTRL_CONCATENATED_QR_CODE_1 && + !MCORE.DD.CTRL_CONCATENATED_QR_CODE_2" verification: | Vendor specific field testcase disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_1_12.yaml b/src/app/tests/suites/certification/Test_TC_DD_1_12.yaml index 3d7d87e912b5c3..9b46d0b310964f 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_1_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_1_12.yaml @@ -13,7 +13,9 @@ # limitations under the License. # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default -name: 3.1.12. [TC-DD-1.12] Onboarding Payload Verification - Custom Flow = 0 +name: + 3.1.12. [TC-DD-1.12] Onboarding Payload Verification - Custom Flow = 0 [DUT + - Commissionee] config: nodeId: 0x12344321 @@ -21,80 +23,49 @@ config: endpoint: 0 tests: - - label: "Scan the DUTs QR code using a QR code reader" + - label: "Scan the DUTs QR code using the TH." verification: | - 1. Get the QR code from the DUT - 16-MacBook-Pro:connectedhomeip liam$ ./out/lighting-app/chip-lighting-app - [1641836544619] [16162:695667] CHIP: [DL] _Init - [1641836544619] [16162:695667] CHIP: [DL] Device Configuration: - [1641836544619] [16162:695667] CHIP: [DL] Serial Number: TEST_SN - [1641836544619] [16162:695667] CHIP: [DL] Vendor Id: 9050 (0x235A) - [1641836544619] [16162:695667] CHIP: [DL] Product Id: 65279 (0xFEFF) - [1641836544619] [16162:695667] CHIP: [DL] Hardware Version: 0 - [1641836544619] [16162:695667] CHIP: [DL] Setup Pin Code: 20202021 - [1641836544619] [16162:695667] CHIP: [DL] Setup Discriminator: 3840 (0xF00) - [1641836544619] [16162:695667] CHIP: [DL] Manufacturing Date: (not set) - [1641836544619] [16162:695667] CHIP: [DL] Device Type: 257 (0x101) - [1641836544619] [16162:695667] CHIP: [SVR] SetupQRCode: [MT:YNJV7VSC00KA0648G00] - [1641836544619] [16162:695667] CHIP: [SVR] Copy/paste the below URL in a browser to see the QR Code: - [1641836544619] [16162:695667] CHIP: [SVR] https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00 - [1641836544619] [16162:695667] CHIP: [SVR] Manual pairing code: [34970112332] + 1. Run DUT. Example for DUT=all-clusters app + $ ./out/all-clusters-app/chip-all-clusters-app --version 0 --vendor-id 0xFFF1 --product-id 0x8001 --custom-flow 0 --capabilities 4 --discriminator 3840 --passcode 20202021 - - 2. Parse the DUT's QR Code using the TH commissioner: chip-tool - 16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload MT:YNJV7VSC00KA0648G00 - [1641836844939] [16334:698889] CHIP: [SPL] Parsing base38Representation: MT:YNJV7VSC00KA0648G00 - [1641836844940] [16334:698889] CHIP: [SPL] CommissioningFlow: 0 - [1641836844940] [16334:698889] CHIP: [SPL] VendorID: 9050 - [1641836844940] [16334:698889] CHIP: [SPL] Version: 0 - [1641836844940] [16334:698889] CHIP: [SPL] ProductID: 65279 - [1641836844940] [16334:698889] CHIP: [SPL] Discriminator: 3840 - [1641836844940] [16334:698889] CHIP: [SPL] SetUpPINCode: 20202021 - [1641836844940] [16334:698889] CHIP: [SPL] RendezvousInformation: 2 + 2. Parse onboarding payload using TH=chip-tool + $ ./out/chip-tool/chip-tool payload parse-setup-payload MT:-24J0AFN00KA0648G00 + [1651193251086] [15494:447566] CHIP: [SPL] Parsing base38Representation: MT:-24J0AFN00KA0648G00 + [1651193251087] [15494:447566] CHIP: [SPL] CommissioningFlow: 0 + [1651193251087] [15494:447566] CHIP: [SPL] VendorID: 65521 + [1651193251087] [15494:447566] CHIP: [SPL] Version: 0 + [1651193251087] [15494:447566] CHIP: [SPL] ProductID: 32769 + [1651193251087] [15494:447566] CHIP: [SPL] Discriminator: 3840 + [1651193251087] [15494:447566] CHIP: [SPL] SetUpPINCode: 20202021 + [1651193251087] [15494:447566] CHIP: [SPL] RendezvousInformation: 4 disabled: true - - label: "Verify Custom payload support" + - label: + "Verify that the TH presents the user with a pairing hint in the + CommissioningModeInitialStepsHint field of the DCL. Verify that the + CommissioningCustomFlow field is set to a value = 0" verification: | - 1. Custom Flow bit in the Onboarding Payload QR Code is set to 0 (Standard Flow) - - 16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload MT:YNJV7VSC00KA0648G00 - [1641836844939] [16334:698889] CHIP: [SPL] Parsing base38Representation: MT:YNJV7VSC00KA0648G00 - [1641836844940] [16334:698889] CHIP: [SPL] CommissioningFlow: 0 - [1641836844940] [16334:698889] CHIP: [SPL] VendorID: 9050 - [1641836844940] [16334:698889] CHIP: [SPL] Version: 0 - [1641836844940] [16334:698889] CHIP: [SPL] ProductID: 65279 - [1641836844940] [16334:698889] CHIP: [SPL] Discriminator: 3840 - [1641836844940] [16334:698889] CHIP: [SPL] SetUpPINCode: 20202021 - [1641836844940] [16334:698889] CHIP: [SPL] RendezvousInformation: 2 + 1. Verify CommissioningCustomFlow=0 + 2. Verify CommissioningModeInitialStepsHint contains a valid, non-zero integer = 1 for Standard Commissioning flow disabled: true - label: - "if custom flow bit in step 2 is equal to 0 (Standard flow), reboot - the device" + "If CommissioningCustomFlow field in Step 2 = 0 (Standard + Commissioning Flow), reboot the DUT device" verification: | - 1. Reboot the DUT - 2. Verfy that the DUT enters commissioningmode upon power up + 1. Verify DUT is advertising in commissioning mode. On DUT, - [1641836544690] [16162:695667] CHIP: [DL] Device Configuration: - [1641836544690] [16162:695667] CHIP: [DL] Serial Number: TEST_SN - [1641836544690] [16162:695667] CHIP: [DL] Vendor Id: 9050 (0x235A) - [1641836544690] [16162:695667] CHIP: [DL] Product Id: 65279 (0xFEFF) - [1641836544690] [16162:695667] CHIP: [DL] Hardware Version: 0 - [1641836544690] [16162:695667] CHIP: [DL] Setup Pin Code: 20202021 - [1641836544690] [16162:695667] CHIP: [DL] Setup Discriminator: 3840 (0xF00) - [1641836544690] [16162:695667] CHIP: [DL] Manufacturing Date: (not set) - [1641836544690] [16162:695667] CHIP: [DL] Device Type: 257 (0x101) - [1641836544690] [16162:695667] CHIP: [SVR] SetupQRCode: [MT:YNJV7VSC00KA0648G00] - [1641836544690] [16162:695667] CHIP: [SVR] Copy/paste the below URL in a browser to see the QR Code: - [1641836544690] [16162:695667] CHIP: [SVR] https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00 - [1641836544690] [16162:695667] CHIP: [SVR] Manual pairing code: [34970112332] - [1641836544690] [16162:695684] CHIP: [DL] _OnPlatformEvent - [1641836544690] [16162:695684] CHIP: [DIS] DNS-SD StartServer mode=0 - [1641836544690] [16162:695684] CHIP: [DIS] Failed to find a valid admin pairing. Node ID unknown - [1641836544690] [16162:695684] CHIP: [DIS] Start dns-sd server - no current nodeId - [1641836544690] [16162:695684] CHIP: [DL] Using wifi MAC for hostname - [1641836544690] [16162:695684] CHIP: [DIS] Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/15 - [1641836544690] [16162:695684] CHIP: [DL] Publishing service D920ECCFF905179B on port 5540 with type: _matterc._udp,_V9050,_T257,_S15,_L3840,_CM on interface id: 0 - [1641836544690] [16162:695684] CHIP: [DIS] Scheduling Discovery timeout in secs=900 - [1641836545360] [16162:695684] CHIP: [DL] Mdns: OnRegister name: D920ECCFF905179B, type: _matterc._udp., domain: local., flags: 2 + $ ./out/chip-tool/chip-tool discover commissionables + [1651192893436] [15304:442604] CHIP: [DL] Mdns: OnNewAddress interface: 24 ip:fe80::dea6:32ff:fe8d:6e32 + [1651192893436] [15304:442604] CHIP: [DIS] Vendor ID: 65521 + [1651192893436] [15304:442604] CHIP: [DIS] Product ID: 32769 + [1651192893436] [15304:442604] CHIP: [DIS] Long Discriminator: 3840 + [1651192893436] [15304:442604] CHIP: [DIS] Pairing Hint: 33 + [1651192893436] [15304:442604] CHIP: [DIS] Hostname: DCA6328D6E320000 + [1651192893436] [15304:442604] CHIP: [DIS] Instance Name: 914762134DA8E7D1 + [1651192893436] [15304:442604] CHIP: [DIS] IP Address #1: fe80::dea6:32ff:fe8d:6e32 + [1651192893436] [15304:442604] CHIP: [DIS] Port: 5540 + [1651192893436] [15304:442604] CHIP: [DIS] Commissioning Mode: 1 + [1651192893436] [15304:442604] CHIP: [DIS] Mrp Interval idle: 5000 ms + [1651192893436] [15304:442604] CHIP: [DIS] Mrp Interval active: 300 ms disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_1_5.yaml b/src/app/tests/suites/certification/Test_TC_DD_1_5.yaml index c4560af4571d61..aed1b7b83d150b 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_1_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_1_5.yaml @@ -24,45 +24,46 @@ config: tests: - label: - "If (PICS_SCAN_NFC), Keep the DUT in packaging and bring in TH NFC - scanner close to the DUT packaging." + "Keep the DUT in packaging and bring in TH NFC scanner close to the + DUT packaging." + PICS: MCORE.DD.SCAN_NFC verification: | Vendor specific field verification disabled: true - label: - "If (PICS_SCAN_NFC), Unpack DUT from its packaging, make sure DUT is - not powered on and do not put the DUT in pairing mode. Bring in TH NFC - scanner close to the DUTs NFC tag" + "Unpack DUT from its packaging, make sure DUT is not powered on and do + not put the DUT in pairing mode. Bring in TH NFC scanner close to the + DUTs NFC tag" + PICS: MCORE.DD.SCAN_NFC verification: | Vendor specific field verification disabled: true - label: - "If (PICS_PHYSICAL_TEMPERING, PICS_SCAN_NFC) Power on DUT and do not - put the DUT in pairing mode. Bring in TH NFC scanner close to the DUTs - NFC tag" + "Power on DUT and do not put the DUT in pairing mode. Bring in TH NFC + scanner close to the DUTs NFC tag" + PICS: MCORE.DD.PHYSICAL_TAMPERING && MCORE.DD.SCAN_NFC verification: | Vendor specific field verification disabled: true - - label: - "If (PICS_PHYSICAL_TEMPERING) DUT must have an explicit trigger of the - the NFC pairing mode" + - label: "DUT must have an explicit trigger of the the NFC pairing mode" + PICS: MCORE.DD.PHYSICAL_TAMPERING verification: | Vendor specific field verification disabled: true - label: - "If (PICS_PHYSICAL_TEMPERING, PICS_SCAN_NFC) Power on DUT and put the - DUT in pairing mode. Bring in TH NFC scanner close to NFC tag" + "Power on DUT and put the DUT in pairing mode. Bring in TH NFC scanner + close to NFC tag" + PICS: MCORE.DD.PHYSICAL_TAMPERING && MCORE.DD.SCAN_NFC verification: | Vendor specific field verification disabled: true - - label: - "If !(PICS_PHYSICAL_TEMPERING, PICS_SCAN_NFC) Power on DUT. Bring in - NFC scanner close to NFC tag" + - label: "Power on DUT. Bring in NFC scanner close to NFC tag" + PICS: MCORE.DD.PHYSICAL_TAMPERING && MCORE.DD.SCAN_NFC verification: | Vendor specific field verification disabled: true @@ -91,8 +92,8 @@ tests: Vendor specific field verification disabled: true - - label: - "If (PICS_SCAN_NFC), Using TH NFC scanner - read NFC tag Reader type" + - label: "Using TH NFC scanner - read NFC tag Reader type" + PICS: MCORE.DD.SCAN_NFC verification: | Vendor specific field verification disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_1_8.yaml b/src/app/tests/suites/certification/Test_TC_DD_1_8.yaml index 7005b2279f7a3d..ad533c472d7304 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_1_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_1_8.yaml @@ -23,29 +23,44 @@ config: endpoint: 0 tests: - - label: "If (PICS_SCAN_QR_CODE), Scan the TH Devices QR code using DUT" + - label: "Scan the TH Devices QR code using DUT" + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Get the QR code from the TH - ubuntu@matter-7:~/Apr18_dut/connectedhomeip/examples/all-clusters-app/linux/out/all-clusters-app$ sudo ./chip-all-clusters-app --wifi --discriminator 3841 + ubuntu@matter-7:~/Apr18_dut/connectedhomeip/examples/all-clusters-app/linux/out/all-clusters-app$ sudo ./chip-all-clusters-app --wifi + + [13293:13293] CHIP:DL: Device Configuration: + [1653306603.740569][13293:13293] CHIP:DL: Serial Number: TEST_SN + [1653306603.740607][13293:13293] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1653306603.740644][13293:13293] CHIP:DL: Product Id: 32769 (0x8001) + [1653306603.740676][13293:13293] CHIP:DL: Hardware Version: 0 + [1653306603.740700][13293:13293] CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021 + [1653306603.740722][13293:13293] CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00) + [1653306603.740752][13293:13293] CHIP:DL: Manufacturing Date: (not set) + [1653306603.740777][13293:13293] CHIP:DL: Device Type: 65535 (0xFFFF) + [1653306603.740798][13293:13293] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== + [1653306603.740846][13293:13293] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1653306603.740877][13293:13293] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1653306603.740898][13293:13293] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1653306603.740929][13293:13293] CHIP:SVR: Manual pairing code: [34970112332] + [1653306603.740951][13293:13293] CHIP:-: ==== Onboarding payload for Custom Commissioning Flows ==== + [1653306603.741000][13293:13293] CHIP:SVR: SetupQRCode: [MT:-24J0YXE00KA0648G00] + [1653306603.741028][13293:13293] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1653306603.741049][13293:13293] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0YXE00KA0648G00 + [1653306603.741081][13293:13293] CHIP:SVR: Manual pairing code: [749701123365521327694] - CHIP:SPT: PASE PBKDF iterations set to 1000 - CHIP:SPT: LinuxCommissionableDataProvider didn't get a PASE salt, generating one. - CHIP:DL: Device Configuration: - CHIP:DL: Serial Number: TEST_SN - CHIP:DL: Vendor Id: 65521 (0xFFF1) - CHIP:DL: Product Id: 32769 (0x8001) - CHIP:DL: Hardware Version: 0 - CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021 CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3841 (0xF01) CHIP:DL: Manufacturing Date: (not set) CHIP:DL: Device Type: 65535 (0xFFFF) CHIP:SVR: SetupQRCode: [MT:-24J0CEK01KA0648G00] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0CEK01KA0648G00 + CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0CEK01KA0648G00 CHIP:SVR: Manual pairing code: [34970112332] CHIP:SVR: SetupQRCode: [MT:-24J048N01KA0648G00] - CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J048N01KA0648G00 + CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J048N01KA0648G00 + + 2. Parse the DUT's QR Code using the TH commissioner: chip-tool ubuntu@matter-7:~/Apr18_cntrl/connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool payload parse-setup-payload MT:-24J048N01KA0648G00 @@ -63,6 +78,14 @@ tests: "Using the DUT, parse the THs QR code to onboard the TH Device onto the Matter network." verification: | - 1. With chip-tool as DUT, observe this in the logs to signal the end of parsing when commissioning the TH - [1651190089249] [14497:411165] CHIP: [CTL] Successfully finished commissioning step 'ReadCommissioningInfo' + ./chip-tool pairing code 1 MT:-24J042C00KA0648G00 + + CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + CHIP:CTL: Received CommissioningComplete response, errorCode=0 + CHIP:CTL: Successfully finished commissioning step 'SendComplete' + CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + CHIP:CTL: Performing next commissioning step 'Cleanup' + CHIP:CTL: Successfully finished commissioning step 'Cleanup' + CHIP:TOO: Device commissioning completed with success + CHIP:DMG: ICR moving to [AwaitingDe] disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DD_2_1.yaml index 97ded29eb33b0e..d5e124bd904ae6 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_2_1.yaml @@ -13,7 +13,8 @@ # limitations under the License. # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default -name: 3.2.1. [TC-DD-2.1] Announcement by device verification +name: + 3.2.1. [TC-DD-2.1] Announcement by Device Verification [DUT - Commissionee] config: nodeId: 0x12344321 @@ -26,67 +27,131 @@ tests: commissioning process in any order of priority on all of the networking technologies that are supported by both the TH and the DUT" verification: | - sudo ./chip-all-clusters-app --wifi + TH selects the DUT"s capability bitmask and start the commissiong process accordingly disabled: true - label: - "If (PICS_CHIP_DEV) then If !(PICS_CHIP_DEV) then If (PICS_DEV_LOCK) - then If (PICS_DEV_BARRIER) then" + "If (MCORE.DD.CHIP_DEV) then If !(MCORE.DD.CHIP_DEV) then If + (MCORE.DD.DEV_LOCK) then If (MCORE.DD.DEV_BARRIER) then" + PICS: + MCORE.DD.CHIP_DEV && !(MCORE.DD.CHIP_DEV) && MCORE.DD.DEV_LOCK && + MCORE.DD.DEV_BARRIER verification: | - + 1. Discover commissionables (example for over mDNS only) + ./chip-tool discover commissionables + + If (PICS_CHIP_DEV) TH should discover the DUT else it should not + If !(PICS_CHIP_DEV) instruct DUT to start Advertising and scan again for commissionale devices using TH + + Verifiy on TH: + [1651223092.853229][3848:3853] CHIP:DL: Avahi resolve found + [1651223092.853353][3848:3853] CHIP:DIS: Vendor ID: 65521 + [1651223092.853405][3848:3853] CHIP:DIS: Product ID: 32769 + [1651223092.853448][3848:3853] CHIP:DIS: Long Discriminator: 3840 + [1651223092.853491][3848:3853] CHIP:DIS: Pairing Hint: 33 + [1651223092.853532][3848:3853] CHIP:DIS: Hostname: DCA632BAB3F60000 + [1651223092.853573][3848:3853] CHIP:DIS: Instance Name: 233CD1A34EA8F023 + [1651223092.853622][3848:3853] CHIP:DIS: IP Address #1: fe80::42:86ff:fe5f:fe7b + [1651223092.853664][3848:3853] CHIP:DIS: Port: 5540 + [1651223092.853705][3848:3853] CHIP:DIS: Commissioning Mode: 1 disabled: true - - label: - "if (PICS_BLE) TH does not respond to DUT and DUT keeps sending ADVs" + - label: "TH does not respond to DUT and DUT keeps sending ADVs" + PICS: MCORE.DD.BLE verification: | - + [5855][P][DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 disabled: true - - label: - "if (PICS_BLE) TH does not respond to DUT and DUT keeps sending ADVs" + - label: "TH does not respond to DUT and DUT keeps sending ADVs" + PICS: MCORE.DD.BLE verification: | - + This step can be verified using specific tool (Try NRF Connect OR HCIDump) disabled: true - - label: - "if (PICS_BLE) TH does not respond to DUT and DUT keeps sending ADVs" + - label: "TH does not respond to DUT and DUT keeps sending ADVs" + PICS: MCORE.DD.BLE verification: | - Out of scope for TE8 + This step can be verified using specific tool (Try NRF Connect OR HCIDump) + ->For T0 and 30s we have to get advertisement range between 20ms to 60ms + ->For 30s and 15mins we have to get advertisement range between 150ms to 1200ms + + I: 3242 [DL]CHIPoBLE advertising started + I: 3279 [DL]NFC Tag emulation started + I: 33245 [DL]CHIPoBLE advertising mode changed to slow + D: 901346 [DIS]OnExpiration callback for cleared session + D: 901351 [DIS]Extended discovery timeout cancelled + I: 903097 [SVR]Closing pairing window + D: 903100 [IN]SecureSession Released 0x20002c00 Type:1 LSID:27704 + I: 903106 [DIS]Updating services using commissioning mode 0 + D: 903111 [DL]Using Thread extended MAC for hostname. + D: 903116 [DL]Using Thread extended MAC for hostname. + I: 903138 [DIS]Advertise commission parameter vendorID=65521 productID=32784 di5 + E: 903147 [DIS]Failed to advertise extended commissionable node: Error CHIP:0x03 + + + After 900s that is 15min advertisement stops + + D: 903154 [DIS]Scheduling extended discovery timeout in 900s + E: 903160 [DIS]Failed to finalize service update: Error CHIP:0x0000001C + D: 903166 [DL]CHIPoBLE advertising set to off + I: 903171 [DL]CHIPoBLE advertising stopped + I: 903174 [DL]NFC Tag emulation stopped disabled: true - - label: - "if (PICS_BLE) TH does not respond to DUT and sends a power cycle - command to DUT" + - label: "TH does not respond to DUT. User power cycles the DUT" + PICS: MCORE.DD.BLE verification: | - Out of scope for TE8 + sudo reboot disabled: true - label: - "if (PICS_BLE) TH does not respond to DUT and DUT keeps sending ADVs. - TH waits at least 15 minutes" + "TH does not respond to DUT and DUT keeps sending ADVs. TH waits at + least 15 minutes" + PICS: MCORE.DD.BLE verification: | - Out of scope for TE8 + Check timestamp, ADV stop after 15 mins + + D: 903154 [DIS]Scheduling extended discovery timeout in 900s + E: 903160 [DIS]Failed to finalize service update: Error CHIP:0x0000001C disabled: true - - label: "if (PICS_WIFI) TH scans and finds the DUT SSID" + - label: "TH scans and finds the DUT SSID" + PICS: MCORE.DD.WIFI verification: | - Out of scope for TE8 + BLOCKED: SoftAP commissioning not currently supported on TH=chip-tool disabled: true - label: - "if (PICS_WIFI) TH scans and finds the DUT SSID TH sends to DUT a 1st - power cycle command (or reset manually) TH sends to DUT a 2nd power - cycle command (or reset manually)" + "TH scans and finds the DUT SSID TH sends to DUT a 1st power cycle + command (or reset manually) TH sends to DUT a 2nd power cycle command + (or reset manually)" + PICS: MCORE.DD.WIFI verification: | - Out of scope for TE8 + BLOCKED: SoftAP commissioning not currently supported on TH=chip-tool disabled: true - - label: "if (PICS_WIFI) & (PICS_IE) TH scans and finds the DUT SSID" + - label: "TH scans and finds the DUT SSID" + PICS: MCORE.DD.WIFI && MCORE.DD.IE verification: | - Out of scope for TE8 + BLOCKED: SoftAP commissioning not currently supported on TH=chip-tool disabled: true - label: "TH is connected to the DUT through an Ethernet connection" verification: | - Out of scope for TE8 + $ ./out/chip-tool/chip-tool discover commissionables + [1651256405894] [18453:593886] CHIP: [DL] Mdns: OnNewAddress interface: 7 ip:192.168.1.2 + [1651256405894] [18453:593886] CHIP: [DIS] Vendor ID: 65521 + [1651256405894] [18453:593886] CHIP: [DIS] Product ID: 32769 + [1651256405894] [18453:593886] CHIP: [DIS] Long Discriminator: 3840 + [1651256405894] [18453:593886] CHIP: [DIS] Pairing Hint: 33 + [1651256405894] [18453:593886] CHIP: [DIS] Hostname: DCA6328D2B9F0000 + [1651256405894] [18453:593886] CHIP: [DIS] Instance Name: 8FFEE04E82830E26 + [1651256405894] [18453:593886] CHIP: [DIS] IP Address #1: fd54:23a1:c6de:4637:dea6:32ff:fe8d:2b9f + [1651256405894] [18453:593886] CHIP: [DIS] IP Address #2: fe80::dea6:32ff:fe8d:2b9f + [1651256405894] [18453:593886] CHIP: [DIS] IP Address #3: fe80::dea6:32ff:fe8d:2ba0 + [1651256405894] [18453:593886] CHIP: [DIS] IP Address #4: 192.168.1.2 + [1651256405894] [18453:593886] CHIP: [DIS] Port: 5540 + [1651256405894] [18453:593886] CHIP: [DIS] Commissioning Mode: 1 + [1651256405894] [18453:593886] CHIP: [DIS] Mrp Interval idle: 5000 ms + [1651256405894] [18453:593886] CHIP: [DIS] Mrp Interval active: 300 ms disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DD_2_2.yaml index e98611f7b38e63..8812465160b3c8 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_2_2.yaml @@ -26,6 +26,7 @@ tests: - label: "If (PICS_BLE) TH starts matter announcement procedure using BLE transport" + PICS: MCORE.DD.BLE verification: | $ ./out/all-clusters-app/chip-all-clusters-app --wifi --discriminator 3841 @@ -50,6 +51,7 @@ tests: "If (PICS_BLE) DUT starts BLE scan across all three advertising channels with a sufficient dwell time, interval, and overall duration of scan" + PICS: MCORE.DD.BLE verification: | 1. Discover commissionables over BLE using DUT=chip-tool pairing @@ -107,6 +109,7 @@ tests: disabled: true - label: "If (PICS_BLE) DUT starts scan in background using BLE transport" + PICS: MCORE.DD.BLE verification: | 1. Discover commissionables over BLE using DUT=chip-tool pairing command @@ -164,6 +167,7 @@ tests: disabled: true - label: "If (PICS_BLE) TH starts matter announcement using BLE transport" + PICS: MCORE.DD.BLE verification: | $ ./out/all-clusters-app/chip-all-clusters-app --wifi --discriminator 3841 @@ -187,6 +191,7 @@ tests: - label: "If (PICS_WIFI) TH starts SoftAP and begin matter announcement procedure" + PICS: MCORE.DD.WIFI verification: | BLOCKED: SoftAP commissioning not currently supported on DUT=chip-tool disabled: true @@ -195,11 +200,13 @@ tests: "If (PICS_WIFI) DUT starts Wi-Fi scan of all 2.4 GHz Wi-Fi channels allowed per its operational regulatory domain (channels 1, 6, and 11 are preferred)" + PICS: MCORE.DD.WIFI verification: | BLOCKED: SoftAP commissioning not currently supported on DUT=chip-tool disabled: true - label: "If (PICS_WIFI) DUT scans using Wi-Fi in background" + PICS: MCORE.DD.WIFI verification: | BLOCKED: SoftAP commissioning not currently supported on DUT=chip-tool disabled: true @@ -207,6 +214,7 @@ tests: - label: "If (PICS_WIFI) TH starts SoftAP and begin matter announcement procedure" + PICS: MCORE.DD.WIFI verification: | BLOCKED: SoftAP commissioning not currently supported on DUT=chip-tool disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_1.yaml index 13f0ef81e0eaa9..18c6edcbc079f2 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_1.yaml @@ -246,6 +246,7 @@ tests: - label: "If (PICS_WIFI) or (PICS_THREAD), Commissioner SHALL configure regulatory information in the Commissionee." + PICS: MCORE.DD.WIRELESS verification: | Verify on TH Log: diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_11.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_11.yaml index e383a5cac0b158..ed7dc92fe73485 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_11.yaml @@ -24,10 +24,11 @@ config: tests: - label: - "If (PICS_DT_BLE), Standard Commissioning Flow: Use a Commissionee - with a QR code that has the Custom Flow field set to 0 and supports - BLE for its Discovery Capability. Ensure the Version bit string - follows the current Matter spec. documentation." + "Standard Commissioning Flow: Use a Commissionee with a QR code that + has the Custom Flow field set to 0 and supports BLE for its Discovery + Capability. Ensure the Version bit string follows the current Matter + spec. documentation." + PICS: MCORE.DD.DT_BLE verification: | $ ./out/ble/all-clusters-app/chip-all-clusters-app --capabilities 2 ... @@ -43,7 +44,7 @@ tests: [1651101335.733693][22353:22353] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== [1651101335.734598][22353:22353] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] [1651101335.735182][22353:22353] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - [1651101335.735618][22353:22353] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1651101335.735618][22353:22353] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 ubuntu@ubuntu:~/apps$ ./chip-tool payload parse-setup-payload MT:-24J0YXE00KA0648G00 @@ -57,17 +58,17 @@ tests: [1653562354.037378][4312:4312] CHIP:SPL: Passcode: 20202021 disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - label: - "If (PICS_DT_BLE), Using the DUT, parse the THs QR code and follow any - steps needed for the Commissioner/Commissionee to complete the - commissioning process using BLE" + "Using the DUT, parse the THs QR code and follow any steps needed for + the Commissioner/Commissionee to complete the commissioning process + using BLE" + PICS: MCORE.DD.DT_BLE verification: | TH Commissionee: @@ -86,11 +87,12 @@ tests: disabled: true - label: - "If (PICS_DT_IP), Standard Commissioning Flow: Use a Commissionee with - a QR code that has the Custom Flow field set to 0, supports IP Network - for its Discovery Capability and is already on the same IP network as - the DUT commissioner. Ensure the Version bit string follows the - current Matter spec. documentation." + "Standard Commissioning Flow: Use a Commissionee with a QR code that + has the Custom Flow field set to 0, supports IP Network for its + Discovery Capability and is already on the same IP network as the DUT + commissioner. Ensure the Version bit string follows the current Matter + spec. documentation." + PICS: MCORE.DD.DT_IP verification: | $ ./out/all-clusters-app/chip-all-clusters-app --custom-flow 0 --capabilities 4 @@ -119,17 +121,17 @@ tests: ubuntu@ubuntu:~/may30_cntrl/connectedhomeip/examples/chip-tool/out/debug$ disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - label: - "If (PICS_DT_IP), Using the DUT, parse the THs QR code and follow any - steps needed for the Commissioner/Commissionee to complete the - commissioning process using IP Network" + "Using the DUT, parse the THs QR code and follow any steps needed for + the Commissioner/Commissionee to complete the commissioning process + using IP Network" + PICS: MCORE.DD.DT_IP verification: | TH Commissionee: @@ -148,25 +150,26 @@ tests: disabled: true - label: - "If (PICS_DT_SOFTAP), Standard Commissioning Flow: Use a Commissionee - with a QR code that has the Custom Flow field set to 0 and supports - SoftAP for its Discovery Capability. Ensure the Version bit string - follows the current Matter spec. documentation." + "Standard Commissioning Flow: Use a Commissionee with a QR code that + has the Custom Flow field set to 0 and supports SoftAP for its + Discovery Capability. Ensure the Version bit string follows the + current Matter spec. documentation." + PICS: MCORE.DD.DT_SOFTAP verification: | BLOCKED: SoftAP commissioning not currently supported disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - label: - "If (PICS_DT_SOFTAP), Using the DUT, parse the THs QR code and follow - any steps needed for the Commissioner/Commissionee to complete the - commissioning process using SoftAP" + "Using the DUT, parse the THs QR code and follow any steps needed for + the Commissioner/Commissionee to complete the commissioning process + using SoftAP" + PICS: MCORE.DD.DT_SOFTAP verification: | BLOCKED: SoftAP commissioning not currently supported disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_12.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_12.yaml index c2410ba0ab6b92..47a5969efc6af6 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_12.yaml @@ -24,13 +24,14 @@ config: tests: - label: - "If (PICS_DT_BLE), User-Intent Commissioning Flow: Use a Commissionee - with a QR code that has the Custom Flow field set to 1 and supports - BLE for its Discovery Capability. Commissionee is NOT in commissioning - mode. Ensure the Version bit string follows the current Matter spec. + "User-Intent Commissioning Flow: Use a Commissionee with a QR code + that has the Custom Flow field set to 1 and supports BLE for its + Discovery Capability. Commissionee is NOT in commissioning mode. + Ensure the Version bit string follows the current Matter spec. documentation." + PICS: MCORE.DD.DT_BLE verification: | - $ ./out/ble/all-clusters-app/chip-all-clusters-app --capabilities 1 --custom-flow 1 + $ ./out/ble/all-clusters-app/chip-all-clusters-app --capabilities 2 --custom-flow 1 ... [1651101726.415743][23212:23212] CHIP:DL: Device Configuration: [1651101726.415810][23212:23212] CHIP:DL: Serial Number: TEST_SN @@ -56,16 +57,14 @@ tests: [1653992397.769577][2532:2532] CHIP:SPL: Passcode: 20202021 disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - - label: - "If (PICS_DT_BLE), DUT parses QR code and DUT presents User with a - pairing hint." + - label: "DUT parses QR code and DUT presents User with a pairing hint." + PICS: MCORE.DD.DT_BLE verification: | 1. Follow the steps given in the TH's pairing hint to allow for commissioning to happen. TH should not be commissioned until these steps were followed and indicate DUT can proceed with commissioning the TH to the Matter network @@ -77,9 +76,10 @@ tests: disabled: true - label: - "If (PICS_DT_BLE), Follow any steps from the resources provided by the - pairing hint for putting the TH Commissionee into commissioning mode - and to complete the commissioning process using BLE." + "Follow any steps from the resources provided by the pairing hint for + putting the TH Commissionee into commissioning mode and to complete + the commissioning process using BLE." + PICS: MCORE.DD.DT_BLE verification: | TH Commissionee: [1651101988.943015][23212:23212] CHIP:SVR: Commissioning completed successfully @@ -100,11 +100,12 @@ tests: disabled: true - label: - "If (PICS_DT_IP), User-Intent Commissioning Flow: Use a Commissionee - with a QR code that has the Custom Flow field set to 1 and supporttwos - IP Nerk for its Discovery Capability. Commissionee is NOT in - commissioning mode. Ensure the Version bit string follows the current - Matter spec. documentation." + "User-Intent Commissioning Flow: Use a Commissionee with a QR code + that has the Custom Flow field set to 1 and supports IP Network for + its Discovery Capability. Commissionee is NOT in commissioning mode. + Ensure the Version bit string follows the current Matter spec. + documentation." + PICS: MCORE.DD.DT_IP verification: | $ ./out/all-clusters-app/chip-all-clusters-app --custom-flow 1 --capabilities 4 [1651105004.718882][27096:27096] CHIP:DL: Device Configuration: @@ -131,24 +132,23 @@ tests: ubuntu@ubuntu:~/may30_cntrl/connectedhomeip/examples/chip-tool/out/debug$ disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - - label: - "If (PICS_DT_IP), DUT parses QR code and DUT presents User with a - pairing hint." + - label: "DUT parses QR code and DUT presents User with a pairing hint." + PICS: MCORE.DD.DT_IP verification: | 1. Follow the steps given in the TH's pairing hint to allow for commissioning to happen. TH should not be commissioned until these steps were followed and indicate DUT can proceed with commissioning the TH to the Matter network disabled: true - label: - "If (PICS_DT_IP), Follow any steps from the resources provided by the - pairing hint for putting the TH Commissionee into commissioning mode - and to complete the commissioning process using IP Network." + "Follow any steps from the resources provided by the pairing hint for + putting the TH Commissionee into commissioning mode and to complete + the commissioning process using IP Network." + PICS: MCORE.DD.DT_IP verification: | TH all-clusters-app: [1651105158.168056][27096:27096] CHIP:SVR: Commissioning completed successfully @@ -165,33 +165,33 @@ tests: disabled: true - label: - "If (PICS_DT_SOFTAP), User-Intent Commissioning Flow: Use a - Commissionee with a QR code that has the Custom Flow field set to 1 - and supports SoftAP for its Discovery Capability. Commissionee is NOT - in commissioning mode. Ensure the Version bit string follows the - current Matter spec. documentation." + "User-Intent Commissioning Flow: Use a Commissionee with a QR code + that has the Custom Flow field set to 1 and supports SoftAP for its + Discovery Capability. Commissionee is NOT in commissioning mode. + Ensure the Version bit string follows the current Matter spec. + documentation." + PICS: MCORE.DD.DT_SOFTAP verification: | BLOCKED: SoftAP commissioning not currently supported disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - - label: - "If (PICS_DT_SOFTAP), DUT parses QR code and DUT presents User with a - pairing hint." + - label: "DUT parses QR code and DUT presents User with a pairing hint." + PICS: MCORE.DD.DT_SOFTAP verification: | 1. Follow the steps given in the TH's pairing hint to allow for commissioning to happen. TH should not be commissioned until these steps were followed and indicate DUT can proceed with commissioning the TH to the Matter network disabled: true - label: - "If (PICS_DT_SOFTAP), Follow any steps from the resources provided by - the pairing hint for putting the TH Commissionee into commissioning - mode and to complete the commissioning process using SoftAP." + "Follow any steps from the resources provided by the pairing hint for + putting the TH Commissionee into commissioning mode and to complete + the commissioning process using SoftAP." + PICS: MCORE.DD.DT_SOFTAP verification: | BLOCKED: SoftAP commissioning not currently supported disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_13.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_13.yaml index 466ab754ec353b..b1e3b486e9e2eb 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_13.yaml @@ -24,11 +24,11 @@ config: tests: - label: - "If (PICS_DT_BLE), Custom Commissioning Flow: Use a Commissionee with - a QR code that has the Custom Flow field set to 2 and supports BLE for - its Discovery Capability. Commissionee is NOT in commissioning mode. - Ensure the Version bit string follows the current Matter spec. - documentation." + "Custom Commissioning Flow: Use a Commissionee with a QR code that has + the Custom Flow field set to 2 and supports BLE for its Discovery + Capability. Commissionee is NOT in commissioning mode. Ensure the + Version bit string follows the current Matter spec. documentation." + PICS: MCORE.DD.DT_BLE verification: | $ ./out/ble/all-clusters-app/chip-all-clusters-app --custom-flow 2 --capabilities 2 @@ -55,25 +55,26 @@ tests: ubuntu@ubuntu:~/may30_cntrl/connectedhomeip/examples/chip-tool/out/debug$ disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - label: - "If (PICS_DT_BLE), DUT parses QR code and DUT presents User with a URL - in the pairing hint." + "DUT parses QR code and DUT presents User with a URL in the pairing + hint." + PICS: MCORE.DD.DT_BLE verification: | 1. Follow the steps given in the TH's URL to allow for commissioning to happen. TH should not be commissioned until these steps were followed and indicate DUT can proceed with commissioning the TH to the Matter network disabled: true - label: - "If (PICS_DT_BLE), Follow any steps from the URL provided by the - pairing hint for putting the TH Commissionee into commissioning mode, - for triggering the DUT Commissioner for commissioning, and for - completing the commissioning process using BLE." + "Follow any steps from the URL provided by the pairing hint for + putting the TH Commissionee into commissioning mode, for triggering + the DUT Commissioner for commissioning, and for completing the + commissioning process using BLE." + PICS: MCORE.DD.DT_BLE verification: | TH all-clusters-app: [1651104141.533461][26507:26507] CHIP:SVR: Commissioning completed successfully @@ -90,11 +91,12 @@ tests: disabled: true - label: - "If (PICS_DT_IP), Custom Commissioning Flow: Use a Commissionee with a - QR code that has the Custom Flow field set to 2 and supports IP - Network for its Discovery Capability. Commissionee is NOT in - commissioning mode. Ensure the Version bit string follows the current - Matter spec. documentation." + "Custom Commissioning Flow: Use a Commissionee with a QR code that has + the Custom Flow field set to 2 and supports IP Network for its + Discovery Capability. Commissionee is NOT in commissioning mode. + Ensure the Version bit string follows the current Matter spec. + documentation." + PICS: MCORE.DD.DT_IP verification: | $ ./out/all-clusters-app/chip-all-clusters-app --custom-flow 2 --capabilities 4 @@ -124,25 +126,26 @@ tests: " disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - label: - "If (PICS_DT_IP), DUT parses QR code and DUT presents User with a URL - in the pairing hint." + "DUT parses QR code and DUT presents User with a URL in the pairing + hint." + PICS: MCORE.DD.DT_IP verification: | 1. Follow the steps given in the TH's URL to allow for commissioning to happen. TH should not be commissioned until these steps were followed and indicate DUT can proceed with commissioning the TH to the Matter network disabled: true - label: - "If (PICS_DT_IP), Follow any steps from the URL provided by the - pairing hint for putting the TH Commissionee into commissioning mode, - for triggering the DUT Commissioner for commissioning, and for - completing the commissioning process using IP Network." + "Follow any steps from the URL provided by the pairing hint for + putting the TH Commissionee into commissioning mode, for triggering + the DUT Commissioner for commissioning, and for completing the + commissioning process using IP Network." + PICS: MCORE.DD.DT_IP verification: | TH all-clusters-app: [1651103591.176135][8940:8940] CHIP:SVR: Commissioning completed successfully @@ -160,34 +163,35 @@ tests: disabled: true - label: - "If (PICS_DT_SOFTAP), Custom Commissioning Flow: Use a Commissionee - with a QR code that has the Custom Flow field set to 2 and supports - SoftAP for its Discovery Capability. Commissionee is NOT in - commissioning mode. Ensure the Version bit string follows the current - Matter spec. documentation." + "Custom Commissioning Flow: Use a Commissionee with a QR code that has + the Custom Flow field set to 2 and supports SoftAP for its Discovery + Capability. Commissionee is NOT in commissioning mode. Ensure the + Version bit string follows the current Matter spec. documentation." + PICS: MCORE.DD.DT_SOFTAP verification: | BLOCKED: SoftAP commissioning not currently supported disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan the QR code from the previous step using - the DUT." + - label: "Scan the QR code from the previous step using the DUT." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true - label: - "If (PICS_DT_SOFTAP), DUT parses QR code and DUT presents User with a - URL in the pairing hint." + "DUT parses QR code and DUT presents User with a URL in the pairing + hint." + PICS: MCORE.DD.DT_SOFTAP verification: | 1. Follow the steps given in the TH's URL to allow for commissioning to happen. TH should not be commissioned until these steps were followed and indicate DUT can proceed with commissioning the TH to the Matter network disabled: true - label: - "If (PICS_DT_SOFTAP), Follow any steps from the URL provided by the - pairing hint for putting the TH Commissionee into commissioning mode, - for triggering the DUT Commissioner for commissioning, and for - completing the commissioning process using SoftAP." + "Follow any steps from the URL provided by the pairing hint for + putting the TH Commissionee into commissioning mode, for triggering + the DUT Commissioner for commissioning, and for completing the + commissioning process using SoftAP." + PICS: MCORE.DD.DT_SOFTAP verification: | BLOCKED: SoftAP commissioning not currently supported disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_14.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_14.yaml index 18f613c4555c88..9deb8df0c00e28 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_14.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_14.yaml @@ -57,17 +57,17 @@ tests: disabled: true - label: - "If (PICS_USER_INTENT_COMM_FLOW), Using the QR code from Step 1, - generate a new QR code using all the same Onboarding Payload - components except for the Custom Flow field, set it to 1: User-Intent - Commissioning Flow" + "Using the QR code from Step 1, generate a new QR code using all the + same Onboarding Payload components except for the Custom Flow field, + set it to 1: User-Intent Commissioning Flow" + PICS: MCORE.DD.USER_INTENT_COMM_FLOW verification: | MT:-24J06VO00KA0648G00 disabled: true - label: - "If (PICS_USER_INTENT_COMM_FLOW), Scan/read the QR code, generated in - the previous step, using the DUT" + "Scan/read the QR code, generated in the previous step, using the DUT" + PICS: MCORE.DD.USER_INTENT_COMM_FLOW verification: | ERROR: chip-tool allows pairing to all-clusters-app when QR code contains user-intent flow but device uses custom commissioning flow @@ -75,16 +75,17 @@ tests: disabled: true - label: - "If (PICS_CUSTOM_COMM_FLOW), Using the QR code from Step 1, generate a - new QR code using all the same Onboarding Payload components except - for the Custom Flow field, set it to 2: Custom Commissioning Flow" + "Using the QR code from Step 1, generate a new QR code using all the + same Onboarding Payload components except for the Custom Flow field, + set it to 2: Custom Commissioning Flow" + PICS: MCORE.DD.CUSTOM_COMM_FLOW verification: | MT:-24J029Q00KA0648G00 disabled: true - label: - "If (PICS_CUSTOM_COMM_FLOW), Scan/read the QR code, generated in the - previous step, using the DUT" + "Scan/read the QR code, generated in the previous step, using the DUT" + PICS: MCORE.DD.CUSTOM_COMM_FLOW verification: | ERROR: chip-tool allows pairing to all-clusters-app when QR code contains custom commissioning flow but device uses standard commissioning flow @@ -108,41 +109,39 @@ tests: disabled: true - label: - "If (PICS_DT_BLE), Using the QR code from Step 1, generate a new QR - code using all the same Onboarding Payload components except for the - Discovery Capability bit string, set it to BLE for discovery" + "Using the QR code from Step 1, generate a new QR code using all the + same Onboarding Payload components except for the Discovery Capability + bit string, set it to BLE for discovery" + PICS: MCORE.DD.DT_BLE verification: | MT:-24J0YXE00KA0648G00 disabled: true - label: - "If (PICS_DT_BLE), Scan/read the QR code, generated in the previous - step, using the DUT" + "Scan/read the QR code, generated in the previous step, using the DUT" + PICS: MCORE.DD.DT_BLE verification: | - $ ./out/chip-tool/chip-tool pairing code 1 MT:-24J0YXE00KA0648G00 + ERROR: chip-tool allows pairing to all-clusters-app when QR code contains BLE Discovery but device uses IP Discovery - CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 - [1653048447.653685][119116:119121] CHIP:TOO: Secure Pairing Failed - [1653048447.653777][119116:119121] CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:245: CHIP Error 0x00000032: Timeout + $ ./out/chip-tool/chip-tool pairing code 1 MT:-24J0YXE00KA0648G00 disabled: true - label: - "If (PICS_DT_IP), Using the QR code from Step 1, generate a new QR - code using all the same Onboarding Payload components except for the - Discovery Capability bit string, set it to IP Network for discovery" + "Using the QR code from Step 1, generate a new QR code using all the + same Onboarding Payload components except for the Discovery Capability + bit string, set it to IP Network for discovery" + PICS: MCORE.DD.DT_IP verification: | MT:-24J029Q00KA0648G00 disabled: true - label: - "If (PICS_DT_IP), Scan/read the QR code, generated in the previous - step, using the DUT" + "Scan/read the QR code, generated in the previous step, using the DUT" + PICS: MCORE.DD.DT_IP verification: | - $ ./out/chip-tool/chip-tool pairing code 1 MT:-24J029Q00KA0648G00 + ERROR: chip-tool allows pairing to all-clusters-app when QR code contains IP Discovery but device uses BLE Discovery - PASESession timed out while waiting for a response from the peer. Expected message type was 33 - [1653048958.640087][119165:119170] CHIP:TOO: Secure Pairing Failed - [1653048958.640178][119165:119170] CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:245: CHIP Error 0x00000032: Timeout + $ ./out/chip-tool/chip-tool pairing code 1 MT:-24J029Q00KA0648G00 disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_15.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_15.yaml index f58f9030cdb819..96197fbc68d888 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_15.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_15.yaml @@ -24,10 +24,10 @@ config: tests: - label: - "If (PICS_11_MANUAL_PC), Verify the THs 11-digit Manual Pairing Code - meets the following criteria: - VERSION bit string string up to date - with the current Matter spec. documentation - VID_PID_PRESENT bit - string set to 0" + "Verify the THs 11-digit Manual Pairing Code meets the following + criteria: - VERSION bit string string up to date with the current + Matter spec. documentation - VID_PID_PRESENT bit string set to 0" + PICS: MCORE.DD.11_MANUAL_PC verification: | $ ./out/ble/all-clusters-app/chip-all-clusters-app [1651108891.390266][30833:30833] CHIP:DL: Device Configuration: @@ -42,15 +42,16 @@ tests: [1651108891.390744][30833:30833] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== [1651108891.390809][30833:30833] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00] [1651108891.390848][30833:30833] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - [1651108891.390876][30833:30833] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0AFN00KA0648G00 + [1651108891.390876][30833:30833] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0AFN00KA0648G00 [1651108891.390917][30833:30833] CHIP:SVR: Manual pairing code: [34970112332] disabled: true - label: - "If (PICS_11_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT. - Follow any steps needed for the Commissioner/Commissionee to complete - the commissioning process." + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT. Follow any steps needed + for the Commissioner/Commissionee to complete the commissioning + process." + PICS: MCORE.DD.11_MANUAL_PC verification: | TH Commissionee: [1651109112.909458][30833:30833] CHIP:SVR: Commissioning completed successfully @@ -68,12 +69,13 @@ tests: disabled: true - label: - 'If (PICS_21_MANUAL_PC), Verify the THs 21-digit Manual Pairing Code - meets the following criteria: - A VERSION bit string string up-to-date - with the current Matter spec. documentation - A VID_PID_PRESENT bit - string set to 1 - A VENDOR_ID present (as defined in section 2.5.2. - "Vendor Identifier") - A PRODUCT_ID present (as defined in section - 2.5.3. "Product Identifier")' + 'Verify the THs 21-digit Manual Pairing Code meets the following + criteria: - A VERSION bit string string up-to-date with the current + Matter spec. documentation - A VID_PID_PRESENT bit string set to 1 - A + VENDOR_ID present (as defined in section 2.5.2. "Vendor Identifier") - + A PRODUCT_ID present (as defined in section 2.5.3. "Product + Identifier")' + PICS: MCORE.DD.21_MANUAL_PC verification: | $ ./out/ble/all-clusters-app/chip-all-clusters-app @@ -89,20 +91,21 @@ tests: [1651109167.022753][30980:30980] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== [1651109167.022825][30980:30980] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00] [1651109167.022868][30980:30980] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - [1651109167.022898][30980:30980] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0AFN00KA0648G00 + [1651109167.022898][30980:30980] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0AFN00KA0648G00 [1651109167.022942][30980:30980] CHIP:SVR: Manual pairing code: [34970112332] [1651109167.022974][30980:30980] CHIP:-: ==== Onboarding payload for Custom Commissioning Flows ==== [1651109167.023050][30980:30980] CHIP:SVR: SetupQRCode: [MT:-24J029Q00KA0648G00] [1651109167.023090][30980:30980] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - [1651109167.023120][30980:30980] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J029Q00KA0648G00 + [1651109167.023120][30980:30980] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J029Q00KA0648G00 [1651109167.023167][30980:30980] CHIP:SVR: Manual pairing code: [749701123365521327694] disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT. - Follow any steps needed for the Commissioner/Commissionee to complete - the commissioning process." + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT. Follow any steps needed + for the Commissioner/Commissionee to complete the commissioning + process." + PICS: MCORE.DD.21_MANUAL_PC verification: | TH Commissionee: [1651109219.100167][30980:30980] CHIP:SVR: Commissioning completed successfully diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_16.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_16.yaml index 43b278e8d22d02..38c43190d842cc 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_16.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_16.yaml @@ -24,8 +24,9 @@ config: tests: - label: - "If (PICS_11_MANUAL_PC), Provide the 11-digit Manual Pairing Code from - the Commissionee to the DUT in any format supported by DUT" + "Provide the 11-digit Manual Pairing Code from the Commissionee to the + DUT in any format supported by DUT" + PICS: MCORE.DD.11_MANUAL_PC verification: | $ ./out/all-clusters-app/chip-all-clusters-app --version 0 --vendor-id 0xFFF1 --product-id 0x8001 --custom-flow 0 --capabilities 4 --discriminator 3840 --passcode 20202021 @@ -41,14 +42,15 @@ tests: [1651180718.960671][13218:13218] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== [1651180718.960729][13218:13218] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00] [1651180718.960760][13218:13218] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - [1651180718.960781][13218:13218] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0AFN00KA0648G00 + [1651180718.960781][13218:13218] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0AFN00KA0648G00 [1651180718.960814][13218:13218] CHIP:SVR: Manual pairing code: [34970112332] disabled: true - label: - "If (PICS_11_MANUAL_PC), VERSION: Using the manual code from Step 1, - generate a new manual code but substituting out the current VERSION - with an invalid VERSION: 2" + "VERSION: Using the manual code from Step 1, generate a new manual + code but substituting out the current VERSION with an invalid VERSION: + 2" + PICS: MCORE.DD.11_MANUAL_PC verification: | $ ./out/chip-tool/chip-tool payload verhoeff-generate 8497011233 [1651186243492] [13415:349553] CHIP: [SPL] Generating Character for: 84970112331 @@ -57,32 +59,31 @@ tests: disabled: true - label: - "If (PICS_11_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.11_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 84970112331 + $ ./out/chip-tool/chip-tool pairing code 1 84970112331 - [1651186653578] [13468:355000] CHIP: [DL] Mdns: OnNewAddress interface: 24 ip:fe80::dea6:32ff:fe8d:6e32 - [1651186653600] [13468:354997] CHIP: [BLE] CBManagerState: ON - [1651186653601] [13468:354997] CHIP: [BLE] CBManagerState: RESETTING - [1651186655771] [13468:354997] CHIP: [BLE] CBManagerState: ON - Illegal instruction: 4 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument disabled: true - label: - "If (PICS_11_MANUAL_PC), VID_PID_PRESENT: Using the manual code from - Step 1, generate a new manual code but substituting out the current - VID_PID_PRESENT with an invalid VID_PID_PRESENT set to 1" + "VID_PID_PRESENT: Using the manual code from Step 1, generate a new + manual code but substituting out the current VID_PID_PRESENT with an + invalid VID_PID_PRESENT set to 1" + PICS: MCORE.DD.11_MANUAL_PC verification: | $ ./out/chip-tool/chip-tool payload generate-manualcode --discriminator 0xF00 --setup-pin-code 20202021 --version 0 --vendor-id 0xFFF1 --product-id 0x8001 --commissioning-mode 2 --force-short-code 1 [1651181048462] [11611:269469] CHIP: [TOO] Manual Code: 74970112334 disabled: true - label: - "If (PICS_11_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.11_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 74970112334 + $ ./out/chip-tool/chip-tool pairing code 1 74970112334 [1651184274318] [12512:321250] CHIP: [SPL] Failed decoding base10. Input length 10 was not expected length 20 ... @@ -90,43 +91,39 @@ tests: disabled: true - label: - 'If (PICS_11_MANUAL_PC), SHORT DISCRIMINATOR: Using the manual code - from Step 1, generate a new manual code but substituting out the - current SHORT DISCRIMINATOR string with a discriminator value that - makes the generated manual code differ from Step 1s manual code (i.e. - Choose a discriminator value that changes any of the 4 - most-significant bits of Step 1s 12-bit discriminator value and - adheres to rules of section 5.1.1.5. "Discriminator value")' + 'SHORT DISCRIMINATOR: Using the manual code from Step 1, generate a + new manual code but substituting out the current SHORT DISCRIMINATOR + string with a discriminator value that makes the generated manual code + differ from Step 1s manual code (i.e. Choose a discriminator value + that changes any of the 4 most-significant bits of Step 1s 12-bit + discriminator value and adheres to rules of section 5.1.1.5. + "Discriminator value")' + PICS: MCORE.DD.11_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool payload verhoeff-generate 8497011233 - [1651186243492] [13415:349553] CHIP: [SPL] Generating Character for: 8497011233 - [1651186243492] [13415:349553] CHIP: [SPL] Generated Char: 1 - Manual Code: 84970112331 + Manual Code: 33331712336 disabled: true - label: - "If (PICS_11_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.11_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 33331712336 - - [1651184172578] [12458:318862] CHIP: [DL] Mdns: OnNewAddress interface: 24 ip:fe80::dea6:32ff:fe8d:6e32 - [1651184172578] [12458:318862] CHIP: [DL] Mdns: OnNewAddress interface: 24 ip:fe80::dea6:32ff:fe8d:6e32 - [1651184172603] [12458:318861] CHIP: [BLE] CBManagerState: ON - [1651184172605] [12458:318862] CHIP: [BLE] CBManagerState: RESETTING - [1651184174769] [12458:318861] CHIP: [BLE] CBManagerState: ON - Illegal instruction: 4 + $ ./out/chip-tool/chip-tool pairing code 1 33331712336 + + [1654001605.517505][3200:3205] CHIP:-: ../../third_party/connectedhomeip/src/platform/Linux/BLEManagerImpl.cpp:748: CHIP Error 0x0000002D: Not Implemented at ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:450 + [1654001605.517563][3200:3205] CHIP:CTL: Stopping commissioning discovery over DNS-SD + [1654001605.517619][3200:3205] CHIP:TOO: Secure Pairing Failed disabled: true - label: - "If (PICS_11_MANUAL_PC), Passcode: Using the manual code from Step 1, - generate a new manual code using all the same Onboarding Payload - components except for the Passcode. For each Passcode in the following - list, set the Passcode component to one of the invalid Passcode and - generate a new manual code using all the same Onboarding Payload - components and one Passcode from the list: 00000000, 11111111, - 22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888, - 99999999, 12345678, 87654321" + "Passcode: Using the manual code from Step 1, generate a new manual + code using all the same Onboarding Payload components except for the + Passcode. For each Passcode in the following list, set the Passcode + component to one of the invalid Passcode and generate a new manual + code using all the same Onboarding Payload components and one Passcode + from the list: 00000000, 11111111, 22222222, 33333333, 44444444, + 55555555, 66666666, 77777777, 88888888, 99999999, 12345678, 87654321" + PICS: MCORE.DD.11_MANUAL_PC verification: | 1. Use these as examples of how to generate manual codes with invalid passcodes @@ -180,86 +177,76 @@ tests: disabled: true - label: - "If (PICS_11_MANUAL_PC), Provide each of the Manual Pairing Codes, - generated in the previous step, to the DUT in any format supported by - the DUT" + "Provide each of the Manual Pairing Codes, generated in the previous + step, to the DUT in any format supported by the DUT" + PICS: MCORE.DD.11_MANUAL_PC verification: | (00000000) - $ ./out/chip-tool/chip-tool pairing manualcode 1 34915200008 - [1651182596491] [12006:288954] CHIP: [SPL] Failed decoding base10. SetUpPINCode was 0. + $ ./out/chip-tool/chip-tool pairing code 1 34915200008 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (11111111) - $ ./out/chip-tool/chip-tool pairing manualcode 1 35191106788 - [1651182622501] [12009:289307] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182622501] [12009:289307] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 35191106788 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (22222222) - $ ./out/chip-tool/chip-tool pairing manualcode 1 35467013565 - [1651182688251] [12026:292039] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182688251] [12026:292039] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 35467013565 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (33333333) - $ ./out/chip-tool/chip-tool pairing manualcode 1 35742920344 - [1651182749249] [12037:293713] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182749249] [12037:293713] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 35742920344 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (44444444) - $ ./out/chip-tool/chip-tool pairing manualcode 1 36018827124 - [1651182769619] [12045:294912] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182769619] [12045:294912] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 36018827124 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (55555555) - $ ./out/chip-tool/chip-tool pairing manualcode 1 36294733900 - [1651182788383] [12053:296042] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182788383] [12053:296042] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 36294733900 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (66666666) - $ ./out/chip-tool/chip-tool pairing manualcode 1 34932240691 - [1651182816133] [12067:297210] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182816133] [12067:297210] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 34932240691 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (77777777) - $ ./out/chip-tool/chip-tool pairing manualcode 1 35208147474 - [1651182833101] [12080:298444] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182833101] [12080:298444] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 35208147474 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (88888888) - $ ./out/chip-tool/chip-tool pairing manualcode 1 35484054250 - [1651182850431] [12086:299484] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182850431] [12086:299484] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 35484054250 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (99999999) - $ ./out/chip-tool/chip-tool pairing manualcode 1 35759961037 - [1651182873582] [12092:300725] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182873582] [12092:300725] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 35759961037 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (12345678) - $ ./out/chip-tool/chip-tool pairing manualcode 1 35767807533 - [1651182902418] [12113:302157] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182902418] [12113:302157] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 35767807533 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument (87654321) - $ ./out/chip-tool/chip-tool pairing manualcode 1 36545753496 - [1651182919123] [12125:303345] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651182919123] [12125:303345] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 36545753496 + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument disabled: true - label: - "If (PICS_11_MANUAL_PC), CHECK_DIGIT: Using the manual code from Step - 1, generate a new manual code but substituting out the current - CHECK_DIGIT with an invalid CHECK_DIGIT (i.e. Any different - CHECK_DIGIT than the commissionees CHECK_DIGIT while following Table - 38. Encoding Method without Vendor and Product IDs (VID_PID_Present == - 0))" + "CHECK_DIGIT: Using the manual code from Step 1, generate a new manual + code but substituting out the current CHECK_DIGIT with an invalid + CHECK_DIGIT (i.e. Any different CHECK_DIGIT than the commissionees + CHECK_DIGIT while following Table 38. Encoding Method without Vendor + and Product IDs (VID_PID_Present == 0))" + PICS: MCORE.DD.11_MANUAL_PC verification: | Manual Code: 34970112331 disabled: true - label: - "If (PICS_11_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.11_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 34970112331 + $ ./out/chip-tool/chip-tool pairing code 1 34970112331 [1651184084907] [12271:316118] CHIP: [TOO] Run command failure: ../../examples/chip-tool/third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:50: CHIP Error 0x00000013: Integrity check failed disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_17.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_17.yaml index 9c5c868f58413d..736f05ce0804ba 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_17.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_17.yaml @@ -24,8 +24,9 @@ config: tests: - label: - "If (PICS_21_MANUAL_PC), Provide the 21-digit Manual Pairing Code from - the Commissionee to the DUT in any format supported by DUT" + "Provide the 21-digit Manual Pairing Code from the Commissionee to the + DUT in any format supported by DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | $ ./out/all-clusters-app/chip-all-clusters-app --version 0 --vendor-id 0xFFF1 --product-id 0x8001 --custom-flow 2 --capabilities 4 --discriminator 3840 --passcode 20202021 @@ -42,9 +43,10 @@ tests: disabled: true - label: - "If (PICS_21_MANUAL_PC), VERSION: Using the manual code from Step 1, - generate a new manual code but substituting out the current VERSION - with an invalid VERSION: 2" + "VERSION: Using the manual code from Step 1, generate a new manual + code but substituting out the current VERSION with an invalid VERSION: + 2" + PICS: MCORE.DD.21_MANUAL_PC verification: | $ chip-tool/out/debug$ ./chip-tool payload verhoeff-generate 849701123365521327693 [1652423715.746979][23816:23816] CHIP:SPL: Generating Character for: 849701123365521327693 @@ -53,21 +55,23 @@ tests: disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 849701123365521327693 + $ ./out/chip-tool/chip-tool pairing code 1 849701123365521327693 [1651186987544] [13533:359998] CHIP: [SPL] Failed decoding base10. Input length 20 was not expected length 10 ... - [1651186987544] [13533:359996] CHIP: [TOO] Run command failure: ../../examples/chip-tool/third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:63: CHIP Error 0x0000001E: Invalid string length + Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:137: CHIP Error 0x0000002F: Invalid argument disabled: true - label: - "If (PICS_21_MANUAL_PC), VID_PID_PRESENT: Using the manual code from - Step 1, generate a new manual code but substituting out the current - VID_PID_PRESENT with an invalid VID_PID_PRESENT set to 0" + "VID_PID_PRESENT: Using the manual code from Step 1, generate a new + manual code but substituting out the current VID_PID_PRESENT with an + invalid VID_PID_PRESENT set to 0" + PICS: MCORE.DD.21_MANUAL_PC verification: | $ ./out/chip-tool/chip-tool payload verhoeff-generate 34970112336552132769 [1651186492744] [13434:353094] CHIP: [SPL] Generating Character for: 34970112336552132769 @@ -77,10 +81,11 @@ tests: disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 349701123365521327696 + $ ./out/chip-tool/chip-tool pairing code 1 349701123365521327696 [1651187185899] [13557:362337] CHIP: [SPL] Failed decoding base10. Input length 20 was not expected length 10 ... @@ -88,43 +93,44 @@ tests: disabled: true - label: - 'If (PICS_21_MANUAL_PC), SHORT DISCRIMINATOR: Using the manual code - from Step 1, generate a new manual code but substituting out the - current SHORT DISCRIMINATOR string with a discriminator value that - makes the generated manual code differ from Step 1s manual code (i.e. - Choose a discriminator value that changes any of the 4 - most-significant bits of Step 1s 12-bit discriminator value and - adheres to rules of section 5.1.1.5. "Discriminator value")' + 'SHORT DISCRIMINATOR: Using the manual code from Step 1, generate a + new manual code but substituting out the current SHORT DISCRIMINATOR + string with a discriminator value that makes the generated manual code + differ from Step 1s manual code (i.e. Choose a discriminator value + that changes any of the 4 most-significant bits of Step 1s 12-bit + discriminator value and adheres to rules of section 5.1.1.5. + "Discriminator value")' + PICS: MCORE.DD.21_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool payload verhoeff-generate 8497011233 + $ ./out/chip-tool/chip-tool payload verhoeff-generate 733317123365521327692 [1651186243492] [13415:349553] CHIP: [SPL] Generating Character for: 8497011233 [1651186243492] [13415:349553] CHIP: [SPL] Generated Char: 1 - Manual Code: 84970112331 + Manual Code: 733317123365521327692 disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 733317123365521327692 - - [1651187326154] [13574:364188] CHIP: [DL] Mdns: OnBrowseAdd name: 5303D3B066C915A8, type: _matterc._udp., domain: local., interface: 24 - [1651187326155] [13574:364188] CHIP: [DL] Resolve type=_matterc._udp name=5303D3B066C915A8 interface=24 - [1651187326155] [13574:364188] CHIP: [DL] Mdns : OnNewInterface hostname:DCA6328D6E320000.local. fullname:5303D3B066C915A8._matterc._udp.local. interface: 24 - [1651187326157] [13574:364188] CHIP: [DL] Mdns: OnNewAddress interface: 24 ip:fe80::dea6:32ff:fe8d:6e32 - [1651187328222] [13574:364187] CHIP: [BLE] CBManagerState: ON - Illegal instruction: 4 + $ ./out/chip-tool/chip-tool pairing code 1 733317123365521327692 + + [1655814152.716988][3723:3726] CHIP:CTL: Commissioning discovery over BLE failed: ../../third_party/connectedhomeip/src/platform/Linux/BLEManagerImpl.cpp:829: CHIP Error 0x00000032: Timeout + [1655814152.717099][3723:3726] CHIP:-: ../../third_party/connectedhomeip/src/platform/Linux/BLEManagerImpl.cpp:829: CHIP Error 0x00000032: Timeout at ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:270 + [1655814172.703455][3723:3728] CHIP:CTL: Discovery timed out + [1655814172.703550][3723:3728] CHIP:CTL: Stopping commissioning discovery over DNS-SD + [1655814172.703607][3723:3728] CHIP:TOO: Secure Pairing Failed disabled: true - label: - "If (PICS_21_MANUAL_PC), Passcode: Using the manual code from Step 1, - generate a new manual code using all the same Onboarding Payload - components except for the Passcode. For each Passcode in the following - list, set the Passcode component to one of the invalid Passcode and - generate a new manual code using all the same Onboarding Payload - components and one Passcode from the list: 00000000, 11111111, - 22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888, - 99999999, 12345678, 87654321" + "Passcode: Using the manual code from Step 1, generate a new manual + code using all the same Onboarding Payload components except for the + Passcode. For each Passcode in the following list, set the Passcode + component to one of the invalid Passcode and generate a new manual + code using all the same Onboarding Payload components and one Passcode + from the list: 00000000, 11111111, 22222222, 33333333, 44444444, + 55555555, 66666666, 77777777, 88888888, 99999999, 12345678, 87654321" + PICS: MCORE.DD.21_MANUAL_PC verification: | 1. Use this as an example of how to generate a manual code with an invalid passcode @@ -133,78 +139,77 @@ tests: disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide each of the Manual Pairing Codes, - generated in the previous step, to the DUT in any format supported by - the DUT" + "Provide each of the Manual Pairing Codes, generated in the previous + step, to the DUT in any format supported by the DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | (00000000) - $ ./out/chip-tool/chip-tool pairing manualcode 1 749152000065521327698 + $ ./out/chip-tool/chip-tool pairing code 1 749152000065521327698 [1651187937232] [13896:372977] CHIP: [TOO] Run command failure: ../../examples/chip-tool/third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:161: CHIP Error 0x0000002F: Invalid argument (11111111) - $ ./out/chip-tool/chip-tool pairing manualcode 1 751911067865521327698 - [1651187951631] [13904:373170] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651187951631] [13904:373170] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 751911067865521327698 + [1655814240.531424][3747:3747] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (22222222) - $ ./out/chip-tool/chip-tool pairing manualcode 1 754670135665521327694 - [1651187975776] [13921:374525] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651187975776] [13921:374525] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 754670135665521327694 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (33333333) - $ ./out/chip-tool/chip-tool pairing manualcode 1 757429203465521327699 - [1651187993465] [13945:375674] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651187993465] [13945:375674] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 757429203465521327699 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (44444444) - $ ./out/chip-tool/chip-tool pairing manualcode 1 760188271265521327697 - [1651188008800] [13951:376725] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188008800] [13951:376725] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 760188271265521327697 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (55555555) - $ ./out/chip-tool/chip-tool pairing manualcode 1 762947339065521327695 - [1651188029330] [13957:377885] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188029330] [13957:377885] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 762947339065521327695 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (66666666) - $ ./out/chip-tool/chip-tool pairing manualcode 1 749322406965521327695 - [1651188054160] [13994:379681] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188054160] [13994:379681] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 749322406965521327695 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (77777777) - $ ./out/chip-tool/chip-tool pairing manualcode 1 752081474765521327697 - [1651188073770] [14000:380949] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188073770] [14000:380949] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 752081474765521327697 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (88888888) - $ ./out/chip-tool/chip-tool pairing manualcode 1 754840542565521327693 - [1651188090958] [14006:382023] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188090958] [14006:382023] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 754840542565521327693 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (99999999) - $ ./out/chip-tool/chip-tool pairing manualcode 1 757599610365521327695 - [1651188107232] [14013:383046] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188107232] [14013:383046] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 757599610365521327695 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (12345678) - $ ./out/chip-tool/chip-tool pairing manualcode 1 757678075365521327695 - [1651188124928] [14019:384164] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188124928] [14019:384164] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 757678075365521327695 + [1655814269.264731][3754:3754] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument + (87654321) - $ ./out/chip-tool/chip-tool pairing manualcode 1 765457534965521327696 - [1651188157157] [14043:386017] CHIP: [SC] Failed during PASE session setup. ../../examples/chip-tool/third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1352: CHIP Error 0x000000AC: Internal error - [1651188157157] [14043:386017] CHIP: [TOO] Secure Pairing Failed + $ ./out/chip-tool/chip-tool pairing code 1 765457534965521327696 + [1655814323.718122][3761:3761] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument disabled: true - label: - "If (PICS_21_MANUAL_PC), VENDOR_ID: Using the manual code from Step 1, - generate a new manual code using all the same Onboarding Payload - components except for the VENDOR_ID. For each VENDOR_ID in the - following list, set the VENDOR_ID component to one of the invalid Test - VENDOR_IDs and generate a new manual code using all the same - Onboarding Payload components and one Test VENDOR_ID from the list: - 0xFFF1, 0xFFF2, 0xFFF3, 0xFFF4" + "VENDOR_ID: Using the manual code from Step 1, generate a new manual + code using all the same Onboarding Payload components except for the + VENDOR_ID. For each VENDOR_ID in the following list, set the VENDOR_ID + component to one of the invalid Test VENDOR_IDs and generate a new + manual code using all the same Onboarding Payload components and one + Test VENDOR_ID from the list: 0xFFF1, 0xFFF2, 0xFFF3, 0xFFF4" + PICS: MCORE.DD.21_MANUAL_PC verification: | 1. Use this as an example of how to generate a manual code with an invalid vendor IDs @@ -213,9 +218,9 @@ tests: disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide each of the Manual Pairing Codes, - generated in the previous step, to the DUT in any format supported by - the DUT" + "Provide each of the Manual Pairing Codes, generated in the previous + step, to the DUT in any format supported by the DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | (0xFFF1) $ ./out/chip-tool/chip-tool pairing manualcode 1 749701123365521327694 @@ -237,31 +242,33 @@ tests: disabled: true - label: - 'If (PICS_21_MANUAL_PC), PRODUCT_ID: Using the manual code from Step - 1, generate a new manual code but substituting out the current - PRODUCT_ID with an invalid PRODUCT_ID of 0x0000(i.e. While following - section 2.5.3. "Product Identifier")' + 'PRODUCT_ID: Using the manual code from Step 1, generate a new manual + code but substituting out the current PRODUCT_ID with an invalid + PRODUCT_ID of 0x0000(i.e. While following section 2.5.3. "Product + Identifier")' + PICS: MCORE.DD.21_MANUAL_PC verification: | $ ./out/chip-tool/chip-tool payload generate-manualcode --discriminator 3840 --setup-pin-code 20202021 --version 0 --vendor-id 0xFFF1 --product-id 0x0000 --commissioning-mode 1 --allow-invalid-payload 1 [1651187401077] [13610:366251] CHIP: [TOO] Manual Code: 749701123365521000006 disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | - Error: chip-tool pairs to chip-all-clusters-app with this invalid Product ID of 0x0000 - $ ./out/chip-tool/chip-tool pairing manualcode 1 749701123365521000006 + + [1655380389.096806][35861:35861] CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/controller/SetUpCodePairer.cpp:55: CHIP Error 0x0000002F: Invalid argument disabled: true - label: - "If (PICS_21_MANUAL_PC), Check Digit: Using the manual code from Step - 1, generate a new manual code but substituting out the current - CHECK_DIGIT with an invalid CHECK_DIGIT (i.e. Any different - CHECK_DIGIT than the commissionees CHECK_DIGIT while following Table - 39. Encoding Method with Vendor and Product IDs included - (VID_PID_Present == 1))" + "Check Digit: Using the manual code from Step 1, generate a new manual + code but substituting out the current CHECK_DIGIT with an invalid + CHECK_DIGIT (i.e. Any different CHECK_DIGIT than the commissionees + CHECK_DIGIT while following Table 39. Encoding Method with Vendor and + Product IDs included (VID_PID_Present == 1))" + PICS: MCORE.DD.21_MANUAL_PC verification: | $ ./out/chip-tool/chip-tool payload verhoeff-verify 749701123365521327693 20 [1651187504088] [13629:367627] CHIP: [SPL] Verifying Manual Code: 74970112336552132769 @@ -269,10 +276,11 @@ tests: disabled: true - label: - "If (PICS_21_MANUAL_PC), Provide the Manual Pairing Code, generated in - the previous step, to the DUT in any format supported by the DUT" + "Provide the Manual Pairing Code, generated in the previous step, to + the DUT in any format supported by the DUT" + PICS: MCORE.DD.21_MANUAL_PC verification: | - $ ./out/chip-tool/chip-tool pairing manualcode 1 749701123365521327693 + $ ./out/chip-tool/chip-tool pairing code 1 749701123365521327693 [1651187528666] [13631:367920] CHIP: [TOO] Run command failure: ../../examples/chip-tool/third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:50: CHIP Error 0x00000013: Integrity check failed disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_18.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_18.yaml index 39d9c4759d7da3..198e053c05ee6d 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_18.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_18.yaml @@ -27,42 +27,72 @@ tests: "Place TH1 into commissioning mode using the TH manufacturers means to be discovered by a commissioner" verification: | - $ ./out/all-clusters-app/chip-all-clusters-app --discriminator 3840 - - [1651109580.413197][31207:31207] CHIP:DL: Device Configuration: - [1651109580.413259][31207:31207] CHIP:DL: Serial Number: TEST_SN - [1651109580.413294][31207:31207] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1651109580.413327][31207:31207] CHIP:DL: Product Id: 32769 (0x8001) - [1651109580.413358][31207:31207] CHIP:DL: Hardware Version: 0 - [1651109580.413380][31207:31207] CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021 - [1651109580.413401][31207:31207] CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00) - [1651109580.413428][31207:31207] CHIP:DL: Manufacturing Date: (not set) - [1651109580.413450][31207:31207] CHIP:DL: Device Type: 65535 (0xFFFF) - [1651109580.413470][31207:31207] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== - [1651109580.413525][31207:31207] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00] + After launching all-clusters-app using discriminator 3841 using below command + sudo ./chip-all-clusters-app --wifi --discriminator 3841 + + ./chip-tool discover commissionables + [1654068872.283184][8000:8005] CHIP:DL: Avahi resolve found + [1654068872.283316][8000:8005] CHIP:DIS: Hostname: E45F010F19FF0000 + [1654068872.283374][8000:8005] CHIP:DIS: IP Address #1: fe80::e65f:1ff:fe0f:19ff + [1654068872.283419][8000:8005] CHIP:DIS: Port: 5540 + [1654068872.283460][8000:8005] CHIP:DIS: Mrp Interval idle: 5000 ms + [1654068872.283503][8000:8005] CHIP:DIS: Mrp Interval active: 300 ms + [1654068872.283563][8000:8005] CHIP:DIS: Vendor ID: 65521 + [1654068872.283605][8000:8005] CHIP:DIS: Product ID: 32769 + [1654068872.283646][8000:8005] CHIP:DIS: Long Discriminator: 3844 + [1654068872.283687][8000:8005] CHIP:DIS: Pairing Hint: 33 + [1654068872.283728][8000:8005] CHIP:DIS: Instance Name: C50FE94C4952D393 + [1654068872.283768][8000:8005] CHIP:DIS: Commissioning Mode: 1 + [1654068872.285052][8000:8005] CHIP:DL: Avahi resolve found + [1654068872.285156][8000:8005] CHIP:DIS: Hostname: E45F010F27530000 + [1654068872.285211][8000:8005] CHIP:DIS: IP Address #1: fe80::e65f:1ff:fe0f:2755 + [1654068872.285254][8000:8005] CHIP:DIS: Port: 5540 + [1654068872.285296][8000:8005] CHIP:DIS: Mrp Interval idle: 5000 ms + [1654068872.285337][8000:8005] CHIP:DIS: Mrp Interval active: 300 ms + [1654068872.285378][8000:8005] CHIP:DIS: Vendor ID: 65521 + [1654068872.285418][8000:8005] CHIP:DIS: Product ID: 32769 + [1654068872.285458][8000:8005] CHIP:DIS: Long Discriminator: 3841 + [1654068872.285498][8000:8005] CHIP:DIS: Pairing Hint: 33 + [1654068872.285538][8000:8005] CHIP:DIS: Instance Name: DC47D37251924E87 + [1654068872.285579][8000:8005] CHIP:DIS: Commissioning Mode: 1 disabled: true - label: "Place TH2 into commissioning mode using the TH manufacturers means to be discovered by a commissioner" verification: | - $ ./out/all-clusters-app/chip-all-clusters-app --discriminator 3844 - - [1651109859.015727][11588:11588] CHIP:DL: Device Configuration: - [1651109859.015789][11588:11588] CHIP:DL: Serial Number: TEST_SN - [1651109859.015834][11588:11588] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1651109859.015879][11588:11588] CHIP:DL: Product Id: 32769 (0x8001) - [1651109859.015920][11588:11588] CHIP:DL: Hardware Version: 0 - [1651109859.015957][11588:11588] CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021 - [1651109859.015986][11588:11588] CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3844 (0xF04) - [1651109859.016024][11588:11588] CHIP:DL: Manufacturing Date: (not set) - [1651109859.016054][11588:11588] CHIP:DL: Device Type: 65535 (0xFFFF) - [1651109859.016082][11588:11588] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== - [1651109859.016147][11588:11588] CHIP:SVR: SetupQRCode: [MT:-24J04QI14KA0648G00] + After launching all-clusters-app using discriminator 3844 using below command + sudo ./chip-all-clusters-app --wifi --discriminator 3844 + + ./chip-tool discover commissionables + [1654068872.283184][8000:8005] CHIP:DL: Avahi resolve found + [1654068872.283316][8000:8005] CHIP:DIS: Hostname: E45F010F19FF0000 + [1654068872.283374][8000:8005] CHIP:DIS: IP Address #1: fe80::e65f:1ff:fe0f:19ff + [1654068872.283419][8000:8005] CHIP:DIS: Port: 5540 + [1654068872.283460][8000:8005] CHIP:DIS: Mrp Interval idle: 5000 ms + [1654068872.283503][8000:8005] CHIP:DIS: Mrp Interval active: 300 ms + [1654068872.283563][8000:8005] CHIP:DIS: Vendor ID: 65521 + [1654068872.283605][8000:8005] CHIP:DIS: Product ID: 32769 + [1654068872.283646][8000:8005] CHIP:DIS: Long Discriminator: 3844 + [1654068872.283687][8000:8005] CHIP:DIS: Pairing Hint: 33 + [1654068872.283728][8000:8005] CHIP:DIS: Instance Name: C50FE94C4952D393 + [1654068872.283768][8000:8005] CHIP:DIS: Commissioning Mode: 1 + [1654068872.285052][8000:8005] CHIP:DL: Avahi resolve found + [1654068872.285156][8000:8005] CHIP:DIS: Hostname: E45F010F27530000 + [1654068872.285211][8000:8005] CHIP:DIS: IP Address #1: fe80::e65f:1ff:fe0f:2755 + [1654068872.285254][8000:8005] CHIP:DIS: Port: 5540 + [1654068872.285296][8000:8005] CHIP:DIS: Mrp Interval idle: 5000 ms + [1654068872.285337][8000:8005] CHIP:DIS: Mrp Interval active: 300 ms + [1654068872.285378][8000:8005] CHIP:DIS: Vendor ID: 65521 + [1654068872.285418][8000:8005] CHIP:DIS: Product ID: 32769 + [1654068872.285458][8000:8005] CHIP:DIS: Long Discriminator: 3841 + [1654068872.285498][8000:8005] CHIP:DIS: Pairing Hint: 33 + [1654068872.285538][8000:8005] CHIP:DIS: Instance Name: DC47D37251924E87 + [1654068872.285579][8000:8005] CHIP:DIS: Commissioning Mode: 1 disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan TH1s QR code using the DUT Commissioner." + - label: "Scan TH1s QR code using the DUT Commissioner." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true @@ -87,8 +117,8 @@ tests: [1651109784376] [95553:65657838] CHIP: [TOO] Device commissioning completed with success disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan TH2s QR code using the DUT Commissioner." + - label: "Scan TH2s QR code using the DUT Commissioner." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_19.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_19.yaml index e6f6446a536696..62f2f9ba508e9d 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_19.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_19.yaml @@ -90,7 +90,7 @@ tests: CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008 CHIP:TOO: NOCResponse: { CHIP:TOO: statusCode: 0 - CHIP:TOO: fabricIndex: 2 + CHIP:TOO: fabricIndex: 1 CHIP:TOO: } CHIP:DMG: ICR moving to [AwaitingDe] disabled: true @@ -105,19 +105,19 @@ tests: On TH chip-tool: $ ./out/chip-tool/chip-tool discover commissionables [1651111576350] [95850:65678872] CHIP: [DL] Mdns: OnNewAddress interface: 7 ip:192.168.1.2 - [1651111576350] [95850:65678872] CHIP: [DIS] Vendor ID: 65521 - [1651111576350] [95850:65678872] CHIP: [DIS] Product ID: 32769 - [1651111576350] [95850:65678872] CHIP: [DIS] Long Discriminator: 3841 - [1651111576350] [95850:65678872] CHIP: [DIS] Pairing Hint: 33 - [1651111576350] [95850:65678872] CHIP: [DIS] Hostname: DCA6328D2B9F0000 - [1651111576350] [95850:65678872] CHIP: [DIS] Instance Name: F17CF4C2DECCDA4B - [1651111576350] [95850:65678872] CHIP: [DIS] IP Address #1: fe80::dea6:32ff:fe8d:2ba0 - [1651111576350] [95850:65678872] CHIP: [DIS] IP Address #2: fe80::dea6:32ff:fe8d:2b9f - [1651111576350] [95850:65678872] CHIP: [DIS] IP Address #3: 192.168.1.2 - [1651111576350] [95850:65678872] CHIP: [DIS] Port: 5540 - [1651111576350] [95850:65678872] CHIP: [DIS] Commissioning Mode: 1 - [1651111576350] [95850:65678872] CHIP: [DIS] Mrp Interval idle: 5000 ms - [1651111576350] [95850:65678872] CHIP: [DIS] Mrp Interval active: 300 ms + [1651111576350] [95850:65678872] CHIP: [DIS] Vendor ID: 65521 + [1651111576350] [95850:65678872] CHIP: [DIS] Product ID: 32769 + [1651111576350] [95850:65678872] CHIP: [DIS] Long Discriminator: 3841 + [1651111576350] [95850:65678872] CHIP: [DIS] Pairing Hint: 33 + [1651111576350] [95850:65678872] CHIP: [DIS] Hostname: DCA6328D2B9F0000 + [1651111576350] [95850:65678872] CHIP: [DIS] Instance Name: F17CF4C2DECCDA4B + [1651111576350] [95850:65678872] CHIP: [DIS] IP Address #1: fe80::dea6:32ff:fe8d:2ba0 + [1651111576350] [95850:65678872] CHIP: [DIS] IP Address #2: fe80::dea6:32ff:fe8d:2b9f + [1651111576350] [95850:65678872] CHIP: [DIS] IP Address #3: 192.168.1.2 + [1651111576350] [95850:65678872] CHIP: [DIS] Port: 5540 + [1651111576350] [95850:65678872] CHIP: [DIS] Commissioning Mode: 1 + [1651111576350] [95850:65678872] CHIP: [DIS] Mrp Interval idle: 5000 ms + [1651111576350] [95850:65678872] CHIP: [DIS] Mrp Interval active: 300 ms disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_2.yaml index 0e1d4b9d1c6628..6689e63f294300 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_2.yaml @@ -53,6 +53,7 @@ tests: - label: "If (PICS_WIFI) or (PICS_THREAD), Commissioner SHALL configure regulatory information in the Commissionee." + PICS: MCORE.DD.WIRELESS verification: | On TH: CHIP:CTL: Setting Regulatory Config diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_20.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_20.yaml index db4d868d6c4f2e..64d2ad99a54fb2 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_20.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_20.yaml @@ -42,8 +42,8 @@ tests: [1651109580.413525][31207:31207] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00] disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan THs QR code using the DUT Commissioner." + - label: "Scan THs QR code using the DUT Commissioner." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true @@ -102,8 +102,8 @@ tests: [1651110721.112838][31791:31791] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00] disabled: true - - label: - "If (PICS_SCAN_QR_CODE), Scan THs QR code using the DUT Commissioner." + - label: "Scan THs QR code using the DUT Commissioner." + PICS: MCORE.DD.SCAN_QR_CODE verification: | 1. Verify the QR code is scanned by DUT, chip-tool does not support physically scanning QR codes disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_3.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_3.yaml index 46c4c342d3b93a..f328055332e329 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_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: 3.3.3. [TC-DD-3.3] User Directed Commissioning - Commissionee +name: 3.3.3. [TC-DD-3.3] User Directed Commissioning [DUT - Commissionee] config: nodeId: 0x12344321 @@ -25,581 +25,67 @@ tests: "DUT start scanning for available commissioners using Commissioner Discovery" verification: | - + DUT should make 4 retries with 100ms timeout disabled: true - label: "TH is instructed to advertise Commissioner Discovery service" verification: | - DUT to advertsise commissioner discovery service, Ex: The TV app example in SDK is reference commissioner - - - sudo ./chip-tv-app - - CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> - CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> - CHIP:DL: AUDIT: * buf1: 990049D21B9116BA6C79CDAF106B9558 - CHIP:DL: AUDIT: * buf2: 06D468BC4397CDD99A72C6E753E3D097 - CHIP:DL: AUDIT: * r1: 0x9F437DC6 r2: 0xE5EBA97A - CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-mCbE1q) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/reboot-count = 8 (0x8) - CHIP:DL: Got Ethernet interface: eth0 - CHIP:DL: Found the primary Ethernet interface:eth0 - CHIP:DL: Got WiFi interface: wlan0 - CHIP:DL: Failed to reset WiFi statistic counts - CHIP:DL: Device Configuration: - CHIP:DL: Serial Number: TEST_SN - CHIP:DL: Vendor Id: 9050 (0x235A) - CHIP:DL: Product Id: 65279 (0xFEFF) - CHIP:DL: Product Revision: 0 - CHIP:DL: Setup Pin Code: 20202021 - CHIP:DL: Setup Discriminator: 3840 (0xF00) - CHIP:DL: Manufacturing Date: (not set) - CHIP:DL: Device Type: 35 (0x23) - CHIP:SVR: SetupQRCode: [MT:YNJV7VSC00KA0648G00] - CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00 - CHIP:SVR: Manual pairing code: [34970112332] - CHIP:ZCL: Using ZAP configuration... - ] CHIP:ZCL: OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table. - CHIP:DIS: Set the fabric pairing table delegate - CHIP:ZCL: OpCreds: Call to writeFabricsIntoFabricsListAttribute - CHIP:ZCL: OpCreds: Stored 0 fabrics in fabrics list attribute. - CHIP:ZCL: Failed to store mac address for endpoint: 1. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 3. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 4. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 5. Error:../include/endpoint-configuration/Endp - CHIP:DIS: Init fabric pairing table with server storage - CHIP:IN: UDP::Init bind&listen port=5540 - CHIP:IN: UDP::Init bound to port=5540 - CHIP:IN: UDP::Init bind&listen port=5540 - CHIP:IN: UDP::Init bound to port=5540 - CHIP:IN: TransportMgr initialized - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-aw9h7V) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/GlobalMCTR = 9000 (0x2328) - CHIP:DL: wpa_supplicant: _IsWiFiStationProvisioned: interface not connected - CHIP:DIS: Fabric 1 is not yet configured - CHIP:DIS: Fabric 2 is not yet configured - CHIP:DIS: Fabric 3 is not yet configured - CHIP:DIS: Fabric 4 is not yet configured - CHIP:DIS: Fabric 5 is not yet configured - CHIP:DIS: Fabric 6 is not yet configured - CHIP:DIS: Fabric 7 is not yet configured - CHIP:DIS: Fabric 8 is not yet configured - CHIP:DIS: Fabric 9 is not yet configured - CHIP:DIS: Fabric 10 is not yet configured - CHIP:DIS: Fabric 11 is not yet configured - CHIP:DIS: Fabric 12 is not yet configured - CHIP:DIS: Fabric 13 is not yet configured - CHIP:DIS: Fabric 14 is not yet configured - CHIP:DIS: Fabric 15 is not yet configured - CHIP:DIS: Fabric 16 is not yet configured - CHIP:SC: Assigned local session key ID 1 - CHIP:SC: Waiting for PBKDF param request - CHIP:DIS: DNS-SD StartServer mode=1 - CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../third_party/c - CHIP:DIS: CHIP minimal mDNS started advertising. - CHIP:DIS: Failed to find a valid admin pairing. Node ID unknown - CHIP:DIS: Start dns-sd server - no current nodeId - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Scheduling Discovery timeout in secs=900 - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissioner device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: DNS-SD StartServer mode=0 - CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../third_party/c - CHIP:DIS: CHIP minimal mDNS started advertising. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Failed to find a valid admin pairing. Node ID unknown - CHIP:DIS: Start dns-sd server - no current nodeId - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Scheduling Discovery timeout in secs=900 - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissioner device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:IN: CASE Server enabling CASE session setups - CHIP:SVR: Server Listening... - CHIP:DL: Device Configuration: - CHIP:DL: Serial Number: TEST_SN - CHIP:DL: Vendor Id: 9050 (0x235A) - CHIP:DL: Product Id: 65279 (0xFEFF) - CHIP:DL: Product Revision: 0 - CHIP:DL: Setup Pin Code: 20202021 - CHIP:DL: Setup Discriminator: 3840 (0xF00) - CHIP:DL: Manufacturing Date: (not set) - CHIP:DL: Device Type: 35 (0x23) - CHIP:SVR: SetupQRCode: [MT:YNJV7VSC00KA0648G00] - CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00 - CHIP:SVR: Manual pairing code: [34970112332] - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:CTL: Generating NOC - CHIP:CTL: Generating ICAC - CHIP:SVR: Retrieved value from server storage. - CHIP:IN: UDP::Init bind&listen port=5542 - CHIP:IN: UDP::Init bound to port=5542 - CHIP:IN: UDP::Init bind&listen port=5542 - CHIP:IN: UDP::Init bound to port=5542 - CHIP:IN: TransportMgr initialized - CHIP:DIS: Init fabric pairing table with server storage - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-ZAecx4) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/GlobalMCTR = 10000 (0x2710) - CHIP:CTL: System State Initialized... - CHIP:ZCL: Using ZAP configuration... - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table. - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:DIS: Set the fabric pairing table delegate - CHIP:ZCL: OpCreds: Call to writeFabricsIntoFabricsListAttribute - CHIP:ZCL: OpCreds: Stored 0 fabrics in fabrics list attribute. - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Failed to store mac address for endpoint: 1. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 3. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 4. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 5. Error:../include/endpoint-configuration/Endp - CHIP:SVR: Retrieved value from server storage. - CHIP:DIS: Verifying the received credentials - CHIP:DIS: Added new fabric at index: 1, Initialized: 0 - CHIP:DIS: Assigned compressed fabric ID: 0x810A763DC0609539, node ID: 0xFFFFFFFEFFFFFFFF - CHIP:CTL: Joined the fabric at index 1. Compressed fabric ID is: 0x810A763DC0609539 - CHIP:SVR: Retrieved value from server storage. - CHIP:IN: UDP::Init bind&listen port=5550 - CHIP:IN: UDP::Init bound to port=5550 - CHIP:IN: UDP::Init bind&listen port=5550 - CHIP:IN: UDP::Init bound to port=5550 - CHIP:IN: TransportMgr initialized - CHIP:DL: TRACE: Bluez mainloop starting Thread - CHIP:DL: TRACE: Bus acquired for name MATTER-3840 - CHIP:DL: CREATE service object at /chipoble/17db/service - CHIP:DL: Create characteristic object at /chipoble/17db/service/c1 - CHIP:DL: Create characteristic object at /chipoble/17db/service/c2 - CHIP:DL: CHIP BTP C1 /chipoble/17db/service - CHIP:DL: CHIP BTP C2 /chipoble/17db/service - CHIP:DL: CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING is TRUE - CHIP:DL: Create characteristic object at /chipoble/17db/service/c3 - CHIP:DL: CHIP BTP C3 /chipoble/17db/service - CHIP:DL: PlatformBlueZInit init success - CHIP:DL: BluezPeripheralRegisterAppDone done - CHIP:DL: HandlePlatformSpecificBLEEvent 16392 - CHIP:DL: Create adv object at /chipoble/17db/advertising - CHIP:DL: SET service data to {'0xFFF6': <[byte 0x00, 0x00, 0x0f, 0x5a, 0x23, 0xff, 0xfe]>} - CHIP:DL: HandlePlatformSpecificBLEEvent 16393 - CHIP:DL: CHIPoBLE advertising config complete - CHIP:DL: RegisterAdvertisement complete - CHIP:DL: HandlePlatformSpecificBLEEvent 16394 - + ubuntu@ubuntu:~/may23_DUT/connectedhomeip/examples/tv-app/linux/out/tv-app$ sudo ./chip-tv-app - 2F: Invalid argument - 07] CHIP:DL: Caught signal 2 - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-1yqzCI) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/boot-reason = 6 (0x6) - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9LKrPO) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0) - CHIP:DL: Inet Layer shutdown - CHIP:DL: BLE layer shutdown - CHIP:DL: System Layer shutdown - CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-Q5U5bp) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0) - CHIP:DL: Inet Layer shutdown - CHIP:DL: BLE layer shutdown - CHIP:DL: System Layer shutdown + CHIP:DL: Using wifi MAC for hostname + CHIP:DIS: Advertise operational node DFC28FF9FE811EF2-FFFFFFEFFFFFFFFF + CHIP:DIS: CHIP minimal mDNS configured as 'Operational device'. + CHIP:DIS: Broadcasting mDns reply for query from disabled: true - label: "DUT start scanning for available commissioners using Commissioner Discovery" verification: | - On the second RPI start tv-casting-app - - ubuntu@matter-te-6:~/connectedhomeip/examples/tv-casting-app/linux/out/debug$ ./chip-tv-casting-app - - - - AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== - AUDIT: * Validate buf1 and buf2 are <<>> - AUDIT: * Validate r1 and r2 are <<>> - AUDIT: * buf1: 8643126A627C1C289E7CBD1C0B59485B - AUDIT: * buf2: E9A8AB9589D71155E7B161FC3DBB66CE - AUDIT: * r1: 0x3A338FB7 r2: 0xCC480665 - AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== - writing settings to file (/tmp/chip_counters.ini-oR46os) - renamed tmp file to file (/tmp/chip_counters.ini) - NVS set: chip-counters/reboot-count = 12 (0xC) - Got Ethernet interface: eth0 - Found the primary Ethernet interface:eth0 - Got WiFi interface: wlan0 - Failed to reset WiFi statistic counts - MDNS failed to join multicast group on veth5731933 for address type IPv4: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:387: Inet Error 0x00000110: Address not found - MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:387: Inet Error 0x00000110: Address not found - MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:387: Inet Error 0x00000110: Address not found - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Discovered Commissioner #1 - Device Name: Test TV - Vendor ID: 9050 - Product ID: 65279 - Device Type: 35 - Hostname: EEAABADABAD0DDCA - IP Address #1: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 - IP Address #2: fe80::dea6:32ff:fef9:f0a1 - IP Address #3: 192.168.1.12 - Port: 5550 - Commissioning Mode: 0 - 1 commissioner(s) discovered. Select one (by number# above) to request commissioning from: + connectedhomeip/examples/tv-casting-app/linux/out/tv-casting-app$ sudo ./chip-tv-casting-app + + CHIP:SVR: Discovered Commissioner #0 + [1653478433.097515][3785:3785] CHIP:DIS: Hostname: E45F010F19FF0000 + [1653478433.097546][3785:3785] CHIP:DIS: IP Address #1: fe80::d83a:21ff:fe24:b6d6 + [1653478433.097570][3785:3785] CHIP:DIS: Port: 5540 + [1653478433.097593][3785:3785] CHIP:DIS: Mrp Interval idle: 5000 ms + [1653478433.097615][3785:3785] CHIP:DIS: Mrp Interval active: 300 ms + [1653478433.097641][3785:3785] CHIP:DIS: Rotating ID: 0000406E4D7073744BF234AD391DAE869837 + [1653478433.097664][3785:3785] CHIP:DIS: Device Name: Test TV casting app + [1653478433.097686][3785:3785] CHIP:DIS: Vendor ID: 65521 + [1653478433.097709][3785:3785] CHIP:DIS: Product ID: 32769 + [1653478433.097731][3785:3785] CHIP:DIS: Device Type: 35 + [1653478433.097753][3785:3785] CHIP:DIS: Pairing Hint: 33 + [1653478433.097775][3785:3785] CHIP:DIS: Instance Name: C1E39719B158802A + [1653478433.097797][3785:3785] CHIP:DIS: Commissioning Mode: 0 + [1653478433.097821][3785:3785] CHIP:SVR: Discovered Commissioner #1 + [1653478433.097841][3785:3785] CHIP:DIS: Hostname: E45F010F27530000 + [1653478433.097867][3785:3785] CHIP:DIS: IP Address #1: fe80::e65f:1ff:fe0f:2755 + [1653478433.097890][3785:3785] CHIP:DIS: Port: 5650 + [1653478433.097912][3785:3785] CHIP:DIS: Mrp Interval idle: 5000 ms + [1653478433.097934][3785:3785] CHIP:DIS: Mrp Interval active: 300 ms + [1653478433.097956][3785:3785] CHIP:DIS: Device Name: Test TV + [1653478433.097979][3785:3785] CHIP:DIS: Vendor ID: 65521 + [1653478433.098001][3785:3785] CHIP:DIS: Product ID: 32769 + [1653478433.098023][3785:3785] CHIP:DIS: Device Type: 35 + [1653478433.098056][3785:3785] CHIP:DIS: Instance Name: 02DEC0D7B8A76577 + [1653478433.098076][3785:3785] CHIP:DIS: Commissioning Mode: 0 + [1653478433.098103][3785:3785] CHIP:SVR: 2 commissioner(s) discovered. Select one (by number# above) to request commissioning from: + [1653478433.098124][3785:3785] CHIP:SVR: Example: cast request 0 disabled: true - label: "DUT is instructed to start the commissioning procedure with the TH found at step 2" verification: | - Select option 1 on TH + This particular step is Out of scope for V1.0 + + https://github.com/CHIP-Specifications/chip-test-plans/issues/1312 disabled: true - label: "TH verifies the Identification Declaration message" verification: | - On DUT. + This particular step is Out of scope for V1.0 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: OnCommissionableNodeFound instance: name=420604DE2A8F19A2 old_state=1 new_state=3 - CHIP:CTL: ------PROMPT USER!! OnUserDirectedCommissioningRequest instance=420604DE2A8F19A2 deviceName=Test TV casting app - CHIP:SVR: UDC Client[0] instance=420604DE2A8F19A2 deviceName=Test TV casting app address=UDP:192.168.1.11:5540, disc=3840 + https://github.com/CHIP-Specifications/chip-test-plans/issues/1312 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_4.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_4.yaml index 34a7f960647881..c2e2d53dfa8054 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_4.yaml @@ -13,9 +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: - 3.3.4. [TC-DD-3.4] User Directed Commissioning - Commissioner [DUT - - Commissioner] +name: 3.3.4. [TC-DD-3.4] User Directed Commissioning [DUT - Commissioner] config: nodeId: 0x12344321 @@ -25,581 +23,64 @@ config: tests: - label: "DUT is instructed to advertise Commissioner Discovery service" verification: | - DUT to advertsise commissioner discovery service, Ex: The TV app example in SDK is reference commissioner + ubuntu@ubuntu:~/may23_DUT/connectedhomeip/examples/tv-app/linux/out/tv-app$ sudo ./chip-tv-app - - '' ./chip-tv-app - - CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> - CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> - CHIP:DL: AUDIT: * buf1: 990049D21B9116BA6C79CDAF106B9558 - CHIP:DL: AUDIT: * buf2: 06D468BC4397CDD99A72C6E753E3D097 - CHIP:DL: AUDIT: * r1: 0x9F437DC6 r2: 0xE5EBA97A - CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-mCbE1q) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/reboot-count = 8 (0x8) - CHIP:DL: Got Ethernet interface: eth0 - CHIP:DL: Found the primary Ethernet interface:eth0 - CHIP:DL: Got WiFi interface: wlan0 - CHIP:DL: Failed to reset WiFi statistic counts - CHIP:DL: Device Configuration: - CHIP:DL: Serial Number: TEST_SN - CHIP:DL: Vendor Id: 9050 (0x235A) - CHIP:DL: Product Id: 65279 (0xFEFF) - CHIP:DL: Product Revision: 0 - CHIP:DL: Setup Pin Code: 20202021 - CHIP:DL: Setup Discriminator: 3840 (0xF00) - CHIP:DL: Manufacturing Date: (not set) - CHIP:DL: Device Type: 35 (0x23) - CHIP:SVR: SetupQRCode: [MT:YNJV7VSC00KA0648G00] - CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00 - CHIP:SVR: Manual pairing code: [34970112332] - CHIP:ZCL: Using ZAP configuration... - ] CHIP:ZCL: OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table. - CHIP:DIS: Set the fabric pairing table delegate - CHIP:ZCL: OpCreds: Call to writeFabricsIntoFabricsListAttribute - CHIP:ZCL: OpCreds: Stored 0 fabrics in fabrics list attribute. - CHIP:ZCL: Failed to store mac address for endpoint: 1. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 3. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 4. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 5. Error:../include/endpoint-configuration/Endp - CHIP:DIS: Init fabric pairing table with server storage - CHIP:IN: UDP::Init bind&listen port=5540 - CHIP:IN: UDP::Init bound to port=5540 - CHIP:IN: UDP::Init bind&listen port=5540 - CHIP:IN: UDP::Init bound to port=5540 - CHIP:IN: TransportMgr initialized - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-aw9h7V) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/GlobalMCTR = 9000 (0x2328) - CHIP:DL: wpa_supplicant: _IsWiFiStationProvisioned: interface not connected - CHIP:DIS: Fabric 1 is not yet configured - CHIP:DIS: Fabric 2 is not yet configured - CHIP:DIS: Fabric 3 is not yet configured - CHIP:DIS: Fabric 4 is not yet configured - CHIP:DIS: Fabric 5 is not yet configured - CHIP:DIS: Fabric 6 is not yet configured - CHIP:DIS: Fabric 7 is not yet configured - CHIP:DIS: Fabric 8 is not yet configured - CHIP:DIS: Fabric 9 is not yet configured - CHIP:DIS: Fabric 10 is not yet configured - CHIP:DIS: Fabric 11 is not yet configured - CHIP:DIS: Fabric 12 is not yet configured - CHIP:DIS: Fabric 13 is not yet configured - CHIP:DIS: Fabric 14 is not yet configured - CHIP:DIS: Fabric 15 is not yet configured - CHIP:DIS: Fabric 16 is not yet configured - CHIP:SC: Assigned local session key ID 1 - CHIP:SC: Waiting for PBKDF param request - CHIP:DIS: DNS-SD StartServer mode=1 - CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../third_party/c - CHIP:DIS: CHIP minimal mDNS started advertising. - CHIP:DIS: Failed to find a valid admin pairing. Node ID unknown - CHIP:DIS: Start dns-sd server - no current nodeId - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Scheduling Discovery timeout in secs=900 - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissioner device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: DNS-SD StartServer mode=0 - CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../third_party/c - CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../third_party/c - CHIP:DIS: CHIP minimal mDNS started advertising. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Failed to find a valid admin pairing. Node ID unknown - CHIP:DIS: Start dns-sd server - no current nodeId - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Scheduling Discovery timeout in secs=900 - CHIP:DL: MAC is not known, using a default. - CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 - CHIP:DIS: CHIP minimal mDNS configured as 'Commissioner device'. - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 192.168.1.11 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.17.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.21.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.18.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.19.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 172.20.0.1 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from 2402:e280:2108:181:e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe0e:bf41 - CHIP:DIS: Broadcasting mDns reply for query from fd11:db8:1::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Failed to advertise records: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp: - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fd00:6d61:7474:6572::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::42:eeff:fec7:c619 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::1 - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::907b:c7ff:fe3e:b49c - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::789d:4aff:fec4:2745 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:DIS: Broadcasting mDns reply for query from fe80::e8b9:daff:fee9:9934 - CHIP:IN: CASE Server enabling CASE session setups - CHIP:SVR: Server Listening... - CHIP:DL: Device Configuration: - CHIP:DL: Serial Number: TEST_SN - CHIP:DL: Vendor Id: 9050 (0x235A) - CHIP:DL: Product Id: 65279 (0xFEFF) - CHIP:DL: Product Revision: 0 - CHIP:DL: Setup Pin Code: 20202021 - CHIP:DL: Setup Discriminator: 3840 (0xF00) - CHIP:DL: Manufacturing Date: (not set) - CHIP:DL: Device Type: 35 (0x23) - CHIP:SVR: SetupQRCode: [MT:YNJV7VSC00KA0648G00] - CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00 - CHIP:SVR: Manual pairing code: [34970112332] - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:CTL: Generating NOC - CHIP:CTL: Generating ICAC - CHIP:SVR: Retrieved value from server storage. - CHIP:IN: UDP::Init bind&listen port=5542 - CHIP:IN: UDP::Init bound to port=5542 - CHIP:IN: UDP::Init bind&listen port=5542 - CHIP:IN: UDP::Init bound to port=5542 - CHIP:IN: TransportMgr initialized - CHIP:DIS: Init fabric pairing table with server storage - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:SVR: Retrieved value from server storage. - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-ZAecx4) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/GlobalMCTR = 10000 (0x2710) - CHIP:CTL: System State Initialized... - CHIP:ZCL: Using ZAP configuration... - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: OpCreds: Initiating OpCreds cluster by writing fabrics list from fabric table. - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:DIS: Set the fabric pairing table delegate - CHIP:ZCL: OpCreds: Call to writeFabricsIntoFabricsListAttribute - CHIP:ZCL: OpCreds: Stored 0 fabrics in fabrics list attribute. - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Duplicate attribute override registration failed - CHIP:ZCL: Failed to store mac address for endpoint: 1. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 3. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 4. Error:../include/endpoint-configuration/Endp - CHIP:ZCL: Failed to store application for endpoint: 5. Error:../include/endpoint-configuration/Endp - CHIP:SVR: Retrieved value from server storage. - CHIP:DIS: Verifying the received credentials - CHIP:DIS: Added new fabric at index: 1, Initialized: 0 - CHIP:DIS: Assigned compressed fabric ID: 0x810A763DC0609539, node ID: 0xFFFFFFFEFFFFFFFF - CHIP:CTL: Joined the fabric at index 1. Compressed fabric ID is: 0x810A763DC0609539 - CHIP:SVR: Retrieved value from server storage. - CHIP:IN: UDP::Init bind&listen port=5550 - CHIP:IN: UDP::Init bound to port=5550 - CHIP:IN: UDP::Init bind&listen port=5550 - CHIP:IN: UDP::Init bound to port=5550 - CHIP:IN: TransportMgr initialized - CHIP:DL: TRACE: Bluez mainloop starting Thread - CHIP:DL: TRACE: Bus acquired for name MATTER-3840 - CHIP:DL: CREATE service object at /chipoble/17db/service - CHIP:DL: Create characteristic object at /chipoble/17db/service/c1 - CHIP:DL: Create characteristic object at /chipoble/17db/service/c2 - CHIP:DL: CHIP BTP C1 /chipoble/17db/service - CHIP:DL: CHIP BTP C2 /chipoble/17db/service - CHIP:DL: CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING is TRUE - CHIP:DL: Create characteristic object at /chipoble/17db/service/c3 - CHIP:DL: CHIP BTP C3 /chipoble/17db/service - CHIP:DL: PlatformBlueZInit init success - CHIP:DL: BluezPeripheralRegisterAppDone done - CHIP:DL: HandlePlatformSpecificBLEEvent 16392 - CHIP:DL: Create adv object at /chipoble/17db/advertising - CHIP:DL: SET service data to {'0xFFF6': <[byte 0x00, 0x00, 0x0f, 0x5a, 0x23, 0xff, 0xfe]>} - CHIP:DL: HandlePlatformSpecificBLEEvent 16393 - CHIP:DL: CHIPoBLE advertising config complete - CHIP:DL: RegisterAdvertisement complete - CHIP:DL: HandlePlatformSpecificBLEEvent 16394 - - - 2F: Invalid argument - 07] CHIP:DL: Caught signal 2 - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-1yqzCI) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/boot-reason = 6 (0x6) - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9LKrPO) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0) - CHIP:DL: Inet Layer shutdown - CHIP:DL: BLE layer shutdown - CHIP:DL: System Layer shutdown - CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack - CHIP:DL: writing settings to file (/tmp/chip_counters.ini-Q5U5bp) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) - CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0) - CHIP:DL: Inet Layer shutdown - CHIP:DL: BLE layer shutdown - CHIP:DL: System Layer shutdown + CHIP:DL: Using wifi MAC for hostname + CHIP:DIS: Advertise operational node DFC28FF9FE811EF2-FFFFFFEFFFFFFFFF + CHIP:DIS: CHIP minimal mDNS configured as 'Operational device'. + CHIP:DIS: Broadcasting mDns reply for query from disabled: true - label: "TH start scanning for available commissioners using Commissioner Discovery" verification: | - On the second RPI start tv-casting-app - - ubuntu@matter-te-6:~/connectedhomeip/examples/tv-casting-app/linux/out/debug$ ./chip-tv-casting-app - - - - AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== - AUDIT: * Validate buf1 and buf2 are <<>> - AUDIT: * Validate r1 and r2 are <<>> - AUDIT: * buf1: 8643126A627C1C289E7CBD1C0B59485B - AUDIT: * buf2: E9A8AB9589D71155E7B161FC3DBB66CE - AUDIT: * r1: 0x3A338FB7 r2: 0xCC480665 - AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== - writing settings to file (/tmp/chip_counters.ini-oR46os) - renamed tmp file to file (/tmp/chip_counters.ini) - NVS set: chip-counters/reboot-count = 12 (0xC) - Got Ethernet interface: eth0 - Found the primary Ethernet interface:eth0 - Got WiFi interface: wlan0 - Failed to reset WiFi statistic counts - MDNS failed to join multicast group on veth5731933 for address type IPv4: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:387: Inet Error 0x00000110: Address not found - MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:387: Inet Error 0x00000110: Address not found - MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:387: Inet Error 0x00000110: Address not found - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/IPEndPointBasis.cpp:687: OS Error 0x02000065: Network is unreachable - Discovered Commissioner #1 - Device Name: Test TV - Vendor ID: 9050 - Product ID: 65279 - Device Type: 35 - Hostname: EEAABADABAD0DDCA - IP Address #1: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 - IP Address #2: fe80::dea6:32ff:fef9:f0a1 - IP Address #3: 192.168.1.12 - Port: 5550 - Commissioning Mode: 0 - 1 commissioner(s) discovered. Select one (by number# above) to request commissioning from: + ubuntu@ubuntu:~/may23_cntrl/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matterd._udp + + + eth0 IPv6 A0BF4D00BE973DEC _matterd._udp local + + eth0 IPv6 252FB62C79E2724B _matterd._udp local + = eth0 IPv6 A0BF4D00BE973DEC _matterd._udp local + hostname = [E45F010F27530000.local] + address = [fe80::e65f:1ff:fe0f:2755] + port = [5650] + txt = ["T=1" "SAI=300" "SII=5000" "DN=Test TV" "DT=35" "VP=65521+32769"] + = eth0 IPv6 252FB62C79E2724B _matterd._udp local + hostname = [E45F010F27530000.local] + address = [fe80::e65f:1ff:fe0f:2755] + port = [5650] + txt = ["T=1" "SAI=300" "SII=5000" "DN=Test TV" "DT=35" "VP=65521+32769"] disabled: true - label: "TH is instructed to start the commissioning procedure with the DUT found at step 2" verification: | - Select option 1 on TH + This particular step is Out of scope for V1.0 + + https://github.com/CHIP-Specifications/chip-test-plans/issues/1312 disabled: true - label: "DUT verify the Identification Declaration message" verification: | - On DUT. + This particular step is Out of scope for V1.0 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: UserDirectedCommissioningServer::OnMessageReceived - CHIP:SVR: UDC instance=420604DE2A8F19A2 - CHIP:SVR: OnCommissionableNodeFound instance: name=420604DE2A8F19A2 old_state=1 new_state=3 - CHIP:CTL: ------PROMPT USER!! OnUserDirectedCommissioningRequest instance=420604DE2A8F19A2 deviceName=Test TV casting app - CHIP:SVR: UDC Client[0] instance=420604DE2A8F19A2 deviceName=Test TV casting app address=UDP:192.168.1.11:5540, disc=3840 + https://github.com/CHIP-Specifications/chip-test-plans/issues/1312 disabled: true - label: "By any means DUT prompt user for onboarding payload" verification: | disabled: true + + - label: "DUT start the commissioning procedure with TH" + verification: | + ./chip-tool pairing ethernet 1 20202021 3840 fe80::e65f:1ff:fe0f:2755 5640 + + [1653559159.021348][4240:4246] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1653559159.021432][4240:4246] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1653559159.021499][4240:4246] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1653559159.021554][4240:4246] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1653559159.021611][4240:4246] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1653559159.021725][4240:4246] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1653559159.021790][4240:4246] CHIP:TOO: Device commissioning completed with success + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_5.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_5.yaml index f90a91e12147de..3705c397c6837f 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_5.yaml @@ -41,12 +41,12 @@ tests: [1653471956.972509][10713:10713] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ==== [1653471956.972546][10713:10713] CHIP:SVR: SetupQRCode: [MT:-24J0CEK01KA0648G00] [1653471956.972579][10713:10713] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - [1653471956.972600][10713:10713] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0CEK01KA0648G00 + [1653471956.972600][10713:10713] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J0CEK01KA0648G00 [1653471956.972632][10713:10713] CHIP:SVR: Manual pairing code: [34970112332] [1653471956.972654][10713:10713] CHIP:-: ==== Onboarding payload for Custom Commissioning Flows ==== [1653471956.972715][10713:10713] CHIP:SVR: SetupQRCode: [MT:-24J048N01KA0648G00] [1653471956.972748][10713:10713] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: - [1653471956.972769][10713:10713] CHIP:SVR: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J048N01KA0648G00 + [1653471956.972769][10713:10713] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J048N01KA0648G00 [1653471956.972803][10713:10713] CHIP:SVR: Manual pairing code: [749701123365521327694] @@ -201,8 +201,10 @@ tests: - label: "Commissioner and Commissionee discover each other and connect via the - discovery mode applicable for the DUT. If (PICS_DT_IP), TH device is - advertising over IP Network using DNS-based Service Discovery (DNS-SD)" + discovery mode applicable for the DUT. If (MCORE.DD.DT_IP), TH device + is advertising over IP Network using DNS-based Service Discovery + (DNS-SD)" + PICS: MCORE.DD.DT_IP verification: | Verify on DUT: @@ -356,7 +358,7 @@ tests: verification: | Verify that the responder receives the PBKDFParamRequest message - Check on DUT: + Check on TH: CHIP:SC: Received PBKDF param request CHIP:SC: Peer assigned session ID 18450 CHIP:SC: Found MRP parameters in the message @@ -366,7 +368,7 @@ tests: CHIP:IN: Sending unauthenticated msg 0xaaaaad340560 with MessageCounter:1341084110 to 0x0000000000000000 at monotonic time: 0000000000FBA380 msec CHIP:SC: Sent PBKDF param response - Check on TH: + Check on DUT: Sent PBKDF param request [1653471961.364996][30157:30162] CHIP:CTL: Setting wifi credentials from parameters [1653471961.365051][30157:30162] CHIP:CTL: Setting attestation nonce to random value @@ -384,27 +386,28 @@ tests: "Commissioner SHALL re-arm Fail-safe timer on Commissionee within 60s (the autonomously Fail-safe timer length set by Commissionee)" verification: | - Verify on DUT: + Verify on TH: CHIP:DL: NVS set: chip-config/fail-safe-armed = true - Verify on TH: + Verify on DUT: : Performing next commissioning step 'ArmFailSafe' [1653471968.064493][30157:30162] CHIP:CTL: Arming failsafe (60 seconds) disabled: true - label: - "If (PICS_WIFI) or (PICS_THREAD), Commissioner SHALL configure - regulatory information in the Commissionee." + "Commissioner SHALL configure regulatory information in the + Commissionee." + PICS: MCORE.DD.WIRELESS verification: | - Verify on TH Log: + Verify on DUT Log: Performing next commissioning step 'ConfigRegulatory' [1653471968.202645][30157:30162] CHIP:CTL: Setting Regulatory Config [1653471968.202666][30157:30162] CHIP:CTL: No regulatory config supplied by controller, leaving as device default (0) - Verify on DUT: + Verify on TH: NVS set: chip-config/regulatory-location = 0 (0x0) disabled: true @@ -412,13 +415,13 @@ tests: "Commissioner requests operational CSR from Commissionee with OperationalCSRRequest command" verification: | - Verify the following on TH after commissioning + Verify the following on DUT after commissioning [1646909537.102263][3145:3150] CHIP:CTL: Received Attestation Information from the device [1646909537.102418][3145:3150] CHIP:CTL: Verifying attestation [1646909537.115081][3145:3150] CHIP:CTL: Successfully validated 'Attestation Information' command received from the device. - Verify on DUT: + Verify on TH: CHIP:ZCL: OpCreds: commissioner has requested a CSR CHIP:ZCL: OpCreds: NewCertificateSigningRequest returned ../../third_party/connectedhomeip/src/crypto/CHIPCryptoPALOpenSSL.cpp:1114: Success disabled: true @@ -427,11 +430,11 @@ tests: "Commissioner configures operational credentials on DUT if not previously installed" verification: | - Verify on DUT: + Verify on TH: OpCreds: Received an AddTrustedRootCertificate command - Verify on TH: + Verify on DUT: Sending root certificate to the device CHIP:DMG: ICR moving to [AddingComm] @@ -446,7 +449,7 @@ tests: "Commissioner configures itself as administrator in ACL on TH if needed" verification: | - Verify the following on TH after commissioning + Verify the following on DUT after commissioning CHIP:CTL: Commissioning stage next step: 'SendTrustedRootCert' -> 'SendNOC' [1653471969.812357][30157:30162] CHIP:CTL: Performing next commissioning step 'SendNOC' @@ -500,7 +503,7 @@ tests: [1653471970.347439][30157:30162] CHIP:TOO: Secure Pairing Success [1653471970.347485][30157:30162] CHIP:CTL: Successfully finished commissioning step 'SendNOC' - Verify on DUT: + Verify on TH: OpCreds: Received an AddNOC command disabled: true @@ -509,7 +512,7 @@ tests: "Commissioner configures operational network on TH if TH both supports and requires" verification: | - Verify the following on TH after commissioning + Verify the following on DUT after commissioning [1646909537.345068][3145:3150] CHIP:CTL: Received certificate signing request from the device disabled: true @@ -518,7 +521,7 @@ tests: "Commissioner instructs Commissionee to connect to operational network if not already connected" verification: | - Verify the following on TH after commissioning + Verify the following on DUT after commissioning [1646909537.976592][3145:3150] CHIP:CTL: Operational credentials provisioned on device 0xffffac001730 [1646909537.976664][3145:3150] CHIP:TOO: Secure Pairing Success @@ -526,7 +529,7 @@ tests: - label: "Commissioner starts discovery of TH using Operational Discovery" verification: | - Verify the following on TH: + Verify the following on DUT: Commissioning stage next step: 'WiFiNetworkEnable' -> 'FindOperational' [1653471976.344532][30157:30162] CHIP:CTL: Performing next commissioning step 'FindOperational' @@ -549,7 +552,7 @@ tests: - label: "Commissioner opens a CASE session with TH over operational network" verification: | - Verify the following on DUT: + Verify the following on TH: CASE Server enabling CASE session setups [1653471957.713139][10713:10713] CHIP:SVR: Joining Multicast groups @@ -560,7 +563,7 @@ tests: - label: "Commissioner sends CommissioningComplete command" verification: | - Verify the following on TH: + Verify the following on DUT: CHIP:CTL: Received CommissioningComplete response disabled: true @@ -569,7 +572,7 @@ tests: "Commissioning channel between the Commissioner and Commissionee is terminated." verification: | - Verify the following on TH: + Verify the following on DUT: CHIP:CTL: Successfully finished commissioning step 'SendComplete' CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_6.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_6.yaml index dfc4efa8cdad97..10590e2df572f6 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_6.yaml @@ -58,8 +58,9 @@ tests: disabled: true - label: - "If (PICS_WIFI) or (PICS_THREAD), Commissioner SHALL configure - regulatory information in the Commissionee." + "Commissioner SHALL configure regulatory information in the + Commissionee." + PICS: MCORE.DD.WIRELESS verification: | Need chip-tool implementation disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_7.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_7.yaml index 6c4afdcb7f70f7..6948b45f5b129b 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_7.yaml @@ -40,7 +40,7 @@ tests: Reference : below Full log for the above commands (click on this cell if you like to see complete log) - controller > ./chip-tool discover commissionables + connectedhomeip/examples/chip-tool/out/debug$ ./chip-tool discover commissionables Waiting for device responses... CHIP:CTL: Generating ICAC CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== @@ -184,13 +184,12 @@ tests: CHIP:DIS: Address 2: 192.168.1.12 - controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 192.168.1.12 5540 + connectedhomeip/examples/chip-tool/out/debug$ sudo ./chip-tool pairing ethernet 112233 20202021 3840 fe80::e65f:1ff:fe0f:2753 5540 - Output of this command in cell number I6 and J6 due to cell constraint of maximum size. - controller> sudo ./chip-tool basic read product-name 0x000000000001B669 0 + connectedhomeip/examples/chip-tool/out/debug$ sudo ./chip-tool basic read product-name 0x000000000001B669 0 ,, disabled: true @@ -555,10 +554,11 @@ tests: disabled: true - label: - "If (PICS_WIFI) or (PICS_THREAD), Commissioner SHALL configure - regulatory information in the Commissionee." + "Commissioner SHALL configure regulatory information in the + Commissionee." + PICS: MCORE.DD.WIRELESS verification: | - Need chip-tool implementation + Need test step review, potentially not a hard requirement so would not be required in test case disabled: true - label: @@ -592,6 +592,9 @@ tests: needed" verification: | Verify the following on DUT after commissioning + + + [1646909537.115328][3145:3150] CHIP:CTL: Sending CSR request to 0xffffac001730 device [1646909537.115512][3145:3150] CHIP:DMG: ICR moving to [AddingComm] [1646909537.115589][3145:3150] CHIP:DMG: ICR moving to [AddedComma] diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_8.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_8.yaml index 563872367b5ba5..1e0500759afca0 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_8.yaml @@ -59,8 +59,9 @@ tests: disabled: true - label: - "If (PICS_WIFI) or (PICS_THREAD), Commissioner SHALL configure - regulatory information in the Commissionee." + "Commissioner SHALL configure regulatory information in the + Commissionee." + PICS: MCORE.DD.WIRELESS verification: | On DUT: CHIP:CTL: Setting Regulatory Config @@ -375,10 +376,11 @@ tests: disabled: true - label: - "If (PICS_WIFI) or (PICS_THREAD), Commissioner SHALL configure - regulatory information in the Commissionee." + "Commissioner SHALL configure regulatory information in the + Commissionee." + PICS: MCORE.DD.WIRELESS verification: | - Need chip-tool implementation + Need test step review, potentially not a hard requirement so would not be required in test case disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_2_1.yaml index 25739999b1f84b..a94faa0ebda955 100644 --- a/src/app/tests/suites/certification/Test_TC_DGETH_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGETH_2_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Read PHYRate attribute constraints" + PICS: DGETH.S.A0000 command: "readAttribute" attribute: "PHYRate" response: @@ -38,6 +39,7 @@ tests: maxValue: 9 - label: "Read FullDuplex attribute constraints" + PICS: DGETH.S.A0001 command: "readAttribute" attribute: "FullDuplex" response: @@ -46,6 +48,7 @@ tests: #issue #13648 - label: "Read PacketRxCount attribute constraints" + PICS: DGETH.S.A0002 command: "readAttribute" attribute: "PacketRxCount" response: @@ -63,7 +66,7 @@ tests: [1649663623.009973][8103:8108] CHIP:TOO: PacketRxCount: 3322 cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && DGETH.S.A0002 arguments: values: - name: "message" @@ -72,6 +75,7 @@ tests: value: "y" - label: "Read PacketTxCount attribute constraints" + PICS: DGETH.S.A0003 command: "readAttribute" attribute: "PacketTxCount" response: @@ -89,7 +93,7 @@ tests: [1649663793.192934][8117:8122] CHIP:TOO: PacketTxCount: 3220 cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && DGETH.S.A0003 arguments: values: - name: "message" @@ -98,6 +102,7 @@ tests: value: "y" - label: "Read TxErrCount attribute constraints" + PICS: DGETH.S.A0004 command: "readAttribute" attribute: "TxErrCount" response: @@ -115,7 +120,7 @@ tests: [1649663843.295395][8123:8128] CHIP:TOO: TxErrCount: 0 cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && DGETH.S.A0004 arguments: values: - name: "message" @@ -124,6 +129,7 @@ tests: value: "y" - label: "Read CollisionCount attribute constraints" + PICS: DGETH.S.A0005 command: "readAttribute" attribute: "CollisionCount" response: @@ -142,7 +148,7 @@ tests: [1649663870.221742][8133:8138] CHIP:TOO: CollisionCount: 0 cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && DGETH.S.A0005 arguments: values: - name: "message" @@ -151,6 +157,7 @@ tests: value: "y" - label: "Read OverrunCount attribute constraints" + PICS: DGETH.S.A0006 command: "readAttribute" attribute: "OverrunCount" response: @@ -168,7 +175,7 @@ tests: [1649663948.738274][8142:8147] CHIP:TOO: OverrunCount: 0 cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && DGETH.S.A0006 arguments: values: - name: "message" @@ -177,6 +184,7 @@ tests: value: "y" - label: "Read CarrierDetect attribute constraints" + PICS: DGETH.S.A0007 command: "readAttribute" attribute: "CarrierDetect" response: @@ -195,7 +203,7 @@ tests: [1649663972.829304][8149:8154] CHIP:TOO: CarrierDetect: null cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && DGETH.S.A0007 arguments: values: - name: "message" @@ -204,6 +212,7 @@ tests: value: "y" - label: "Read TimeSinceReset attribute constraints" + PICS: DGETH.S.A0008 command: "readAttribute" attribute: "TimeSinceReset" response: @@ -221,7 +230,7 @@ tests: [1649664046.010810][8158:8163] CHIP:TOO: TimeSinceReset: 5219 cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && DGETH.S.A0008 arguments: values: - name: "message" diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_2_2.yaml index 0c9dcc20d59c28..5f58fb3fa1e4ab 100644 --- a/src/app/tests/suites/certification/Test_TC_DGETH_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGETH_2_2.yaml @@ -30,39 +30,39 @@ tests: #issue #13648 - label: "Sends ResetCounts command" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGETH.S.C00 command: "ResetCounts" - label: "Read the PacketRxCount attribute" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGETH.S.A0002 command: "readAttribute" attribute: "PacketRxCount" response: value: 0 - label: "Read the PacketTxCount attribute" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGETH.S.A0003 command: "readAttribute" attribute: "PacketTxCount" response: value: 0 - label: "Read the TxErrCount attribute" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGETH.S.A0004 command: "readAttribute" attribute: "TxErrCount" response: value: 0 - label: "Read the CollisionCount attribute" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGETH.S.A0005 command: "readAttribute" attribute: "CollisionCount" response: value: 0 - label: "Read the OverrunCount attribute" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGETH.S.A0006 command: "readAttribute" attribute: "OverrunCount" response: diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml index 03c2b7056eee43..bc2008bbe4bd39 100644 --- a/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGETH_3_1.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: 45.3.1. [TC-DGETH-3.1] Attributes with client as DUT +name: 3.3.1. [TC-DGETH-3.1] Attributes with client as DUT config: nodeId: 0x12344321 @@ -21,326 +21,98 @@ config: endpoint: 0 tests: - - label: "DUT reads a attribute value from TH." + - label: "Commission TH to DUT" + verification: | + + disabled: true + + - label: "DUT reads PHYRate attribute from TH." + PICS: DGETH.S.A0000 verification: | - ./chip-tool ethernetnetworkdiagnostics read phyrate 1 1 + ./chip-tool ethernetnetworkdiagnostics read phyrate 1 0 + Verify the value of PHYRate is in range of PHYRate enum + + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0000 DataVersion: 3872576452 + [1649663425.191426][8076:8082] CHIP:TOO: PHYRate: 1 disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0001 verification: | - ./chip-tool ethernetnetworkdiagnostics read full-duplex 1 1 + ./chip-tool ethernetnetworkdiagnostics read full-duplex 1 0 + Verify the value of FullDuplex is boolean - [1641968402.899684][47113:47118] CHIP:IN: Sending unauthenticated msg 0x7fe2e5623000 with MessageCounter:2023182737 to 0x0000000000000000 at monotonic time: 41076457 msec - [1641968402.899752][47113:47118] CHIP:EM: Flushed pending ack for MessageCounter:232282391 on exchange 1273i - [1641968402.940188][47113:47118] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:797945 on exchange 1274i - [1641968402.940241][47113:47118] CHIP:EM: Found matching exchange: 1274i, Delegate: 0x7fe2d0001980 - [1641968402.940272][47113:47118] CHIP:EM: Rxd Ack; Removing MessageCounter:6647928 from Retrans Table on exchange 1274i - [1641968402.940291][47113:47118] CHIP:EM: Removed CHIP MessageCounter:6647928 from RetransTable on exchange 1274i - [1641968402.940339][47113:47118] CHIP:DMG: ReportDataMessage = - [1641968402.940358][47113:47118] CHIP:DMG: { - [1641968402.940371][47113:47118] CHIP:DMG: AttributeReportIBs = - [1641968402.940393][47113:47118] CHIP:DMG: [ - [1641968402.940410][47113:47118] CHIP:DMG: AttributeReportIB = - [1641968402.940435][47113:47118] CHIP:DMG: { - [1641968402.940451][47113:47118] CHIP:DMG: AttributeDataIB = - [1641968402.940469][47113:47118] CHIP:DMG: { - [1641968402.940488][47113:47118] CHIP:DMG: DataVersion = 0x0, - [1641968402.940504][47113:47118] CHIP:DMG: AttributePathIB = - [1641968402.940521][47113:47118] CHIP:DMG: { - [1641968402.940537][47113:47118] CHIP:DMG: Endpoint = 0x0, - [1641968402.940554][47113:47118] CHIP:DMG: Cluster = 0x37, - [1641968402.940572][47113:47118] CHIP:DMG: Attribute = 0x0000_0001, - [1641968402.940588][47113:47118] CHIP:DMG: } - [1641968402.940612][47113:47118] CHIP:DMG: - [1641968402.940633][47113:47118] CHIP:DMG: Data = false, - [1641968402.940650][47113:47118] CHIP:DMG: }, - [1641968402.940681][47113:47118] CHIP:DMG: - [1641968402.940699][47113:47118] CHIP:DMG: }, - [1641968402.940721][47113:47118] CHIP:DMG: - [1641968402.940738][47113:47118] CHIP:DMG: ], - [1641968402.940762][47113:47118] CHIP:DMG: - [1641968402.940777][47113:47118] CHIP:DMG: SuppressResponse = true, - [1641968402.940793][47113:47118] CHIP:DMG: } - [1641968402.940922][47113:47118] CHIP:TOO: EthernetNetworkDiagnostics.FullDuplex response: FALSE - [1641968402.940978][47113:47118] CHIP:EM: Sending Standalone Ack for MessageCounter:797945 on exchange 1274i - [1641968402.941024][47113:47118] CHIP:IN: Prepared secure message 0x7fe2e5622fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 1274i with MessageCounter:6647929. + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0001 DataVersion: 3872576452 + [1649663520.936873][8088:8093] CHIP:TOO: FullDuplex: TRUE disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0002 verification: | - ./chip-tool ethernetnetworkdiagnostics read packet-rx-count 1 1 + ./chip-tool ethernetnetworkdiagnostics read packet-rx-count 1 0 + Verify the value of PacketRxCount is in range uint64 - CHIP:EM: Flushed pending ack for MessageCounter:1297482240 on exchange 29107i - [1635592219.188641][3563:3568] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 29108i - [1635592219.188711][3563:3568] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 29108i - [1635592219.188751][3563:3568] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 29108i - [1635592219.188808][3563:3568] CHIP:DMG: ReportData = - [1635592219.188850][3563:3568] CHIP:DMG: { - [1635592219.188886][3563:3568] CHIP:DMG: AttributeDataList = - [1635592219.188928][3563:3568] CHIP:DMG: [ - [1635592219.188968][3563:3568] CHIP:DMG: AttributeDataElement = - [1635592219.189017][3563:3568] CHIP:DMG: { - [1635592219.189059][3563:3568] CHIP:DMG: AttributePath = - [1635592219.189105][3563:3568] CHIP:DMG: { - [1635592219.189151][3563:3568] CHIP:DMG: NodeId = 0x1, - [1635592219.189204][3563:3568] CHIP:DMG: EndpointId = 0x1, - [1635592219.189263][3563:3568] CHIP:DMG: ClusterId = 0x37, - [1635592219.189314][3563:3568] CHIP:DMG: FieldTag = 0x0000_0002, - [1635592219.189369][3563:3568] CHIP:DMG: } - [1635592219.189425][3563:3568] CHIP:DMG: - [1635592219.189484][3563:3568] CHIP:DMG: Data = 1527, - [1635592219.189527][3563:3568] CHIP:DMG: DataElementVersion = 0x0, - [1635592219.189576][3563:3568] CHIP:DMG: }, - [1635592219.189621][3563:3568] CHIP:DMG: - [1635592219.189660][3563:3568] CHIP:DMG: ], - [1635592219.189707][3563:3568] CHIP:DMG: - [1635592219.189744][3563:3568] CHIP:DMG: } - [1635592219.189859][3563:3568] CHIP:ZCL: ReadAttributesResponse: - [1635592219.189896][3563:3568] CHIP:ZCL: ClusterId: 0x0000_0037 - [1635592219.189934][3563:3568] CHIP:ZCL: attributeId: 0x0000_0002 - [1635592219.189963][3563:3568] CHIP:ZCL: status: Success (0x0000) - [1635592219.189997][3563:3568] CHIP:ZCL: attribute TLV Type: 0x04 - [1635592219.191925][3563:3568] CHIP:TOO: Int64u attribute Response: 1527 - [1635592219.192058][3563:3568] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 29108i - [1635592219.192158][3563:3568] CHIP:IN: Prepared encrypted message 0xaaaafc44cd10 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 29108i with MessageCounter:1. - [1635592219.192219][3563:3568] CHIP:IN: Sending encrypted msg 0xaaaafc44cd10 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 4913165 msec + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0002 DataVersion: 3872576452 + [1649663623.009973][8103:8108] CHIP:TOO: PacketRxCount: 3322 disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0003 verification: | ./chip-tool ethernetnetworkdiagnostics read packet-tx-count 1 0 + Verify the value of PacketTxCount is in range uint64 - [1635592621.454286][3588:3593] CHIP:EM: Flushed pending ack for MessageCounter:1297482244 on exchange 55710i - [1635592621.457857][3588:3593] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 55711i - [1635592621.457922][3588:3593] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 55711i - [1635592621.457959][3588:3593] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 55711i - [1635592621.458010][3588:3593] CHIP:DMG: ReportData = - [1635592621.458048][3588:3593] CHIP:DMG: { - [1635592621.458095][3588:3593] CHIP:DMG: AttributeDataList = - [1635592621.458134][3588:3593] CHIP:DMG: [ - [1635592621.458185][3588:3593] CHIP:DMG: AttributeDataElement = - [1635592621.458236][3588:3593] CHIP:DMG: { - [1635592621.458290][3588:3593] CHIP:DMG: AttributePath = - [1635592621.458330][3588:3593] CHIP:DMG: { - [1635592621.458435][3588:3593] CHIP:DMG: NodeId = 0x1, - [1635592621.458506][3588:3593] CHIP:DMG: EndpointId = 0x1, - [1635592621.458573][3588:3593] CHIP:DMG: ClusterId = 0x37, - [1635592621.458628][3588:3593] CHIP:DMG: FieldTag = 0x0000_0003, - [1635592621.458687][3588:3593] CHIP:DMG: } - [1635592621.458751][3588:3593] CHIP:DMG: - [1635592621.458800][3588:3593] CHIP:DMG: Data = 1860, - [1635592621.458861][3588:3593] CHIP:DMG: DataElementVersion = 0x0, - [1635592621.458910][3588:3593] CHIP:DMG: }, - [1635592621.458967][3588:3593] CHIP:DMG: - [1635592621.459003][3588:3593] CHIP:DMG: ], - [1635592621.459058][3588:3593] CHIP:DMG: - [1635592621.459091][3588:3593] CHIP:DMG: } - [1635592621.459218][3588:3593] CHIP:ZCL: ReadAttributesResponse: - [1635592621.459252][3588:3593] CHIP:ZCL: ClusterId: 0x0000_0037 - [1635592621.459298][3588:3593] CHIP:ZCL: attributeId: 0x0000_0003 - [1635592621.459331][3588:3593] CHIP:ZCL: status: Success (0x0000) - [1635592621.459362][3588:3593] CHIP:ZCL: attribute TLV Type: 0x04 - [1635592621.459419][3588:3593] CHIP:TOO: Int64u attribute Response: 1860 - [1635592621.459523][3588:3593] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 55711i - [1635592621.459613][3588:3593] CHIP:IN: Prepared encrypted message 0xaaaae3686d10 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 55711i with MessageCounter:1. - [1635592621.459678][3588:3593] CHIP:IN: Sending encrypted msg 0xaaaae3686d10 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 5315433 msec + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0003 DataVersion: 3872576452 + [1649663793.192934][8117:8122] CHIP:TOO: PacketTxCount: 3220 disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0004 verification: | ./chip-tool ethernetnetworkdiagnostics read tx-err-count 1 1 + Verify the value of TxErrCount is in range uint64 - CHIP:EM: Flushed pending ack for MessageCounter:1297482246 on exchange 60303i - [1635592718.495110][3600:3605] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 60304i - [1635592718.495172][3600:3605] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 60304i - [1635592718.495209][3600:3605] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 60304i - [1635592718.495261][3600:3605] CHIP:DMG: ReportData = - [1635592718.495300][3600:3605] CHIP:DMG: { - [1635592718.495332][3600:3605] CHIP:DMG: AttributeDataList = - [1635592718.495374][3600:3605] CHIP:DMG: [ - [1635592718.495410][3600:3605] CHIP:DMG: AttributeDataElement = - [1635592718.495454][3600:3605] CHIP:DMG: { - [1635592718.495487][3600:3605] CHIP:DMG: AttributePath = - [1635592718.495537][3600:3605] CHIP:DMG: { - [1635592718.495584][3600:3605] CHIP:DMG: NodeId = 0x1, - [1635592718.495636][3600:3605] CHIP:DMG: EndpointId = 0x1, - [1635592718.495685][3600:3605] CHIP:DMG: ClusterId = 0x37, - [1635592718.495735][3600:3605] CHIP:DMG: FieldTag = 0x0000_0004, - [1635592718.495777][3600:3605] CHIP:DMG: } - [1635592718.495826][3600:3605] CHIP:DMG: - [1635592718.495880][3600:3605] CHIP:DMG: Data = 0, - [1635592718.495925][3600:3605] CHIP:DMG: DataElementVersion = 0x0, - [1635592718.495972][3600:3605] CHIP:DMG: }, - [1635592718.496016][3600:3605] CHIP:DMG: - [1635592718.496053][3600:3605] CHIP:DMG: ], - [1635592718.496095][3600:3605] CHIP:DMG: - [1635592718.496128][3600:3605] CHIP:DMG: } - [1635592718.496233][3600:3605] CHIP:ZCL: ReadAttributesResponse: - [1635592718.496266][3600:3605] CHIP:ZCL: ClusterId: 0x0000_0037 - [1635592718.496301][3600:3605] CHIP:ZCL: attributeId: 0x0000_0004 - [1635592718.496332][3600:3605] CHIP:ZCL: status: Success (0x0000) - [1635592718.496363][3600:3605] CHIP:ZCL: attribute TLV Type: 0x04 - [1635592718.496417][3600:3605] CHIP:TOO: Int64u attribute Response: 0 - [1635592718.496507][3600:3605] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 60304i - [1635592718.496582][3600:3605] CHIP:IN: Prepared encrypted message 0xaaaaf0f6dd10 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 60304i with MessageCounter:1. + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0004 DataVersion: 3872576452 + [1649663843.295395][8123:8128] CHIP:TOO: TxErrCount: 0 disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0005 verification: | ./chip-tool ethernetnetworkdiagnostics read collision-count 1 1 + Verify the value of CollisionCount is in range uint64 - CHIP:EM: Flushed pending ack for MessageCounter:3583386127 on exchange 42705i - [1635593202.317904][3279:3284] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 42706i - [1635593202.317981][3279:3284] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 42706i - [1635593202.318016][3279:3284] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 42706i - [1635593202.318066][3279:3284] CHIP:DMG: ReportData = - [1635593202.318101][3279:3284] CHIP:DMG: { - [1635593202.318130][3279:3284] CHIP:DMG: AttributeDataList = - [1635593202.318171][3279:3284] CHIP:DMG: [ - [1635593202.318204][3279:3284] CHIP:DMG: AttributeDataElement = - [1635593202.318244][3279:3284] CHIP:DMG: { - [1635593202.318278][3279:3284] CHIP:DMG: AttributePath = - [1635593202.318318][3279:3284] CHIP:DMG: { - [1635593202.318365][3279:3284] CHIP:DMG: NodeId = 0x1, - [1635593202.318411][3279:3284] CHIP:DMG: EndpointId = 0x1, - [1635593202.318455][3279:3284] CHIP:DMG: ClusterId = 0x37, - [1635593202.318501][3279:3284] CHIP:DMG: FieldTag = 0x0000_0005, - [1635593202.318539][3279:3284] CHIP:DMG: } - [1635593202.318588][3279:3284] CHIP:DMG: - [1635593202.318636][3279:3284] CHIP:DMG: Data = 0, - [1635593202.318676][3279:3284] CHIP:DMG: DataElementVersion = 0x0, - [1635593202.318720][3279:3284] CHIP:DMG: }, - [1635593202.318761][3279:3284] CHIP:DMG: - [1635593202.318793][3279:3284] CHIP:DMG: ], - [1635593202.318832][3279:3284] CHIP:DMG: - [1635593202.318862][3279:3284] CHIP:DMG: } - [1635593202.318959][3279:3284] CHIP:ZCL: ReadAttributesResponse: - [1635593202.318988][3279:3284] CHIP:ZCL: ClusterId: 0x0000_0037 - [1635593202.319020][3279:3284] CHIP:ZCL: attributeId: 0x0000_0005 - [1635593202.319048][3279:3284] CHIP:ZCL: status: Success (0x0000) - [1635593202.319075][3279:3284] CHIP:ZCL: attribute TLV Type: 0x04 - [1635593202.320974][3279:3284] CHIP:TOO: Int64u attribute Response: 0 - [1635593202.321118][3279:3284] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 42706i - [1635593202.321234][3279:3284] CHIP:IN: Prepared encrypted message 0xaaaada965d10 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 42706i with MessageCounter:1. + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0005 DataVersion: 3872576452 + [1649663870.221742][8133:8138] CHIP:TOO: CollisionCount: 0 disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0006 verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. ./chip-tool ethernetnetworkdiagnostics read overrun-count 1 1 - CHIP:EM: Flushed pending ack for MessageCounter:3583386129 on exchange 49490i - [1635593280.833752][3287:3292] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 49491i - [1635593280.833815][3287:3292] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 49491i - [1635593280.833852][3287:3292] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 49491i - [1635593280.833904][3287:3292] CHIP:DMG: ReportData = - [1635593280.833942][3287:3292] CHIP:DMG: { - [1635593280.833973][3287:3292] CHIP:DMG: AttributeDataList = - [1635593280.834011][3287:3292] CHIP:DMG: [ - [1635593280.834046][3287:3292] CHIP:DMG: AttributeDataElement = - [1635593280.834091][3287:3292] CHIP:DMG: { - [1635593280.834129][3287:3292] CHIP:DMG: AttributePath = - [1635593280.834170][3287:3292] CHIP:DMG: { - [1635593280.834207][3287:3292] CHIP:DMG: NodeId = 0x1, - [1635593280.834256][3287:3292] CHIP:DMG: EndpointId = 0x1, - [1635593280.834302][3287:3292] CHIP:DMG: ClusterId = 0x37, - [1635593280.834347][3287:3292] CHIP:DMG: FieldTag = 0x0000_0006, - [1635593280.834384][3287:3292] CHIP:DMG: } - [1635593280.834432][3287:3292] CHIP:DMG: - [1635593280.834484][3287:3292] CHIP:DMG: Data = 0, - [1635593280.834527][3287:3292] CHIP:DMG: DataElementVersion = 0x0, - [1635593280.834569][3287:3292] CHIP:DMG: }, - [1635593280.834613][3287:3292] CHIP:DMG: - [1635593280.834648][3287:3292] CHIP:DMG: ], - [1635593280.834692][3287:3292] CHIP:DMG: - [1635593280.834722][3287:3292] CHIP:DMG: } - [1635593280.834827][3287:3292] CHIP:ZCL: ReadAttributesResponse: - [1635593280.834863][3287:3292] CHIP:ZCL: ClusterId: 0x0000_0037 - [1635593280.834898][3287:3292] CHIP:ZCL: attributeId: 0x0000_0006 - [1635593280.834930][3287:3292] CHIP:ZCL: status: Success (0x0000) - [1635593280.834969][3287:3292] CHIP:ZCL: attribute TLV Type: 0x04 - [1635593280.835029][3287:3292] CHIP:TOO: Int64u attribute Response: 0 - [1635593280.835139][3287:3292] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 49491i - [1635593280.835248][3287:3292] CHIP:IN: Prepared encrypted message 0xaaaac79ccd10 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 49491i with MessageCounter:1. + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0006 DataVersion: 3872576452 + [1649663948.738274][8142:8147] CHIP:TOO: OverrunCount: 0 disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0007 verification: | ./chip-tool ethernetnetworkdiagnostics read carrier-detect 1 1 + Verify the value of CarrierDetect is either bool or null - [1641968810.313075][47247:47252] CHIP:IN: Sending unauthenticated msg 0x7f053d769000 with MessageCounter:46971505 to 0x0000000000000000 at monotonic time: 41483870 msec - [1641968810.313138][47247:47252] CHIP:EM: Flushed pending ack for MessageCounter:232282395 on exchange 21496i - [1641968810.361363][47247:47252] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:8068841 on exchange 21497i - [1641968810.361419][47247:47252] CHIP:EM: Found matching exchange: 21497i, Delegate: 0x7f0528001980 - [1641968810.361451][47247:47252] CHIP:EM: Rxd Ack; Removing MessageCounter:10983035 from Retrans Table on exchange 21497i - [1641968810.361469][47247:47252] CHIP:EM: Removed CHIP MessageCounter:10983035 from RetransTable on exchange 21497i - [1641968810.361524][47247:47252] CHIP:DMG: ReportDataMessage = - [1641968810.361543][47247:47252] CHIP:DMG: { - [1641968810.361556][47247:47252] CHIP:DMG: AttributeReportIBs = - [1641968810.361579][47247:47252] CHIP:DMG: [ - [1641968810.361593][47247:47252] CHIP:DMG: AttributeReportIB = - [1641968810.361617][47247:47252] CHIP:DMG: { - [1641968810.361634][47247:47252] CHIP:DMG: AttributeDataIB = - [1641968810.361652][47247:47252] CHIP:DMG: { - [1641968810.361673][47247:47252] CHIP:DMG: DataVersion = 0x0, - [1641968810.361697][47247:47252] CHIP:DMG: AttributePathIB = - [1641968810.361716][47247:47252] CHIP:DMG: { - [1641968810.361738][47247:47252] CHIP:DMG: Endpoint = 0x0, - [1641968810.361762][47247:47252] CHIP:DMG: Cluster = 0x37, - [1641968810.361786][47247:47252] CHIP:DMG: Attribute = 0x0000_0007, - [1641968810.361810][47247:47252] CHIP:DMG: } - [1641968810.361833][47247:47252] CHIP:DMG: - [1641968810.361855][47247:47252] CHIP:DMG: Data = false, - [1641968810.361878][47247:47252] CHIP:DMG: }, - [1641968810.361904][47247:47252] CHIP:DMG: - [1641968810.361924][47247:47252] CHIP:DMG: }, - [1641968810.361949][47247:47252] CHIP:DMG: - [1641968810.361965][47247:47252] CHIP:DMG: ], - [1641968810.361993][47247:47252] CHIP:DMG: - [1641968810.362011][47247:47252] CHIP:DMG: SuppressResponse = true, - [1641968810.362028][47247:47252] CHIP:DMG: } - [1641968810.362160][47247:47252] CHIP:TOO: EthernetNetworkDiagnostics.CarrierDetect response: FALSE - [1641968810.362226][47247:47252] CHIP:EM: Sending Standalone Ack for MessageCounter:8068841 on exchange 21497i - [1641968810.362279][47247:47252] CHIP:IN: Prepared secure message 0x7f053d768fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 21497i with MessageCounter:10983036. + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0007 DataVersion: 3872576452 + [1649663972.829304][8149:8154] CHIP:TOO: CarrierDetect: null disabled: true - label: "DUT reads a attribute value from TH." + PICS: DGETH.S.A0008 verification: | ./chip-tool ethernetnetworkdiagnostics read time-since-reset 1 1 + Verify the value of TimeSinceReset is in range uint64 - [1641969031.785485][47346:47351] CHIP:IN: Sending unauthenticated msg 0x7fc42cd75000 with MessageCounter:2397945726 to 0x0000000000000000 at monotonic time: 41705343 msec - [1641969031.785554][47346:47351] CHIP:EM: Flushed pending ack for MessageCounter:232282397 on exchange 7607i - [1641969031.832054][47346:47351] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:14807496 on exchange 7608i - [1641969031.832142][47346:47351] CHIP:EM: Found matching exchange: 7608i, Delegate: 0x7fc418001980 - [1641969031.832193][47346:47351] CHIP:EM: Rxd Ack; Removing MessageCounter:3781212 from Retrans Table on exchange 7608i - [1641969031.832214][47346:47351] CHIP:EM: Removed CHIP MessageCounter:3781212 from RetransTable on exchange 7608i - [1641969031.832275][47346:47351] CHIP:DMG: ReportDataMessage = - [1641969031.832299][47346:47351] CHIP:DMG: { - [1641969031.832318][47346:47351] CHIP:DMG: AttributeReportIBs = - [1641969031.832352][47346:47351] CHIP:DMG: [ - [1641969031.832370][47346:47351] CHIP:DMG: AttributeReportIB = - [1641969031.832400][47346:47351] CHIP:DMG: { - [1641969031.832419][47346:47351] CHIP:DMG: AttributeDataIB = - [1641969031.832448][47346:47351] CHIP:DMG: { - [1641969031.832470][47346:47351] CHIP:DMG: DataVersion = 0x0, - [1641969031.832489][47346:47351] CHIP:DMG: AttributePathIB = - [1641969031.832515][47346:47351] CHIP:DMG: { - [1641969031.832539][47346:47351] CHIP:DMG: Endpoint = 0x0, - [1641969031.832571][47346:47351] CHIP:DMG: Cluster = 0x37, - [1641969031.832602][47346:47351] CHIP:DMG: Attribute = 0x0000_0008, - [1641969031.832622][47346:47351] CHIP:DMG: } - [1641969031.832646][47346:47351] CHIP:DMG: - [1641969031.832667][47346:47351] CHIP:DMG: Data = 5425, - [1641969031.832686][47346:47351] CHIP:DMG: }, - [1641969031.832715][47346:47351] CHIP:DMG: - [1641969031.832733][47346:47351] CHIP:DMG: }, - [1641969031.832757][47346:47351] CHIP:DMG: - [1641969031.832773][47346:47351] CHIP:DMG: ], - [1641969031.832798][47346:47351] CHIP:DMG: - [1641969031.832816][47346:47351] CHIP:DMG: SuppressResponse = true, - [1641969031.832836][47346:47351] CHIP:DMG: } - [1641969031.832996][47346:47351] CHIP:TOO: EthernetNetworkDiagnostics.TimeSinceReset response: 5425 - [1641969031.833057][47346:47351] CHIP:EM: Sending Standalone Ack for MessageCounter:14807496 on exchange 7608i - [1641969031.833110][47346:47351] CHIP:IN: Prepared secure message 0x7fc42cd74fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 7608i with MessageCounter:3781213. + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0008 DataVersion: 3872576452 + [1649664046.010810][8158:8163] CHIP:TOO: TimeSinceReset: 5219 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml index da71687fe184df..a8c077f847165e 100644 --- a/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml @@ -21,12 +21,13 @@ config: endpoint: 0 tests: - - label: "Commission DUT to TH" + - label: "Commission TH to DUT" verification: | disabled: true - - label: "TH sends ResetCounts to DUT" + - label: "DUT sends ResetCounts to TH" + PICS: DGETH.S.C00 verification: | Verify Command data recieved from running the below command is a success diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml index 99009cd96db468..83a25223f7525d 100644 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads NetworkInterface structure attribute from DUT" + PICS: DGWIFI.S.A0000 cluster: "General Diagnostics" command: "readAttribute" attribute: "NetworkInterfaces" @@ -38,6 +39,7 @@ tests: #issue #13645 - label: "Reads SecurityType attribute constraints" + PICS: DGWIFI.S.A0001 command: "readAttribute" attribute: "SecurityType" response: @@ -45,6 +47,7 @@ tests: type: enum - label: "Reads WiFiVersion attribute constraints" + PICS: DGWIFI.S.A0002 command: "readAttribute" attribute: "WiFiVersion" response: @@ -54,6 +57,7 @@ tests: maxValue: 5 - label: "Reads ChannelNumber attribute constraints" + PICS: DGWIFI.S.A0003 command: "readAttribute" attribute: "ChannelNumber" response: @@ -61,6 +65,7 @@ tests: type: uint16 - label: "Reads RSSI attribute constraints" + PICS: DGWIFI.S.A0004 command: "readAttribute" attribute: "RSSI" response: @@ -70,7 +75,7 @@ tests: maxValue: 0 - label: "Reads BeaconLostCount attribute constraints" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0005 command: "readAttribute" attribute: "BeaconLostCount" response: @@ -78,6 +83,7 @@ tests: type: uint32 - label: "Reads BeaconRxCount attribute constraints" + PICS: DGWIFI.S.A0006 command: "readAttribute" attribute: "BeaconRxCount" response: @@ -85,7 +91,7 @@ tests: type: uint32 - label: "Reads PacketMulticastRxCount attribute constraints" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0007 command: "readAttribute" attribute: "PacketMulticastRxCount" response: @@ -93,7 +99,7 @@ tests: type: uint32 - label: "Reads PacketMulticastTxCount attribute constraints" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0008 command: "readAttribute" attribute: "PacketMulticastTxCount" response: @@ -101,7 +107,7 @@ tests: type: uint32 - label: "Reads PacketUnicastRxCount attribute constraints" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0009 command: "readAttribute" attribute: "PacketUnicastRxCount" response: @@ -109,7 +115,7 @@ tests: type: uint32 - label: "Reads PacketUnicastTxCount attribute constraints" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000a command: "readAttribute" attribute: "PacketUnicastTxCount" response: @@ -117,7 +123,7 @@ tests: type: uint32 - label: "Reads CurrentMaxRate attribute constraints" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000b command: "readAttribute" attribute: "CurrentMaxRate" response: @@ -125,7 +131,7 @@ tests: type: uint64 - label: "Reads OverrunCount attribute constraints" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000c command: "readAttribute" attribute: "OverrunCount" response: diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_2.yaml index 5b22bf5d467348..f22f60eb657aca 100644 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_2.yaml @@ -27,16 +27,19 @@ tests: disabled: true - label: "TH sends chip-tool command to DUT" + PICS: DGWIFI.S.E00 verification: | chip-tool wifinetworkdiagnostics read-event disconnection 1 0 disabled: true - label: "TH sends chip-tool command to DUT" + PICS: DGWIFI.S.E01 verification: | chip-tool wifinetworkdiagnostics read-event association-failure 1 0 disabled: true - label: "TH sends chip-tool command to DUT" + PICS: DGWIFI.S.E02 verification: | chip-tool wifinetworkdiagnostics read-event connection-status 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_3.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_3.yaml index 6cf1873005ab72..bed1769ad4774d 100644 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_3.yaml @@ -32,46 +32,46 @@ tests: # Also, ResetCounts may not work on some platforms yet? # And on Linux since we don't have actual Wi-Fi these error out. - label: "TH sends ResetCounts command to DUT" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00 command: "ResetCounts" - label: "Reads BeaconLostCount attribute from DUT" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00 command: "readAttribute" attribute: "BeaconLostCount" response: value: 0 - label: "Reads BeaconRxCount attribute from DUT" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00 command: "readAttribute" attribute: "BeaconRxCount" response: value: 0 - label: "Reads PacketMulticastRxCount attribute from DUT" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00 command: "readAttribute" attribute: "PacketMulticastRxCount" response: value: 0 - label: "Reads PacketMulticastTxCount attribute from DUT" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00 command: "readAttribute" attribute: "PacketMulticastTxCount" response: value: 0 - label: "Reads PacketUnicastRxCount attribute from DUT" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00 command: "readAttribute" attribute: "PacketUnicastRxCount" response: value: 0 - label: "Reads PacketUnicastTxCount attribute from DUT" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00 command: "readAttribute" attribute: "PacketUnicastTxCount" response: diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml index 046ad728cc69e4..ad16b7e4222243 100644 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml @@ -26,25 +26,28 @@ tests: disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads NetworkInterface structure attribute from TH." + PICS: DGWIFI.S.A0000 verification: | Verify that the attribute value is non-zero and the value data type matches ./chip-tool wifinetworkdiagnostics read bssid 1 0 [1650451782.025188][9063:9068] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0000 DataVersion: 1028539580 - [1650451782.025262][9063:9068] CHIP:TOO: bssid: 210200000000 + [1650451782.025262][9063:9068] CHIP:TOO: bssid: 21020000FFFF disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a SecurityType attribute value from TH." + PICS: DGWIFI.S.A0001 verification: | Verify that the attribute value is non-zero and the value data type matches ./chip-tool wifinetworkdiagnostics read security-type 1 0 [1650451927.587236][9086:9091] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0001 DataVersion: 1028539580 - [1650451927.587329][9086:9091] CHIP:TOO: SecurityType: 0 + [1650451927.587329][9086:9091] CHIP:TOO: SecurityType: 4 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a WiFiVersion attribute value from TH." + PICS: DGWIFI.S.A0002 verification: | ./chip-tool wifinetworkdiagnostics read wi-fi-version 1 0 @@ -52,24 +55,27 @@ tests: [1650451948.677299][9092:9097] CHIP:TOO: WiFiVersion: 3 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a ChannelNumber attribute value from TH." + PICS: DGWIFI.S.A0003 verification: | ./chip-tool wifinetworkdiagnostics read channel-number 1 0 [1650451989.021486][9112:9117] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0003 DataVersion: 1028539580 - [1650451989.021547][9112:9117] CHIP:TOO: ChannelNumber: null + [1650451989.021547][9112:9117] CHIP:TOO: ChannelNumber: 1 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a RSSI attribute value from TH." + PICS: DGWIFI.S.A0004 verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. ./chip-tool wifinetworkdiagnostics read rssi 1 0 [1650452156.130334][9132:9137] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0004 DataVersion: 1028539580 - [1650452156.130405][9132:9137] CHIP:TOO: Rssi: null + [1650452156.130405][9132:9137] CHIP:TOO: Rssi: -11 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a BeaconLostCount attribute value from TH." + PICS: DGWIFI.S.A0005 verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. @@ -79,7 +85,8 @@ tests: [1650450239.341280][5252:5257] CHIP:TOO: BeaconLostCount: 0 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a BeaconRxCount attribute value from TH." + PICS: DGWIFI.S.A0006 verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. @@ -88,7 +95,8 @@ tests: [1650454625.960813][9290:9295] CHIP:TOO: BeaconRxCount: 0 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a PacketMultiRxCount attribute value from TH." + PICS: DGWIFI.S.A0007 verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. @@ -97,7 +105,8 @@ tests: [1650454695.550515][9303:9308] CHIP:TOO: PacketMulticastRxCount: 401028 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a PacketMultiTxCount attribute value from TH." + PICS: DGWIFI.S.A0008 verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. @@ -107,26 +116,29 @@ tests: [1650454724.371740][9311:9316] CHIP:TOO: PacketMulticastTxCount: 0 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a PacketUniRxCount attribute value from TH." + PICS: DGWIFI.S.A0009 verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. ./chip-tool wifinetworkdiagnostics read packet-unicast-rx-count 1 0 [1650454751.954086][9317:9322] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_0009 DataVersion: 1028539580 - [1650454751.954174][9317:9322] CHIP:TOO: PacketUnicastRxCount: 653833 + [1650454751.954174][9317:9322] CHIP:TOO: PacketUnicastRxCount: 4855 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a PacketUniTxCount attribute value from TH." + PICS: DGWIFI.S.A000a verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. ./chip-tool wifinetworkdiagnostics read packet-unicast-tx-count 1 0 [1650454782.789340][9323:9328] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_000A DataVersion: 1028539580 - [1650454782.789426][9323:9328] CHIP:TOO: PacketUnicastTxCount: 1123 + [1650454782.789426][9323:9328] CHIP:TOO: PacketUnicastTxCount: 0 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads CurrentMaxRate attribute value from TH." + PICS: DGWIFI.S.A000b verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. @@ -136,7 +148,8 @@ tests: [1650451685.093078][5470:5475] CHIP:TOO: CurrentMaxRate: 24000000 disabled: true - - label: "DUT reads a attribute value from TH." + - label: "DUT reads a OverrunCount attribute value from TH." + PICS: DGWIFI.S.A000c verification: | Verify that the attribute data value is present. If the value is 0, no packet loss was recorded or it was just reset from a node reboot. diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml index a9a2fe4d52544d..0cb869a747146b 100644 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml @@ -27,10 +27,11 @@ tests: disabled: true - label: "DUT sends ResetCounts command to TH" + PICS: DGWIFI.S.C00 verification: | Verify Command data recieved from running the below command is a success - ./chip-tool wifinetworkdiagnostics reset-counts 1 1 + ./chip-tool wifinetworkdiagnostics reset-counts 1 0 CHIP:DMG: InvokeResponseMessage = [1649664146.639743][8173:8178] CHIP:DMG: { [1649664146.639789][8173:8178] CHIP:DMG: suppressResponse = false, diff --git a/src/app/tests/suites/certification/Test_TC_IDM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_1_1.yaml index bfa9cda1e2eef4..bf6ee3ecd0ce4c 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_1_1.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: - 20.1.1. [TC-IDM-1.1] Invoke Request Action from DUT to TH [DUT - Controller] +name: 21.1.1. [TC-IDM-1.1] Invoke Request Action from DUT to TH - [{DUT_Client}] config: nodeId: 0x12344321 @@ -29,38 +28,37 @@ tests: verification: | In case of chip tool, here is an example command to use - sudo ./chip-tool identify identify 0 1 1 + ./chip-tool onoff on 1 1 Verify we are getting EndpointID, CommandID, ClusterID in the response data (as below) matching with the data sent in the above command - [1648721385.183101][2528:2528] CHIP:EM: Handling via exchange: 37235r, Delegate: 0xaaaaca773368 - [1648721385.183190][2528:2528] CHIP:DMG: InvokeRequestMessage = - [1648721385.183229][2528:2528] CHIP:DMG: { - [1648721385.183263][2528:2528] CHIP:DMG: suppressResponse = false, - [1648721385.183301][2528:2528] CHIP:DMG: timedRequest = false, - [1648721385.183342][2528:2528] CHIP:DMG: InvokeRequests = - [1648721385.183386][2528:2528] CHIP:DMG: [ - [1648721385.183423][2528:2528] CHIP:DMG: CommandDataIB = - [1648721385.183467][2528:2528] CHIP:DMG: { - [1648721385.183505][2528:2528] CHIP:DMG: CommandPathIB = - [1648721385.183553][2528:2528] CHIP:DMG: { - [1648721385.183605][2528:2528] CHIP:DMG: EndpointId = 0x1, - [1648721385.183661][2528:2528] CHIP:DMG: ClusterId = 0x3, - [1648721385.183716][2528:2528] CHIP:DMG: CommandId = 0x0, - [1648721385.183769][2528:2528] CHIP:DMG: }, - [1648721385.183818][2528:2528] CHIP:DMG: - [1648721385.183861][2528:2528] CHIP:DMG: CommandData = - [1648721385.183911][2528:2528] CHIP:DMG: { - [1648721385.183959][2528:2528] CHIP:DMG: 0x0 = 0, - [1648721385.184012][2528:2528] CHIP:DMG: }, - [1648721385.184060][2528:2528] CHIP:DMG: }, - [1648721385.184108][2528:2528] CHIP:DMG: - [1648721385.184142][2528:2528] CHIP:DMG: ], - [1648721385.184186][2528:2528] CHIP:DMG: - [1648721385.184221][2528:2528] CHIP:DMG: InteractionModelRevision = 1 - [1648721385.184256][2528:2528] CHIP:DMG: }, - [1648721385.184347][2528:2528] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0003 e=1 p=o - [1648721385.184403][2528:2528] CHIP:DMG: AccessControl: allowed + On TH + [1655717373.046081][10909:10909] CHIP:DMG: InvokeRequestMessage = + [1655717373.046137][10909:10909] CHIP:DMG: { + [1655717373.046185][10909:10909] CHIP:DMG: suppressResponse = false, + [1655717373.046240][10909:10909] CHIP:DMG: timedRequest = false, + [1655717373.046291][10909:10909] CHIP:DMG: InvokeRequests = + [1655717373.046356][10909:10909] CHIP:DMG: [ + [1655717373.046407][10909:10909] CHIP:DMG: CommandDataIB = + [1655717373.046464][10909:10909] CHIP:DMG: { + [1655717373.046518][10909:10909] CHIP:DMG: CommandPathIB = + [1655717373.046583][10909:10909] CHIP:DMG: { + [1655717373.046649][10909:10909] CHIP:DMG: EndpointId = 0x1, + [1655717373.046720][10909:10909] CHIP:DMG: ClusterId = 0x6, + [1655717373.046782][10909:10909] CHIP:DMG: CommandId = 0x1, + [1655717373.046885][10909:10909] CHIP:DMG: }, + [1655717373.046961][10909:10909] CHIP:DMG: + [1655717373.047017][10909:10909] CHIP:DMG: CommandFields = + [1655717373.047080][10909:10909] CHIP:DMG: { + [1655717373.047143][10909:10909] CHIP:DMG: }, + [1655717373.047211][10909:10909] CHIP:DMG: }, + [1655717373.047272][10909:10909] CHIP:DMG: + [1655717373.047322][10909:10909] CHIP:DMG: ], + [1655717373.047383][10909:10909] CHIP:DMG: + [1655717373.047433][10909:10909] CHIP:DMG: InteractionModelRevision = 1 + [1655717373.047482][10909:10909] CHIP:DMG: }, + [1655717373.047599][10909:10909] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1655717373.047665][10909:10909] CHIP:DMG: AccessControl: allowed disabled: true - label: @@ -87,61 +85,41 @@ tests: Messages to the TH." verification: | In case of chip tool, here is an example command to use - sudo ./chip-tool identify identify 10 1 1 + ./chip-tool onoff off 1 1 Verify we are getting EndpointID, CommandID, ClusterID in the response data (as below) matching with the data sent in the above command + [1655717456.105815][10909:10909] CHIP:DMG: InvokeRequestMessage = + [1655717456.105853][10909:10909] CHIP:DMG: { + [1655717456.105887][10909:10909] CHIP:DMG: suppressResponse = false, + [1655717456.105933][10909:10909] CHIP:DMG: timedRequest = false, + [1655717456.105970][10909:10909] CHIP:DMG: InvokeRequests = + [1655717456.106015][10909:10909] CHIP:DMG: [ + [1655717456.106051][10909:10909] CHIP:DMG: CommandDataIB = + [1655717456.106091][10909:10909] CHIP:DMG: { + [1655717456.106129][10909:10909] CHIP:DMG: CommandPathIB = + [1655717456.106173][10909:10909] CHIP:DMG: { + [1655717456.106220][10909:10909] CHIP:DMG: EndpointId = 0x1, + [1655717456.106274][10909:10909] CHIP:DMG: ClusterId = 0x6, + [1655717456.106327][10909:10909] CHIP:DMG: CommandId = 0x0, + [1655717456.106373][10909:10909] CHIP:DMG: }, + [1655717456.106420][10909:10909] CHIP:DMG: + [1655717456.106462][10909:10909] CHIP:DMG: CommandFields = + [1655717456.106507][10909:10909] CHIP:DMG: { + [1655717456.106551][10909:10909] CHIP:DMG: }, + [1655717456.106594][10909:10909] CHIP:DMG: }, + [1655717456.106636][10909:10909] CHIP:DMG: + [1655717456.106671][10909:10909] CHIP:DMG: ], + [1655717456.106714][10909:10909] CHIP:DMG: + [1655717456.106749][10909:10909] CHIP:DMG: InteractionModelRevision = 1 + [1655717456.106783][10909:10909] CHIP:DMG: }, + [1655717456.106904][10909:10909] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1655717456.106954][10909:10909] CHIP:DMG: AccessControl: allowed + + + ./chip-tool onoff off 1 1 + Verify we are getting EndpointID, CommandID, ClusterID in the response data (as below) matching with the data sent in the above command - [1648721578.295986][2528:2528] CHIP:DMG: InvokeRequestMessage = - [1648721578.296016][2528:2528] CHIP:DMG: { - [1648721578.296039][2528:2528] CHIP:DMG: suppressResponse = false, - [1648721578.296066][2528:2528] CHIP:DMG: timedRequest = false, - [1648721578.296091][2528:2528] CHIP:DMG: InvokeRequests = - [1648721578.296120][2528:2528] CHIP:DMG: [ - [1648721578.296145][2528:2528] CHIP:DMG: CommandDataIB = - [1648721578.296180][2528:2528] CHIP:DMG: { - [1648721578.296208][2528:2528] CHIP:DMG: CommandPathIB = - [1648721578.296238][2528:2528] CHIP:DMG: { - [1648721578.296268][2528:2528] CHIP:DMG: EndpointId = 0x1, - [1648721578.296299][2528:2528] CHIP:DMG: ClusterId = 0x3, - [1648721578.296328][2528:2528] CHIP:DMG: CommandId = 0x0, - [1648721578.296357][2528:2528] CHIP:DMG: }, - [1648721578.296386][2528:2528] CHIP:DMG: - [1648721578.296412][2528:2528] CHIP:DMG: CommandData = - [1648721578.296440][2528:2528] CHIP:DMG: { - [1648721578.296470][2528:2528] CHIP:DMG: 0x0 = 10, - [1648721578.296499][2528:2528] CHIP:DMG: }, - [1648721578.296525][2528:2528] CHIP:DMG: }, - [1648721578.296554][2528:2528] CHIP:DMG: - [1648721578.296577][2528:2528] CHIP:DMG: ], - [1648721578.296607][2528:2528] CHIP:DMG: - [1648721578.296630][2528:2528] CHIP:DMG: InteractionModelRevision = 1 - [1648721578.296653][2528:2528] CHIP:DMG: }, - [1648721578.296718][2528:2528] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0003 e=1 p=o - [1648721578.296758][2528:2528] CHIP:DMG: AccessControl: allowed - [1648721578.296786][2528:2528] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0003 Command=0x0000_0000 - [1648721578.296828][2528:2528] CHIP:DMG: Endpoint 1, Cluster 0x0000_0003 update version to f25efe02 - [1648721578.296868][2528:2528] CHIP:ZCL: OnIdentifyStart - [1648721578.296917][2528:2528] CHIP:DMG: ICR moving to [AddingComm] - [1648721578.296950][2528:2528] CHIP:DMG: ICR moving to [AddedComma] - - sudo ./chip-tool identify identify 10 1 1 - sudo ./chip-tool identify identify 10 1 1 - disabled: true - - - label: - "DUT sends the Invoke Request Message to the TH. + The Message should - contain one valid CommandDataIB, which has the specific Endpoint, - Specific Cluster and Specific Command." - verification: | - - disabled: true - - - label: - "DUT sends the Invoke Request Message to the TH. + The Message should - contain one valid CommandDataIB, which has the specific Endpoint, - Specific Cluster and Specific Command. + Send 2 more Invoke Request - Messages to the TH." - verification: | - can be tested by using the command scan networks + ./chip-tool onoff off 1 1 + Verify we are getting EndpointID, CommandID, ClusterID in the response data (as below) matching with the data sent in the above command disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_1_2.yaml b/src/app/tests/suites/certification/Test_TC_IDM_1_2.yaml index be43d49de95ea8..3f3f1c9076187b 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_1_2.yaml @@ -29,11 +29,11 @@ tests: ./chip-tool onoff on 1 20 - verify TH is responsds with unsuppported endpoint with the data sent in the below command + verify DUT is responsds with unsuppported endpoint for the data sent in the above command - [1654076784.679791][13733:13738] CHIP:DMG: Received Command Response Status for Endpoint=20 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x7f - [1654076784.679818][13733:13738] CHIP:TOO: Error: IM Error 0x0000057F: General error: 0x7f (UNSUPPORTED_ENDPOINT) - [1654076784.679871][13733:13738] CHIP:DMG: ICR moving to [AwaitingDe] + [1655718065.882392][4587:4592] CHIP:DMG: Received Command Response Status for Endpoint=20 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x7f + [1655718065.882440][4587:4592] CHIP:TOO: Error: IM Error 0x0000057F: General error: 0x7f (UNSUPPORTED_ENDPOINT) + [1655718065.882491][4587:4592] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: @@ -44,10 +44,11 @@ tests: ./chip-tool any command-by-id 0x0003 0 1 1 2 - verify TH is responsds with unsuppported cluster with the data sent in the below command - [1654076811.947575][13740:13745] CHIP:DMG: Received Command Response Status for Endpoint=2 Cluster=0x0000_0003 Command=0x0000_0000 Status=0xc3 - [1654076811.947587][13740:13745] CHIP:TOO: Error: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER) - [1654076811.947602][13740:13745] CHIP:DMG: ICR moving to [AwaitingDe] + verify DUT is responsds with unsuppported cluster for the data sent in the above command + + [1655718144.692503][4602:4607] CHIP:DMG: Received Command Response Status for Endpoint=2 Cluster=0x0000_0003 Command=0x0000_0000 Status=0xc3 + [1655718144.692570][4602:4607] CHIP:TOO: Error: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER) + [1655718144.692627][4602:4607] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: @@ -55,7 +56,11 @@ tests: indicates a specific command that is unsupported." verification: | In case of chip tool, here is an example command to use + ./chip-tool any command-by-id 0x0003 3 1 1 0 + + verify DUT is responsds with unsuppported command for the data sent in the above command + [1654076838.936184][13752:13757] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0003 Command=0x0000_0003 Status=0x81 [1654076838.936215][13752:13757] CHIP:TOO: Error: IM Error 0x00000581: General error: 0x81 (UNSUPPORTED_COMMAND) [1654076838.936258][13752:13757] CHIP:DMG: ICR moving to [AwaitingDe] @@ -68,8 +73,14 @@ tests: verification: | In case of chip tool, here is an example command to use + To Setup the TH such that there is no accessing fabric, 1st we need to send below mentioned ACL command + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1234], "targets": null}]' 1 0 - ./chip-tool onoff on 1 1 + + ./chip-tool onoff on 1 1 + + verify DUT is responsds with UNSUPPORTED_ACCESS for the data sent in the above command + [1654079683.774619][14540:14546] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x7e [1654079683.774630][14540:14546] CHIP:TOO: Error: IM Error 0x0000057E: General error: 0x7e (UNSUPPORTED_ACCESS) [1654079683.774643][14540:14546] CHIP:DMG: ICR moving to [AwaitingDe] @@ -82,10 +93,14 @@ tests: verification: | In case of chip tool, here is an example command to use - To get UNSUPPORTED_ACCESS 1st we need to send below mentioned ACL command and then + To Setup the TH such that there is no accessing fabric, 1st we need to send below mentioned ACL command + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1234], "targets": null}]' 1 0 - ./chip-tool generalcommissioning commissioning-complete 1 0 + ./chip-tool generalcommissioning commissioning-complete 1 0 + + verify DUT is responsds with UNSUPPORTED_ACCESS for the data sent in the above command + [1654079608.667986][14525:14530] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0004 Status=0x7e [1654079608.668000][14525:14530] CHIP:TOO: Error: IM Error 0x0000057E: General error: 0x7e (UNSUPPORTED_ACCESS) [1654079608.668011][14525:14530] CHIP:DMG: ICR moving to [AwaitingDe] @@ -98,50 +113,56 @@ tests: In case of chip tool, here is an example command to use sudo ./chip-tool generalcommissioning arm-fail-safe 1000 1 1 0 - - [1653559028.744923][13424:13429] CHIP:DMG: InvokeResponseMessage = - [1653559028.744944][13424:13429] CHIP:DMG: { - [1653559028.744963][13424:13429] CHIP:DMG: suppressResponse = false, - [1653559028.744985][13424:13429] CHIP:DMG: InvokeResponseIBs = - [1653559028.745020][13424:13429] CHIP:DMG: [ - [1653559028.745041][13424:13429] CHIP:DMG: InvokeResponseIB = - [1653559028.745073][13424:13429] CHIP:DMG: { - [1653559028.745092][13424:13429] CHIP:DMG: CommandDataIB = - [1653559028.745113][13424:13429] CHIP:DMG: { - [1653559028.745140][13424:13429] CHIP:DMG: CommandPathIB = - [1653559028.745167][13424:13429] CHIP:DMG: { - [1653559028.745192][13424:13429] CHIP:DMG: EndpointId = 0x0, - [1653559028.745217][13424:13429] CHIP:DMG: ClusterId = 0x30, - [1653559028.745244][13424:13429] CHIP:DMG: CommandId = 0x1, - [1653559028.745268][13424:13429] CHIP:DMG: }, - [1653559028.745299][13424:13429] CHIP:DMG: - [1653559028.745322][13424:13429] CHIP:DMG: CommandData = - [1653559028.745348][13424:13429] CHIP:DMG: { - [1653559028.745399][13424:13429] CHIP:DMG: 0x0 = 0, - [1653559028.745425][13424:13429] CHIP:DMG: 0x1 = "", - [1653559028.745447][13424:13429] CHIP:DMG: }, - [1653559028.745468][13424:13429] CHIP:DMG: }, - [1653559028.745501][13424:13429] CHIP:DMG: - [1653559028.745524][13424:13429] CHIP:DMG: }, - [1653559028.745557][13424:13429] CHIP:DMG: - [1653559028.745579][13424:13429] CHIP:DMG: ], - [1653559028.745614][13424:13429] CHIP:DMG: - [1653559028.745636][13424:13429] CHIP:DMG: InteractionModelRevision = 1 - [1653559028.745656][13424:13429] CHIP:DMG: }, - [1653559028.745741][13424:13429] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1653559028.745793][13424:13429] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1653559028.745851][13424:13429] CHIP:TOO: ArmFailSafeResponse: { - [1653559028.745884][13424:13429] CHIP:TOO: errorCode: 0 - [1653559028.745907][13424:13429] CHIP:TOO: debugText: - [1653559028.745930][13424:13429] CHIP:TOO: } + Verify DUT generates an InvokeResponseIB with a valid CommandDataIB and + sends it to the TH for the data sent in the above command + + On TH + [1655718690.469392][4629:4634] CHIP:DMG: }, + [1655718690.469476][4629:4634] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 + [1655718690.469541][4629:4634] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 + [1655718690.469615][4629:4634] CHIP:TOO: ArmFailSafeResponse: { + [1655718690.469664][4629:4634] CHIP:TOO: errorCode: 0 + [1655718690.469698][4629:4634] CHIP:TOO: debugText: + [1655718690.469733][4629:4634] CHIP:TOO: } + [1655718690.469787][4629:4634] CHIP:DMG: ICR moving to [AwaitingDe] + [1655718690.469859][4629:4634] CHIP:EM: Sending Standalone Ack for MessageCounter:60280704 on exchange 4731i + + + On DUT + [1655718690.417352][10909:10909] CHIP:DMG: InvokeRequestMessage = + [1655718690.417401][10909:10909] CHIP:DMG: { + [1655718690.417436][10909:10909] CHIP:DMG: suppressResponse = false, + [1655718690.417484][10909:10909] CHIP:DMG: timedRequest = false, + [1655718690.417529][10909:10909] CHIP:DMG: InvokeRequests = + [1655718690.417587][10909:10909] CHIP:DMG: [ + [1655718690.417633][10909:10909] CHIP:DMG: CommandDataIB = + [1655718690.417683][10909:10909] CHIP:DMG: { + [1655718690.417730][10909:10909] CHIP:DMG: CommandPathIB = + [1655718690.417793][10909:10909] CHIP:DMG: { + [1655718690.417852][10909:10909] CHIP:DMG: EndpointId = 0x0, + [1655718690.417914][10909:10909] CHIP:DMG: ClusterId = 0x30, + [1655718690.417973][10909:10909] CHIP:DMG: CommandId = 0x0, + [1655718690.418030][10909:10909] CHIP:DMG: }, + [1655718690.418087][10909:10909] CHIP:DMG: + [1655718690.418140][10909:10909] CHIP:DMG: CommandFields = + [1655718690.418202][10909:10909] CHIP:DMG: { + [1655718690.418261][10909:10909] CHIP:DMG: 0x0 = 1000, + [1655718690.418322][10909:10909] CHIP:DMG: 0x1 = 1, + [1655718690.418381][10909:10909] CHIP:DMG: }, + [1655718690.418433][10909:10909] CHIP:DMG: }, + [1655718690.418487][10909:10909] CHIP:DMG: + [1655718690.418531][10909:10909] CHIP:DMG: ], + [1655718690.418586][10909:10909] CHIP:DMG: + [1655718690.418630][10909:10909] CHIP:DMG: InteractionModelRevision = 1 + [1655718690.418673][10909:10909] CHIP:DMG: }, + [1655718690.418779][10909:10909] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0030 e=0 p=a disabled: true - label: "TH sends the Invoke Request Message to the DUT with a valid CommandDataIB and SuppressResponse set to True" verification: | - https://github.com/project-chip/connectedhomeip/issues/8043 - Out of Scope for V1.0 + Out of Scope for V1.0 disabled: true - label: @@ -150,9 +171,12 @@ tests: verification: | In case of chip tool, here is an example command to use + To Setup the TH such that there is no accessing fabric, 1st we need to send below mentioned ACL command + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1234], "targets": null}]' 1 0 ./chip-tool any command-by-id 0x0003 0 1 1 0 --timedInteractionTimeoutMs 500 + verify DUT is responsds with UNSUPPORTED_ACCESS for the data sent in the above command [1654079573.921236][14516:14521] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0003 Command=0x0000_0000 Status=0x7e [1654079573.921251][14516:14521] CHIP:TOO: Error: IM Error 0x0000057E: General error: 0x7e (UNSUPPORTED_ACCESS) @@ -167,6 +191,8 @@ tests: In case of chip tool, here is an example command to use ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + verify DUT is responsds with NEEDS_TIMED_INTERACTION for the data sent in the above command + [1654077001.606235][13788:13793] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0xc6 [1654077001.606268][13788:13793] CHIP:TOO: Error: IM Error 0x000005C6: General error: 0xc6 (NEEDS_TIMED_INTERACTION) [1654077001.606311][13788:13793] CHIP:DMG: ICR moving to [AwaitingDe] diff --git a/src/app/tests/suites/certification/Test_TC_IDM_2_2.yaml b/src/app/tests/suites/certification/Test_TC_IDM_2_2.yaml index 2598dda702db0c..a6e70957673889 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_2_2.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: 20.2.2. [TC-IDM-2.2] Report Data Action from DUT to TH +name: 21.2.2. [TC-IDM-2.2] Report Data Action from DUT to TH. [{DUT_Server}] config: nodeId: 0x12344321 @@ -28,37 +28,40 @@ tests: Attribute]] On receipt of this message, DUT should send a report data action with the attribute value to the DUT." verification: | - sudo ./chip-tool identify read identify-time 1 1 + In case of chip tool, here is an example command to use - [1653629236.865368][8434:8440] CHIP:DMG: ReportDataMessage = - [1653629236.865385][8434:8440] CHIP:DMG: { - [1653629236.865396][8434:8440] CHIP:DMG: AttributeReportIBs = - [1653629236.865421][8434:8440] CHIP:DMG: [ - [1653629236.865436][8434:8440] CHIP:DMG: AttributeReportIB = - [1653629236.865456][8434:8440] CHIP:DMG: { - [1653629236.865472][8434:8440] CHIP:DMG: AttributeDataIB = - [1653629236.865492][8434:8440] CHIP:DMG: { - [1653629236.865512][8434:8440] CHIP:DMG: DataVersion = 0xd7cb76c3, - [1653629236.865529][8434:8440] CHIP:DMG: AttributePathIB = - [1653629236.865544][8434:8440] CHIP:DMG: { - [1653629236.865563][8434:8440] CHIP:DMG: Endpoint = 0x1, - [1653629236.865581][8434:8440] CHIP:DMG: Cluster = 0x3, - [1653629236.865601][8434:8440] CHIP:DMG: Attribute = 0x0000_0000, - [1653629236.865619][8434:8440] CHIP:DMG: } - [1653629236.865639][8434:8440] CHIP:DMG: - [1653629236.865659][8434:8440] CHIP:DMG: Data = 0, - [1653629236.865677][8434:8440] CHIP:DMG: }, - [1653629236.865699][8434:8440] CHIP:DMG: - [1653629236.865715][8434:8440] CHIP:DMG: }, - [1653629236.865738][8434:8440] CHIP:DMG: - [1653629236.865753][8434:8440] CHIP:DMG: ], - [1653629236.865777][8434:8440] CHIP:DMG: - [1653629236.865793][8434:8440] CHIP:DMG: SuppressResponse = true, - [1653629236.865807][8434:8440] CHIP:DMG: InteractionModelRevision = 1 - [1653629236.865822][8434:8440] CHIP:DMG: } - [1653629236.865950][8434:8440] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3620435651 - [1653629236.866003][8434:8440] CHIP:TOO: identify time: 0 - [1653629236.866077][8434:8440] CHIP:EM: Sending Standalone Ack for MessageCounter:10900625 on exchange 38226i + sudo ./chip-tool identify read identify-time 1 1 + Verify on TH , DUT is responds right attribute value for above command + + [1655727338.260966][5267:5272] CHIP:DMG: ReportDataMessage = + [1655727338.261012][5267:5272] CHIP:DMG: { + [1655727338.261048][5267:5272] CHIP:DMG: AttributeReportIBs = + [1655727338.261097][5267:5272] CHIP:DMG: [ + [1655727338.261136][5267:5272] CHIP:DMG: AttributeReportIB = + [1655727338.261193][5267:5272] CHIP:DMG: { + [1655727338.261235][5267:5272] CHIP:DMG: AttributeDataIB = + [1655727338.261285][5267:5272] CHIP:DMG: { + [1655727338.261338][5267:5272] CHIP:DMG: DataVersion = 0xe1f913f, + [1655727338.261385][5267:5272] CHIP:DMG: AttributePathIB = + [1655727338.261436][5267:5272] CHIP:DMG: { + [1655727338.261496][5267:5272] CHIP:DMG: Endpoint = 0x1, + [1655727338.261553][5267:5272] CHIP:DMG: Cluster = 0x3, + [1655727338.261609][5267:5272] CHIP:DMG: Attribute = 0x0000_0000, + [1655727338.261663][5267:5272] CHIP:DMG: } + [1655727338.261719][5267:5272] CHIP:DMG: + [1655727338.261776][5267:5272] CHIP:DMG: Data = 0, + [1655727338.261826][5267:5272] CHIP:DMG: }, + [1655727338.261880][5267:5272] CHIP:DMG: + [1655727338.261925][5267:5272] CHIP:DMG: }, + [1655727338.261974][5267:5272] CHIP:DMG: + [1655727338.262013][5267:5272] CHIP:DMG: ], + [1655727338.262061][5267:5272] CHIP:DMG: + [1655727338.262102][5267:5272] CHIP:DMG: SuppressResponse = true, + [1655727338.262145][5267:5272] CHIP:DMG: InteractionModelRevision = 1 + [1655727338.262182][5267:5272] CHIP:DMG: } + [1655727338.262379][5267:5272] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 236949823 + [1655727338.262475][5267:5272] CHIP:TOO: identify time: 0 + [1655727338.262588][5267:5272] CHIP:EM: Sending Standalone Ack for MessageCounter:9195311 on exchange 32586i disabled: true - label: @@ -68,54 +71,63 @@ tests: DUT should send a report data action with the attribute value to the DUT." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0x03 0xFFFFFFFF 1 0xFFFF - [1653629351.741280][8503:8508] CHIP:DMG: } - [1653629351.741546][8503:8508] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 2065044836 - [1653629351.741566][8503:8508] CHIP:TOO: identify time: 0 - [1653629351.741588][8503:8508] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 2065044836 - [1653629351.741594][8503:8508] CHIP:TOO: identify type: 2 - [1653629351.741616][8503:8508] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 2065044836 - [1653629351.741621][8503:8508] CHIP:TOO: ClusterRevision: 4 - [1653629351.741685][8503:8508] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF8 DataVersion: 2065044836 - [1653629351.741699][8503:8508] CHIP:TOO: GeneratedCommandList: 1 entries - [1653629351.741707][8503:8508] CHIP:TOO: [1]: 0 - [1653629351.741784][8503:8508] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF9 DataVersion: 2065044836 - [1653629351.741794][8503:8508] CHIP:TOO: AcceptedCommandList: 3 entries - [1653629351.741800][8503:8508] CHIP:TOO: [1]: 0 - [1653629351.741807][8503:8508] CHIP:TOO: [2]: 1 - [1653629351.741813][8503:8508] CHIP:TOO: [3]: 64 - [1653629351.741937][8503:8508] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFB DataVersion: 2065044836 - [1653629351.741949][8503:8508] CHIP:TOO: AttributeList: 6 entries - [1653629351.741955][8503:8508] CHIP:TOO: [1]: 0 - [1653629351.741962][8503:8508] CHIP:TOO: [2]: 1 - [1653629351.741968][8503:8508] CHIP:TOO: [3]: 65528 - [1653629351.741975][8503:8508] CHIP:TOO: [4]: 65529 - [1653629351.741981][8503:8508] CHIP:TOO: [5]: 65531 - [1653629351.741987][8503:8508] CHIP:TOO: [6]: 65533 - [1653629351.741994][8503:8508] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3620435651 - [1653629351.742000][8503:8508] CHIP:TOO: identify time: 0 - [1653629351.742022][8503:8508] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 3620435651 - [1653629351.742028][8503:8508] CHIP:TOO: identify type: 2 - [1653629351.742048][8503:8508] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 3620435651 - [1653629351.742054][8503:8508] CHIP:TOO: ClusterRevision: 4 - [1653629351.742109][8503:8508] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFF8 DataVersion: 3620435651 - [1653629351.742117][8503:8508] CHIP:TOO: GeneratedCommandList: 1 entries - [1653629351.742124][8503:8508] CHIP:TOO: [1]: 0 - [1653629351.742198][8503:8508] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFF9 DataVersion: 3620435651 - [1653629351.745044][8503:8508] CHIP:TOO: AcceptedCommandList: 3 entries - [1653629351.745059][8503:8508] CHIP:TOO: [1]: 0 - [1653629351.745066][8503:8508] CHIP:TOO: [2]: 1 - [1653629351.745074][8503:8508] CHIP:TOO: [3]: 64 - [1653629351.745195][8503:8508] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFFB DataVersion: 3620435651 - [1653629351.745206][8503:8508] CHIP:TOO: AttributeList: 6 entries - [1653629351.745211][8503:8508] CHIP:TOO: [1]: 0 - [1653629351.745215][8503:8508] CHIP:TOO: [2]: 1 - [1653629351.745219][8503:8508] CHIP:TOO: [3]: 65528 - [1653629351.745223][8503:8508] CHIP:TOO: [4]: 65529 - [1653629351.745226][8503:8508] CHIP:TOO: [5]: 65531 - [1653629351.745230][8503:8508] CHIP:TOO: [6]: 65533 - [1653629351.745311][8503:8508] CHIP:EM: Sending Standalone Ack for MessageCounter:6362667 on exchange 25146i + Verify on TH , DUT is responds right attribute value for above command + + [1655727546.354466][5286:5291] CHIP:DMG: + [1655727546.354512][5286:5291] CHIP:DMG: SuppressResponse = true, + [1655727546.354538][5286:5291] CHIP:DMG: InteractionModelRevision = 1 + [1655727546.354580][5286:5291] CHIP:DMG: } + [1655727546.355252][5286:5291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 1545325355 + [1655727546.355324][5286:5291] CHIP:TOO: identify time: 0 + [1655727546.355386][5286:5291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 1545325355 + [1655727546.355414][5286:5291] CHIP:TOO: identify type: 2 + [1655727546.355470][5286:5291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFC DataVersion: 1545325355 + [1655727546.355524][5286:5291] CHIP:TOO: FeatureMap: 0 + [1655727546.355606][5286:5291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 1545325355 + [1655727546.355635][5286:5291] CHIP:TOO: ClusterRevision: 4 + [1655727546.355788][5286:5291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF8 DataVersion: 1545325355 + [1655727546.355845][5286:5291] CHIP:TOO: GeneratedCommandList: 0 entries + [1655727546.356030][5286:5291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFF9 DataVersion: 1545325355 + [1655727546.356087][5286:5291] CHIP:TOO: AcceptedCommandList: 2 entries + [1655727546.356117][5286:5291] CHIP:TOO: [1]: 0 + [1655727546.356143][5286:5291] CHIP:TOO: [2]: 64 + [1655727546.356552][5286:5291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFB DataVersion: 1545325355 + [1655727546.356590][5286:5291] CHIP:TOO: AttributeList: 7 entries + [1655727546.356617][5286:5291] CHIP:TOO: [1]: 0 + [1655727546.356642][5286:5291] CHIP:TOO: [2]: 1 + [1655727546.356667][5286:5291] CHIP:TOO: [3]: 65528 + [1655727546.356692][5286:5291] CHIP:TOO: [4]: 65529 + [1655727546.356716][5286:5291] CHIP:TOO: [5]: 65531 + [1655727546.356741][5286:5291] CHIP:TOO: [6]: 65532 + [1655727546.356766][5286:5291] CHIP:TOO: [7]: 65533 + [1655727546.356790][5286:5291] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 236949823 + [1655727546.356815][5286:5291] CHIP:TOO: identify time: 0 + [1655727546.356895][5286:5291] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 236949823 + [1655727546.356946][5286:5291] CHIP:TOO: identify type: 2 + [1655727546.357022][5286:5291] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFFC DataVersion: 236949823 + [1655727546.357065][5286:5291] CHIP:TOO: FeatureMap: 0 + [1655727546.357143][5286:5291] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 236949823 + [1655727546.357171][5286:5291] CHIP:TOO: ClusterRevision: 4 + [1655727546.357312][5286:5291] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFF8 DataVersion: 236949823 + [1655727546.357362][5286:5291] CHIP:TOO: GeneratedCommandList: 0 entries + [1655727546.357555][5286:5291] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFF9 DataVersion: 236949823 + [1655727546.357610][5286:5291] CHIP:TOO: AcceptedCommandList: 2 entries + [1655727546.357638][5286:5291] CHIP:TOO: [1]: 0 + [1655727546.357662][5286:5291] CHIP:TOO: [2]: 64 + [1655727546.358014][5286:5291] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_FFFB DataVersion: 236949823 + [1655727546.358052][5286:5291] CHIP:TOO: AttributeList: 7 entries + [1655727546.358078][5286:5291] CHIP:TOO: [1]: 0 + [1655727546.358103][5286:5291] CHIP:TOO: [2]: 1 + [1655727546.358127][5286:5291] CHIP:TOO: [3]: 65528 + [1655727546.358152][5286:5291] CHIP:TOO: [4]: 65529 + [1655727546.358176][5286:5291] CHIP:TOO: [5]: 65531 + [1655727546.358200][5286:5291] CHIP:TOO: [6]: 65532 + [1655727546.358225][5286:5291] CHIP:TOO: [7]: 65533 + [1655727546.358492][5286:5291] CHIP:EM: Sending Standalone Ack for MessageCounter:220291395 on exchange 53799i disabled: true - label: @@ -125,56 +137,61 @@ tests: message, DUT should send a report data action with the attribute value from all the Endpoints to the DUT." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0x03 0x00 1 0xFFFF - [1653629424.424101][8542:8547] CHIP:DMG: ReportDataMessage = - [1653629424.424120][8542:8547] CHIP:DMG: { - [1653629424.424131][8542:8547] CHIP:DMG: AttributeReportIBs = - [1653629424.424153][8542:8547] CHIP:DMG: [ - [1653629424.424164][8542:8547] CHIP:DMG: AttributeReportIB = - [1653629424.424186][8542:8547] CHIP:DMG: { - [1653629424.424203][8542:8547] CHIP:DMG: AttributeDataIB = - [1653629424.424221][8542:8547] CHIP:DMG: { - [1653629424.424240][8542:8547] CHIP:DMG: DataVersion = 0x7b161564, - [1653629424.424256][8542:8547] CHIP:DMG: AttributePathIB = - [1653629424.424276][8542:8547] CHIP:DMG: { - [1653629424.424296][8542:8547] CHIP:DMG: Endpoint = 0x0, - [1653629424.424316][8542:8547] CHIP:DMG: Cluster = 0x3, - [1653629424.424336][8542:8547] CHIP:DMG: Attribute = 0x0000_0000, - [1653629424.424353][8542:8547] CHIP:DMG: } - [1653629424.424375][8542:8547] CHIP:DMG: - [1653629424.424396][8542:8547] CHIP:DMG: Data = 0, - [1653629424.424413][8542:8547] CHIP:DMG: }, - [1653629424.424437][8542:8547] CHIP:DMG: - [1653629424.424453][8542:8547] CHIP:DMG: }, - [1653629424.424483][8542:8547] CHIP:DMG: - [1653629424.424499][8542:8547] CHIP:DMG: AttributeReportIB = - [1653629424.424521][8542:8547] CHIP:DMG: { - [1653629424.424537][8542:8547] CHIP:DMG: AttributeDataIB = - [1653629424.424556][8542:8547] CHIP:DMG: { - [1653629424.424573][8542:8547] CHIP:DMG: DataVersion = 0xd7cb76c3, - [1653629424.424587][8542:8547] CHIP:DMG: AttributePathIB = - [1653629424.424605][8542:8547] CHIP:DMG: { - [1653629424.424623][8542:8547] CHIP:DMG: Endpoint = 0x1, - [1653629424.424641][8542:8547] CHIP:DMG: Cluster = 0x3, - [1653629424.424659][8542:8547] CHIP:DMG: Attribute = 0x0000_0000, - [1653629424.424676][8542:8547] CHIP:DMG: } - [1653629424.424696][8542:8547] CHIP:DMG: - [1653629424.424714][8542:8547] CHIP:DMG: Data = 0, - [1653629424.424730][8542:8547] CHIP:DMG: }, - [1653629424.424751][8542:8547] CHIP:DMG: - [1653629424.424766][8542:8547] CHIP:DMG: }, - [1653629424.424787][8542:8547] CHIP:DMG: - [1653629424.424802][8542:8547] CHIP:DMG: ], - [1653629424.424830][8542:8547] CHIP:DMG: - [1653629424.424847][8542:8547] CHIP:DMG: SuppressResponse = true, - [1653629424.424863][8542:8547] CHIP:DMG: InteractionModelRevision = 1 - [1653629424.424878][8542:8547] CHIP:DMG: } - [1653629424.425028][8542:8547] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 2065044836 - [1653629424.425079][8542:8547] CHIP:TOO: identify time: 0 - [1653629424.425146][8542:8547] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3620435651 - [1653629424.425164][8542:8547] CHIP:TOO: identify time: 0 - [1653629424.425237][8542:8547] CHIP:EM: Sending Standalone Ack for MessageCounter:8601484 on exchange 41046i + Verify on TH , DUT is responds right attribute value for above command + + [1655727602.117907][5301:5306] CHIP:EM: Removed CHIP MessageCounter:97487240 from RetransTable on exchange 58891i + [1655727602.117985][5301:5306] CHIP:DMG: ReportDataMessage = + [1655727602.118025][5301:5306] CHIP:DMG: { + [1655727602.118057][5301:5306] CHIP:DMG: AttributeReportIBs = + [1655727602.118102][5301:5306] CHIP:DMG: [ + [1655727602.118138][5301:5306] CHIP:DMG: AttributeReportIB = + [1655727602.118188][5301:5306] CHIP:DMG: { + [1655727602.118225][5301:5306] CHIP:DMG: AttributeDataIB = + [1655727602.118270][5301:5306] CHIP:DMG: { + [1655727602.118317][5301:5306] CHIP:DMG: DataVersion = 0x5c1bcb2b, + [1655727602.118364][5301:5306] CHIP:DMG: AttributePathIB = + [1655727602.118417][5301:5306] CHIP:DMG: { + [1655727602.118464][5301:5306] CHIP:DMG: Endpoint = 0x0, + [1655727602.118515][5301:5306] CHIP:DMG: Cluster = 0x3, + [1655727602.118570][5301:5306] CHIP:DMG: Attribute = 0x0000_0000, + [1655727602.118618][5301:5306] CHIP:DMG: } + [1655727602.118674][5301:5306] CHIP:DMG: + [1655727602.118724][5301:5306] CHIP:DMG: Data = 0, + [1655727602.118768][5301:5306] CHIP:DMG: }, + [1655727602.118816][5301:5306] CHIP:DMG: + [1655727602.118856][5301:5306] CHIP:DMG: }, + [1655727602.118903][5301:5306] CHIP:DMG: + [1655727602.118938][5301:5306] CHIP:DMG: AttributeReportIB = + [1655727602.119043][5301:5306] CHIP:DMG: { + [1655727602.119084][5301:5306] CHIP:DMG: AttributeDataIB = + [1655727602.119128][5301:5306] CHIP:DMG: { + [1655727602.119174][5301:5306] CHIP:DMG: DataVersion = 0xe1f913f, + [1655727602.119215][5301:5306] CHIP:DMG: AttributePathIB = + [1655727602.119264][5301:5306] CHIP:DMG: { + [1655727602.119313][5301:5306] CHIP:DMG: Endpoint = 0x1, + [1655727602.119367][5301:5306] CHIP:DMG: Cluster = 0x3, + [1655727602.119423][5301:5306] CHIP:DMG: Attribute = 0x0000_0000, + [1655727602.119472][5301:5306] CHIP:DMG: } + [1655727602.119522][5301:5306] CHIP:DMG: + [1655727602.119568][5301:5306] CHIP:DMG: Data = 0, + [1655727602.119611][5301:5306] CHIP:DMG: }, + [1655727602.119661][5301:5306] CHIP:DMG: + [1655727602.119698][5301:5306] CHIP:DMG: }, + [1655727602.119744][5301:5306] CHIP:DMG: + [1655727602.119779][5301:5306] CHIP:DMG: ], + [1655727602.119823][5301:5306] CHIP:DMG: + [1655727602.119859][5301:5306] CHIP:DMG: SuppressResponse = true, + [1655727602.119897][5301:5306] CHIP:DMG: InteractionModelRevision = 1 + [1655727602.119933][5301:5306] CHIP:DMG: } + [1655727602.120134][5301:5306] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 1545325355 + [1655727602.120223][5301:5306] CHIP:TOO: identify time: 0 + [1655727602.120315][5301:5306] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 236949823 + [1655727602.120356][5301:5306] CHIP:TOO: identify time: 0 + [1655727602.120460][5301:5306] CHIP:EM: Sending Standalone Ack for MessageCounter:192238779 on exchange 58891i disabled: true - label: @@ -184,60 +201,69 @@ tests: Attribute]] On receipt of this message, DUT should send a report data action with the attribute value from all the clusters to the DUT." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFD 1 0 - [1653629525.510828][8567:8572] CHIP:DMG: } - [1653629525.511238][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 2065044836 - [1653629525.511345][8567:8572] CHIP:TOO: ClusterRevision: 4 - [1653629525.511387][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_FFFD DataVersion: 1892696235 - [1653629525.511401][8567:8572] CHIP:TOO: ClusterRevision: 4 - [1653629525.511436][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 1817528171 - [1653629525.511448][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511483][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_FFFD DataVersion: 778874126 - [1653629525.511495][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511533][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFD DataVersion: 4159399632 - [1653629525.511544][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511578][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFFD DataVersion: 2705188066 - [1653629525.511590][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511624][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002A Attribute 0x0000_FFFD DataVersion: 2073041134 - [1653629525.511637][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511671][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_FFFD DataVersion: 2899581463 - [1653629525.511683][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511717][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002C Attribute 0x0000_FFFD DataVersion: 139938310 - [1653629525.511729][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511763][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002D Attribute 0x0000_FFFD DataVersion: 1881924600 - [1653629525.511774][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511809][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_FFFD DataVersion: 965953906 - [1653629525.511821][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511856][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002F Attribute 0x0000_FFFD DataVersion: 621120931 - [1653629525.511869][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511902][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_FFFD DataVersion: 2366251699 - [1653629525.511914][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.511950][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFD DataVersion: 2560747985 - [1653629525.511962][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515209][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_FFFD DataVersion: 68496368 - [1653629525.515241][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515281][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Attribute 0x0000_FFFD DataVersion: 366565986 - [1653629525.515292][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515324][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0035 Attribute 0x0000_FFFD DataVersion: 3069278869 - [1653629525.515333][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515367][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_FFFD DataVersion: 2097780219 - [1653629525.515376][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515408][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_FFFD DataVersion: 3808204989 - [1653629525.515417][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515450][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_FFFD DataVersion: 659825789 - [1653629525.515461][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515497][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFFD DataVersion: 2025844388 - [1653629525.515507][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515541][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_FFFD DataVersion: 1292877491 - [1653629525.515551][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515585][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0040 Attribute 0x0000_FFFD DataVersion: 469408948 - [1653629525.515596][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515629][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0041 Attribute 0x0000_FFFD DataVersion: 1529979688 - [1653629525.515640][8567:8572] CHIP:TOO: ClusterRevision: 1 - [1653629525.515684][8567:8572] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0405 Attribute 0x0000_FFFD DataVersion: 3850945162 - [1653629525.515719][8567:8572] CHIP:TOO: ClusterRevision: 3 - [1653629525.515852][8567:8572] CHIP:EM: Sending Standalone Ack for MessageCounter:1536220 on exchange 8075i + Verify on TH , DUT is responds right attribute value for above command + + + [1655727656.941694][5312:5317] CHIP:DMG: SuppressResponse = true, + [1655727656.941720][5312:5317] CHIP:DMG: InteractionModelRevision = 1 + [1655727656.941743][5312:5317] CHIP:DMG: } + [1655727656.942228][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_FFFD DataVersion: 1545325355 + [1655727656.942298][5312:5317] CHIP:TOO: ClusterRevision: 4 + [1655727656.942360][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_FFFD DataVersion: 1942266209 + [1655727656.942387][5312:5317] CHIP:TOO: ClusterRevision: 4 + [1655727656.942443][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_FFFD DataVersion: 3023309492 + [1655727656.942471][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.942527][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001E Attribute 0x0000_FFFD DataVersion: 3936061778 + [1655727656.942554][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.942610][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFD DataVersion: 3928768969 + [1655727656.942637][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.942693][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFFD DataVersion: 3721523210 + [1655727656.942719][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.942774][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002A Attribute 0x0000_FFFD DataVersion: 1181162426 + [1655727656.942813][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.942869][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_FFFD DataVersion: 2219345422 + [1655727656.942896][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.942952][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002C Attribute 0x0000_FFFD DataVersion: 3817408109 + [1655727656.942988][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943044][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002D Attribute 0x0000_FFFD DataVersion: 425516794 + [1655727656.943071][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943126][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_FFFD DataVersion: 3515937606 + [1655727656.943153][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943208][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002F Attribute 0x0000_FFFD DataVersion: 622436169 + [1655727656.943235][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943291][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_FFFD DataVersion: 356792938 + [1655727656.943317][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943373][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFD DataVersion: 1227688606 + [1655727656.943400][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943456][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFFD DataVersion: 1996735258 + [1655727656.943482][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943538][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_FFFD DataVersion: 905751170 + [1655727656.943564][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943620][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Attribute 0x0000_FFFD DataVersion: 1221138867 + [1655727656.943646][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943701][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0035 Attribute 0x0000_FFFD DataVersion: 2670679178 + [1655727656.943728][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943783][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0036 Attribute 0x0000_FFFD DataVersion: 1044884973 + [1655727656.943810][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943865][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_FFFD DataVersion: 2445435667 + [1655727656.943892][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.943947][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_FFFD DataVersion: 3327019447 + [1655727656.943974][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.944030][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_FFFD DataVersion: 2726656324 + [1655727656.944056][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.944111][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_FFFD DataVersion: 3526129415 + [1655727656.944137][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.944192][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0040 Attribute 0x0000_FFFD DataVersion: 2328349985 + [1655727656.944219][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.944275][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0041 Attribute 0x0000_FFFD DataVersion: 537607835 + [1655727656.944301][5312:5317] CHIP:TOO: ClusterRevision: 1 + [1655727656.944357][5312:5317] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0405 Attribute 0x0000_FFFD DataVersion: 2911491950 + [1655727656.944383][5312:5317] CHIP:TOO: ClusterRevision: 3 + [1655727656.944550][5312:5317] CHIP:EM: Sending Standalone Ack for MessageCounter:181900858 on exchange 38221i disabled: true - label: @@ -246,6 +272,9 @@ tests: this message, DUT should send a report data action with the attribute value from all the clusters to the DUT." verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF --timeout 40 received report data message has all the right attribute values from DUT to TH disabled: true @@ -257,6 +286,8 @@ tests: DUT should send a report data action with the attribute value from all the clusters to the DUT." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFD 1 0xFFFF Here Verifying cluster revision global attribute from all cluster for all endpoint. received report data message has all the right attribute values from DUT to TH @@ -268,6 +299,8 @@ tests: ClusterID]] On receipt of this message, DUT should send a report data action with the attribute value from all the Endpoints to the DUT." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0x03 0xFFFFFFFF 1 0xFFFF [1653629930.057852][8778:8783] CHIP:DMG: } @@ -325,6 +358,8 @@ tests: report data action with the attribute value from all the Endpoints to the DUT." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 1 @@ -336,6 +371,8 @@ tests: attribute of data type bool. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool onoff read on-off 1 1 [1653630222.692433][8886:8891] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 312829505 @@ -348,6 +385,8 @@ tests: attribute of data type string. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool modeselect read description 1 1 [1653630307.924844][8910:8915] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000 DataVersion: 722071058 @@ -360,7 +399,9 @@ tests: attribute of data type unsigned integer. DUT responds with the report data action with the right attribute value." verification: | - sudo ./chip-tool any read-by-id 0x3 0x1 1 0 + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0x3 0x1 1 0 [1653630355.834677][8923:8928] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 2065044836 [1653630355.834735][8923:8928] CHIP:TOO: identify type: 2 @@ -372,6 +413,8 @@ tests: attribute of data type signed integer. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool pressuremeasurement read measured-value 1 1 [1653630404.570993][8934:8939] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0403 Attribute 0x0000_0000 DataVersion: 3770689028 @@ -392,12 +435,15 @@ tests: attribute of data type Octet String. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool operationalcredentials read trusted-root-certificates 1 0 - [1653630497.890683][8988:8993] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2025844388 - [1653630497.890738][8988:8993] CHIP:TOO: TrustedRootCertificates: 1 entries - [1653630497.890769][8988:8993] CHIP:TOO: [1]: Elided value too large of size 231 - [1653630497.890856][8988:8993] CHIP:EM: Sending Standalone Ack for MessageCounter:8673864 on exchange 42218i + [1655729519.609898][5433:5438] CHIP:DMG: } + [1655729519.610252][5433:5438] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0004 DataVersion: 2726656324 + [1655729519.610387][5433:5438] CHIP:TOO: TrustedRootCertificates: 1 entries + [1655729519.610460][5433:5438] CHIP:TOO: [1]: 1530010100240201370324140018260480228127260580254D3A37062414001824070124080130094104AB127A3610DCD7BC4ED07A7322D1DD40C5EBF11B53DEB2D1801C583EFA43730C1FE32D88079153EB3E4540964C5E044D7AE75465F4D5F927221A43119E15514D370A3501290118240260300414806F4AB0008FD14951B704A8A36511C73DD974B5300514806F4AB0008FD14951B704A8A36511C73DD974B518300B40F794F6C90A7FA3E06C1F6355AFCEE886BEAE92048089490280BEA4FC3EA754721F130D35BCB3F611D861F1B5088F222BBA8C89AC49C4E3178505F3A563E01D5C18 + [1655729519.610584][5433:5438] CHIP:EM: Sending Standalone Ack for MessageCounter:214593598 on exchange 62283i disabled: true - label: @@ -405,6 +451,8 @@ tests: attribute of data type Struct. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool occupancysensing read occupancy-sensor-type 1 1 [1653630542.619226][9034:9039] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0001 DataVersion: 3604656322 @@ -417,6 +465,8 @@ tests: attribute of data type List. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool timeformatlocalization read supported-calendar-types 1 0 [1653630857.535521][9171:9176] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002C Attribute 0x0000_0002 DataVersion: 139938310 @@ -441,6 +491,8 @@ tests: attribute of data type enum. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool occupancysensing read occupancy-sensor-type 1 1 [1653630949.025002][9198:9203] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0001 DataVersion: 3604656322 @@ -453,6 +505,8 @@ tests: attribute of data type bitmap. DUT responds with the report data action with the right attribute value." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool levelcontrol read options 1 1 [1653631017.039079][9211:9216] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_000F DataVersion: 199562416 @@ -471,6 +525,8 @@ tests: "TH sends the Read Request Message to the DUT to read any attribute to an unsupported Endpoint. DUT responds with the report data action." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0x3 0x1 1 8 [1653631094.367299][9229:9234] CHIP:DMG: SuppressResponse = true, @@ -484,6 +540,8 @@ tests: "TH sends the Read Request Message to the DUT to read any attribute to an unsupported cluster. DUT responds with the report data action." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0x3 0x1 1 2 [1653631187.121757][9257:9262] CHIP:DMG: SuppressResponse = true, @@ -497,6 +555,8 @@ tests: "TH sends the Read Request Message to the DUT to read an unsupported attribute DUT responds with the report data action." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool thermostat read outdoor-temperature 1 1 [1653631289.755681][9274:9279] CHIP:DMG: SuppressResponse = true, @@ -518,6 +578,8 @@ tests: the path that requires a privilege that is not granted for the cluster in the path. DUT responds with the report data action." verification: | + In case of chip tool, here is an example command to use + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1234], "targets": null}]' 1 0 1st send above mentioned ACL command and then verify the below mentioned command ./chip-tool operationalcredentials read trusted-root-certificates 1 0 @@ -533,6 +595,8 @@ tests: "TH sends the Read Request Message to the DUT to read an attribute Repeat the above steps 3 times." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool identify read identify-time 1 1 [1653631418.770328][9322:9327] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3620435651 [1653631418.770402][9322:9327] CHIP:TOO: identify time: 0 @@ -556,6 +620,8 @@ tests: read request to the same cluster with the DataVersionFilter Field set with the dataversion value received before." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool identify read identify-time 1 1 [1653633746.447923][9791:9796] CHIP:DMG: ReportDataMessage = [1653633746.447944][9791:9796] CHIP:DMG: { @@ -606,6 +672,8 @@ tests: the DataVersionFilter Field set with the dataversion value received before." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool identify read identify-time 1 1 [1653632941.730187][9571:9576] CHIP:DMG: ReportDataMessage = @@ -665,6 +733,8 @@ tests: cluster with the DataVersionFilter Field set with the dataversion value received before." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0x03 0xFFFFFFFF 1 1 [1653633965.092996][9835:9840] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3620435654 @@ -757,6 +827,8 @@ tests: and also an older DataVersion. The Read Request Message should have 2 DataVersionIB filters." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool identify read identify-time 1 1 [1653634213.984023][9909:9914] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3620435660 @@ -824,6 +896,8 @@ tests: supported attribute/wildcard on another cluster B. DataVersionList field should only contain the DataVersion of cluster A." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-by-id 0x03 0xFFFFFFFF 1 1 [1653634446.678378][9962:9967] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3620435660 @@ -891,7 +965,17 @@ tests: [[Endpoint = Specific Endpoint, Attribute = Specific Non Global Attribute]]" verification: | - https://github.com/CHIP-Specifications/chip-test-plans/issues/1373 + ./chip-tool any read-by-id 0xFFFFFFFF 0x0 1 1 + + [1656504191.589526][2805:2810] CHIP:EM: Removed CHIP MessageCounter:183619379 from RetransTable on exchange 22711i + [1656504191.589590][2805:2810] CHIP:DMG: StatusResponseMessage = + [1656504191.589630][2805:2810] CHIP:DMG: { + [1656504191.589665][2805:2810] CHIP:DMG: Status = 0x80 (INVALID_ACTION), + [1656504191.589703][2805:2810] CHIP:DMG: InteractionModelRevision = 1 + [1656504191.589744][2805:2810] CHIP:DMG: } + [1656504191.589782][2805:2810] CHIP:IM: Received status response, status is 0x80 (INVALID_ACTION) + [1656504191.589833][2805:2810] CHIP:TOO: Error: IM Error 0x00000580: General error: 0x80 (INVALID_ACTION) + [1656504191.589971][2805:2810] CHIP:EM: Sending Standalone Ack for MessageCounter:1519537 on exchange 22711i disabled: true - label: @@ -899,7 +983,15 @@ tests: attribute from all clusters at all Endpoints AttributePath = [[Attribute = Specific Non Global Attribute]]" verification: | - https://github.com/CHIP-Specifications/chip-test-plans/issues/1373 + ./chip-tool any read-by-id 0xFFFFFFFF 0x0 1 0xFFFF + [1656503822.388967][2787:2792] CHIP:DMG: StatusResponseMessage = + [1656503822.389027][2787:2792] CHIP:DMG: { + [1656503822.389066][2787:2792] CHIP:DMG: Status = 0x80 (INVALID_ACTION), + [1656503822.389107][2787:2792] CHIP:DMG: InteractionModelRevision = 1 + [1656503822.389161][2787:2792] CHIP:DMG: } + [1656503822.389202][2787:2792] CHIP:IM: Received status response, status is 0x80 (INVALID_ACTION) + [1656503822.389272][2787:2792] CHIP:TOO: Error: IM Error 0x00000580: General error: 0x80 (INVALID_ACTION) + [1656503822.389373][2787:2792] CHIP:EM: Sending Standalone Ack for MessageCounter:185578 on exchange 45672i disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_IDM_3_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_3_1.yaml index e0254fcc152383..2ea03d61c77fdd 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_3_1.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: - 20.3.1. [TC-IDM-3.1] Write Request Action from DUT to TH [DUT - Controller] +name: 21.3.1. [TC-IDM-3.1] Write Request Action from DUT to TH. [{DUT_Client}] config: nodeId: 0x12344321 @@ -26,40 +25,42 @@ tests: "DUT sends the WriteRequestMessage to the TH to modify one attribute data" verification: | - sudo ./chip-tool levelcontrol write on-level 2 1 1 + In case of chip tool, here is an example command to use - [1653636768.762894][11142:11147] CHIP:DMG: WriteResponseMessage = - [1653636768.762912][11142:11147] CHIP:DMG: { - [1653636768.762924][11142:11147] CHIP:DMG: AttributeStatusIBs = - [1653636768.762946][11142:11147] CHIP:DMG: [ - [1653636768.762958][11142:11147] CHIP:DMG: AttributeStatusIB = - [1653636768.762972][11142:11147] CHIP:DMG: { - [1653636768.762988][11142:11147] CHIP:DMG: AttributePathIB = - [1653636768.763007][11142:11147] CHIP:DMG: { - [1653636768.763026][11142:11147] CHIP:DMG: Endpoint = 0x1, - [1653636768.763044][11142:11147] CHIP:DMG: Cluster = 0x8, - [1653636768.763064][11142:11147] CHIP:DMG: Attribute = 0x0000_0011, - [1653636768.763082][11142:11147] CHIP:DMG: } - [1653636768.763110][11142:11147] CHIP:DMG: - [1653636768.763125][11142:11147] CHIP:DMG: StatusIB = - [1653636768.763141][11142:11147] CHIP:DMG: { - [1653636768.763155][11142:11147] CHIP:DMG: status = 0x00 (SUCCESS), - [1653636768.763169][11142:11147] CHIP:DMG: }, - [1653636768.763184][11142:11147] CHIP:DMG: - [1653636768.763196][11142:11147] CHIP:DMG: }, - [1653636768.763218][11142:11147] CHIP:DMG: - [1653636768.763233][11142:11147] CHIP:DMG: ], - [1653636768.763252][11142:11147] CHIP:DMG: - [1653636768.763268][11142:11147] CHIP:DMG: InteractionModelRevision = 1 - [1653636768.763280][11142:11147] CHIP:DMG: } - [1653636768.763347][11142:11147] CHIP:DMG: WriteClient moving to [AwaitingDe] + verify on TH receives the right write Request Message for the data sent in the above command + sudo ./chip-tool levelcontrol write on-level 2 1 1 + [1655795552.551487][7331:7331] CHIP:EM: Handling via exchange: 41640r, Delegate: 0xaaaad9aed418 + [1655795552.551552][7331:7331] CHIP:IM: Received Write request + [1655795552.551589][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655795552.551669][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655795552.551710][7331:7331] CHIP:DMG: { + [1655795552.551747][7331:7331] CHIP:DMG: suppressResponse = false, + [1655795552.551791][7331:7331] CHIP:DMG: timedRequest = false, + [1655795552.551832][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655795552.551882][7331:7331] CHIP:DMG: [ + [1655795552.551921][7331:7331] CHIP:DMG: AttributeDataIB = + [1655795552.551966][7331:7331] CHIP:DMG: { + [1655795552.552009][7331:7331] CHIP:DMG: AttributePathIB = + [1655795552.552072][7331:7331] CHIP:DMG: { + [1655795552.552125][7331:7331] CHIP:DMG: Endpoint = 0x1, + [1655795552.552180][7331:7331] CHIP:DMG: Cluster = 0x8, + [1655795552.552234][7331:7331] CHIP:DMG: Attribute = 0x0000_0011, + [1655795552.552275][7331:7331] CHIP:DMG: } + [1655795552.552327][7331:7331] CHIP:DMG: + [1655795552.552381][7331:7331] CHIP:DMG: Data = 2, + [1655795552.552428][7331:7331] CHIP:DMG: }, + [1655795552.552478][7331:7331] CHIP:DMG: + [1655795552.552517][7331:7331] CHIP:DMG: ], + [1655795552.552564][7331:7331] CHIP:DMG: + [1655795552.552605][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655795552.552647][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655795552.552686][7331:7331] CHIP:DMG: }, sudo ./chip-tool levelcontrol read on-level 1 1 - [1653636854.551347][11158:11163] CHIP:DMG: } - [1653636854.551442][11158:11163] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 199562417 - [1653636854.551486][11158:11163] CHIP:TOO: on level: 2 - [1653636854.551543][11158:11163] CHIP:EM: Sending Standalone Ack for MessageCounter:9262666 on exchange 52004i + [1655795604.755214][6880:6885] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 737039636 + [1655795604.755363][6880:6885] CHIP:TOO: on level: 2 + [1655795604.755460][6880:6885] CHIP:EM: Sending Standalone Ack for MessageCounter:83198098 on exchange 53763i disabled: true - label: @@ -67,120 +68,139 @@ tests: on all Endpoints. On receipt of this message, TH should modify the attribute and send a WriteResponseMessage to the DUT." verification: | - V1 out of scope + Out of Scope for V1.0 disabled: true - label: "[Optional] DUT sends the WriteRequestMessage to the TH to write an attribute of data type bool." verification: | - sudo ./chip-tool basic write local-config-disabled 1 1 0 - [1653636925.022916][11169:11174] CHIP:DMG: WriteResponseMessage = - [1653636925.022948][11169:11174] CHIP:DMG: { - [1653636925.022967][11169:11174] CHIP:DMG: AttributeStatusIBs = - [1653636925.022996][11169:11174] CHIP:DMG: [ - [1653636925.023018][11169:11174] CHIP:DMG: AttributeStatusIB = - [1653636925.023045][11169:11174] CHIP:DMG: { - [1653636925.023067][11169:11174] CHIP:DMG: AttributePathIB = - [1653636925.023091][11169:11174] CHIP:DMG: { - [1653636925.023110][11169:11174] CHIP:DMG: Endpoint = 0x0, - [1653636925.023125][11169:11174] CHIP:DMG: Cluster = 0x28, - [1653636925.023140][11169:11174] CHIP:DMG: Attribute = 0x0000_0010, - [1653636925.023171][11169:11174] CHIP:DMG: } - [1653636925.023192][11169:11174] CHIP:DMG: - [1653636925.023205][11169:11174] CHIP:DMG: StatusIB = - [1653636925.023220][11169:11174] CHIP:DMG: { - [1653636925.023243][11169:11174] CHIP:DMG: status = 0x00 (SUCCESS), - [1653636925.023266][11169:11174] CHIP:DMG: }, - [1653636925.023288][11169:11174] CHIP:DMG: - [1653636925.023305][11169:11174] CHIP:DMG: }, - [1653636925.023328][11169:11174] CHIP:DMG: - [1653636925.023348][11169:11174] CHIP:DMG: ], - [1653636925.023382][11169:11174] CHIP:DMG: - [1653636925.023401][11169:11174] CHIP:DMG: InteractionModelRevision = 1 - [1653636925.023418][11169:11174] CHIP:DMG: } - - sudo ./chip-tool basic read local-config-disabled 1 0 - [1653636965.583608][11178:11183] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2705188067 - [1653636965.583617][11178:11183] CHIP:TOO: LocalConfigDisabled: TRUE - [1653636965.583647][11178:11183] CHIP:EM: Sending Standalone Ack for MessageCounter:2068189 on exchange 17706i + In case of chip tool, here is an example command to use + + verify on TH receives the right write Request Message for the data sent in the above command + + ./chip-tool basic write local-config-disabled 1 1 0 + [1655795795.033946][7331:7331] CHIP:EM: Handling via exchange: 11668r, Delegate: 0xaaaad9aed418 + [1655795795.034011][7331:7331] CHIP:IM: Received Write request + [1655795795.034050][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655795795.034127][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655795795.034168][7331:7331] CHIP:DMG: { + [1655795795.034206][7331:7331] CHIP:DMG: suppressResponse = false, + [1655795795.034250][7331:7331] CHIP:DMG: timedRequest = false, + [1655795795.034290][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655795795.034340][7331:7331] CHIP:DMG: [ + [1655795795.034380][7331:7331] CHIP:DMG: AttributeDataIB = + [1655795795.034425][7331:7331] CHIP:DMG: { + [1655795795.034467][7331:7331] CHIP:DMG: AttributePathIB = + [1655795795.034515][7331:7331] CHIP:DMG: { + [1655795795.034568][7331:7331] CHIP:DMG: Endpoint = 0x0, + [1655795795.034625][7331:7331] CHIP:DMG: Cluster = 0x28, + [1655795795.034680][7331:7331] CHIP:DMG: Attribute = 0x0000_0010, + [1655795795.034737][7331:7331] CHIP:DMG: } + [1655795795.034784][7331:7331] CHIP:DMG: + [1655795795.034834][7331:7331] CHIP:DMG: Data = true, + [1655795795.034880][7331:7331] CHIP:DMG: }, + [1655795795.034929][7331:7331] CHIP:DMG: + [1655795795.034968][7331:7331] CHIP:DMG: ], + [1655795795.035015][7331:7331] CHIP:DMG: + [1655795795.035056][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655795795.035099][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655795795.035138][7331:7331] CHIP:DMG: }, + [1655795795.035259][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0028 e=0 p=m + + ./chip-tool basic read local-config-disabled 1 0 + [1655795843.336042][6902:6907] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 1263909562 + [1655795843.336093][6902:6907] CHIP:TOO: LocalConfigDisabled: TRUE + [1655795843.336251][6902:6907] CHIP:EM: Sending Standalone Ack for MessageCounter:108030495 on exchange 43207i disabled: true - label: "[Optional] DUT sends the WriteRequestMessage to the TH to write an attribute of data type string." verification: | - sudo ./chip-tool basic write node-label node 1 0 - - [1653637012.758732][11186:11191] CHIP:DMG: WriteResponseMessage = - [1653637012.758758][11186:11191] CHIP:DMG: { - [1653637012.758781][11186:11191] CHIP:DMG: AttributeStatusIBs = - [1653637012.758816][11186:11191] CHIP:DMG: [ - [1653637012.758838][11186:11191] CHIP:DMG: AttributeStatusIB = - [1653637012.758893][11186:11191] CHIP:DMG: { - [1653637012.758921][11186:11191] CHIP:DMG: AttributePathIB = - [1653637012.758949][11186:11191] CHIP:DMG: { - [1653637012.758976][11186:11191] CHIP:DMG: Endpoint = 0x0, - [1653637012.759019][11186:11191] CHIP:DMG: Cluster = 0x28, - [1653637012.759046][11186:11191] CHIP:DMG: Attribute = 0x0000_0005, - [1653637012.759069][11186:11191] CHIP:DMG: } - [1653637012.759103][11186:11191] CHIP:DMG: - [1653637012.759128][11186:11191] CHIP:DMG: StatusIB = - [1653637012.759154][11186:11191] CHIP:DMG: { - [1653637012.759179][11186:11191] CHIP:DMG: status = 0x00 (SUCCESS), - [1653637012.759210][11186:11191] CHIP:DMG: }, - [1653637012.759237][11186:11191] CHIP:DMG: - [1653637012.759259][11186:11191] CHIP:DMG: }, - [1653637012.759288][11186:11191] CHIP:DMG: - [1653637012.759309][11186:11191] CHIP:DMG: ], - [1653637012.759342][11186:11191] CHIP:DMG: - [1653637012.759365][11186:11191] CHIP:DMG: InteractionModelRevision = 1 - [1653637012.759386][11186:11191] CHIP:DMG: } - [1653637012.759483][11186:11191] CHIP:DMG: WriteClient moving to [AwaitingDe] - - - sudo ./chip-tool basic read node-label 1 0 - [1653637022.172793][11195:11200] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 2705188068 - [1653637022.172827][11195:11200] CHIP:TOO: NodeLabel: node - [1653637022.172936][11195:11200] CHIP:EM: Sending Standalone Ack for MessageCounter:1112826 on exchange 9435i + In case of chip tool, here is an example command to use + + verify on TH receives the right write Request Message for the data sent in the above command + + ./chip-tool basic write node-label node 1 0 + + [1655796035.022296][7331:7331] CHIP:EM: Handling via exchange: 64908r, Delegate: 0xaaaad9aed418 + [1655796035.022365][7331:7331] CHIP:IM: Received Write request + [1655796035.022407][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655796035.022494][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655796035.022541][7331:7331] CHIP:DMG: { + [1655796035.022584][7331:7331] CHIP:DMG: suppressResponse = false, + [1655796035.022633][7331:7331] CHIP:DMG: timedRequest = false, + [1655796035.022679][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655796035.022735][7331:7331] CHIP:DMG: [ + [1655796035.022780][7331:7331] CHIP:DMG: AttributeDataIB = + [1655796035.022831][7331:7331] CHIP:DMG: { + [1655796035.022879][7331:7331] CHIP:DMG: AttributePathIB = + [1655796035.022939][7331:7331] CHIP:DMG: { + [1655796035.022999][7331:7331] CHIP:DMG: Endpoint = 0x0, + [1655796035.023067][7331:7331] CHIP:DMG: Cluster = 0x28, + [1655796035.023134][7331:7331] CHIP:DMG: Attribute = 0x0000_0005, + [1655796035.023192][7331:7331] CHIP:DMG: } + [1655796035.023252][7331:7331] CHIP:DMG: + [1655796035.023313][7331:7331] CHIP:DMG: Data = "node", + [1655796035.023366][7331:7331] CHIP:DMG: }, + [1655796035.023421][7331:7331] CHIP:DMG: + [1655796035.023466][7331:7331] CHIP:DMG: ], + [1655796035.023519][7331:7331] CHIP:DMG: + [1655796035.023565][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655796035.023613][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655796035.023656][7331:7331] CHIP:DMG: }, + [1655796035.023791][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0028 e=0 p=m + [1655796035.023851][7331:7331] CHIP:DMG: AccessControl: allowed + + ./chip-tool basic read node-label 1 0 + [1655796082.079468][6918:6923] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 1263909563 + [1655796082.079509][6918:6923] CHIP:TOO: NodeLabel: node + [1655796082.079608][6918:6923] CHIP:EM: Sending Standalone Ack for MessageCounter:256008218 on exchange 23185i disabled: true - label: "[Optional] DUT sends the WriteRequestMessage to the TH to write an attribute of data type unsigned integer." verification: | - sudo ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 - - [1653637100.119726][11211:11216] CHIP:DMG: WriteResponseMessage = - [1653637100.119740][11211:11216] CHIP:DMG: { - [1653637100.119751][11211:11216] CHIP:DMG: AttributeStatusIBs = - [1653637100.119772][11211:11216] CHIP:DMG: [ - [1653637100.119787][11211:11216] CHIP:DMG: AttributeStatusIB = - [1653637100.119804][11211:11216] CHIP:DMG: { - [1653637100.119820][11211:11216] CHIP:DMG: AttributePathIB = - [1653637100.119838][11211:11216] CHIP:DMG: { - [1653637100.119857][11211:11216] CHIP:DMG: Endpoint = 0x1, - [1653637100.119872][11211:11216] CHIP:DMG: Cluster = 0x8, - [1653637100.119891][11211:11216] CHIP:DMG: Attribute = 0x0000_0010, - [1653637100.119911][11211:11216] CHIP:DMG: } - [1653637100.119934][11211:11216] CHIP:DMG: - [1653637100.119951][11211:11216] CHIP:DMG: StatusIB = - [1653637100.119972][11211:11216] CHIP:DMG: { - [1653637100.119989][11211:11216] CHIP:DMG: status = 0x00 (SUCCESS), - [1653637100.120006][11211:11216] CHIP:DMG: }, - [1653637100.120025][11211:11216] CHIP:DMG: - [1653637100.120041][11211:11216] CHIP:DMG: }, - [1653637100.120063][11211:11216] CHIP:DMG: - [1653637100.120078][11211:11216] CHIP:DMG: ], - [1653637100.120100][11211:11216] CHIP:DMG: - [1653637100.120116][11211:11216] CHIP:DMG: InteractionModelRevision = 1 - [1653637100.120131][11211:11216] CHIP:DMG: } - [1653637100.120200][11211:11216] CHIP:DMG: WriteClient moving to [AwaitingDe] - - sudo ./chip-tool any read-by-id 0x0008 0x0010 1 1 - [1653637110.019283][11218:11223] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0010 DataVersion: 199562418 - [1653637110.019354][11218:11223] CHIP:TOO: on off transition time: 1 - [1653637110.019428][11218:11223] CHIP:EM: Sending Standalone Ack for MessageCounter:13973760 on exchange 8819i + In case of chip tool, here is an example command to use + + verify on TH receives the right write Request Message for the data sent in the above command + + ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 + [1655796141.166846][7331:7331] CHIP:IM: Received Write request + [1655796141.166889][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655796141.166973][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655796141.167019][7331:7331] CHIP:DMG: { + [1655796141.167062][7331:7331] CHIP:DMG: suppressResponse = false, + [1655796141.167111][7331:7331] CHIP:DMG: timedRequest = false, + [1655796141.167155][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655796141.167211][7331:7331] CHIP:DMG: [ + [1655796141.167255][7331:7331] CHIP:DMG: AttributeDataIB = + [1655796141.167311][7331:7331] CHIP:DMG: { + [1655796141.167362][7331:7331] CHIP:DMG: AttributePathIB = + [1655796141.167421][7331:7331] CHIP:DMG: { + [1655796141.167479][7331:7331] CHIP:DMG: Endpoint = 0x1, + [1655796141.167542][7331:7331] CHIP:DMG: Cluster = 0x8, + [1655796141.167603][7331:7331] CHIP:DMG: Attribute = 0x0000_0010, + [1655796141.167660][7331:7331] CHIP:DMG: } + [1655796141.167719][7331:7331] CHIP:DMG: + [1655796141.167782][7331:7331] CHIP:DMG: Data = 1, + [1655796141.167836][7331:7331] CHIP:DMG: }, + [1655796141.167890][7331:7331] CHIP:DMG: + [1655796141.167933][7331:7331] CHIP:DMG: ], + [1655796141.167987][7331:7331] CHIP:DMG: + [1655796141.168032][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655796141.168079][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655796141.168121][7331:7331] CHIP:DMG: }, + [1655796141.168253][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0008 e=1 p=o + [1655796141.168313][7331:7331] CHIP:DMG: AccessControl: allowed + + + ./chip-tool any read-by-id 0x0008 0x0010 1 1 + [1655796192.032715][6931:6936] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0010 DataVersion: 737039637 + [1655796192.032807][6931:6936] CHIP:TOO: on off transition time: 1 + [1655796192.032908][6931:6936] CHIP:EM: Sending Standalone Ack for MessageCounter:249349258 on exchange 7433i disabled: true - label: @@ -222,75 +242,88 @@ tests: "[Optional] DUT sends the WriteRequestMessage to the TH to write an attribute of data type enum." verification: | - sudo ./chip-tool any write-by-id 0x0204 0 1 1 1 - [1653637194.357339][11226:11231] CHIP:DMG: WriteResponseMessage = - [1653637194.357360][11226:11231] CHIP:DMG: { - [1653637194.357380][11226:11231] CHIP:DMG: AttributeStatusIBs = - [1653637194.357413][11226:11231] CHIP:DMG: [ - [1653637194.357431][11226:11231] CHIP:DMG: AttributeStatusIB = - [1653637194.357454][11226:11231] CHIP:DMG: { - [1653637194.357473][11226:11231] CHIP:DMG: AttributePathIB = - [1653637194.357496][11226:11231] CHIP:DMG: { - [1653637194.357520][11226:11231] CHIP:DMG: Endpoint = 0x1, - [1653637194.357544][11226:11231] CHIP:DMG: Cluster = 0x204, - [1653637194.357570][11226:11231] CHIP:DMG: Attribute = 0x0000_0000, - [1653637194.357590][11226:11231] CHIP:DMG: } - [1653637194.357620][11226:11231] CHIP:DMG: - [1653637194.357639][11226:11231] CHIP:DMG: StatusIB = - [1653637194.357663][11226:11231] CHIP:DMG: { - [1653637194.357686][11226:11231] CHIP:DMG: status = 0x00 (SUCCESS), - [1653637194.357707][11226:11231] CHIP:DMG: }, - [1653637194.357731][11226:11231] CHIP:DMG: - [1653637194.357748][11226:11231] CHIP:DMG: }, - [1653637194.357776][11226:11231] CHIP:DMG: - [1653637194.357792][11226:11231] CHIP:DMG: ], - [1653637194.357821][11226:11231] CHIP:DMG: - [1653637194.357839][11226:11231] CHIP:DMG: InteractionModelRevision = 1 - [1653637194.357858][11226:11231] CHIP:DMG: } - [1653637194.357936][11226:11231] CHIP:DMG: WriteClient moving to [AwaitingDe] - - sudo ./chip-tool any read-by-id 0x0204 0 1 1 - [1653637206.201431][11236:11241] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0204 Attribute 0x0000_0000 DataVersion: 262853191 - [1653637206.201456][11236:11241] CHIP:TOO: temperature display mode: 1 - [1653637206.201496][11236:11241] CHIP:EM: Sending Standalone Ack for MessageCounter:9550262 on exchange 37195i + In case of chip tool, here is an example command to use + + verify on TH receives the right write Request Message for the data sent in the above command + + ./chip-tool any write-by-id 0x0204 0 1 1 1 + [1655796297.607841][7331:7331] CHIP:EM: Handling via exchange: 37495r, Delegate: 0xaaaad9aed418 + [1655796297.607911][7331:7331] CHIP:IM: Received Write request + [1655796297.607954][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655796297.608038][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655796297.608086][7331:7331] CHIP:DMG: { + [1655796297.608128][7331:7331] CHIP:DMG: suppressResponse = false, + [1655796297.608178][7331:7331] CHIP:DMG: timedRequest = false, + [1655796297.608222][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655796297.608278][7331:7331] CHIP:DMG: [ + [1655796297.608323][7331:7331] CHIP:DMG: AttributeDataIB = + [1655796297.608383][7331:7331] CHIP:DMG: { + [1655796297.608431][7331:7331] CHIP:DMG: AttributePathIB = + [1655796297.608491][7331:7331] CHIP:DMG: { + [1655796297.608549][7331:7331] CHIP:DMG: Endpoint = 0x1, + [1655796297.608618][7331:7331] CHIP:DMG: Cluster = 0x204, + [1655796297.608685][7331:7331] CHIP:DMG: Attribute = 0x0000_0000, + [1655796297.608749][7331:7331] CHIP:DMG: } + [1655796297.608810][7331:7331] CHIP:DMG: + [1655796297.608869][7331:7331] CHIP:DMG: Data = 1, + [1655796297.608923][7331:7331] CHIP:DMG: }, + [1655796297.608981][7331:7331] CHIP:DMG: + [1655796297.609025][7331:7331] CHIP:DMG: ], + [1655796297.609078][7331:7331] CHIP:DMG: + [1655796297.609124][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655796297.609171][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655796297.609214][7331:7331] CHIP:DMG: }, + [1655796297.609342][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0204 e=1 p=o + [1655796297.609403][7331:7331] CHIP:DMG: AccessControl: allowed + + ./chip-tool any read-by-id 0x0204 0 1 1 + [1655796341.132655][6946:6951] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0204 Attribute 0x0000_0000 DataVersion: 3165945391 + [1655796341.132864][6946:6951] CHIP:TOO: temperature display mode: 1 + [1655796341.132973][6946:6951] CHIP:EM: Sending Standalone Ack for MessageCounter:245498041 on exchange 51992i disabled: true - label: "[Optional] DUT sends the WriteRequestMessage to the TH to write an attribute of data type bitmap." verification: | - sudo ./chip-tool colorcontrol write-by-id 0x000f 1 1 1 - - [1653637300.588667][11253:11258] CHIP:DMG: WriteResponseMessage = - [1653637300.588684][11253:11258] CHIP:DMG: { - [1653637300.588695][11253:11258] CHIP:DMG: AttributeStatusIBs = - [1653637300.588716][11253:11258] CHIP:DMG: [ - [1653637300.588728][11253:11258] CHIP:DMG: AttributeStatusIB = - [1653637300.588743][11253:11258] CHIP:DMG: { - [1653637300.588758][11253:11258] CHIP:DMG: AttributePathIB = - [1653637300.588776][11253:11258] CHIP:DMG: { - [1653637300.588795][11253:11258] CHIP:DMG: Endpoint = 0x1, - [1653637300.588819][11253:11258] CHIP:DMG: Cluster = 0x300, - [1653637300.588839][11253:11258] CHIP:DMG: Attribute = 0x0000_000F, - [1653637300.588858][11253:11258] CHIP:DMG: } - [1653637300.588882][11253:11258] CHIP:DMG: - [1653637300.588898][11253:11258] CHIP:DMG: StatusIB = - [1653637300.588916][11253:11258] CHIP:DMG: { - [1653637300.588934][11253:11258] CHIP:DMG: status = 0x00 (SUCCESS), - [1653637300.588951][11253:11258] CHIP:DMG: }, - [1653637300.588969][11253:11258] CHIP:DMG: - [1653637300.588984][11253:11258] CHIP:DMG: }, - [1653637300.589005][11253:11258] CHIP:DMG: - [1653637300.589020][11253:11258] CHIP:DMG: ], - [1653637300.589042][11253:11258] CHIP:DMG: - [1653637300.589058][11253:11258] CHIP:DMG: InteractionModelRevision = 1 - [1653637300.589072][11253:11258] CHIP:DMG: } - [1653637300.589138][11253:11258] CHIP:DMG: WriteClient moving to [AwaitingDe] + In case of chip tool, here is an example command to use + + verify on TH receives the right write Request Message for the data sent in the above command + + ./chip-tool colorcontrol write-by-id 0x000f 1 1 1 + [1655796429.696904][7331:7331] CHIP:IM: Received Write request + [1655796429.696947][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655796429.697031][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655796429.697078][7331:7331] CHIP:DMG: { + [1655796429.697121][7331:7331] CHIP:DMG: suppressResponse = false, + [1655796429.697170][7331:7331] CHIP:DMG: timedRequest = false, + [1655796429.697215][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655796429.697270][7331:7331] CHIP:DMG: [ + [1655796429.697315][7331:7331] CHIP:DMG: AttributeDataIB = + [1655796429.697370][7331:7331] CHIP:DMG: { + [1655796429.697422][7331:7331] CHIP:DMG: AttributePathIB = + [1655796429.697487][7331:7331] CHIP:DMG: { + [1655796429.697582][7331:7331] CHIP:DMG: Endpoint = 0x1, + [1655796429.697650][7331:7331] CHIP:DMG: Cluster = 0x300, + [1655796429.697718][7331:7331] CHIP:DMG: Attribute = 0x0000_000F, + [1655796429.697781][7331:7331] CHIP:DMG: } + [1655796429.697843][7331:7331] CHIP:DMG: + [1655796429.697910][7331:7331] CHIP:DMG: Data = 1, + [1655796429.697963][7331:7331] CHIP:DMG: }, + [1655796429.698021][7331:7331] CHIP:DMG: + [1655796429.698065][7331:7331] CHIP:DMG: ], + [1655796429.698118][7331:7331] CHIP:DMG: + [1655796429.698163][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655796429.698210][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655796429.698252][7331:7331] CHIP:DMG: }, + [1655796429.698386][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0300 e=1 p=o + [1655796429.698446][7331:7331] CHIP:DMG: AccessControl: allowed + sudo ./chip-tool colorcontrol read-by-id 0x000f 1 1 - [1653637344.964750][11271:11276] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_000F DataVersion: 3506850134 - [1653637344.964781][11271:11276] CHIP:TOO: color control options: 1 - [1653637344.964865][11271:11276] CHIP:EM: Sending Standalone Ack for MessageCounter:5851001 on exchange 32073i + [1655796493.233673][6961:6966] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_000F DataVersion: 2788050502 + [1655796493.233761][6961:6966] CHIP:TOO: Options: 1 + [1655796493.233865][6961:6966] CHIP:EM: Sending Standalone Ack for MessageCounter:185730221 on exchange 37136i disabled: true - label: @@ -304,49 +337,56 @@ tests: "DUT sends the WriteRequestMessage to the TH to write one attribute on a given cluster and endpoint. Repeat the above steps 3 times." verification: | - sudo ./chip-tool any write-by-id 0x0204 0 1 1 1 - [1653637194.357339][11226:11231] CHIP:DMG: WriteResponseMessage = - [1653637194.357360][11226:11231] CHIP:DMG: { - [1653637194.357380][11226:11231] CHIP:DMG: AttributeStatusIBs = - [1653637194.357413][11226:11231] CHIP:DMG: [ - [1653637194.357431][11226:11231] CHIP:DMG: AttributeStatusIB = - [1653637194.357454][11226:11231] CHIP:DMG: { - [1653637194.357473][11226:11231] CHIP:DMG: AttributePathIB = - [1653637194.357496][11226:11231] CHIP:DMG: { - [1653637194.357520][11226:11231] CHIP:DMG: Endpoint = 0x1, - [1653637194.357544][11226:11231] CHIP:DMG: Cluster = 0x204, - [1653637194.357570][11226:11231] CHIP:DMG: Attribute = 0x0000_0000, - [1653637194.357590][11226:11231] CHIP:DMG: } - [1653637194.357620][11226:11231] CHIP:DMG: - [1653637194.357639][11226:11231] CHIP:DMG: StatusIB = - [1653637194.357663][11226:11231] CHIP:DMG: { - [1653637194.357686][11226:11231] CHIP:DMG: status = 0x00 (SUCCESS), - [1653637194.357707][11226:11231] CHIP:DMG: }, - [1653637194.357731][11226:11231] CHIP:DMG: - [1653637194.357748][11226:11231] CHIP:DMG: }, - [1653637194.357776][11226:11231] CHIP:DMG: - [1653637194.357792][11226:11231] CHIP:DMG: ], - [1653637194.357821][11226:11231] CHIP:DMG: - [1653637194.357839][11226:11231] CHIP:DMG: InteractionModelRevision = 1 - [1653637194.357858][11226:11231] CHIP:DMG: } - [1653637194.357936][11226:11231] CHIP:DMG: WriteClient moving to [AwaitingDe] - - sudo ./chip-tool any read-by-id 0x0204 0 1 1 - [1653637206.201431][11236:11241] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0204 Attribute 0x0000_0000 DataVersion: 262853191 - [1653637206.201456][11236:11241] CHIP:TOO: temperature display mode: 1 - [1653637206.201496][11236:11241] CHIP:EM: Sending Standalone Ack for MessageCounter:9550262 on exchange 37195i + In case of chip tool, here is an example command to use + + verify on TH receives the right write Request Message for the data sent in the above command + + ./chip-tool any write-by-id 0x0204 0 1 1 1 + [1655796724.510633][7331:7331] CHIP:EM: Handling via exchange: 51058r, Delegate: 0xaaaad9aed418 + [1655796724.510711][7331:7331] CHIP:IM: Received Write request + [1655796724.510759][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655796724.510853][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655796724.510907][7331:7331] CHIP:DMG: { + [1655796724.510955][7331:7331] CHIP:DMG: suppressResponse = false, + [1655796724.511023][7331:7331] CHIP:DMG: timedRequest = false, + [1655796724.511076][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655796724.511140][7331:7331] CHIP:DMG: [ + [1655796724.511191][7331:7331] CHIP:DMG: AttributeDataIB = + [1655796724.511253][7331:7331] CHIP:DMG: { + [1655796724.511312][7331:7331] CHIP:DMG: AttributePathIB = + [1655796724.511379][7331:7331] CHIP:DMG: { + [1655796724.511446][7331:7331] CHIP:DMG: Endpoint = 0x1, + [1655796724.511520][7331:7331] CHIP:DMG: Cluster = 0x204, + [1655796724.511592][7331:7331] CHIP:DMG: Attribute = 0x0000_0000, + [1655796724.511659][7331:7331] CHIP:DMG: } + [1655796724.511731][7331:7331] CHIP:DMG: + [1655796724.511801][7331:7331] CHIP:DMG: Data = 1, + [1655796724.511864][7331:7331] CHIP:DMG: }, + [1655796724.511930][7331:7331] CHIP:DMG: + [1655796724.511980][7331:7331] CHIP:DMG: ], + [1655796724.512041][7331:7331] CHIP:DMG: + [1655796724.512093][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655796724.512146][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655796724.512195][7331:7331] CHIP:DMG: }, + [1655796724.512344][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0204 e=1 p=o + + ./chip-tool any read-by-id 0x0204 0 1 1 + [1655796786.513406][6976:6981] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0204 Attribute 0x0000_0000 DataVersion: 3165945392 + [1655796786.513496][6976:6981] CHIP:TOO: temperature display mode: 1 + [1655796786.513593][6976:6981] CHIP:EM: Sending Standalone Ack for MessageCounter:190446058 on exchange 28240i + Repeat the above steps 3 times. disabled: true - label: - "DUT sends a ReadRequest message to the TH to read any attribute on - two clusters. TH returns with a report data action with the attribute - values and the dataversions of the clusters. DUT sends a + "[Optional] DUT sends a ReadRequest message to the TH to read any + attribute on two clusters. TH returns with a report data action with + the attribute values and the dataversions of the clusters. DUT sends a WriteRequestMessage to the DUT to both the clusters with the appropriate dataversions(received in the previous step) to modify the value of an attribute" verification: | - https://github.com/project-chip/connectedhomeip/issues/19139 + Out of Scope for V1.0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_3_2.yaml b/src/app/tests/suites/certification/Test_TC_IDM_3_2.yaml index b10cd7e9a39295..c3b689a9b0faad 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_3_2.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: 20.3.2. [TC-IDM-3.2] Write Response Action from DUT to TH. +name: 21.3.2. [TC-IDM-3.2] Write Response Action from DUT to TH. [{DUT_Client}] config: nodeId: 0x12344321 @@ -26,6 +26,10 @@ tests: a given cluster and endpoint. On receipt of this message, DUT should send a write response action." verification: | + In case of chip tool, here is an example command to use + + Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + ./chip-tool levelcontrol write on-level 2 1 1 [1653026683.396666][6229:6234] CHIP:DMG: WriteResponseMessage = @@ -65,7 +69,7 @@ tests: all endpoints. On receipt of this message, DUT should send a Write Response action" verification: | - V1 out of scope + Out of Scope for V1.0 disabled: true - label: @@ -74,6 +78,8 @@ tests: verification: | In case of chip tool, here is an example command to use + Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + sudo ./chip-tool basic write local-config-disabled 1 1 0 [1655201045.952849][3550:3555] CHIP:DMG: WriteResponseMessage = [1655201045.952886][3550:3555] CHIP:DMG: { @@ -115,37 +121,40 @@ tests: verification: | In case of chip tool, here is an example command to use - sudo ./chip-tool basic write node-label 1 1 0 - [1649152505.885287][16202:16208] CHIP:DMG: WriteResponseMessage = - [1649152505.885339][16202:16208] CHIP:DMG: { - [1649152505.885378][16202:16208] CHIP:DMG: AttributeStatusIBs = - [1649152505.885415][16202:16208] CHIP:DMG: [ - [1649152505.885454][16202:16208] CHIP:DMG: AttributeStatusIB = - [1649152505.885499][16202:16208] CHIP:DMG: { - [1649152505.885530][16202:16208] CHIP:DMG: AttributePathIB = - [1649152505.885575][16202:16208] CHIP:DMG: { - [1649152505.885616][16202:16208] CHIP:DMG: Endpoint = 0x0, - [1649152505.885668][16202:16208] CHIP:DMG: Cluster = 0x28, - [1649152505.885720][16202:16208] CHIP:DMG: Attribute = 0x0000_0005, - [1649152505.885759][16202:16208] CHIP:DMG: } - [1649152505.885810][16202:16208] CHIP:DMG: - [1649152505.885855][16202:16208] CHIP:DMG: StatusIB = - [1649152505.885892][16202:16208] CHIP:DMG: { - [1649152505.885942][16202:16208] CHIP:DMG: status = 0x00 (SUCCESS), - [1649152505.885988][16202:16208] CHIP:DMG: }, - [1649152505.886024][16202:16208] CHIP:DMG: - [1649152505.886065][16202:16208] CHIP:DMG: }, - [1649152505.886102][16202:16208] CHIP:DMG: - [1649152505.886139][16202:16208] CHIP:DMG: ], - [1649152505.886174][16202:16208] CHIP:DMG: - [1649152505.886213][16202:16208] CHIP:DMG: InteractionModelRevision = 1 - [1649152505.886240][16202:16208] CHIP:DMG: } + Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + + ./chip-tool basic write node-label new 1 0 + [1655806131.663097][7241:7246] CHIP:DMG: WriteClient moving to [ResponseRe] + [1655806131.663177][7241:7246] CHIP:DMG: WriteResponseMessage = + [1655806131.663215][7241:7246] CHIP:DMG: { + [1655806131.663259][7241:7246] CHIP:DMG: AttributeStatusIBs = + [1655806131.663305][7241:7246] CHIP:DMG: [ + [1655806131.663353][7241:7246] CHIP:DMG: AttributeStatusIB = + [1655806131.663402][7241:7246] CHIP:DMG: { + [1655806131.663453][7241:7246] CHIP:DMG: AttributePathIB = + [1655806131.663511][7241:7246] CHIP:DMG: { + [1655806131.663561][7241:7246] CHIP:DMG: Endpoint = 0x0, + [1655806131.663621][7241:7246] CHIP:DMG: Cluster = 0x28, + [1655806131.663672][7241:7246] CHIP:DMG: Attribute = 0x0000_0005, + [1655806131.663735][7241:7246] CHIP:DMG: } + [1655806131.663791][7241:7246] CHIP:DMG: + [1655806131.663839][7241:7246] CHIP:DMG: StatusIB = + [1655806131.663889][7241:7246] CHIP:DMG: { + [1655806131.663935][7241:7246] CHIP:DMG: status = 0x00 (SUCCESS), + [1655806131.663980][7241:7246] CHIP:DMG: }, + [1655806131.664024][7241:7246] CHIP:DMG: + [1655806131.664063][7241:7246] CHIP:DMG: }, + [1655806131.664106][7241:7246] CHIP:DMG: + [1655806131.664141][7241:7246] CHIP:DMG: ], + [1655806131.664208][7241:7246] CHIP:DMG: + [1655806131.664243][7241:7246] CHIP:DMG: InteractionModelRevision = 1 + [1655806131.664278][7241:7246] CHIP:DMG: } + [1655806131.664372][7241:7246] CHIP:DMG: WriteClient moving to [AwaitingDe] ./chip-tool basic read node-label 1 0 - - [1655201181.791246][3568:3574] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 1458477848 - [1655201181.791297][3568:3574] CHIP:TOO: NodeLabel: 1 - [1655201181.791421][3568:3574] CHIP:EM: Sending Standalone Ack for MessageCounter:200651197 on exchange 45925i + [1655806189.835517][7250:7255] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 1238808428 + [1655806189.835566][7250:7255] CHIP:TOO: NodeLabel: new + [1655806189.835689][7250:7255] CHIP:EM: Sending Standalone Ack for MessageCounter:194887570 on exchange 10216i disabled: true - label: @@ -154,7 +163,9 @@ tests: verification: | In case of chip tool, here is an example command to use - sudo ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 + sudo Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + + ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 [1649152567.635323][16212:16217] CHIP:DMG: WriteResponseMessage = [1649152567.635361][16212:16217] CHIP:DMG: { [1649152567.635394][16212:16217] CHIP:DMG: AttributeStatusIBs = @@ -229,6 +240,8 @@ tests: verification: | In case of chip tool, here is an example command to use + Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + sudo ./chip-tool any write-by-id 0x0204 0 1 1 1 [1649152707.514290][16226:16231] CHIP:DMG: WriteResponseMessage = [1649152707.514324][16226:16231] CHIP:DMG: { @@ -269,6 +282,8 @@ tests: verification: | In case of chip tool, here is an example command to use + Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + sudo ./chip-tool colorcontrol write-by-id 0x000f 1 1 1 [1649152768.817940][16237:16242] CHIP:DMG: WriteResponseMessage = @@ -308,7 +323,7 @@ tests: "TH sends the WriteRequestMessage to the DUT to write any attribute on an unsupported node. DUT responds with the Write Response action" verification: | - V1 out of scope + Out of Scope for V1.0 disabled: true - label: @@ -319,6 +334,7 @@ tests: sudo ./chip-tool levelcontrol write on-level 2 1 20 + Verify DUT is responsds with UNSUPPORTED_ENDPOINT for the data sent in the above command 1649153009.582466][16268:16273] CHIP:DMG: WriteResponseMessage = [1649153009.582507][16268:16273] CHIP:DMG: { @@ -357,6 +373,8 @@ tests: sudo ./chip-tool thermostat write unoccupied-heating-setpoint 1200 1 0 + Verify DUT is responsds with UNSUPPORTED_CLUSTER for the data sent in the above command + [1650618880.286103][2741:2746] CHIP:DMG: WriteResponseMessage = [1650618880.286161][2741:2746] CHIP:DMG: { [1650618880.286210][2741:2746] CHIP:DMG: AttributeStatusIBs = @@ -389,8 +407,11 @@ tests: "TH sends the WriteRequestMessage to the DUT to write an unsupported attribute DUT responds with the Write Response action" verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool thermostat write unoccupied-heating-setpoint 1200 1 1 + Verify DUT is responsds with UNSUPPORTED_ATTRIBUTE for the data sent in the above command [1650618819.921180][2730:2735] CHIP:DMG: WriteResponseMessage = [1650618819.921212][2730:2735] CHIP:DMG: { @@ -424,31 +445,35 @@ tests: "TH sends the WriteRequestMessage to the DUT to write an attribute which is not writable. DUT responds with the Write Response action" verification: | - ./chip-tool basic write-by-id 0x7 2 1 0 + In case of chip tool, here is an example command to use + + ./chip-tool basic write-by-id 0x7 2 1 0 + + Verify DUT is responsds with UNSUPPORTED_WRITE for the data sent in the above command [1655201693.989436][3767:3772] CHIP:DMG: WriteResponseMessage = [1655201693.989472][3767:3772] CHIP:DMG: { - [1655201693.989504][3767:3772] CHIP:DMG: AttributeStatusIBs = - [1655201693.989548][3767:3772] CHIP:DMG: [ - [1655201693.989584][3767:3772] CHIP:DMG: AttributeStatusIB = - [1655201693.989673][3767:3772] CHIP:DMG: { - [1655201693.989715][3767:3772] CHIP:DMG: AttributePathIB = - [1655201693.989762][3767:3772] CHIP:DMG: { - [1655201693.989810][3767:3772] CHIP:DMG: Endpoint = 0x0, - [1655201693.989859][3767:3772] CHIP:DMG: Cluster = 0x28, - [1655201693.989912][3767:3772] CHIP:DMG: Attribute = 0x0000_0007, - [1655201693.989962][3767:3772] CHIP:DMG: } + [1655201693.989504][3767:3772] CHIP:DMG: AttributeStatusIBs = + [1655201693.989548][3767:3772] CHIP:DMG: [ + [1655201693.989584][3767:3772] CHIP:DMG: AttributeStatusIB = + [1655201693.989673][3767:3772] CHIP:DMG: { + [1655201693.989715][3767:3772] CHIP:DMG: AttributePathIB = + [1655201693.989762][3767:3772] CHIP:DMG: { + [1655201693.989810][3767:3772] CHIP:DMG: Endpoint = 0x0, + [1655201693.989859][3767:3772] CHIP:DMG: Cluster = 0x28, + [1655201693.989912][3767:3772] CHIP:DMG: Attribute = 0x0000_0007, + [1655201693.989962][3767:3772] CHIP:DMG: } [1655201693.990012][3767:3772] CHIP:DMG: - [1655201693.990058][3767:3772] CHIP:DMG: StatusIB = - [1655201693.990105][3767:3772] CHIP:DMG: { - [1655201693.990149][3767:3772] CHIP:DMG: status = 0x88 (UNSUPPORTED_WRITE), - [1655201693.990196][3767:3772] CHIP:DMG: }, + [1655201693.990058][3767:3772] CHIP:DMG: StatusIB = + [1655201693.990105][3767:3772] CHIP:DMG: { + [1655201693.990149][3767:3772] CHIP:DMG: status = 0x88 (UNSUPPORTED_WRITE), + [1655201693.990196][3767:3772] CHIP:DMG: }, [1655201693.990240][3767:3772] CHIP:DMG: - [1655201693.990277][3767:3772] CHIP:DMG: }, + [1655201693.990277][3767:3772] CHIP:DMG: }, [1655201693.990320][3767:3772] CHIP:DMG: - [1655201693.990355][3767:3772] CHIP:DMG: ], + [1655201693.990355][3767:3772] CHIP:DMG: ], [1655201693.990398][3767:3772] CHIP:DMG: - [1655201693.990433][3767:3772] CHIP:DMG: InteractionModelRevision = 1 + [1655201693.990433][3767:3772] CHIP:DMG: InteractionModelRevision = 1 [1655201693.990467][3767:3772] CHIP:DMG: } [1655201693.990561][3767:3772] CHIP:DMG: WriteClient moving to [AwaitingDe] [1655201693.990608][3767:3772] CHIP:TOO: Response Failure: IM Error 0x00000588: General error: 0x88 (UNSUPPORTED_WRITE) @@ -460,9 +485,16 @@ tests: in the path that requires a privilege that is not granted for the cluster in the path. DUT responds with the Write Response action" verification: | + In case of chip tool, here is an example command to use + + To Setup the TH such that there is no accessing fabric, 1st we need to send below mentioned ACL command + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1234], "targets": null}]' 1 0 - "sudo ./chip-tool thermostatuserinterfaceconfiguration write temperature-display-mode 2 1 1 + sudo ./chip-tool thermostatuserinterfaceconfiguration write temperature-display-mode 2 1 1 + + verify DUT is responsds with UNSUPPORTED_ACCESS for the data sent in the above command + [1650552778.852950][17227:17232] CHIP:DMG: WriteResponseMessage = [1650552778.852981][17227:17232] CHIP:DMG: { [1650552778.853009][17227:17232] CHIP:DMG: AttributeStatusIBs = @@ -495,6 +527,10 @@ tests: "TH sends the WriteRequestMessage to the DUT to write one attribute on a given cluster and endpoint. Repeat the above steps 3 times." verification: | + In case of chip tool, here is an example command to use + + Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + sudo ./chip-tool levelcontrol write on-level 2 1 1 [1653028376.099679][6518:6523] CHIP:DMG: WriteResponseMessage = @@ -552,6 +588,10 @@ tests: [1653028474.240393][6540:6545] CHIP:DMG: } [1653028474.240473][6540:6545] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 3301562285 [1653028474.240815][6540:6545] CHIP:TOO: on level: 2 + + + + ./chip-tool levelcontrol write on-level 3 1 1 ./chip-tool levelcontrol write on-level 1 1 1 disabled: true @@ -560,29 +600,28 @@ tests: "TH sends the WriteRequestMessage to the DUT to modify the value of one attribute on a given cluster and endpoint to null." verification: | - V1 out of scope(15999) + Out of Scope for V1.0 disabled: true - label: "TH sends the WriteRequestMessage to the DUT to append an attribute value" verification: | - V1 out of scope + Out of Scope for V1.0 disabled: true - label: "TH sends the WriteRequestMessage to the DUT to delete an attribute value" verification: | - V1 out of scope + Out of Scope for V1.0 disabled: true - label: "TH sends the WriteRequestMessage to the DUT to modify the value of one attribute and Set SuppressResponse to True." verification: | - https://github.com/project-chip/connectedhomeip/issues/8043 - Out of Scope for V1.0 + Out of Scope for V1.0 disabled: true - label: @@ -592,6 +631,11 @@ tests: WriteRequestMessage to the DUT to modify the value of one attribute with the DataVersion field set to the one received in the prior step." verification: | + In case of chip tool, here is an example command to use + + Verify on TH receives WriteResponseMessage with the status set to Success for the data sent in the above command and veriy by sending a ReadRequestMessage to read the value that was modified. + + ./chip-tool levelcontrol read on-level 1 1 [1653028897.525838][6605:6611] CHIP:DMG: ReportDataMessage = @@ -666,6 +710,10 @@ tests: DUT to modify the value of an attribute with the dataversion field set to the value received earlier." verification: | + In case of chip tool, here is an example command to use + + Verify DUT is responsds with DATA_VERSION_MISMATCH for the second Write request. + ./chip-tool levelcontrol read on-level 1 1 [1653029048.535610][6634:6639] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 3301562287 diff --git a/src/app/tests/suites/certification/Test_TC_IDM_4_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_4_1.yaml index b38122cfa9bfff..05903d12faf311 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_4_1.yaml @@ -13,7 +13,9 @@ # 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: 20.4.1. [TC-IDM-4.1] SubscriptionRequestMessage from DUT test cases +name: + 21.4.1. [TC-IDM-4.1] SubscriptionRequestMessage from DUT test cases. + [{DUT_Client}] config: nodeId: 0x12344321 @@ -25,74 +27,49 @@ tests: "DUT sends a subscription request message to the target node/reference device for a single attribute of any data type supported." verification: | - sudo ./chip-tool onoff subscribe on-off 100 1000 1 1 - - ON-DUT(reference-app) - [1653645704.951305][1424:1424] CHIP:IM: Received Subscribe request - [1653645704.951393][1424:1424] CHIP:DMG: SubscribeRequestMessage = - [1653645704.951419][1424:1424] CHIP:DMG: { - [1653645704.951443][1424:1424] CHIP:DMG: KeepSubscriptions = false, - [1653645704.951469][1424:1424] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653645704.951496][1424:1424] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653645704.951521][1424:1424] CHIP:DMG: AttributePathIBs = - [1653645704.951548][1424:1424] CHIP:DMG: [ - [1653645704.951571][1424:1424] CHIP:DMG: AttributePathIB = - [1653645704.951601][1424:1424] CHIP:DMG: { - [1653645704.951629][1424:1424] CHIP:DMG: Endpoint = 0x1, - [1653645704.951660][1424:1424] CHIP:DMG: Cluster = 0x6, - [1653645704.951690][1424:1424] CHIP:DMG: Attribute = 0x0000_0000, - [1653645704.951718][1424:1424] CHIP:DMG: } - [1653645704.951746][1424:1424] CHIP:DMG: - [1653645704.951771][1424:1424] CHIP:DMG: ], - [1653645704.951799][1424:1424] CHIP:DMG: - [1653645704.951825][1424:1424] CHIP:DMG: isFabricFiltered = true, - [1653645704.951850][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653645704.951873][1424:1424] CHIP:DMG: }, - [1653645704.951943][1424:1424] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s - - [1653645704.873151][12663:12668] CHIP:DMG: ReportDataMessage = - [1653645704.873169][12663:12668] CHIP:DMG: { - [1653645704.873183][12663:12668] CHIP:DMG: SubscriptionId = 0xd848d918, - [1653645704.873196][12663:12668] CHIP:DMG: AttributeReportIBs = - [1653645704.873217][12663:12668] CHIP:DMG: [ - [1653645704.873229][12663:12668] CHIP:DMG: AttributeReportIB = - [1653645704.873254][12663:12668] CHIP:DMG: { - [1653645704.873270][12663:12668] CHIP:DMG: AttributeDataIB = - [1653645704.873284][12663:12668] CHIP:DMG: { - [1653645704.873303][12663:12668] CHIP:DMG: DataVersion = 0x12a56641, - [1653645704.873319][12663:12668] CHIP:DMG: AttributePathIB = - [1653645704.873338][12663:12668] CHIP:DMG: { - [1653645704.873363][12663:12668] CHIP:DMG: Endpoint = 0x1, - [1653645704.873386][12663:12668] CHIP:DMG: Cluster = 0x6, - [1653645704.873407][12663:12668] CHIP:DMG: Attribute = 0x0000_0000, - [1653645704.873426][12663:12668] CHIP:DMG: } - [1653645704.873455][12663:12668] CHIP:DMG: - [1653645704.873482][12663:12668] CHIP:DMG: Data = false, - [1653645704.873512][12663:12668] CHIP:DMG: }, - [1653645704.873542][12663:12668] CHIP:DMG: - [1653645704.873565][12663:12668] CHIP:DMG: }, - [1653645704.873596][12663:12668] CHIP:DMG: - [1653645704.873617][12663:12668] CHIP:DMG: ], - [1653645704.873650][12663:12668] CHIP:DMG: - [1653645704.873671][12663:12668] CHIP:DMG: InteractionModelRevision = 1 - [1653645704.873691][12663:12668] CHIP:DMG: } - [1653645704.873864][12663:12668] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 312829505 - [1653645704.873907][12663:12668] CHIP:TOO: OnOff: FALSE - [1653645704.873957][12663:12668] CHIP:DMG: MoveToState ReadClient[0x7fa688003b50]: Moving to [AwaitingSu] + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + Verify DUT is responsds with status response for the data sent in the above command + [1656937912.144528][12255:12255] CHIP:DMG: SubscribeRequestMessage = + [1656937912.144578][12255:12255] CHIP:DMG: { + [1656937912.144621][12255:12255] CHIP:DMG: KeepSubscriptions = false, + [1656937912.144669][12255:12255] CHIP:DMG: MinIntervalFloorSeconds = 0x64, + [1656937912.144718][12255:12255] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, + [1656937912.144762][12255:12255] CHIP:DMG: AttributePathIBs = + [1656937912.144809][12255:12255] CHIP:DMG: [ + [1656937912.144853][12255:12255] CHIP:DMG: AttributePathIB = + [1656937912.144906][12255:12255] CHIP:DMG: { + [1656937912.144956][12255:12255] CHIP:DMG: Endpoint = 0x1, + [1656937912.145014][12255:12255] CHIP:DMG: Cluster = 0x8, + [1656937912.145072][12255:12255] CHIP:DMG: Attribute = 0x0000_0010, + [1656937912.145126][12255:12255] CHIP:DMG: } + [1656937912.145178][12255:12255] CHIP:DMG: + [1656937912.145223][12255:12255] CHIP:DMG: ], + [1656937912.145273][12255:12255] CHIP:DMG: + [1656937912.145320][12255:12255] CHIP:DMG: isFabricFiltered = true, + [1656937912.145365][12255:12255] CHIP:DMG: InteractionModelRevision = 1 + [1656937912.145407][12255:12255] CHIP:DMG: }, + [1656937912.145525][12255:12255] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s + [1656937912.145651][12255:12255] CHIP:DMG: IM RH moving to [GeneratingReports] disabled: true - label: "DUT sends the subscription request message to TH TH sends a report data DUT sends the status response back to TH" verification: | - sudo ./chip-tool onoff subscribe on-off 100 1000 1 1 - - [1653645958.282297][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653645958.282326][1424:1424] CHIP:DMG: { - [1653645958.282351][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653645958.282377][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653645958.282401][1424:1424] CHIP:DMG: } - [1653645958.282428][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + In case of chip tool, here is an example command to use + + ./chip-tool onoff subscribe on-off 100 1000 1 1 + + Verify DUT is responsds with status response for the data sent in the above command + + [1655880368.147124][3499:3499] CHIP:EM: Removed CHIP MessageCounter:254984751 from RetransTable on exchange 58479r + [1655880368.147207][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655880368.147262][3499:3499] CHIP:DMG: { + [1655880368.147312][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655880368.147370][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655880368.147420][3499:3499] CHIP:DMG: } + [1655880368.147469][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655880368.147537][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds disabled: true - label: @@ -101,28 +78,47 @@ tests: should send the modified data to the DUT. Modify the attribute multiple times (3 times)." verification: | - sudo ./chip-tool basic subscribe local-config-disabled 0 100 1 0 - [1653646349.707597][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653646349.707662][1424:1424] CHIP:DMG: { - [1653646349.707720][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653646349.707783][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653646349.707840][1424:1424] CHIP:DMG: } - [1653646349.707899][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + In case of chip tool, here is an example command to use + Verify DUT is responsds with status response for the data sent in the all below commands + ./chip-tool basic subscribe local-config-disabled 100 1000 1 0 + [1655881752.438947][3499:3499] CHIP:EM: Removed CHIP MessageCounter:177558174 from RetransTable on exchange 49368r + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) - sudo ./chip-tool basic write local-config-disabled 1 1 0 - [1653030847.813047][7157:7162] CHIP:DMG: - [1653030847.813064][7157:7162] CHIP:DMG: StatusIB = - [1653030847.813082][7157:7162] CHIP:DMG: { - [1653030847.813100][7157:7162] CHIP:DMG: status = 0x00 (SUCCESS), - [1653030847.813117][7157:7162] CHIP:DMG: }, - - sudo ./chip-tool basic subscribe local-config-disabled 100 1000 1 0 - [1653646400.634692][12766:12771] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2705188069 - [1653646400.634724][12766:12771] CHIP:TOO: LocalConfigDisabled: TRUE - [1653646400.634764][12766:12771] CHIP:DMG: MoveToState ReadClient[0x7f1660000e70]: Moving to [AwaitingSu] + ./chip-tool basic write local-config-disabled 1 1 0 + On DUT + [1655881905.760510][1721:1726] CHIP:DMG: { + [1655881905.760547][1721:1726] CHIP:DMG: AttributePathIB = + [1655881905.760593][1721:1726] CHIP:DMG: { + [1655881905.760641][1721:1726] CHIP:DMG: Endpoint = 0x0, + [1655881905.760691][1721:1726] CHIP:DMG: Cluster = 0x28, + [1655881905.760739][1721:1726] CHIP:DMG: Attribute = 0x0000_0010, + [1655881905.760784][1721:1726] CHIP:DMG: } + [1655881905.760834][1721:1726] CHIP:DMG: + [1655881905.760878][1721:1726] CHIP:DMG: StatusIB = + [1655881905.760930][1721:1726] CHIP:DMG: { + [1655881905.760976][1721:1726] CHIP:DMG: status = 0x00 (SUCCESS), + [1655881905.761021][1721:1726] CHIP:DMG: }, + [1655881905.761066][1721:1726] CHIP:DMG: + [1655881905.761103][1721:1726] CHIP:DMG: }, + + + ./chip-tool basic subscribe local-config-disabled 100 1000 1 0 + [1655881908.817879][3499:3499] CHIP:EM: Removed CHIP MessageCounter:263001918 from RetransTable on exchange 44935r + [1655881908.817925][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655881908.817953][3499:3499] CHIP:DMG: { + [1655881908.817978][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655881908.818006][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655881908.818030][3499:3499] CHIP:DMG: } + [1655881908.818055][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655881908.818094][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds disabled: true - label: @@ -131,32 +127,39 @@ tests: should send the modified data to the DUT. Modify the attribute multiple times (3 times)." verification: | - sudo ./chip-tool interactive start - basic subscribe node-label 100 1000 1 0 - - [1653646569.656671][1424:1424] CHIP:EM: Removed CHIP MessageCounter:10111502 from RetransTable on exchange 7279r - [1653646569.656771][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653646569.656834][1424:1424] CHIP:DMG: { - [1653646569.656891][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653646569.656953][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653646569.657011][1424:1424] CHIP:DMG: } - [1653646569.657068][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) - - - - basic write node-label 1 1 0 - - [1653646705.474336][12766:12771] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 2705188070 - [1653646705.474374][12766:12771] CHIP:TOO: NodeLabel: 1 - [1653646705.474425][12766:12771] CHIP:DMG: Refresh LivenessCheckTime for 1025000 milliseconds with SubscriptionId = 0xd3ec111e Peer = 01:0000000000000001 - - - [1653646705.500136][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653646705.500183][1424:1424] CHIP:DMG: { - [1653646705.500214][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653646705.500258][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653646705.500288][1424:1424] CHIP:DMG: } - [1653646705.500329][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + In case of chip tool, here is an example command to use + + Verify DUT is responsds with status response for the data sent in the all below commands + + ./chip-tool basic subscribe node-label 100 1000 1 0 + [1655882093.124724][3499:3499] CHIP:EM: Removed CHIP MessageCounter:73279722 from RetransTable on exchange 51099r + [1655882093.124770][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655882093.124797][3499:3499] CHIP:DMG: { + [1655882093.124821][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655882093.124846][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655882093.124868][3499:3499] CHIP:DMG: } + [1655882093.124892][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655882093.124930][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool basic write node-label new 1 0 + [1655882311.953917][1752:1757] CHIP:DMG: } + [1655882311.953981][1752:1757] CHIP:DMG: + [1655882311.954037][1752:1757] CHIP:DMG: StatusIB = + [1655882311.954085][1752:1757] CHIP:DMG: { + [1655882311.954143][1752:1757] CHIP:DMG: status = 0x00 (SUCCESS), + [1655882311.954204][1752:1757] CHIP:DMG: }, + [1655882311.954251][1752:1757] CHIP:DMG: + [1655882311.954302][1752:1757] CHIP:DMG: }, + + ./chip-tool basic subscribe node-label 100 1000 1 0 + [1655882346.547318][3499:3499] CHIP:EM: Removed CHIP MessageCounter:199893385 from RetransTable on exchange 48312r + [1655882346.547362][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655882346.547388][3499:3499] CHIP:DMG: { + [1655882346.547412][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655882346.547437][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655882346.547460][3499:3499] CHIP:DMG: } + [1655882346.547483][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655882346.547518][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds disabled: true - label: @@ -165,51 +168,40 @@ tests: the TH. TH should send the modified data to the DUT. Modify the attribute multiple times (3 times)." verification: | - sudo ./chip-tool interactive start + In case of chip tool, here is an example command to use - any subscribe-by-id 0x0008 0x0010 100 1000 1 1 - [1653646798.749610][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653646798.749702][1424:1424] CHIP:DMG: { - [1653646798.749762][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653646798.749825][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653646798.749904][1424:1424] CHIP:DMG: } - [1653646798.749964][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + Verify DUT is responsds with status response for the data sent in the all below commands + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + [1655882443.793602][3499:3499] CHIP:EM: Removed CHIP MessageCounter:14191415 from RetransTable on exchange 21493r + [1655882443.793649][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655882443.793675][3499:3499] CHIP:DMG: { + [1655882443.793698][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655882443.793726][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655882443.793750][3499:3499] CHIP:DMG: } + [1655882443.793774][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655882443.793810][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds - any write-by-id 0x0008 0x0010 1 1 1 - [1653646868.623977][12766:12771] CHIP:DMG: StatusIB = - [1653646868.623992][12766:12771] CHIP:DMG: { - [1653646868.624010][12766:12771] CHIP:DMG: status = 0x00 (SUCCESS), - [1653646868.624024][12766:12771] CHIP:DMG: }, + ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 + On DUT + [1655882507.865292][1772:1777] CHIP:DMG: + [1655882507.865364][1772:1777] CHIP:DMG: StatusIB = + [1655882507.865409][1772:1777] CHIP:DMG: { + [1655882507.865453][1772:1777] CHIP:DMG: status = 0x00 (SUCCESS), + [1655882507.865495][1772:1777] CHIP:DMG: }, - any subscribe-by-id 0x0008 0x0010 100 1000 1 1 - [1653646893.531695][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653646893.531785][1424:1424] CHIP:DMG: { - [1653646893.531845][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653646893.531932][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653646893.531991][1424:1424] CHIP:DMG: } - [1653646893.532103][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) - On DUT - [1653646893.477316][12766:12771] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0010 DataVersion: 199562419 - [1653646893.477343][12766:12771] CHIP:TOO: on off transition time: 1 - [1653646893.477374][12766:12771] CHIP:DMG: MoveToState ReadClient[0x7f1660002fd0]: Moving to [AwaitingSu] - [1653646893.477414][12766:12771] CHIP:EM: Piggybacking Ack for MessageCounter:10111510 on exchange: 7283i - [1653646893.477459][12766:12771] CHIP:IN: Prepared secure message 0x55b46f498848 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 7283i with MessageCounter:10832569. - [1653646893.477489][12766:12771] CHIP:IN: Sending encrypted msg 0x55b46f498848 with MessageCounter:10832569 to 0x0000000000000001 (1) at monotonic time: 0000000001328E74 msec - [1653646893.528928][12766:12771] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:10111511 on exchange 7283i - [1653646893.528954][12766:12771] CHIP:EM: Found matching exchange: 7283i, Delegate: 0x7f1660002fd0 - [1653646893.528973][12766:12771] CHIP:EM: Rxd Ack; Removing MessageCounter:10832569 from Retrans Table on exchange 7283i - [1653646893.528982][12766:12771] CHIP:EM: Removed CHIP MessageCounter:10832569 from RetransTable on exchange 7283i - [1653646893.529010][12766:12771] CHIP:DMG: SubscribeResponseMessage = - [1653646893.529024][12766:12771] CHIP:DMG: { - [1653646893.529032][12766:12771] CHIP:DMG: SubscriptionId = 0xfc6ec672, - [1653646893.529041][12766:12771] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653646893.529049][12766:12771] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653646893.529057][12766:12771] CHIP:DMG: InteractionModelRevision = 1 - [1653646893.529064][12766:12771] CHIP:DMG: } - [1653646893.529077][12766:12771] CHIP:DMG: Subscription established with SubscriptionID = 0xfc6ec672 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + [1655882560.683450][3499:3499] CHIP:EM: Removed CHIP MessageCounter:250174901 from RetransTable on exchange 12757r + [1655882560.683492][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655882560.683518][3499:3499] CHIP:DMG: { + [1655882560.683541][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655882560.683566][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655882560.683589][3499:3499] CHIP:DMG: } + [1655882560.683612][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655882560.683647][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + Verify the above command multiple times by changing attribute value(3 times) @@ -221,34 +213,43 @@ tests: TH. TH should send the modified data to the DUT. Modify the attribute multiple times (3 times)" verification: | - any subscribe-by-id 0x0008 0x0010 100 1000 1 1 - [1653647296.293763][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653647296.293828][1424:1424] CHIP:DMG: { - [1653647296.293886][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653647296.293949][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653647296.294008][1424:1424] CHIP:DMG: } - [1653647296.294067][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + In case of chip tool, here is an example command to use + Verify DUT is responsds with status response for the data sent in the all below commands - any write-by-id 0x0008 0x0010 1 1 1 - [1653647348.051712][12766:12771] CHIP:DMG: StatusIB = - [1653647348.051721][12766:12771] CHIP:DMG: { - [1653647348.051729][12766:12771] CHIP:DMG: status = 0x00 (SUCCESS), - [1653647348.051737][12766:12771] CHIP:DMG: }, - - any subscribe-by-id 0x0008 0x0010 100 1000 1 1 - [1653647374.362256][12766:12771] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0010 DataVersion: 199562420 - [1653647374.362285][12766:12771] CHIP:TOO: on off transition time: 1 - [1653647374.362317][12766:12771] CHIP:DMG: MoveToState ReadClient[0x7f1660002bd0]: Moving to [AwaitingSu] + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + [1655882844.643091][3499:3499] CHIP:EM: Removed CHIP MessageCounter:155702711 from RetransTable on exchange 40469r + [1655882844.643136][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655882844.643163][3499:3499] CHIP:DMG: { + [1655882844.643187][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655882844.643215][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655882844.643238][3499:3499] CHIP:DMG: } + [1655882844.643262][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655882844.643299][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 On DUT - [1653647374.357998][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653647374.358063][1424:1424] CHIP:DMG: { - [1653647374.358122][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653647374.358184][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653647374.358242][1424:1424] CHIP:DMG: } - [1653647374.358301][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655882963.306590][1818:1823] CHIP:DMG: } + [1655882963.306641][1818:1823] CHIP:DMG: + [1655882963.306684][1818:1823] CHIP:DMG: StatusIB = + [1655882963.306730][1818:1823] CHIP:DMG: { + [1655882963.306776][1818:1823] CHIP:DMG: status = 0x00 (SUCCESS), + [1655882963.306821][1818:1823] CHIP:DMG: }, + [1655882963.306866][1818:1823] CHIP:DMG: + + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + [1655882991.052492][3499:3499] CHIP:EM: Removed CHIP MessageCounter:211047849 from RetransTable on exchange 41909r + [1655882991.052535][3499:3499] CHIP:DMG: StatusResponseMessage = + [1655882991.052562][3499:3499] CHIP:DMG: { + [1655882991.052586][3499:3499] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655882991.052611][3499:3499] CHIP:DMG: InteractionModelRevision = 1 + [1655882991.052634][3499:3499] CHIP:DMG: } + [1655882991.052658][3499:3499] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655882991.052693][3499:3499] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + Verify the above command multiple times by changing attribute value(3 times) disabled: true - label: @@ -274,69 +275,46 @@ tests: "DUT sends a subscription request message to the target node/reference device for multiple attributes(3 attributes)." verification: | - sudo ./chip-tool any subscribe-by-id "6,8,3" "0,17,1" ${NODE_ID} 100 1000 3 "1,1,1" - - On reference app - [1653659809.784344][1390:1390] CHIP:DMG: SubscribeRequestMessage = - [1653659809.784399][1390:1390] CHIP:DMG: { - [1653659809.784470][1390:1390] CHIP:DMG: KeepSubscriptions = false, - [1653659809.784526][1390:1390] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653659809.784584][1390:1390] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653659809.784655][1390:1390] CHIP:DMG: AttributePathIBs = - [1653659809.784750][1390:1390] CHIP:DMG: [ - [1653659809.784822][1390:1390] CHIP:DMG: AttributePathIB = - [1653659809.784892][1390:1390] CHIP:DMG: { - [1653659809.784969][1390:1390] CHIP:DMG: Endpoint = 0x1, - [1653659809.785036][1390:1390] CHIP:DMG: Cluster = 0x6, - [1653659809.785121][1390:1390] CHIP:DMG: Attribute = 0x0000_0000, - [1653659809.785202][1390:1390] CHIP:DMG: } - [1653659809.785266][1390:1390] CHIP:DMG: - [1653659809.785341][1390:1390] CHIP:DMG: AttributePathIB = - [1653659809.785398][1390:1390] CHIP:DMG: { - [1653659809.785455][1390:1390] CHIP:DMG: Endpoint = 0x1, - [1653659809.785519][1390:1390] CHIP:DMG: Cluster = 0x8, - [1653659809.785584][1390:1390] CHIP:DMG: Attribute = 0x0000_0011, - [1653659809.785647][1390:1390] CHIP:DMG: } - [1653659809.785707][1390:1390] CHIP:DMG: - [1653659809.785760][1390:1390] CHIP:DMG: AttributePathIB = - [1653659809.785815][1390:1390] CHIP:DMG: { - [1653659809.785872][1390:1390] CHIP:DMG: Endpoint = 0x1, - [1653659809.785936][1390:1390] CHIP:DMG: Cluster = 0x3, - [1653659809.786002][1390:1390] CHIP:DMG: Attribute = 0x0000_0001, - [1653659809.786062][1390:1390] CHIP:DMG: } - [1653659809.786124][1390:1390] CHIP:DMG: - [1653659809.786178][1390:1390] CHIP:DMG: ], - [1653659809.786245][1390:1390] CHIP:DMG: - [1653659809.786300][1390:1390] CHIP:DMG: isFabricFiltered = true, - [1653659809.786353][1390:1390] CHIP:DMG: InteractionModelRevision = 1 - [1653659809.786403][1390:1390] CHIP:DMG: }, - [1653659809.786610][1390:1390] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s - - - - On TH - [1653659809.783308][15084:15089] CHIP:DMG: } - [1653659809.783387][15084:15089] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 3025903808 - [1653659809.783415][15084:15089] CHIP:TOO: identify type: 2 - [1653659809.783449][15084:15089] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 2343590012 - [1653659809.783467][15084:15089] CHIP:TOO: on level: null - [1653659809.783500][15084:15089] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 3715656673 - [1653659809.783510][15084:15089] CHIP:TOO: OnOff: FALSE - [1653659809.783533][15084:15089] CHIP:DMG: MoveToState ReadClient[0x7f46d8004110]: Moving to [AwaitingSu] - [1653659809.783554][15084:15089] CHIP:EM: Piggybacking Ack for MessageCounter:7512023 on exchange: 56481i - [1653659809.783579][15084:15089] CHIP:IN: Prepared secure message 0x5592621e7b08 to 0x0000000000000003 (1) of type 0x1 and protocolId (0, 1) on exchange 56481i with MessageCounter:6679698. - [1653659809.783595][15084:15089] CHIP:IN: Sending encrypted msg 0x5592621e7b08 with MessageCounter:6679698 to 0x0000000000000003 (1) at monotonic time: 0000000001F7A4C6 msec - [1653659809.786461][15084:15089] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:7512024 on exchange 56481i - [1653659809.786493][15084:15089] CHIP:EM: Found matching exchange: 56481i, Delegate: 0x7f46d8004110 - [1653659809.786522][15084:15089] CHIP:EM: Rxd Ack; Removing MessageCounter:6679698 from Retrans Table on exchange 56481i - [1653659809.786535][15084:15089] CHIP:EM: Removed CHIP MessageCounter:6679698 from RetransTable on exchange 56481i - [1653659809.786572][15084:15089] CHIP:DMG: SubscribeResponseMessage = - [1653659809.786585][15084:15089] CHIP:DMG: { - [1653659809.786601][15084:15089] CHIP:DMG: SubscriptionId = 0x22235b40, - [1653659809.786612][15084:15089] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653659809.786627][15084:15089] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653659809.786640][15084:15089] CHIP:DMG: InteractionModelRevision = 1 - [1653659809.786651][15084:15089] CHIP:DMG: } + sudo ./chip-tool any subscribe-by-id "6,8,3" "0,17,1" ${NODE_ID} 100 1000 3 "1,1,1" + + Verify DUT is responsds with status response for the data sent in the all below commands + + [1656938061.290779][12255:12255] CHIP:DMG: SubscribeRequestMessage = + [1656938061.290823][12255:12255] CHIP:DMG: { + [1656938061.290862][12255:12255] CHIP:DMG: KeepSubscriptions = false, + [1656938061.290913][12255:12255] CHIP:DMG: MinIntervalFloorSeconds = 0x64, + [1656938061.290957][12255:12255] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, + [1656938061.290997][12255:12255] CHIP:DMG: AttributePathIBs = + [1656938061.291038][12255:12255] CHIP:DMG: [ + [1656938061.291077][12255:12255] CHIP:DMG: AttributePathIB = + [1656938061.291120][12255:12255] CHIP:DMG: { + [1656938061.291164][12255:12255] CHIP:DMG: Endpoint = 0x1, + [1656938061.291214][12255:12255] CHIP:DMG: Cluster = 0x6, + [1656938061.291265][12255:12255] CHIP:DMG: Attribute = 0x0000_0000, + [1656938061.291313][12255:12255] CHIP:DMG: } + [1656938061.291359][12255:12255] CHIP:DMG: + [1656938061.291400][12255:12255] CHIP:DMG: AttributePathIB = + [1656938061.291442][12255:12255] CHIP:DMG: { + [1656938061.291486][12255:12255] CHIP:DMG: Endpoint = 0x1, + [1656938061.291535][12255:12255] CHIP:DMG: Cluster = 0x8, + [1656938061.291584][12255:12255] CHIP:DMG: Attribute = 0x0000_0011, + [1656938061.291629][12255:12255] CHIP:DMG: } + [1656938061.291677][12255:12255] CHIP:DMG: + [1656938061.291718][12255:12255] CHIP:DMG: AttributePathIB = + [1656938061.291759][12255:12255] CHIP:DMG: { + [1656938061.291803][12255:12255] CHIP:DMG: Endpoint = 0x1, + [1656938061.291852][12255:12255] CHIP:DMG: Cluster = 0x3, + [1656938061.291902][12255:12255] CHIP:DMG: Attribute = 0x0000_0001, + [1656938061.291948][12255:12255] CHIP:DMG: } + [1656938061.291997][12255:12255] CHIP:DMG: + [1656938061.292040][12255:12255] CHIP:DMG: ], + [1656938061.292091][12255:12255] CHIP:DMG: + [1656938061.292132][12255:12255] CHIP:DMG: isFabricFiltered = true, + [1656938061.292173][12255:12255] CHIP:DMG: InteractionModelRevision = 1 + [1656938061.292210][12255:12255] CHIP:DMG: }, + [1656938061.292366][12255:12255] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s + [1656938061.292524][12255:12255] CHIP:DMG: IM RH moving to [GeneratingReports] + [1656938061.292642][12255:12255] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 disabled: true - label: @@ -352,26 +330,7 @@ tests: "[OPTIONAL] DUT sends a subscription request message to the TH for a single attribute of any data type supported. Reboot the DUT." verification: | - sudo ./chip-tool pumpconfigurationandcontrol subscribe max-speed 0 100 1 1 - [1651580465.334423][2479:2484] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0200 Attribute 0x0000_0001 DataVersion: 2627724264 - [1651580465.334499][2479:2484] CHIP:TOO: MaxSpeed: 0 - [1651580465.334545][2479:2484] CHIP:DMG: MoveToState ReadClient[0xffff94004340]: Moving to [AwaitingSu] - [1651580465.334611][2479:2484] CHIP:EM: Piggybacking Ack for MessageCounter:13648828 on exchange: 34337i - [1651580465.334688][2479:2484] CHIP:IN: Prepared secure message 0xaaaaef8fde08 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 34337i with MessageCounter:6328273. - [1651580465.334729][2479:2484] CHIP:IN: Sending encrypted msg 0xaaaaef8fde08 with MessageCounter:6328273 to 0x0000000000000001 (1) at monotonic time: 00000000000F8D83 msec - [1651580465.336879][2479:2484] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:13648829 on exchange 34337i - [1651580465.336986][2479:2484] CHIP:EM: Found matching exchange: 34337i, Delegate: 0xffff94004340 - [1651580465.337025][2479:2484] CHIP:EM: Rxd Ack; Removing MessageCounter:6328273 from Retrans Table on exchange 34337i - [1651580465.337064][2479:2484] CHIP:EM: Removed CHIP MessageCounter:6328273 from RetransTable on exchange 34337i - [1651580465.337115][2479:2484] CHIP:DMG: SubscribeResponseMessage = - [1651580465.337157][2479:2484] CHIP:DMG: { - [1651580465.337184][2479:2484] CHIP:DMG: SubscriptionId = 0xeb3eaa8ae68e6013, - [1651580465.337215][2479:2484] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651580465.337255][2479:2484] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651580465.337284][2479:2484] CHIP:DMG: InteractionModelRevision = 1 - [1651580465.337321][2479:2484] CHIP:DMG: } - - after reboot the DUT verify once that the TH does not send a report data message to the DUT + TH fails to send report data to the DUT after DUT is rebooted as this step is optional disabled: true - label: @@ -381,75 +340,41 @@ tests: subscription for that attribute. Start another subscription with the DataVersionFilter field set to the data version received above." verification: | - sudo ./chip-tool onoff subscribe on-off 100 1000 1 1 - - [1654175423.951361][3190:3195] CHIP:DMG: ReportDataMessage = - [1654175423.951388][3190:3195] CHIP:DMG: { - [1654175423.951413][3190:3195] CHIP:DMG: SubscriptionId = 0xc42ac3d, - [1654175423.951444][3190:3195] CHIP:DMG: AttributeReportIBs = - [1654175423.951476][3190:3195] CHIP:DMG: [ - [1654175423.951502][3190:3195] CHIP:DMG: AttributeReportIB = - [1654175423.951536][3190:3195] CHIP:DMG: { - [1654175423.951565][3190:3195] CHIP:DMG: AttributeDataIB = - [1654175423.951600][3190:3195] CHIP:DMG: { - [1654175423.951637][3190:3195] CHIP:DMG: DataVersion = 0xade83c25, - [1654175423.951672][3190:3195] CHIP:DMG: AttributePathIB = - [1654175423.951709][3190:3195] CHIP:DMG: { - [1654175423.951746][3190:3195] CHIP:DMG: Endpoint = 0x1, - [1654175423.951785][3190:3195] CHIP:DMG: Cluster = 0x6, - [1654175423.951863][3190:3195] CHIP:DMG: Attribute = 0x0000_0000, - [1654175423.951901][3190:3195] CHIP:DMG: } - [1654175423.951941][3190:3195] CHIP:DMG: - [1654175423.951979][3190:3195] CHIP:DMG: Data = false, - [1654175423.952016][3190:3195] CHIP:DMG: }, - [1654175423.952053][3190:3195] CHIP:DMG: - [1654175423.952081][3190:3195] CHIP:DMG: }, - [1654175423.952114][3190:3195] CHIP:DMG: - [1654175423.952138][3190:3195] CHIP:DMG: ], - [1654175423.952169][3190:3195] CHIP:DMG: - [1654175423.952194][3190:3195] CHIP:DMG: InteractionModelRevision = 1 - [1654175423.952219][3190:3195] CHIP:DMG: } - [1654175423.952354][3190:3195] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 2917678117 - [1654175423.952406][3190:3195] CHIP:TOO: OnOff: FALSE - [1654175423.952456][3190:3195] CHIP:DMG: MoveToState ReadClient[0xffffa80032c0]: Moving to [AwaitingSu] - [1654175423.952517][3190:3195] CHIP:EM: Piggybacking Ack for MessageCounter:12775881 on exchange: 62757i - [1654175423.952590][3190:3195] CHIP:IN: Prepared secure message 0xaaaac5541268 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 62757i with MessageCounter:3107578. - [1654175423.952630][3190:3195] CHIP:IN: Sending encrypted msg 0xaaaac5541268 with MessageCounter:3107578 to 0x0000000000000001 (1) at monotonic time: 00000000007656B6 msec - [1654175423.953592][3190:3195] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:12775882 on exchange 62757i - [1654175423.953636][3190:3195] CHIP:EM: Found matching exchange: 62757i, Delegate: 0xffffa80032c0 - [1654175423.953691][3190:3195] CHIP:EM: Rxd Ack; Removing MessageCounter:3107578 from Retrans Table on exchange 62757i - [1654175423.953717][3190:3195] CHIP:EM: Removed CHIP MessageCounter:3107578 from RetransTable on exchange 62757i - [1654175423.953766][3190:3195] CHIP:DMG: SubscribeResponseMessage = - [1654175423.953793][3190:3195] CHIP:DMG: { - [1654175423.953817][3190:3195] CHIP:DMG: SubscriptionId = 0xc42ac3d, - [1654175423.953848][3190:3195] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1654175423.953878][3190:3195] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1654175423.953905][3190:3195] CHIP:DMG: InteractionModelRevision = 1 - [1654175423.953927][3190:3195] CHIP:DMG: } - [1654175423.953958][3190:3195] CHIP:DMG: Subscription established with SubscriptionID = 0x0c42ac3d MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 - - sudo ./chip-tool onoff subscribe on-off 100 1000 1 1 --data-version 0xade83c25 - - [1654175447.437581][3201:3206] CHIP:EM: Removed CHIP MessageCounter:5400183 from RetransTable on exchange 53258i - [1654175447.437637][3201:3206] CHIP:DMG: ReportDataMessage = - [1654175447.437690][3201:3206] CHIP:DMG: { - [1654175447.437721][3201:3206] CHIP:DMG: SubscriptionId = 0xd9de4b60, - [1654175447.437752][3201:3206] CHIP:DMG: InteractionModelRevision = 1 - [1654175447.437781][3201:3206] CHIP:DMG: } - [1654175447.437827][3201:3206] CHIP:DMG: MoveToState ReadClient[0xffff6c003550]: Moving to [AwaitingSu] - [1654175447.437880][3201:3206] CHIP:EM: Piggybacking Ack for MessageCounter:15074312 on exchange: 53258i - [1654175447.437942][3201:3206] CHIP:IN: Prepared secure message 0xaaaad1b74ef8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 53258i with MessageCounter:5400184. - [1654175447.437985][3201:3206] CHIP:IN: Sending encrypted msg 0xaaaad1b74ef8 with MessageCounter:5400184 to 0x0000000000000001 (1) at monotonic time: 000000000076B274 msec - [1654175447.438887][3201:3206] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15074313 on exchange 53258i - [1654175447.438924][3201:3206] CHIP:EM: Found matching exchange: 53258i, Delegate: 0xffff6c003550 - [1654175447.438960][3201:3206] CHIP:EM: Rxd Ack; Removing MessageCounter:5400184 from Retrans Table on exchange 53258i - [1654175447.438989][3201:3206] CHIP:EM: Removed CHIP MessageCounter:5400184 from RetransTable on exchange 53258i - [1654175447.439035][3201:3206] CHIP:DMG: SubscribeResponseMessage = - [1654175447.439068][3201:3206] CHIP:DMG: { - [1654175447.439097][3201:3206] CHIP:DMG: SubscriptionId = 0xd9de4b60, - [1654175447.439128][3201:3206] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1654175447.439160][3201:3206] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1654175447.439191][3201:3206] CHIP:DMG: InteractionModelRevision = 1 - [1654175447.439220][3201:3206] CHIP:DMG: } - [1654175447.439255][3201:3206] CHIP:DMG: Subscription established with SubscriptionID = 0xd9de4b60 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + In case of chip tool, here is an example command to use + + ./chip-tool onoff subscribe on-off 100 1000 1 1 + [1655890349.597254][1369:1369] CHIP:EM: Removed CHIP MessageCounter:79213623 from RetransTable on exchange 62776r + [1655890349.597330][1369:1369] CHIP:DMG: StatusResponseMessage = + [1655890349.597379][1369:1369] CHIP:DMG: { + [1655890349.597423][1369:1369] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655890349.597470][1369:1369] CHIP:DMG: InteractionModelRevision = 1 + [1655890349.597512][1369:1369] CHIP:DMG: } + [1655890349.597555][1369:1369] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655890349.597616][1369:1369] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + [1655890349.597672][1369:1369] CHIP:EM: Piggybacking Ack for MessageCounter:138387217 on exchange: 62776r + + On DUT verify, Attribute data is not sent for the second subscription + ./chip-tool onoff subscribe on-off 100 1000 1 1 --data-version 0x32c52d73 + + [1655890477.269305][1518:1523] CHIP:EM: Removed CHIP MessageCounter:196305006 from RetransTable on exchange 43437i + [1655890477.269385][1518:1523] CHIP:DMG: ReportDataMessage = + [1655890477.269425][1518:1523] CHIP:DMG: { + [1655890477.269473][1518:1523] CHIP:DMG: SubscriptionId = 0x72322357, + [1655890477.269523][1518:1523] CHIP:DMG: InteractionModelRevision = 1 + [1655890477.269577][1518:1523] CHIP:DMG: } + [1655890477.269643][1518:1523] CHIP:DMG: MoveToState ReadClient[0xffff98002df0]: Moving to [AwaitingSu] + [1655890477.269707][1518:1523] CHIP:EM: Piggybacking Ack for MessageCounter:19565255 on exchange: 43437i + [1655890477.269794][1518:1523] CHIP:IN: Prepared secure message 0xaaaaca508b78 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43437i with MessageCounter:196305007. + [1655890477.269858][1518:1523] CHIP:IN: Sending encrypted msg 0xaaaaca508b78 with MessageCounter:196305007 to 0x0000000000000001 (1) at monotonic time: 00000000000F351F msec + [1655890477.271312][1518:1523] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:19565256 on exchange 43437i + [1655890477.271359][1518:1523] CHIP:EM: Found matching exchange: 43437i, Delegate: 0xffff98002df0 + [1655890477.271405][1518:1523] CHIP:EM: Rxd Ack; Removing MessageCounter:196305007 from Retrans Table on exchange 43437i + [1655890477.271440][1518:1523] CHIP:EM: Removed CHIP MessageCounter:196305007 from RetransTable on exchange 43437i + [1655890477.271497][1518:1523] CHIP:DMG: SubscribeResponseMessage = + [1655890477.271549][1518:1523] CHIP:DMG: { + [1655890477.271586][1518:1523] CHIP:DMG: SubscriptionId = 0x72322357, + [1655890477.271644][1518:1523] CHIP:DMG: MaxInterval = 0x3e8, + [1655890477.271681][1518:1523] CHIP:DMG: InteractionModelRevision = 1 + [1655890477.271732][1518:1523] CHIP:DMG: } + [1655890477.271771][1518:1523] CHIP:DMG: Subscription established with SubscriptionID = 0x72322357 MinInterval = 0s MaxInterval = 1000s Peer = 01:0000000000000001 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_4_2.yaml b/src/app/tests/suites/certification/Test_TC_IDM_4_2.yaml index 14b8e7e4e9ac76..523d23a53d95ba 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_4_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_4_2.yaml @@ -13,7 +13,9 @@ # 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: 20.4.2. [TC-IDM-4.2] Subscription Response Messages from DUT Test Cases +name: + 21.4.2. [TC-IDM-4.2] Subscription Response Messages from DUT Test Cases. + [{DUT_Server}] config: nodeId: 0x12344321 @@ -191,21 +193,6 @@ tests: [1654861525.174252][32132:32137] CHIP:DMG: } [1654861525.174390][32132:32137] CHIP:TOO: Response Failure: IM Error 0x0000057E: General error: 0x7e (UNSUPPORTED_ACCESS) [1654861525.174448][32132:32137] CHIP:DMG: MoveToState ReadClient[0xaaaac3e723c0]: Moving to [AwaitingSu] - [1654861525.174539][32132:32137] CHIP:EM: Piggybacking Ack for MessageCounter:84810773 on exchange: 49933i - [1654861525.174618][32132:32137] CHIP:IN: Prepared secure message 0xaaaac3e8e388 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 49933i with MessageCounter:22480748. - [1654861525.174669][32132:32137] CHIP:IN: Sending encrypted msg 0xaaaac3e8e388 with MessageCounter:22480748 to 0x0000000000000001 (1) at monotonic time: 00000000019A8CF5 msec - [1654861525.175785][32132:32137] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:84810774 on exchange 49933i - [1654861525.175832][32132:32137] CHIP:EM: Found matching exchange: 49933i, Delegate: 0xaaaac3e723c0 - [1654861525.175877][32132:32137] CHIP:EM: Rxd Ack; Removing MessageCounter:22480748 from Retrans Table on exchange 49933i - [1654861525.175912][32132:32137] CHIP:EM: Removed CHIP MessageCounter:22480748 from RetransTable on exchange 49933i - [1654861525.175999][32132:32137] CHIP:DMG: SubscribeResponseMessage = - [1654861525.176039][32132:32137] CHIP:DMG: { - [1654861525.176073][32132:32137] CHIP:DMG: SubscriptionId = 0xa6e75c5a, - [1654861525.176116][32132:32137] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1654861525.176154][32132:32137] CHIP:DMG: MaxIntervalCeilingSeconds = 0xbb8, - [1654861525.176191][32132:32137] CHIP:DMG: InteractionModelRevision = 1 - [1654861525.176226][32132:32137] CHIP:DMG: } - [1654861525.176268][32132:32137] CHIP:DMG: Subscription established with SubscriptionID = 0xa6e75c5a MinInterval = 100s MaxInterval = 3000s Peer = 01:0000000000000001 disabled: true - label: @@ -249,23 +236,7 @@ tests: [1654862486.786685][32309:32314] CHIP:DMG: InteractionModelRevision = 1 [1654862486.786720][32309:32314] CHIP:DMG: } [1654862486.786862][32309:32314] CHIP:TOO: Response Failure: IM Error 0x0000057E: General error: 0x7e (UNSUPPORTED_ACCESS) - [1654862486.786918][32309:32314] CHIP:DMG: MoveToState ReadClient[0xffff840040e0]: Moving to [AwaitingSu] - [1654862486.786977][32309:32314] CHIP:EM: Piggybacking Ack for MessageCounter:50225771 on exchange: 12667i - [1654862486.787050][32309:32314] CHIP:IN: Prepared secure message 0xaaab0afd31d8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 12667i with MessageCounter:57280470. - [1654862486.787101][32309:32314] CHIP:IN: Sending encrypted msg 0xaaab0afd31d8 with MessageCounter:57280470 to 0x0000000000000001 (1) at monotonic time: 0000000001A93942 msec - [1654862486.788415][32309:32314] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:50225772 on exchange 12667i - [1654862486.788461][32309:32314] CHIP:EM: Found matching exchange: 12667i, Delegate: 0xffff840040e0 - [1654862486.788504][32309:32314] CHIP:EM: Rxd Ack; Removing MessageCounter:57280470 from Retrans Table on exchange 12667i - [1654862486.788539][32309:32314] CHIP:EM: Removed CHIP MessageCounter:57280470 from RetransTable on exchange 12667i - [1654862486.788597][32309:32314] CHIP:DMG: SubscribeResponseMessage = - [1654862486.788636][32309:32314] CHIP:DMG: { - [1654862486.788671][32309:32314] CHIP:DMG: SubscriptionId = 0x111a3e69, - [1654862486.788709][32309:32314] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1654862486.788747][32309:32314] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1654862486.788783][32309:32314] CHIP:DMG: InteractionModelRevision = 1 - [1654862486.788817][32309:32314] CHIP:DMG: } - [1654862486.788904][32309:32314] CHIP:DMG: Subscription established with SubscriptionID = 0x111a3e69 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 - [1654862486.788947][32309:32314] CHIP:DMG: MoveToState ReadClient[0xffff840040e0]: Moving to [Subscripti] + [1654862486.786918][32309:32314] CHIP:DMG: MoveToState ReadClient[0xffff840040e0]: Moving to disabled: true - label: @@ -274,17 +245,43 @@ tests: all endpoints on a Node for which it does not have access. AttributePath = [[ ]]." verification: | - Waiting For Test-Plan author for more input. Verification step upadte is in progress + Out of Scope for V1.0 disabled: true - label: - "DUT sends a subscription request action for an attribute with an - empty DataVersionFilters field. DUT sends a report data action with - the data of the attribute along with the data version. Tear down the + "TH sends a subscription request action for an attribute with an empty + DataVersionFilters field. DUT sends a report data action with the data + of the attribute along with the data version. Tear down the subscription for that attribute. Start another subscription with the DataVersionFilter field set to the data version received above." verification: | - https://github.com/CHIP-Specifications/chip-test-plans/issues/1451 + ./chip-tool onoff subscribe start-up-on-off 50 800 1 1 + [1655893106.834876][1656:1661] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4003 DataVersion: 633563796 + [1655893106.834928][1656:1661] CHIP:TOO: StartUpOnOff: null + [1655893106.834980][1656:1661] CHIP:DMG: MoveToState ReadClient[0xffff90003ab0]: Moving to [AwaitingSu] + + ./chip-tool onoff subscribe start-up-on-off 50 800 1 1 --data-version 0x25c36a94 + [1655893181.169225][1664:1669] CHIP:EM: Removed CHIP MessageCounter:96233214 from RetransTable on exchange 43726i + [1655893181.169289][1664:1669] CHIP:DMG: ReportDataMessage = + [1655893181.169344][1664:1669] CHIP:DMG: { + [1655893181.169381][1664:1669] CHIP:DMG: SubscriptionId = 0xde0c12dc, + [1655893181.169432][1664:1669] CHIP:DMG: InteractionModelRevision = 1 + [1655893181.169468][1664:1669] CHIP:DMG: } + [1655893181.169533][1664:1669] CHIP:DMG: MoveToState ReadClient[0xffff98002df0]: Moving to [AwaitingSu] + [1655893181.169610][1664:1669] CHIP:EM: Piggybacking Ack for MessageCounter:253027362 on exchange: 43726i + [1655893181.169684][1664:1669] CHIP:IN: Prepared secure message 0xaaaaeeb6fb78 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43726i with MessageCounter:96233215. + [1655893181.169734][1664:1669] CHIP:IN: Sending encrypted msg 0xaaaaeeb6fb78 with MessageCounter:96233215 to 0x0000000000000001 (1) at monotonic time: 000000000038773B msec + [1655893181.171142][1664:1669] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:253027363 on exchange 43726i + [1655893181.171186][1664:1669] CHIP:EM: Found matching exchange: 43726i, Delegate: 0xffff98002df0 + [1655893181.171230][1664:1669] CHIP:EM: Rxd Ack; Removing MessageCounter:96233215 from Retrans Table on exchange 43726i + [1655893181.171265][1664:1669] CHIP:EM: Removed CHIP MessageCounter:96233215 from RetransTable on exchange 43726i + [1655893181.171321][1664:1669] CHIP:DMG: SubscribeResponseMessage = + [1655893181.171359][1664:1669] CHIP:DMG: { + [1655893181.171395][1664:1669] CHIP:DMG: SubscriptionId = 0xde0c12dc, + [1655893181.171436][1664:1669] CHIP:DMG: MaxInterval = 0x320, + [1655893181.171473][1664:1669] CHIP:DMG: InteractionModelRevision = 1 + [1655893181.171507][1664:1669] CHIP:DMG: } + [1655893181.171545][1664:1669] CHIP:DMG: Subscription established with SubscriptionID = 0xde0c12dc MinInterval = 0s MaxInterval = 800s Peer = 01:0000000000000001 disabled: true - label: @@ -349,8 +346,8 @@ tests: [1654863279.009335][32383:32388] CHIP:DMG: StatusResponseMessage = [1654863279.009366][32383:32388] CHIP:DMG: { - [1654863279.009402][32383:32388] CHIP:DMG: Status = 0x01 (FAILURE), - [1654863279.009430][32383:32388] CHIP:DMG: InteractionModelRevision = 1 + [1654863279.009402][32383:32388] CHIP:DMG: Status = 0x01 (FAILURE), + [1654863279.009430][32383:32388] CHIP:DMG: InteractionModelRevision = 1 [1654863279.009455][32383:32388] CHIP:DMG: } [1654863279.009491][32383:32388] CHIP:IM: Received status response, status is 0x01 (FAILURE) [1654863279.009531][32383:32388] CHIP:DMG: mResubscribePolicy is null diff --git a/src/app/tests/suites/certification/Test_TC_IDM_4_3.yaml b/src/app/tests/suites/certification/Test_TC_IDM_4_3.yaml index 033f9b1290e3de..922dd6faf9cabc 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_4_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_4_3.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: - 20.4.3. [TC-IDM-4.3] Report Data Messages post Subscription Activation from - DUT Test Cases + 21.4.3. [TC-IDM-4.3] Report Data Messages post Subscription Activation from + DUT Test Cases. [{DUT_Server}] config: nodeId: 0x12344321 @@ -29,132 +29,7 @@ tests: some settings on the device. Example: Temperature sensor may update the value of the room temperature. Turning on/off on a light bulb." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - - onoff subscribe on-time 100 1000 1 1 - - [1653473717.457459][21558:21563] CHIP:DMG: ReportDataMessage = - [1653473717.457490][21558:21563] CHIP:DMG: { - [1653473717.457512][21558:21563] CHIP:DMG: SubscriptionId = 0x864c6467, - [1653473717.457531][21558:21563] CHIP:DMG: AttributeReportIBs = - [1653473717.457561][21558:21563] CHIP:DMG: [ - [1653473717.457579][21558:21563] CHIP:DMG: AttributeReportIB = - [1653473717.457608][21558:21563] CHIP:DMG: { - [1653473717.457627][21558:21563] CHIP:DMG: AttributeDataIB = - [1653473717.457648][21558:21563] CHIP:DMG: { - [1653473717.457670][21558:21563] CHIP:DMG: DataVersion = 0xbf2fc271, - [1653473717.457690][21558:21563] CHIP:DMG: AttributePathIB = - [1653473717.457712][21558:21563] CHIP:DMG: { - [1653473717.457733][21558:21563] CHIP:DMG: Endpoint = 0x1, - [1653473717.457755][21558:21563] CHIP:DMG: Cluster = 0x6, - [1653473717.457779][21558:21563] CHIP:DMG: Attribute = 0x0000_4001, - [1653473717.457799][21558:21563] CHIP:DMG: } - [1653473717.457823][21558:21563] CHIP:DMG: - [1653473717.457846][21558:21563] CHIP:DMG: Data = 2, - [1653473717.457865][21558:21563] CHIP:DMG: }, - [1653473717.457892][21558:21563] CHIP:DMG: - [1653473717.457910][21558:21563] CHIP:DMG: }, - [1653473717.457937][21558:21563] CHIP:DMG: - [1653473717.457955][21558:21563] CHIP:DMG: ], - [1653473717.457982][21558:21563] CHIP:DMG: - [1653473717.458000][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653473717.458018][21558:21563] CHIP:DMG: } - [1653473717.458135][21558:21563] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 3207578225 - [1653473717.458170][21558:21563] CHIP:TOO: OnTime: 2 - - >>> onoff write on-time 1 1 1 - [1653473911.947884][21558:21563] CHIP:TOO: Sending command to node 0x1 - [1653473911.947942][21558:21563] CHIP:CSM: FindOrEstablishSession: PeerId = 082901BE3B352248:0000000000000001 - [1653473911.947976][21558:21563] CHIP:TOO: Sending WriteAttribute to cluster 0x0000_0006 on endpoint 1 - [1653473911.948045][21558:21563] CHIP:DMG: WriteClient moving to [AddAttribu] - [1653473911.948173][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x6 and protocolId (0, 1) on exchange 43234i with MessageCounter:16478590. - [1653473911.948225][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478590 to 0x0000000000000001 (1) at monotonic time: 000000000128B780 msec - [1653473911.948423][21558:21563] CHIP:DMG: WriteClient moving to [AwaitingRe] - [1653473911.954883][21558:21563] CHIP:EM: Received message of type 0x7 with protocolId (0, 1) and MessageCounter:15912632 on exchange 43234i - [1653473911.954954][21558:21563] CHIP:EM: Found matching exchange: 43234i, Delegate: 0x5604e6164250 - [1653473911.955011][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478590 from Retrans Table on exchange 43234i - [1653473911.955044][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478590 from RetransTable on exchange 43234i - [1653473911.955084][21558:21563] CHIP:DMG: WriteClient moving to [ResponseRe] - [1653473911.955144][21558:21563] CHIP:DMG: WriteResponseMessage = - [1653473911.955170][21558:21563] CHIP:DMG: { - [1653473911.955192][21558:21563] CHIP:DMG: AttributeStatusIBs = - [1653473911.955231][21558:21563] CHIP:DMG: [ - [1653473911.955253][21558:21563] CHIP:DMG: AttributeStatusIB = - [1653473911.955281][21558:21563] CHIP:DMG: { - [1653473911.955309][21558:21563] CHIP:DMG: AttributePathIB = - [1653473911.955332][21558:21563] CHIP:DMG: { - [1653473911.955353][21558:21563] CHIP:DMG: Endpoint = 0x1, - [1653473911.955370][21558:21563] CHIP:DMG: Cluster = 0x6, - [1653473911.955393][21558:21563] CHIP:DMG: Attribute = 0x0000_4001, - [1653473911.955413][21558:21563] CHIP:DMG: } - [1653473911.955440][21558:21563] CHIP:DMG: - [1653473911.955472][21558:21563] CHIP:DMG: StatusIB = - [1653473911.955504][21558:21563] CHIP:DMG: { - [1653473911.955532][21558:21563] CHIP:DMG: status = 0x00 (SUCCESS), - [1653473911.955559][21558:21563] CHIP:DMG: }, - [1653473911.955588][21558:21563] CHIP:DMG: - [1653473911.955614][21558:21563] CHIP:DMG: }, - [1653473911.955648][21558:21563] CHIP:DMG: - [1653473911.955673][21558:21563] CHIP:DMG: ], - [1653473911.955708][21558:21563] CHIP:DMG: - [1653473911.955735][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653473911.955758][21558:21563] CHIP:DMG: } - [1653473911.955872][21558:21563] CHIP:DMG: WriteClient moving to [AwaitingDe] - [1653473911.955952][21558:21563] CHIP:EM: Sending Standalone Ack for MessageCounter:15912632 on exchange 43234i - [1653473911.956039][21558:21563] CHIP:IN: Prepared secure message 0x7f35c3ffe000 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 43234i with MessageCounter:16478591. - [1653473911.956175][21558:21563] CHIP:IN: Sending encrypted msg 0x7f35c3ffe000 with MessageCounter:16478591 to 0x0000000000000001 (1) at monotonic time: 000000000128B788 msec - [1653473911.956354][21558:21563] CHIP:EM: Flushed pending ack for MessageCounter:15912632 on exchange 43234i - [1653473911.956547][21558:21563] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:15912633 on exchange 59626r - [1653473911.956610][21558:21563] CHIP:EM: Handling via exchange: 59626r, Delegate: 0x5604e4374c88 - [1653473911.956724][21558:21563] CHIP:EM: Sending Standalone Ack for MessageCounter:15912633 on exchange 59626r - [1653473911.956818][21558:21563] CHIP:IN: Prepared secure message 0x7f35c3ffe150 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 59626r with MessageCounter:16478592. - [1653473911.956932][21558:21563] CHIP:IN: Sending encrypted msg 0x7f35c3ffe150 with MessageCounter:16478592 to 0x0000000000000001 (1) at monotonic time: 000000000128B789 msec - [1653473911.957060][21558:21563] CHIP:EM: Flushed pending ack for MessageCounter:15912633 on exchange 59626r - [1653473911.957196][21558:21563] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:15912634 on exchange 59627r - [1653473911.957253][21558:21563] CHIP:EM: Handling via exchange: 59627r, Delegate: 0x5604e4374c88 - [1653473911.957349][21558:21563] CHIP:EM: Sending Standalone Ack for MessageCounter:15912634 on exchange 59627r - [1653473911.957436][21558:21563] CHIP:IN: Prepared secure message 0x7f35c3ffe150 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 59627r with MessageCounter:16478593. - [1653473911.957507][21558:21563] CHIP:IN: Sending encrypted msg 0x7f35c3ffe150 with MessageCounter:16478593 to 0x0000000000000001 (1) at monotonic time: 000000000128B78A msec - [1653473911.957622][21558:21563] CHIP:EM: Flushed pending ack for MessageCounter:15912634 on exchange 59627r - [1653473911.957945][21558:21563] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:15912635 on exchange 59628r - [1653473911.958021][21558:21563] CHIP:EM: Handling via exchange: 59628r, Delegate: 0x5604e4374c88 - [1653473911.958134][21558:21563] CHIP:DMG: ReportDataMessage = - [1653473911.958178][21558:21563] CHIP:DMG: { - [1653473911.958212][21558:21563] CHIP:DMG: SubscriptionId = 0x864c6467, - [1653473911.958242][21558:21563] CHIP:DMG: AttributeReportIBs = - [1653473911.958320][21558:21563] CHIP:DMG: [ - [1653473911.958350][21558:21563] CHIP:DMG: AttributeReportIB = - [1653473911.958389][21558:21563] CHIP:DMG: { - [1653473911.958413][21558:21563] CHIP:DMG: AttributeDataIB = - [1653473911.958454][21558:21563] CHIP:DMG: { - [1653473911.958505][21558:21563] CHIP:DMG: DataVersion = 0xbf2fc272, - [1653473911.958541][21558:21563] CHIP:DMG: AttributePathIB = - [1653473911.958581][21558:21563] CHIP:DMG: { - [1653473911.958611][21558:21563] CHIP:DMG: Endpoint = 0x1, - [1653473911.958635][21558:21563] CHIP:DMG: Cluster = 0x6, - [1653473911.958663][21558:21563] CHIP:DMG: Attribute = 0x0000_4001, - [1653473911.958689][21558:21563] CHIP:DMG: } - [1653473911.958717][21558:21563] CHIP:DMG: - [1653473911.958744][21558:21563] CHIP:DMG: Data = 1, - [1653473911.958770][21558:21563] CHIP:DMG: }, - [1653473911.958800][21558:21563] CHIP:DMG: - [1653473911.958822][21558:21563] CHIP:DMG: }, - [1653473911.958853][21558:21563] CHIP:DMG: - [1653473911.958874][21558:21563] CHIP:DMG: ], - [1653473911.958905][21558:21563] CHIP:DMG: - [1653473911.958928][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653473911.958952][21558:21563] CHIP:DMG: } - [1653473911.959066][21558:21563] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 3207578226 - [1653473911.959104][21558:21563] CHIP:TOO: OnTime: 1 - [1653473911.959156][21558:21563] CHIP:DMG: Refresh LivenessCheckTime for 1025000 milliseconds with SubscriptionId = 0x864c6467 Peer = 01:0000000000000001 - [1653473911.959205][21558:21563] CHIP:EM: Piggybacking Ack for MessageCounter:15912635 on exchange: 59628r - [1653473911.959257][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 59628r with MessageCounter:16478594. - [1653473911.959296][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478594 to 0x0000000000000001 (1) at monotonic time: 000000000128B78B msec - [1653473911.964417][21558:21563] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:15912636 on exchange 59628r - [1653473911.964441][21558:21563] CHIP:EM: Found matching exchange: 59628r, Delegate: (nil) - [1653473911.964457][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478594 from Retrans Table on exchange 59628r - [1653473911.964466][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478594 from RetransTable on ex + DUT dependency disabled: true - label: @@ -162,130 +37,96 @@ tests: attribute which has been subscribed on the DUT by sending an IMWrite or Invoke message to the DUT from the TH." verification: | - In case of chip tool, here is an example command to use - sudo ./chip-tool levelcontrol subscribe on-level 0 100 1 1 - [1651581090.101913][2548:2553] CHIP:DMG: ReportDataMessage = - [1651581090.101952][2548:2553] CHIP:DMG: { - [1651581090.101986][2548:2553] CHIP:DMG: SubscriptionId = 0xe5f261cdbbd208ad, - [1651581090.102023][2548:2553] CHIP:DMG: AttributeReportIBs = - [1651581090.102067][2548:2553] CHIP:DMG: [ - [1651581090.102104][2548:2553] CHIP:DMG: AttributeReportIB = - [1651581090.102159][2548:2553] CHIP:DMG: { - [1651581090.102201][2548:2553] CHIP:DMG: AttributeDataIB = - [1651581090.102252][2548:2553] CHIP:DMG: { - [1651581090.102301][2548:2553] CHIP:DMG: DataVersion = 0x2c5d1f48, - [1651581090.102348][2548:2553] CHIP:DMG: AttributePathIB = - [1651581090.102401][2548:2553] CHIP:DMG: { - [1651581090.102453][2548:2553] CHIP:DMG: Endpoint = 0x1, - [1651581090.102510][2548:2553] CHIP:DMG: Cluster = 0x8, - [1651581090.102562][2548:2553] CHIP:DMG: Attribute = 0x0000_0011, - [1651581090.102611][2548:2553] CHIP:DMG: } - [1651581090.102663][2548:2553] CHIP:DMG: - [1651581090.102713][2548:2553] CHIP:DMG: Data = 2, - [1651581090.102765][2548:2553] CHIP:DMG: }, - [1651581090.102814][2548:2553] CHIP:DMG: - [1651581090.102882][2548:2553] CHIP:DMG: }, - [1651581090.102932][2548:2553] CHIP:DMG: - [1651581090.102967][2548:2553] CHIP:DMG: ], - [1651581090.103012][2548:2553] CHIP:DMG: - [1651581090.103047][2548:2553] CHIP:DMG: InteractionModelRevision = 1 - [1651581090.103081][2548:2553] CHIP:DMG: } - [1651581090.103251][2548:2553] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 744300360 - [1651581090.103346][2548:2553] CHIP:TOO: on level: 2 - [1651581090.103404][2548:2553] CHIP:DMG: MoveToState ReadClient[0xffff9c005350]: Moving to [AwaitingSu] - [1651581090.103469][2548:2553] CHIP:EM: Piggybacking Ack for MessageCounter:16486934 on exchange: 56780i - [1651581090.103551][2548:2553] CHIP:IN: Prepared secure message 0xaaaaff7fcb38 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 56780i with MessageCounter:12926057. - [1651581090.103602][2548:2553] CHIP:IN: Sending encrypted msg 0xaaaaff7fcb38 with MessageCounter:12926057 to 0x0000000000000001 (1) at monotonic time: 0000000000191604 msec - [1651581090.104831][2548:2553] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:16486935 on exchange 56780i - [1651581090.104878][2548:2553] CHIP:EM: Found matching exchange: 56780i, Delegate: 0xffff9c005350 - [1651581090.104923][2548:2553] CHIP:EM: Rxd Ack; Removing MessageCounter:12926057 from Retrans Table on exchange 56780i - [1651581090.104958][2548:2553] CHIP:EM: Removed CHIP MessageCounter:12926057 from RetransTable on exchange 56780i - [1651581090.105015][2548:2553] CHIP:DMG: SubscribeResponseMessage = - [1651581090.105054][2548:2553] CHIP:DMG: { - [1651581090.105089][2548:2553] CHIP:DMG: SubscriptionId = 0xe5f261cdbbd208ad, - [1651581090.105128][2548:2553] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651581090.105166][2548:2553] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651581090.105203][2548:2553] CHIP:DMG: InteractionModelRevision = 1 - [1651581090.105238][2548:2553] CHIP:DMG: } - - - - sudo ./chip-tool levelcontrol write on-level 2 1 1 - [1651581060.982048][2541:2546] CHIP:DMG: WriteResponseMessage = - [1651581060.982078][2541:2546] CHIP:DMG: { - [1651581060.982103][2541:2546] CHIP:DMG: AttributeStatusIBs = - [1651581060.982138][2541:2546] CHIP:DMG: [ - [1651581060.982166][2541:2546] CHIP:DMG: AttributeStatusIB = - [1651581060.982206][2541:2546] CHIP:DMG: { - [1651581060.982238][2541:2546] CHIP:DMG: AttributePathIB = - [1651581060.982275][2541:2546] CHIP:DMG: { - [1651581060.982316][2541:2546] CHIP:DMG: Endpoint = 0x1, - [1651581060.982358][2541:2546] CHIP:DMG: Cluster = 0x8, - [1651581060.982397][2541:2546] CHIP:DMG: Attribute = 0x0000_0011, - [1651581060.982432][2541:2546] CHIP:DMG: } - [1651581060.982472][2541:2546] CHIP:DMG: - [1651581060.982506][2541:2546] CHIP:DMG: StatusIB = - [1651581060.982540][2541:2546] CHIP:DMG: { - [1651581060.982576][2541:2546] CHIP:DMG: status = 0x00 (SUCCESS), - [1651581060.982608][2541:2546] CHIP:DMG: }, - [1651581060.982644][2541:2546] CHIP:DMG: - [1651581060.982672][2541:2546] CHIP:DMG: }, - [1651581060.982706][2541:2546] CHIP:DMG: - [1651581060.982732][2541:2546] CHIP:DMG: ], - [1651581060.982766][2541:2546] CHIP:DMG: - [1651581060.982793][2541:2546] CHIP:DMG: InteractionModelRevision = 1 - [1651581060.982820][2541:2546] CHIP:DMG: } + ./chip-tool onoff subscribe start-up-on-off 50 800 1 1 + [1655893620.555858][1705:1710] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4003 DataVersion: 633563797 + [1655893620.555948][1705:1710] CHIP:TOO: StartUpOnOff: 2 + [1655893620.556004][1705:1710] CHIP:DMG: MoveToState ReadClient[0xffff84003860]: Moving to [AwaitingSu] + [1655893620.556072][1705:1710] CHIP:EM: Piggybacking Ack for MessageCounter:100672538 on exchange: 53893i + + + ./chip-tool onoff write start-up-on-off 1 1 1 + [1655893744.405633][1725:1730] CHIP:DMG: StatusIB = + [1655893744.405681][1725:1730] CHIP:DMG: { + [1655893744.405745][1725:1730] CHIP:DMG: status = 0x00 (SUCCESS), + [1655893744.405804][1725:1730] CHIP:DMG: }, + + ./chip-tool onoff subscribe start-up-on-off 50 800 1 1 + [1655893813.969626][1731:1736] CHIP:EM: Removed CHIP MessageCounter:250929411 from RetransTable on exchange 43399i + [1655893813.969697][1731:1736] CHIP:DMG: ReportDataMessage = + [1655893813.969729][1731:1736] CHIP:DMG: { + [1655893813.969769][1731:1736] CHIP:DMG: SubscriptionId = 0xe0a0bb02, + [1655893813.969798][1731:1736] CHIP:DMG: AttributeReportIBs = + [1655893813.969833][1731:1736] CHIP:DMG: [ + [1655893813.969906][1731:1736] CHIP:DMG: AttributeReportIB = + [1655893813.969994][1731:1736] CHIP:DMG: { + [1655893813.970035][1731:1736] CHIP:DMG: AttributeDataIB = + [1655893813.970071][1731:1736] CHIP:DMG: { + [1655893813.970107][1731:1736] CHIP:DMG: DataVersion = 0x25c36a97, + [1655893813.970154][1731:1736] CHIP:DMG: AttributePathIB = + [1655893813.970203][1731:1736] CHIP:DMG: { + [1655893813.970242][1731:1736] CHIP:DMG: Endpoint = 0x1, + [1655893813.970292][1731:1736] CHIP:DMG: Cluster = 0x6, + [1655893813.970341][1731:1736] CHIP:DMG: Attribute = 0x0000_4003, + [1655893813.970379][1731:1736] CHIP:DMG: } + [1655893813.970429][1731:1736] CHIP:DMG: + [1655893813.970476][1731:1736] CHIP:DMG: Data = 1, + [1655893813.970511][1731:1736] CHIP:DMG: }, + [1655893813.970558][1731:1736] CHIP:DMG: + [1655893813.970587][1731:1736] CHIP:DMG: }, + [1655893813.970632][1731:1736] CHIP:DMG: + [1655893813.970668][1731:1736] CHIP:DMG: ], + [1655893813.970704][1731:1736] CHIP:DMG: + [1655893813.970731][1731:1736] CHIP:DMG: InteractionModelRevision = 1 + [1655893813.970769][1731:1736] CHIP:DMG: } + [1655893813.970926][1731:1736] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4003 DataVersion: 633563799 + [1655893813.971011][1731:1736] CHIP:TOO: StartUpOnOff: 1 + [1655893813.971056][1731:1736] CHIP:DMG: MoveToState ReadClient[0xffffa8002df0]: Moving to [AwaitingSu] disabled: true - label: "DUT and TH activate the subscription for an attribute. Dont change the value of the attribute which has been subscribed." verification: | - In case of chip tool, here is an example command to use - sudo ./chip-tool levelcontrol subscribe on-level 0 100 1 1 - [1651581090.101913][2548:2553] CHIP:DMG: ReportDataMessage = - [1651581090.101952][2548:2553] CHIP:DMG: { - [1651581090.101986][2548:2553] CHIP:DMG: SubscriptionId = 0xe5f261cdbbd208ad, - [1651581090.102023][2548:2553] CHIP:DMG: AttributeReportIBs = - [1651581090.102067][2548:2553] CHIP:DMG: [ - [1651581090.102104][2548:2553] CHIP:DMG: AttributeReportIB = - [1651581090.102159][2548:2553] CHIP:DMG: { - [1651581090.102201][2548:2553] CHIP:DMG: AttributeDataIB = - [1651581090.102252][2548:2553] CHIP:DMG: { - [1651581090.102301][2548:2553] CHIP:DMG: DataVersion = 0x2c5d1f48, - [1651581090.102348][2548:2553] CHIP:DMG: AttributePathIB = - [1651581090.102401][2548:2553] CHIP:DMG: { - [1651581090.102453][2548:2553] CHIP:DMG: Endpoint = 0x1, - [1651581090.102510][2548:2553] CHIP:DMG: Cluster = 0x8, - [1651581090.102562][2548:2553] CHIP:DMG: Attribute = 0x0000_0011, - [1651581090.102611][2548:2553] CHIP:DMG: } - [1651581090.102663][2548:2553] CHIP:DMG: - [1651581090.102713][2548:2553] CHIP:DMG: Data = 2, - [1651581090.102765][2548:2553] CHIP:DMG: }, - [1651581090.102814][2548:2553] CHIP:DMG: - [1651581090.102882][2548:2553] CHIP:DMG: }, - [1651581090.102932][2548:2553] CHIP:DMG: - [1651581090.102967][2548:2553] CHIP:DMG: ], - [1651581090.103012][2548:2553] CHIP:DMG: - [1651581090.103047][2548:2553] CHIP:DMG: InteractionModelRevision = 1 - [1651581090.103081][2548:2553] CHIP:DMG: } - [1651581090.103251][2548:2553] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 744300360 - [1651581090.103346][2548:2553] CHIP:TOO: on level: 2 - [1651581090.103404][2548:2553] CHIP:DMG: MoveToState ReadClient[0xffff9c005350]: Moving to [AwaitingSu] - [1651581090.103469][2548:2553] CHIP:EM: Piggybacking Ack for MessageCounter:16486934 on exchange: 56780i - [1651581090.103551][2548:2553] CHIP:IN: Prepared secure message 0xaaaaff7fcb38 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 56780i with MessageCounter:12926057. - [1651581090.103602][2548:2553] CHIP:IN: Sending encrypted msg 0xaaaaff7fcb38 with MessageCounter:12926057 to 0x0000000000000001 (1) at monotonic time: 0000000000191604 msec - [1651581090.104831][2548:2553] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:16486935 on exchange 56780i - [1651581090.104878][2548:2553] CHIP:EM: Found matching exchange: 56780i, Delegate: 0xffff9c005350 - [1651581090.104923][2548:2553] CHIP:EM: Rxd Ack; Removing MessageCounter:12926057 from Retrans Table on exchange 56780i - [1651581090.104958][2548:2553] CHIP:EM: Removed CHIP MessageCounter:12926057 from RetransTable on exchange 56780i - [1651581090.105015][2548:2553] CHIP:DMG: SubscribeResponseMessage = - [1651581090.105054][2548:2553] CHIP:DMG: { - [1651581090.105089][2548:2553] CHIP:DMG: SubscriptionId = 0xe5f261cdbbd208ad, - [1651581090.105128][2548:2553] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651581090.105166][2548:2553] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651581090.105203][2548:2553] CHIP:DMG: InteractionModelRevision = 1 - [1651581090.105238][2548:2553] CHIP:DMG: } + ./chip-tool onoff subscribe on-off 90 900 1 1 + [1655894000.461474][1739:1744] CHIP:DMG: ReportDataMessage = + [1655894000.461513][1739:1744] CHIP:DMG: { + [1655894000.461548][1739:1744] CHIP:DMG: SubscriptionId = 0x61799d12, + [1655894000.461589][1739:1744] CHIP:DMG: AttributeReportIBs = + [1655894000.461634][1739:1744] CHIP:DMG: [ + [1655894000.461670][1739:1744] CHIP:DMG: AttributeReportIB = + [1655894000.461717][1739:1744] CHIP:DMG: { + [1655894000.461755][1739:1744] CHIP:DMG: AttributeDataIB = + [1655894000.461796][1739:1744] CHIP:DMG: { + [1655894000.461842][1739:1744] CHIP:DMG: DataVersion = 0x25c36a97, + [1655894000.461893][1739:1744] CHIP:DMG: AttributePathIB = + [1655894000.461968][1739:1744] CHIP:DMG: { + [1655894000.462021][1739:1744] CHIP:DMG: Endpoint = 0x1, + [1655894000.462076][1739:1744] CHIP:DMG: Cluster = 0x6, + [1655894000.462128][1739:1744] CHIP:DMG: Attribute = 0x0000_0000, + [1655894000.462172][1739:1744] CHIP:DMG: } + [1655894000.462227][1739:1744] CHIP:DMG: + [1655894000.462277][1739:1744] CHIP:DMG: Data = false, + [1655894000.462323][1739:1744] CHIP:DMG: }, + [1655894000.462372][1739:1744] CHIP:DMG: + [1655894000.462409][1739:1744] CHIP:DMG: }, + [1655894000.462453][1739:1744] CHIP:DMG: + [1655894000.462488][1739:1744] CHIP:DMG: ], + [1655894000.462532][1739:1744] CHIP:DMG: + [1655894000.462567][1739:1744] CHIP:DMG: InteractionModelRevision = 1 + [1655894000.462601][1739:1744] CHIP:DMG: } + [1655894000.462775][1739:1744] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 633563799 + [1655894000.462838][1739:1744] CHIP:TOO: OnOff: FALSE + [1655894000.462904][1739:1744] CHIP:DMG: MoveToState ReadClient[0xffff68003900]: Moving to [AwaitingSu] + + ./chip-tool onoff subscribe on-off 90 900 1 1 --data-version 0x25c36a97 + [1655894043.008680][1749:1754] CHIP:EM: Removed CHIP MessageCounter:95673197 from RetransTable on exchange 16443i + [1655894043.008745][1749:1754] CHIP:DMG: ReportDataMessage = + [1655894043.008785][1749:1754] CHIP:DMG: { + [1655894043.008821][1749:1754] CHIP:DMG: SubscriptionId = 0x5c84cce0, + [1655894043.008859][1749:1754] CHIP:DMG: InteractionModelRevision = 1 + [1655894043.008894][1749:1754] CHIP:DMG: } + [1655894043.008948][1749:1754] CHIP:DMG: MoveToState ReadClient[0xffff7c005970]: Moving to [AwaitingSu] + [1655894043.009010][1749:1754] CHIP:EM: Piggybacking Ack for MessageCounter:264821983 on exchange: 16443i disabled: true - label: @@ -294,7 +135,7 @@ tests: status response with an "inactive subscription". Change the value of the attribute which has been subscribed on the DUT.' verification: | - This testr needs to be tested by changing the controls available in the DUT and then read the value. And can't be tested with Soft DUT & has dependency of Vendor specific DUT support. + This tester needs to be tested by changing the controls available in the DUT and then read the value. And can't be tested with Soft DUT & has dependency of Vendor specific DUT support. disabled: true - label: @@ -304,56 +145,62 @@ tests: the attribute multiple times (3 times) before the max interval time specified during the subscription activation." verification: | - In case of chip tool, here is an example command to use - - sudo ./chip-tool basic write local-config-disabled 1 1 0 - [1651581143.935028][2560:2565] CHIP:DMG: WriteResponseMessage = - [1651581143.935074][2560:2565] CHIP:DMG: { - [1651581143.935114][2560:2565] CHIP:DMG: AttributeStatusIBs = - [1651581143.935171][2560:2565] CHIP:DMG: [ - [1651581143.935217][2560:2565] CHIP:DMG: AttributeStatusIB = - [1651581143.935268][2560:2565] CHIP:DMG: { - [1651581143.935327][2560:2565] CHIP:DMG: AttributePathIB = - [1651581143.935386][2560:2565] CHIP:DMG: { - [1651581143.935445][2560:2565] CHIP:DMG: Endpoint = 0x0, - [1651581143.935508][2560:2565] CHIP:DMG: Cluster = 0x28, - [1651581143.935570][2560:2565] CHIP:DMG: Attribute = 0x0000_0010, - [1651581143.935623][2560:2565] CHIP:DMG: } - [1651581143.935686][2560:2565] CHIP:DMG: - [1651581143.935741][2560:2565] CHIP:DMG: StatusIB = - [1651581143.935801][2560:2565] CHIP:DMG: { - [1651581143.935854][2560:2565] CHIP:DMG: status = 0x00 (SUCCESS), - [1651581143.935913][2560:2565] CHIP:DMG: }, - [1651581143.935966][2560:2565] CHIP:DMG: - [1651581143.936016][2560:2565] CHIP:DMG: }, - [1651581143.936076][2560:2565] CHIP:DMG: - [1651581143.936120][2560:2565] CHIP:DMG: ], - [1651581143.936175][2560:2565] CHIP:DMG: - [1651581143.936220][2560:2565] CHIP:DMG: InteractionModelRevision = 1 - [1651581143.936264][2560:2565] CHIP:DMG: } - - - - sudo ./chip-tool basic subscribe local-config-disabled 0 100 1 0 - [1651581168.305387][2569:2574] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2272149882 - [1651581168.305439][2569:2574] CHIP:TOO: LocalConfigDisabled: TRUE - [1651581168.305493][2569:2574] CHIP:DMG: MoveToState ReadClient[0xffffa0004790]: Moving to [AwaitingSu] - [1651581168.305557][2569:2574] CHIP:EM: Piggybacking Ack for MessageCounter:3216298 on exchange: 59996i - [1651581168.305718][2569:2574] CHIP:IN: Prepared secure message 0xaaaaea061c98 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 59996i with MessageCounter:13929590. - [1651581168.305776][2569:2574] CHIP:IN: Sending encrypted msg 0xaaaaea061c98 with MessageCounter:13929590 to 0x0000000000000001 (1) at monotonic time: 00000000001A477E msec - [1651581168.307099][2569:2574] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:3216299 on exchange 59996i - [1651581168.307148][2569:2574] CHIP:EM: Found matching exchange: 59996i, Delegate: 0xffffa0004790 - [1651581168.307196][2569:2574] CHIP:EM: Rxd Ack; Removing MessageCounter:13929590 from Retrans Table on exchange 59996i - [1651581168.307232][2569:2574] CHIP:EM: Removed CHIP MessageCounter:13929590 from RetransTable on exchange 59996i - [1651581168.307292][2569:2574] CHIP:DMG: SubscribeResponseMessage = - [1651581168.307330][2569:2574] CHIP:DMG: { - [1651581168.307365][2569:2574] CHIP:DMG: SubscriptionId = 0xfd55400dbe72f1cb, - [1651581168.307405][2569:2574] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651581168.307444][2569:2574] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651581168.307481][2569:2574] CHIP:DMG: InteractionModelRevision = 1 - [1651581168.307516][2569:2574] CHIP:DMG: } - - + ./chip-tool basic subscribe local-config-disabled 100 200 1 0 + [1655894975.518731][1787:1792] CHIP:DMG: ReportDataMessage = + [1655894975.518772][1787:1792] CHIP:DMG: { + [1655894975.518808][1787:1792] CHIP:DMG: SubscriptionId = 0x156d3be2, + [1655894975.518845][1787:1792] CHIP:DMG: AttributeReportIBs = + [1655894975.518889][1787:1792] CHIP:DMG: [ + [1655894975.518925][1787:1792] CHIP:DMG: AttributeReportIB = + [1655894975.518972][1787:1792] CHIP:DMG: { + [1655894975.519010][1787:1792] CHIP:DMG: AttributeDataIB = + [1655894975.519056][1787:1792] CHIP:DMG: { + [1655894975.519104][1787:1792] CHIP:DMG: DataVersion = 0xf62da664, + [1655894975.519151][1787:1792] CHIP:DMG: AttributePathIB = + [1655894975.519200][1787:1792] CHIP:DMG: { + [1655894975.519255][1787:1792] CHIP:DMG: Endpoint = 0x0, + [1655894975.519311][1787:1792] CHIP:DMG: Cluster = 0x28, + [1655894975.519363][1787:1792] CHIP:DMG: Attribute = 0x0000_0010, + [1655894975.519415][1787:1792] CHIP:DMG: } + [1655894975.519465][1787:1792] CHIP:DMG: + [1655894975.519520][1787:1792] CHIP:DMG: Data = true, + [1655894975.519566][1787:1792] CHIP:DMG: }, + [1655894975.519614][1787:1792] CHIP:DMG: + [1655894975.519652][1787:1792] CHIP:DMG: }, + [1655894975.519696][1787:1792] CHIP:DMG: + [1655894975.519731][1787:1792] CHIP:DMG: ], + [1655894975.519776][1787:1792] CHIP:DMG: + [1655894975.519812][1787:1792] CHIP:DMG: InteractionModelRevision = 1 + [1655894975.519847][1787:1792] CHIP:DMG: } + [1655894975.520023][1787:1792] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 4130186852 + [1655894975.520073][1787:1792] CHIP:TOO: LocalConfigDisabled: TRUE + [1655894975.520142][1787:1792] CHIP:DMG: MoveToState ReadClient[0xffff6c006f50]: Moving to [AwaitingSu] + + + ./chip-tool basic write local-config-disabled 0 1 0 + [1655895037.152837][1793:1798] CHIP:DMG: StatusIB = + [1655895037.152884][1793:1798] CHIP:DMG: { + [1655895037.152942][1793:1798] CHIP:DMG: status = 0x00 (SUCCESS), + [1655895037.152988][1793:1798] CHIP:DMG: }, + + ./chip-tool basic subscribe local-config-disabled 100 200 1 0 + [1655895107.326374][1801:1806] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 4130186853 + [1655895107.326423][1801:1806] CHIP:TOO: LocalConfigDisabled: FALSE + [1655895107.326491][1801:1806] CHIP:DMG: MoveToState ReadClient[0xaaaaf7f7c1a0]: Moving to [AwaitingSu] + [1655895107.326557][1801:1806] CHIP:EM: Piggybacking Ack for MessageCounter:241530555 on exchange: 11522i + [1655895107.326630][1801:1806] CHIP:IN: Prepared secure message 0xaaaaf7f999a8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 11522i with MessageCounter:177944799. + [1655895107.326681][1801:1806] CHIP:IN: Sending encrypted msg 0xaaaaf7f999a8 with MessageCounter:177944799 to 0x0000000000000001 (1) at monotonic time: 000000000055DB48 msec + [1655895107.327646][1801:1806] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:241530556 on exchange 11522i + [1655895107.327690][1801:1806] CHIP:EM: Found matching exchange: 11522i, Delegate: 0xaaaaf7f7c1a0 + [1655895107.327733][1801:1806] CHIP:EM: Rxd Ack; Removing MessageCounter:177944799 from Retrans Table on exchange 11522i + [1655895107.327768][1801:1806] CHIP:EM: Removed CHIP MessageCounter:177944799 from RetransTable on exchange 11522i + [1655895107.327821][1801:1806] CHIP:DMG: SubscribeResponseMessage = + [1655895107.327857][1801:1806] CHIP:DMG: { + [1655895107.327891][1801:1806] CHIP:DMG: SubscriptionId = 0xccbfeed1, + [1655895107.327929][1801:1806] CHIP:DMG: MaxInterval = 0xc8, + [1655895107.327965][1801:1806] CHIP:DMG: InteractionModelRevision = 1 + [1655895107.327998][1801:1806] CHIP:DMG: } + [1655895107.328035][1801:1806] CHIP:DMG: Subscription established with SubscriptionID = 0xccbfeed1 MinInterval = 0s MaxInterval = 200s Peer = 01:0000000000000001 Verify the above command multiple times(3 times) disabled: true @@ -365,72 +212,49 @@ tests: Modify the attribute multiple times (3 times) before the max interval time specified during the subscription activation." verification: | - In case of chip tool, here is an example command to use - - sudo ./chip-tool basic write node-label new 1 0 - - On TH-- - [1653463495.068961][19463:19468] CHIP:DMG: WriteResponseMessage = - [1653463495.068977][19463:19468] CHIP:DMG: { - [1653463495.068992][19463:19468] CHIP:DMG: AttributeStatusIBs = - [1653463495.069017][19463:19468] CHIP:DMG: [ - [1653463495.069032][19463:19468] CHIP:DMG: AttributeStatusIB = - [1653463495.069048][19463:19468] CHIP:DMG: { - [1653463495.069061][19463:19468] CHIP:DMG: AttributePathIB = - [1653463495.069075][19463:19468] CHIP:DMG: { - [1653463495.069090][19463:19468] CHIP:DMG: Endpoint = 0x0, - [1653463495.069106][19463:19468] CHIP:DMG: Cluster = 0x28, - [1653463495.069127][19463:19468] CHIP:DMG: Attribute = 0x0000_0005, - [1653463495.069141][19463:19468] CHIP:DMG: } - [1653463495.069161][19463:19468] CHIP:DMG: - [1653463495.069175][19463:19468] CHIP:DMG: StatusIB = - [1653463495.069193][19463:19468] CHIP:DMG: { - [1653463495.069209][19463:19468] CHIP:DMG: status = 0x00 (SUCCESS), - [1653463495.069227][19463:19468] CHIP:DMG: }, - [1653463495.069244][19463:19468] CHIP:DMG: - [1653463495.069257][19463:19468] CHIP:DMG: }, - [1653463495.069276][19463:19468] CHIP:DMG: - [1653463495.069289][19463:19468] CHIP:DMG: ], - [1653463495.069309][19463:19468] CHIP:DMG: - [1653463495.069322][19463:19468] CHIP:DMG: InteractionModelRevision = 1 - [1653463495.069335][19463:19468] CHIP:DMG: } - - - - - sudo ./chip-tool basic subscribe node-label 0 100 1 0 - - ON TH-- - [1653463505.771898][19471:19476] CHIP:DMG: ReportDataMessage = - [1653463505.771918][19471:19476] CHIP:DMG: { - [1653463505.771935][19471:19476] CHIP:DMG: SubscriptionId = 0xc242f057, - [1653463505.771953][19471:19476] CHIP:DMG: AttributeReportIBs = - [1653463505.771985][19471:19476] CHIP:DMG: [ - [1653463505.772001][19471:19476] CHIP:DMG: AttributeReportIB = - [1653463505.772027][19471:19476] CHIP:DMG: { - [1653463505.772043][19471:19476] CHIP:DMG: AttributeDataIB = - [1653463505.772061][19471:19476] CHIP:DMG: { - [1653463505.772081][19471:19476] CHIP:DMG: DataVersion = 0x8a93859e, - [1653463505.772098][19471:19476] CHIP:DMG: AttributePathIB = - [1653463505.772117][19471:19476] CHIP:DMG: { - [1653463505.772137][19471:19476] CHIP:DMG: Endpoint = 0x0, - [1653463505.772157][19471:19476] CHIP:DMG: Cluster = 0x28, - [1653463505.772177][19471:19476] CHIP:DMG: Attribute = 0x0000_0005, - [1653463505.772194][19471:19476] CHIP:DMG: } - [1653463505.772215][19471:19476] CHIP:DMG: - [1653463505.772237][19471:19476] CHIP:DMG: Data = "new", - [1653463505.772255][19471:19476] CHIP:DMG: }, - [1653463505.772277][19471:19476] CHIP:DMG: - [1653463505.772294][19471:19476] CHIP:DMG: }, - [1653463505.772316][19471:19476] CHIP:DMG: - [1653463505.772331][19471:19476] CHIP:DMG: ], - [1653463505.772362][19471:19476] CHIP:DMG: - [1653463505.772388][19471:19476] CHIP:DMG: InteractionModelRevision = 1 - [1653463505.772408][19471:19476] CHIP:DMG: } - [1653463505.772555][19471:19476] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 2324923806 - [1653463505.772583][19471:19476] CHIP:TOO: NodeLabel: new - - + ./chip-tool basic subscribe node-label 30 500 1 0 + [1655895494.995166][1812:1817] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 4130186853 + [1655895494.995216][1812:1817] CHIP:TOO: NodeLabel: + [1655895494.995283][1812:1817] CHIP:DMG: MoveToState ReadClient[0xffff74003ff0]: Moving to [AwaitingSu] + + ./chip-tool basic write node-label new 1 0 + [1655895585.624127][1835:1840] CHIP:DMG: StatusIB = + [1655895585.624172][1835:1840] CHIP:DMG: { + [1655895585.624216][1835:1840] CHIP:DMG: status = 0x00 (SUCCESS), + [1655895585.624263][1835:1840] CHIP:DMG: }, + [1655895585.624308][1835:1840] CHIP:DMG: + [1655895585.624345][1835:1840] CHIP:DMG: }, + + ./chip-tool basic subscribe node-label 30 500 1 0 + [1655895608.108538][1842:1847] CHIP:DMG: ReportDataMessage = + [1655895608.108578][1842:1847] CHIP:DMG: { + [1655895608.108628][1842:1847] CHIP:DMG: SubscriptionId = 0x510536e1, + [1655895608.108667][1842:1847] CHIP:DMG: AttributeReportIBs = + [1655895608.108713][1842:1847] CHIP:DMG: [ + [1655895608.108762][1842:1847] CHIP:DMG: AttributeReportIB = + [1655895608.108811][1842:1847] CHIP:DMG: { + [1655895608.108864][1842:1847] CHIP:DMG: AttributeDataIB = + [1655895608.108911][1842:1847] CHIP:DMG: { + [1655895608.108976][1842:1847] CHIP:DMG: DataVersion = 0xf62da668, + [1655895608.109041][1842:1847] CHIP:DMG: AttributePathIB = + [1655895608.109093][1842:1847] CHIP:DMG: { + [1655895608.109154][1842:1847] CHIP:DMG: Endpoint = 0x0, + [1655895608.109219][1842:1847] CHIP:DMG: Cluster = 0x28, + [1655895608.109274][1842:1847] CHIP:DMG: Attribute = 0x0000_0005, + [1655895608.109340][1842:1847] CHIP:DMG: } + [1655895608.109405][1842:1847] CHIP:DMG: + [1655895608.109459][1842:1847] CHIP:DMG: Data = "new", + [1655895608.109522][1842:1847] CHIP:DMG: }, + [1655895608.109585][1842:1847] CHIP:DMG: + [1655895608.109626][1842:1847] CHIP:DMG: }, + [1655895608.109684][1842:1847] CHIP:DMG: + [1655895608.109721][1842:1847] CHIP:DMG: ], + [1655895608.109781][1842:1847] CHIP:DMG: + [1655895608.109818][1842:1847] CHIP:DMG: InteractionModelRevision = 1 + [1655895608.109866][1842:1847] CHIP:DMG: } + [1655895608.110086][1842:1847] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 4130186856 + [1655895608.110137][1842:1847] CHIP:TOO: NodeLabel: new + [1655895608.110221][1842:1847] CHIP:DMG: MoveToState ReadClient[0xffff98003e90]: Moving to [AwaitingSu] Verify the above command multiple times(3 times) disabled: true @@ -442,53 +266,48 @@ tests: value. Modify the attribute multiple times (3 times) before the max interval time specified during the subscription activation.' verification: | - In case of chip tool, here is an example command to use - - sudo ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 - [1651581271.466102][2595:2600] CHIP:DMG: WriteResponseMessage = - [1651581271.466135][2595:2600] CHIP:DMG: { - [1651581271.466173][2595:2600] CHIP:DMG: AttributeStatusIBs = - [1651581271.466212][2595:2600] CHIP:DMG: [ - [1651581271.466254][2595:2600] CHIP:DMG: AttributeStatusIB = - [1651581271.466293][2595:2600] CHIP:DMG: { - [1651581271.466339][2595:2600] CHIP:DMG: AttributePathIB = - [1651581271.466390][2595:2600] CHIP:DMG: { - [1651581271.466431][2595:2600] CHIP:DMG: Endpoint = 0x1, - [1651581271.466482][2595:2600] CHIP:DMG: Cluster = 0x8, - [1651581271.466539][2595:2600] CHIP:DMG: Attribute = 0x0000_0010, - [1651581271.466579][2595:2600] CHIP:DMG: } - [1651581271.466633][2595:2600] CHIP:DMG: - [1651581271.466671][2595:2600] CHIP:DMG: StatusIB = - [1651581271.466725][2595:2600] CHIP:DMG: { - [1651581271.466780][2595:2600] CHIP:DMG: status = 0x00 (SUCCESS), - [1651581271.466824][2595:2600] CHIP:DMG: }, - [1651581271.466918][2595:2600] CHIP:DMG: - [1651581271.466954][2595:2600] CHIP:DMG: }, - [1651581271.467007][2595:2600] CHIP:DMG: - [1651581271.467047][2595:2600] CHIP:DMG: ], - [1651581271.467086][2595:2600] CHIP:DMG: - [1651581271.467115][2595:2600] CHIP:DMG: InteractionModelRevision = 1 - [1651581271.467157][2595:2600] CHIP:DMG: } - - sudo ./chip-tool any subscribe-by-id 0x0008 0x0010 0 100 0 1 1 - [1651581311.929391][2605:2611] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0010 DataVersion: 744300361 - [1651581311.929466][2605:2611] CHIP:TOO: on off transition time: 1 - [1651581311.929510][2605:2611] CHIP:DMG: MoveToState ReadClient[0xffff80003530]: Moving to [AwaitingSu] - [1651581311.929570][2605:2611] CHIP:EM: Piggybacking Ack for MessageCounter:1109661 on exchange: 21136i - [1651581311.929645][2605:2611] CHIP:IN: Prepared secure message 0xaaaaeb4dbc98 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 21136i with MessageCounter:3315113. - [1651581311.929689][2605:2611] CHIP:IN: Sending encrypted msg 0xaaaaeb4dbc98 with MessageCounter:3315113 to 0x0000000000000001 (1) at monotonic time: 00000000001C7886 msec - [1651581311.930981][2605:2611] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:1109662 on exchange 21136i - [1651581311.931029][2605:2611] CHIP:EM: Found matching exchange: 21136i, Delegate: 0xffff80003530 - [1651581311.931067][2605:2611] CHIP:EM: Rxd Ack; Removing MessageCounter:3315113 from Retrans Table on exchange 21136i - [1651581311.931090][2605:2611] CHIP:EM: Removed CHIP MessageCounter:3315113 from RetransTable on exchange 21136i - [1651581311.931140][2605:2611] CHIP:DMG: SubscribeResponseMessage = - [1651581311.931168][2605:2611] CHIP:DMG: { - [1651581311.931193][2605:2611] CHIP:DMG: SubscriptionId = 0x54d8451e9c60ea8, - [1651581311.931226][2605:2611] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651581311.931254][2605:2611] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651581311.931279][2605:2611] CHIP:DMG: InteractionModelRevision = 1 - [1651581311.931303][2605:2611] CHIP:DMG: } - + ./chip-tool basic subscribe node-label 30 500 1 0 + [1655895755.465257][1849:1854] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0010 DataVersion: 2889729871 + [1655895755.465366][1849:1854] CHIP:TOO: on off transition time: 0 + [1655895755.465416][1849:1854] CHIP:DMG: MoveToState ReadClient[0xffff9c006f10]: Moving to [AwaitingSu] + + ./chip-tool any write-by-id 0x0008 0x0010 1 1 1 + [1655895794.917918][1857:1862] CHIP:DMG: StatusIB = + [1655895794.918014][1857:1862] CHIP:DMG: { + [1655895794.918059][1857:1862] CHIP:DMG: status = 0x00 (SUCCESS), + [1655895794.918105][1857:1862] CHIP:DMG: }, + + + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 300 1 1 + [1655895880.423985][1864:1869] CHIP:DMG: ReportDataMessage = + [1655895880.424029][1864:1869] CHIP:DMG: { + [1655895880.424069][1864:1869] CHIP:DMG: SubscriptionId = 0x8dd9847b, + [1655895880.424109][1864:1869] CHIP:DMG: AttributeReportIBs = + [1655895880.424158][1864:1869] CHIP:DMG: [ + [1655895880.424198][1864:1869] CHIP:DMG: AttributeReportIB = + [1655895880.424249][1864:1869] CHIP:DMG: { + [1655895880.424291][1864:1869] CHIP:DMG: AttributeDataIB = + [1655895880.424338][1864:1869] CHIP:DMG: { + [1655895880.424396][1864:1869] CHIP:DMG: DataVersion = 0xac3dc750, + [1655895880.424447][1864:1869] CHIP:DMG: AttributePathIB = + [1655895880.424502][1864:1869] CHIP:DMG: { + [1655895880.424557][1864:1869] CHIP:DMG: Endpoint = 0x1, + [1655895880.424620][1864:1869] CHIP:DMG: Cluster = 0x8, + [1655895880.424676][1864:1869] CHIP:DMG: Attribute = 0x0000_0010, + [1655895880.424729][1864:1869] CHIP:DMG: } + [1655895880.424786][1864:1869] CHIP:DMG: + [1655895880.424847][1864:1869] CHIP:DMG: Data = 1, + [1655895880.424898][1864:1869] CHIP:DMG: }, + [1655895880.424951][1864:1869] CHIP:DMG: + [1655895880.424993][1864:1869] CHIP:DMG: }, + [1655895880.425041][1864:1869] CHIP:DMG: + [1655895880.425080][1864:1869] CHIP:DMG: ], + [1655895880.425130][1864:1869] CHIP:DMG: + [1655895880.425169][1864:1869] CHIP:DMG: InteractionModelRevision = 1 + [1655895880.425207][1864:1869] CHIP:DMG: } + [1655895880.425391][1864:1869] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0010 DataVersion: 2889729872 + [1655895880.425489][1864:1869] CHIP:TOO: on off transition time: 1 + [1655895880.425551][1864:1869] CHIP:DMG: MoveToState ReadClient[0xffffa0004b70]: Moving to [AwaitingSu] Verify the above command multiple times(3 times) disabled: true @@ -500,7 +319,7 @@ tests: value. Modify the attribute multiple times (3 times)before the max interval time specified during the subscription activation.' verification: | - subscribe to an attribute of type signed integer to the Harness + Subscribe to an attribute of type signed integer to the Harness disabled: true - label: @@ -510,7 +329,7 @@ tests: value. Modify the attribute multiple times (3 times) before the max interval time specified during the subscription activation.' verification: | - subscribe to an attribute of type floating point to the Harness + Subscribe to an attribute of type floating point to the Harness disabled: true - label: @@ -520,41 +339,32 @@ tests: the attribute multiple times (3 times) before the max interval time specified during the subscription activation." verification: | - sudo ./chip-tool modeselect subscribe supported-modes 0 100 1 1 - sudo ./chip-tool modeselect subscribe supported-modes 0 100 1 1 - sudo ./chip-tool modeselect subscribe supported-modes 0 100 1 1 - [1651582224.233708][2800:2805] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 208325786 - [1651582224.233839][2800:2805] CHIP:TOO: SupportedModes: 3 entries - [1651582224.233928][2800:2805] CHIP:TOO: [1]: { - [1651582224.233967][2800:2805] CHIP:TOO: Label: Black - [1651582224.234022][2800:2805] CHIP:TOO: Mode: 0 - [1651582224.234059][2800:2805] CHIP:TOO: SemanticTag: 0 - [1651582224.234096][2800:2805] CHIP:TOO: } - [1651582224.234141][2800:2805] CHIP:TOO: [2]: { - [1651582224.234178][2800:2805] CHIP:TOO: Label: Cappuccino - [1651582224.234212][2800:2805] CHIP:TOO: Mode: 4 - [1651582224.234246][2800:2805] CHIP:TOO: SemanticTag: 0 - [1651582224.234281][2800:2805] CHIP:TOO: } - [1651582224.234325][2800:2805] CHIP:TOO: [3]: { - [1651582224.234361][2800:2805] CHIP:TOO: Label: Espresso - [1651582224.234395][2800:2805] CHIP:TOO: Mode: 7 - [1651582224.234428][2800:2805] CHIP:TOO: SemanticTag: 0 - [1651582224.234463][2800:2805] CHIP:TOO: } - [1651582224.234534][2800:2805] CHIP:DMG: MoveToState ReadClient[0xffff88002d90]: Moving to [AwaitingSu] - [1651582224.234588][2800:2805] CHIP:EM: Piggybacking Ack for MessageCounter:12155993 on exchange: 59569i - [1651582224.234665][2800:2805] CHIP:IN: Prepared secure message 0xaaaaf2f076b8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 59569i with MessageCounter:7049664. - [1651582224.234711][2800:2805] CHIP:IN: Sending encrypted msg 0xaaaaf2f076b8 with MessageCounter:7049664 to 0x0000000000000001 (1) at monotonic time: 00000000002A6437 msec - [1651582224.236774][2800:2805] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:12155994 on exchange 59569i - [1651582224.236817][2800:2805] CHIP:EM: Found matching exchange: 59569i, Delegate: 0xffff88002d90 - [1651582224.236858][2800:2805] CHIP:EM: Rxd Ack; Removing MessageCounter:7049664 from Retrans Table on exchange 59569i - [1651582224.236887][2800:2805] CHIP:EM: Removed CHIP MessageCounter:7049664 from RetransTable on exchange 59569i - [1651582224.236941][2800:2805] CHIP:DMG: SubscribeResponseMessage = - [1651582224.236974][2800:2805] CHIP:DMG: { - [1651582224.237002][2800:2805] CHIP:DMG: SubscriptionId = 0xe2b3f2defbc9ad8d, - [1651582224.237037][2800:2805] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651582224.237069][2800:2805] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651582224.237099][2800:2805] CHIP:DMG: InteractionModelRevision = 1 - [1651582224.237127][2800:2805] CHIP:DMG: } + ./chip-tool userlabel subscribe label-list 100 500 1 0 + [1655896309.160632][1885:1890] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0041 Attribute 0x0000_0000 DataVersion: 3773922725 + [1655896309.160795][1885:1890] CHIP:TOO: label list: 0 entries + [1655896309.160851][1885:1890] CHIP:DMG: MoveToState ReadClient[0xffffa0005710]: Moving to [AwaitingSu] + + + ./chip-tool userlabel write label-list '[{"label":"room", "value":"bedroom 1"}, {"label":"orientation", "value":"east"}]' 1 0 + [1655896383.439036][1893:1898] CHIP:DMG: StatusIB = + [1655896383.439109][1893:1898] CHIP:DMG: { + [1655896383.439183][1893:1898] CHIP:DMG: status = 0x00 (SUCCESS), + [1655896383.439264][1893:1898] CHIP:DMG: }, + + ./chip-tool userlabel subscribe label-list 100 500 1 0 + [1655896422.936972][1899:1904] CHIP:DMG: } + [1655896422.937347][1899:1904] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0041 Attribute 0x0000_0000 DataVersion: 3773922728 + [1655896422.937478][1899:1904] CHIP:TOO: label list: 2 entries + [1655896422.937612][1899:1904] CHIP:TOO: [1]: { + [1655896422.937658][1899:1904] CHIP:TOO: Label: room + [1655896422.937697][1899:1904] CHIP:TOO: Value: bedroom 1 + [1655896422.937738][1899:1904] CHIP:TOO: } + [1655896422.937789][1899:1904] CHIP:TOO: [2]: { + [1655896422.937830][1899:1904] CHIP:TOO: Label: orientation + [1655896422.937868][1899:1904] CHIP:TOO: Value: east + [1655896422.937907][1899:1904] CHIP:TOO: } + [1655896422.938019][1899:1904] CHIP:DMG: MoveToState ReadClient[0xffff6c006120]: Moving to [AwaitingSu] + [1655896422.938098][1899:1904] CHIP:EM: Piggybacking Ack for MessageCounter:178495354 on exchange: 58101i disabled: true - label: @@ -565,79 +375,68 @@ tests: KeepSubsriptions flag should be set to False Change the value of the attribute requested on the DUT." verification: | - sudo ./chip-tool basic subscribe local-config-disabled 0 100 1 0 --keepSubscriptions 0 - - [1653464485.355192][19712:19717] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2324923808 - [1653464485.355221][19712:19717] CHIP:TOO: LocalConfigDisabled: TRUE - [1653464485.355280][19712:19717] CHIP:DMG: MoveToState ReadClient[0x7f1bd0005590]: Moving to [AwaitingSu] - [1653464485.355334][19712:19717] CHIP:EM: Piggybacking Ack for MessageCounter:9045781 on exchange: 63930i - [1653464485.355393][19712:19717] CHIP:IN: Prepared secure message 0x55aac7ba5188 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 63930i with MessageCounter:13974682. - [1653464485.355424][19712:19717] CHIP:IN: Sending encrypted msg 0x55aac7ba5188 with MessageCounter:13974682 to 0x0000000000000001 (1) at monotonic time: 000000000098E0DF msec - [1653464485.376990][19712:19717] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:9045782 on exchange 63930i - [1653464485.377041][19712:19717] CHIP:EM: Found matching exchange: 63930i, Delegate: 0x7f1bd0005590 - [1653464485.377073][19712:19717] CHIP:EM: Rxd Ack; Removing MessageCounter:13974682 from Retrans Table on exchange 63930i - [1653464485.377093][19712:19717] CHIP:EM: Removed CHIP MessageCounter:13974682 from RetransTable on exchange 63930i - [1653464485.377140][19712:19717] CHIP:DMG: SubscribeResponseMessage = - [1653464485.377158][19712:19717] CHIP:DMG: { - [1653464485.377175][19712:19717] CHIP:DMG: SubscriptionId = 0x1941a0fd, - [1653464485.377192][19712:19717] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653464485.377210][19712:19717] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1653464485.377227][19712:19717] CHIP:DMG: InteractionModelRevision = 1 - [1653464485.377242][19712:19717] CHIP:DMG: } - - sudo ./chip-tool basic subscribe local-config-disabled 200 1000 1 0 --keepSubscriptions 0 - - [1653464502.663445][19724:19729] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2324923808 - [1653464502.663458][19724:19729] CHIP:TOO: LocalConfigDisabled: TRUE - [1653464502.663480][19724:19729] CHIP:DMG: MoveToState ReadClient[0x7f8c880057c0]: Moving to [AwaitingSu] - [1653464502.663504][19724:19729] CHIP:EM: Piggybacking Ack for MessageCounter:2192862 on exchange: 20981i - [1653464502.663527][19724:19729] CHIP:IN: Prepared secure message 0x55a9fb3310d8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 20981i with MessageCounter:3779317. - [1653464502.663542][19724:19729] CHIP:IN: Sending encrypted msg 0x55a9fb3310d8 with MessageCounter:3779317 to 0x0000000000000001 (1) at monotonic time: 000000000099247C msec - [1653464502.676940][19724:19729] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:2192863 on exchange 20981i - [1653464502.676976][19724:19729] CHIP:EM: Found matching exchange: 20981i, Delegate: 0x7f8c880057c0 - [1653464502.676997][19724:19729] CHIP:EM: Rxd Ack; Removing MessageCounter:3779317 from Retrans Table on exchange 20981i - [1653464502.677005][19724:19729] CHIP:EM: Removed CHIP MessageCounter:3779317 from RetransTable on exchange 20981i - [1653464502.677036][19724:19729] CHIP:DMG: SubscribeResponseMessage = - [1653464502.677047][19724:19729] CHIP:DMG: { - [1653464502.677057][19724:19729] CHIP:DMG: SubscriptionId = 0x3d593b10, - [1653464502.677068][19724:19729] CHIP:DMG: MinIntervalFloorSeconds = 0xc8, - [1653464502.677078][19724:19729] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653464502.677087][19724:19729] CHIP:DMG: InteractionModelRevision = 1 - [1653464502.677096][19724:19729] CHIP:DMG: } - - - sudo ./chip-tool basic write local-config-disabled 1 1 0 - [1653464565.244478][19736:19741] CHIP:DMG: Endpoint = 0x0, - [1653464565.244506][19736:19741] CHIP:DMG: Cluster = 0x28, - [1653464565.244536][19736:19741] CHIP:DMG: Attribute = 0x0000_0010, - [1653464565.244563][19736:19741] CHIP:DMG: } - [1653464565.244602][19736:19741] CHIP:DMG: - [1653464565.244629][19736:19741] CHIP:DMG: StatusIB = - [1653464565.244659][19736:19741] CHIP:DMG: { - [1653464565.244685][19736:19741] CHIP:DMG: status = 0x00 (SUCCESS), - [1653464565.244710][19736:19741] CHIP:DMG: }, - [1653464565.244738][19736:19741] CHIP:DMG: - - - sudo ./chip-tool basic subscribe local-config-disabled 0 100 1 0 --keepSubscriptions 0 - - [1653464583.855119][19746:19751] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2324923809 - [1653464583.855160][19746:19751] CHIP:TOO: LocalConfigDisabled: TRUE - [1653464583.855212][19746:19751] CHIP:DMG: MoveToState ReadClient[0x7f7130005ab0]: Moving to [AwaitingSu] - [1653464583.855256][19746:19751] CHIP:EM: Piggybacking Ack for MessageCounter:7563414 on exchange: 10588i - [1653464583.855305][19746:19751] CHIP:IN: Prepared secure message 0x55f470930a48 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 10588i with MessageCounter:6505897. - [1653464583.855337][19746:19751] CHIP:IN: Sending encrypted msg 0x55f470930a48 with MessageCounter:6505897 to 0x0000000000000001 (1) at monotonic time: 00000000009A61A3 msec - [1653464583.859578][19746:19751] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:7563415 on exchange 10588i - [1653464583.859625][19746:19751] CHIP:EM: Found matching exchange: 10588i, Delegate: 0x7f7130005ab0 - [1653464583.859661][19746:19751] CHIP:EM: Rxd Ack; Removing MessageCounter:6505897 from Retrans Table on exchange 10588i - [1653464583.859689][19746:19751] CHIP:EM: Removed CHIP MessageCounter:6505897 from RetransTable on exchange 10588i - [1653464583.859734][19746:19751] CHIP:DMG: SubscribeResponseMessage = - [1653464583.859749][19746:19751] CHIP:DMG: { - [1653464583.859762][19746:19751] CHIP:DMG: SubscriptionId = 0x2d5a25e3, - [1653464583.859781][19746:19751] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653464583.859806][19746:19751] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1653464583.859828][19746:19751] CHIP:DMG: InteractionModelRevision = 1 - [1653464583.859847][19746:19751] CHIP:DMG: } + ./chip-tool basic subscribe local-config-disabled 0 100 1 0 --keepSubscriptions 0 + [1655897683.993116][1424:1424] CHIP:DMG: SubscribeRequestMessage = + [1655897683.993164][1424:1424] CHIP:DMG: { + [1655897683.993207][1424:1424] CHIP:DMG: KeepSubscriptions = false, + [1655897683.993255][1424:1424] CHIP:DMG: MinIntervalFloorSeconds = 0x0, + [1655897683.993411][1424:1424] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, + [1655897683.993464][1424:1424] CHIP:DMG: AttributePathIBs = + [1655897683.993512][1424:1424] CHIP:DMG: [ + [1655897683.993556][1424:1424] CHIP:DMG: AttributePathIB = + [1655897683.993605][1424:1424] CHIP:DMG: { + [1655897683.993656][1424:1424] CHIP:DMG: Endpoint = 0x0, + [1655897683.993713][1424:1424] CHIP:DMG: Cluster = 0x28, + [1655897683.993776][1424:1424] CHIP:DMG: Attribute = 0x0000_0010, + [1655897683.993835][1424:1424] CHIP:DMG: } + [1655897683.993891][1424:1424] CHIP:DMG: + [1655897683.993936][1424:1424] CHIP:DMG: ], + [1655897683.993987][1424:1424] CHIP:DMG: + [1655897683.994034][1424:1424] CHIP:DMG: isFabricFiltered = true, + [1655897683.994080][1424:1424] CHIP:DMG: InteractionModelRevision = 1 + [1655897683.994123][1424:1424] CHIP:DMG: }, + [1655897683.994246][1424:1424] CHIP:DMG: Final negotiated min/max parameters: Min = 0s, Max = 100s + + sudo ./chip-tool basic write local-config-disabled 1 1 0 + [1655897946.992504][1934:1939] CHIP:DMG: } + [1655897946.992554][1934:1939] CHIP:DMG: + [1655897946.992597][1934:1939] CHIP:DMG: StatusIB = + [1655897946.992643][1934:1939] CHIP:DMG: { + [1655897946.992687][1934:1939] CHIP:DMG: status = 0x00 (SUCCESS), + [1655897946.992732][1934:1939] CHIP:DMG: }, + [1655897946.992776][1934:1939] CHIP:DMG: + [1655897946.992813][1934:1939] CHIP:DMG: }, + + sudo ./chip-tool basic subscribe local-config-disabled 200 500 1 0 --keepSubscriptions 0 + [1655898064.517796][1956:1961] CHIP:DMG: ReportDataMessage = + [1655898064.517837][1956:1961] CHIP:DMG: { + [1655898064.517872][1956:1961] CHIP:DMG: SubscriptionId = 0xba6ed, + [1655898064.517909][1956:1961] CHIP:DMG: AttributeReportIBs = + [1655898064.518036][1956:1961] CHIP:DMG: [ + [1655898064.518074][1956:1961] CHIP:DMG: AttributeReportIB = + [1655898064.518121][1956:1961] CHIP:DMG: { + [1655898064.518160][1956:1961] CHIP:DMG: AttributeDataIB = + [1655898064.518211][1956:1961] CHIP:DMG: { + [1655898064.518258][1956:1961] CHIP:DMG: DataVersion = 0xf62da669, + [1655898064.518304][1956:1961] CHIP:DMG: AttributePathIB = + [1655898064.518352][1956:1961] CHIP:DMG: { + [1655898064.518403][1956:1961] CHIP:DMG: Endpoint = 0x0, + [1655898064.518454][1956:1961] CHIP:DMG: Cluster = 0x28, + [1655898064.518506][1956:1961] CHIP:DMG: Attribute = 0x0000_0010, + [1655898064.518554][1956:1961] CHIP:DMG: } + [1655898064.518600][1956:1961] CHIP:DMG: + [1655898064.518651][1956:1961] CHIP:DMG: Data = true, + [1655898064.518696][1956:1961] CHIP:DMG: }, + [1655898064.518743][1956:1961] CHIP:DMG: + [1655898064.518781][1956:1961] CHIP:DMG: }, + [1655898064.518825][1956:1961] CHIP:DMG: + [1655898064.518860][1956:1961] CHIP:DMG: ], + [1655898064.518904][1956:1961] CHIP:DMG: + [1655898064.518940][1956:1961] CHIP:DMG: InteractionModelRevision = 1 + [1655898064.518975][1956:1961] CHIP:DMG: } + [1655898064.519148][1956:1961] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 4130186857 + [1655898064.519201][1956:1961] CHIP:TOO: LocalConfigDisabled: TRUE + [1655898064.519269][1956:1961] CHIP:DMG: MoveToState ReadClient[0xffff70003590]: Moving to [AwaitingSu] disabled: true - label: @@ -645,90 +444,39 @@ tests: attribute After the Maximum interval time is elapsed, change the value of the attribute requested on the DUT." verification: | - sudo ./chip-tool basic write local-config-disabled 1 1 0 - - [1653464647.615920][19758:19763] CHIP:DMG: StatusIB = - [1653464647.615940][19758:19763] CHIP:DMG: { - [1653464647.615959][19758:19763] CHIP:DMG: status = 0x00 (SUCCESS), - [1653464647.615976][19758:19763] CHIP:DMG: }, - - sudo ./chip-tool basic subscribe local-config-disabled 0 100 1 0 - - [1653464677.814495][19798:19803] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2324923810 - [1653464677.814522][19798:19803] CHIP:TOO: LocalConfigDisabled: TRUE - [1653464677.814571][19798:19803] CHIP:DMG: MoveToState ReadClient[0x7fe884006cd0]: Moving to [AwaitingSu] - [1653464677.814616][19798:19803] CHIP:EM: Piggybacking Ack for MessageCounter:13698510 on exchange: 51112i - [1653464677.814667][19798:19803] CHIP:IN: Prepared secure message 0x5602c0b7aaf8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 51112i with MessageCounter:575272. - [1653464677.814698][19798:19803] CHIP:IN: Sending encrypted msg 0x5602c0b7aaf8 with MessageCounter:575272 to 0x0000000000000001 (1) at monotonic time: 00000000009BD0AB msec - [1653464677.821795][19798:19803] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:13698511 on exchange 51112i - [1653464677.821832][19798:19803] CHIP:EM: Found matching exchange: 51112i, Delegate: 0x7fe884006cd0 - [1653464677.821859][19798:19803] CHIP:EM: Rxd Ack; Removing MessageCounter:575272 from Retrans Table on exchange 51112i - [1653464677.821877][19798:19803] CHIP:EM: Removed CHIP MessageCounter:575272 from RetransTable on exchange 51112i - [1653464677.821926][19798:19803] CHIP:DMG: SubscribeResponseMessage = - [1653464677.821943][19798:19803] CHIP:DMG: { - [1653464677.821956][19798:19803] CHIP:DMG: SubscriptionId = 0x7d224f31, - [1653464677.821970][19798:19803] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653464677.821983][19798:19803] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1653464677.821996][19798:19803] CHIP:DMG: InteractionModelRevision = 1 - [1653464677.822007][19798:19803] CHIP:DMG: } - - sudo ./chip-tool basic write local-config-disabled 0 1 0 - - [1653464719.762143][19924:19929] CHIP:DMG: StatusIB = - [1653464719.762166][19924:19929] CHIP:DMG: { - [1653464719.762186][19924:19929] CHIP:DMG: status = 0x00 (SUCCESS), - [1653464719.762210][19924:19929] CHIP:DMG: }, - - - sudo ./chip-tool basic subscribe local-config-disabled 0 100 1 0 - - - [1653464757.024706][19936:19941] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2324923811 - [1653464757.024735][19936:19941] CHIP:TOO: LocalConfigDisabled: FALSE - [1653464757.024769][19936:19941] CHIP:DMG: MoveToState ReadClient[0x7efe28007700]: Moving to [AwaitingSu] - [1653464757.024799][19936:19941] CHIP:EM: Piggybacking Ack for MessageCounter:5206161 on exchange: 26375i - [1653464757.024859][19936:19941] CHIP:IN: Prepared secure message 0x5590ceb1e6b8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 26375i with MessageCounter:557407. - [1653464757.024886][19936:19941] CHIP:IN: Sending encrypted msg 0x5590ceb1e6b8 with MessageCounter:557407 to 0x0000000000000001 (1) at monotonic time: 00000000009D0615 msec - [1653464757.034562][19936:19941] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:5206162 on exchange 26375i - [1653464757.034598][19936:19941] CHIP:EM: Found matching exchange: 26375i, Delegate: 0x7efe28007700 - [1653464757.034622][19936:19941] CHIP:EM: Rxd Ack; Removing MessageCounter:557407 from Retrans Table on exchange 26375i - [1653464757.034634][19936:19941] CHIP:EM: Removed CHIP MessageCounter:557407 from RetransTable on exchange 26375i - [1653464757.034699][19936:19941] CHIP:DMG: SubscribeResponseMessage = - [1653464757.034722][19936:19941] CHIP:DMG: { - [1653464757.034739][19936:19941] CHIP:DMG: SubscriptionId = 0x7bb8ea47, - [1653464757.034756][19936:19941] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653464757.034773][19936:19941] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1653464757.034789][19936:19941] CHIP:DMG: InteractionModelRevision = 1 - [1653464757.034806][19936:19941] CHIP:DMG: } + ./chip-tool userlabel subscribe label-list 100 500 1 0 + [1655896309.160632][1885:1890] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0041 Attribute 0x0000_0000 DataVersion: 3773922725 + [1655896309.160795][1885:1890] CHIP:TOO: label list: 0 entries + [1655896309.160851][1885:1890] CHIP:DMG: MoveToState ReadClient[0xffffa0005710]: Moving to [AwaitingSu] + + + ./chip-tool userlabel write label-list '[{"label":"room", "value":"bedroom 1"}, {"label":"orientation", "value":"east"}]' 1 0 + [1655896383.439036][1893:1898] CHIP:DMG: StatusIB = + [1655896383.439109][1893:1898] CHIP:DMG: { + [1655896383.439183][1893:1898] CHIP:DMG: status = 0x00 (SUCCESS), + [1655896383.439264][1893:1898] CHIP:DMG: }, + + ./chip-tool userlabel subscribe label-list 100 500 1 0 + [1655896422.936972][1899:1904] CHIP:DMG: } + [1655896422.937347][1899:1904] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0041 Attribute 0x0000_0000 DataVersion: 3773922728 + [1655896422.937478][1899:1904] CHIP:TOO: label list: 2 entries + [1655896422.937612][1899:1904] CHIP:TOO: [1]: { + [1655896422.937658][1899:1904] CHIP:TOO: Label: room + [1655896422.937697][1899:1904] CHIP:TOO: Value: bedroom 1 + [1655896422.937738][1899:1904] CHIP:TOO: } + [1655896422.937789][1899:1904] CHIP:TOO: [2]: { + [1655896422.937830][1899:1904] CHIP:TOO: Label: orientation + [1655896422.937868][1899:1904] CHIP:TOO: Value: east + [1655896422.937907][1899:1904] CHIP:TOO: } + [1655896422.938019][1899:1904] CHIP:DMG: MoveToState ReadClient[0xffff6c006120]: Moving to [AwaitingSu] + [1655896422.938098][1899:1904] CHIP:EM: Piggybacking Ack for MessageCounter:178495354 on exchange: 58101i disabled: true - label: "Activate the subscription between the DUT and the TH for an attribute Reboot the DUT. Change the value of the attribute on the DUT." verification: | - sudo ./chip-tool basic subscribe local-config-disabled 0 100 1 0 - [1653464677.814495][19798:19803] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0010 DataVersion: 2324923810 - [1653464677.814522][19798:19803] CHIP:TOO: LocalConfigDisabled: TRUE - [1653464677.814571][19798:19803] CHIP:DMG: MoveToState ReadClient[0x7fe884006cd0]: Moving to [AwaitingSu] - [1653464677.814616][19798:19803] CHIP:EM: Piggybacking Ack for MessageCounter:13698510 on exchange: 51112i - [1653464677.814667][19798:19803] CHIP:IN: Prepared secure message 0x5602c0b7aaf8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 51112i with MessageCounter:575272. - [1653464677.814698][19798:19803] CHIP:IN: Sending encrypted msg 0x5602c0b7aaf8 with MessageCounter:575272 to 0x0000000000000001 (1) at monotonic time: 00000000009BD0AB msec - [1653464677.821795][19798:19803] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:13698511 on exchange 51112i - [1653464677.821832][19798:19803] CHIP:EM: Found matching exchange: 51112i, Delegate: 0x7fe884006cd0 - [1653464677.821859][19798:19803] CHIP:EM: Rxd Ack; Removing MessageCounter:575272 from Retrans Table on exchange 51112i - [1653464677.821877][19798:19803] CHIP:EM: Removed CHIP MessageCounter:575272 from RetransTable on exchange 51112i - [1653464677.821926][19798:19803] CHIP:DMG: SubscribeResponseMessage = - [1653464677.821943][19798:19803] CHIP:DMG: { - [1653464677.821956][19798:19803] CHIP:DMG: SubscriptionId = 0x7d224f31, - [1653464677.821970][19798:19803] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653464677.821983][19798:19803] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1653464677.821996][19798:19803] CHIP:DMG: InteractionModelRevision = 1 - [1653464677.822007][19798:19803] CHIP:DMG: } - - reboot the DUT using factory reset method - - Change the attribute value by sending attribute value and verify DUT fails to send changed attribute value. disabled: true - label: @@ -775,122 +523,103 @@ tests: to the DUT for another attribute with the KeepSubscriptions flag set to True. Change both the attribute values on the DUT." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - - onoff subscribe off-wait-time 100 1000 1 1 --keepSubscriptions 1 - - [1653473183.208514][21558:21563] CHIP:DMG: ReportDataMessage = - [1653473183.208542][21558:21563] CHIP:DMG: { - [1653473183.208571][21558:21563] CHIP:DMG: SubscriptionId = 0x75817f8c, - [1653473183.208595][21558:21563] CHIP:DMG: AttributeReportIBs = - [1653473183.208634][21558:21563] CHIP:DMG: [ - [1653473183.208655][21558:21563] CHIP:DMG: AttributeReportIB = - [1653473183.208692][21558:21563] CHIP:DMG: { - [1653473183.208715][21558:21563] CHIP:DMG: AttributeDataIB = - [1653473183.208743][21558:21563] CHIP:DMG: { - [1653473183.208770][21558:21563] CHIP:DMG: DataVersion = 0xbf2fc26e, - [1653473183.208794][21558:21563] CHIP:DMG: AttributePathIB = - [1653473183.208863][21558:21563] CHIP:DMG: { - [1653473183.208902][21558:21563] CHIP:DMG: Endpoint = 0x1, - [1653473183.208931][21558:21563] CHIP:DMG: Cluster = 0x6, - [1653473183.208960][21558:21563] CHIP:DMG: Attribute = 0x0000_4002, - [1653473183.208988][21558:21563] CHIP:DMG: } - [1653473183.209021][21558:21563] CHIP:DMG: - [1653473183.209050][21558:21563] CHIP:DMG: Data = 0, - [1653473183.209073][21558:21563] CHIP:DMG: }, - [1653473183.209107][21558:21563] CHIP:DMG: - [1653473183.209127][21558:21563] CHIP:DMG: }, - [1653473183.209160][21558:21563] CHIP:DMG: - [1653473183.209180][21558:21563] CHIP:DMG: ], - [1653473183.209215][21558:21563] CHIP:DMG: - [1653473183.209236][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653473183.209257][21558:21563] CHIP:DMG: } - [1653473183.209384][21558:21563] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4002 DataVersion: 3207578222 - [1653473183.209421][21558:21563] CHIP:TOO: OffWaitTime: 0 - - onoff subscribe on-time 100 1000 1 1 --keepSubscriptions 1 - - [1653473048.980181][21558:21563] CHIP:DMG: ReportDataMessage = - [1653473048.980202][21558:21563] CHIP:DMG: { - [1653473048.980219][21558:21563] CHIP:DMG: SubscriptionId = 0x29adb83a, - [1653473048.980233][21558:21563] CHIP:DMG: AttributeReportIBs = - [1653473048.980258][21558:21563] CHIP:DMG: [ - [1653473048.980276][21558:21563] CHIP:DMG: AttributeReportIB = - [1653473048.980305][21558:21563] CHIP:DMG: { - [1653473048.980323][21558:21563] CHIP:DMG: AttributeDataIB = - [1653473048.980354][21558:21563] CHIP:DMG: { - [1653473048.980376][21558:21563] CHIP:DMG: DataVersion = 0xbf2fc26d, - [1653473048.980392][21558:21563] CHIP:DMG: AttributePathIB = - [1653473048.980411][21558:21563] CHIP:DMG: { - [1653473048.980440][21558:21563] CHIP:DMG: Endpoint = 0x1, - [1653473048.980463][21558:21563] CHIP:DMG: Cluster = 0x6, - [1653473048.980487][21558:21563] CHIP:DMG: Attribute = 0x0000_4001, - [1653473048.980507][21558:21563] CHIP:DMG: } - [1653473048.980532][21558:21563] CHIP:DMG: - [1653473048.980556][21558:21563] CHIP:DMG: Data = 0, - [1653473048.980576][21558:21563] CHIP:DMG: }, - [1653473048.980598][21558:21563] CHIP:DMG: - [1653473048.980617][21558:21563] CHIP:DMG: }, - [1653473048.980644][21558:21563] CHIP:DMG: - [1653473048.980661][21558:21563] CHIP:DMG: ], - [1653473048.980690][21558:21563] CHIP:DMG: - [1653473048.980708][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653473048.980726][21558:21563] CHIP:DMG: } - [1653473048.980887][21558:21563] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 3207578221 - [1653473048.980930][21558:21563] CHIP:TOO: OnTime: 0 - [1653473048.980994][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc003d90]: Moving to [AwaitingSu] - - onoff write on-time 2 1 1 - [1654239682.807602][3235:3240] CHIP:DMG: WriteResponseMessage = - [1654239682.807629][3235:3240] CHIP:DMG: { - [1654239682.807651][3235:3240] CHIP:DMG: AttributeStatusIBs = - [1654239682.807682][3235:3240] CHIP:DMG: [ - [1654239682.807707][3235:3240] CHIP:DMG: AttributeStatusIB = - [1654239682.807735][3235:3240] CHIP:DMG: { - [1654239682.807760][3235:3240] CHIP:DMG: AttributePathIB = - [1654239682.807797][3235:3240] CHIP:DMG: { - [1654239682.807833][3235:3240] CHIP:DMG: Endpoint = 0x1, - [1654239682.807872][3235:3240] CHIP:DMG: Cluster = 0x6, - [1654239682.807909][3235:3240] CHIP:DMG: Attribute = 0x0000_4001, - [1654239682.807943][3235:3240] CHIP:DMG: } - [1654239682.807979][3235:3240] CHIP:DMG: - [1654239682.808010][3235:3240] CHIP:DMG: StatusIB = - [1654239682.808042][3235:3240] CHIP:DMG: { - [1654239682.808073][3235:3240] CHIP:DMG: status = 0x00 (SUCCESS), - [1654239682.808107][3235:3240] CHIP:DMG: }, - [1654239682.808139][3235:3240] CHIP:DMG: - [1654239682.808165][3235:3240] CHIP:DMG: }, - [1654239682.808194][3235:3240] CHIP:DMG: - [1654239682.808218][3235:3240] CHIP:DMG: ], - [1654239682.808247][3235:3240] CHIP:DMG: - [1654239682.808271][3235:3240] CHIP:DMG: InteractionModelRevision = 1 - [1654239682.808294][3235:3240] CHIP:DMG: } - - onoff write off-wait-time 3 1 1 - [1653473207.686171][1507:1507] CHIP:DMG: WriteRequestMessage = - [1653473207.686233][1507:1507] CHIP:DMG: { - [1653473207.686290][1507:1507] CHIP:DMG: suppressResponse = false, - [1653473207.686394][1507:1507] CHIP:DMG: timedRequest = false, - [1653473207.686454][1507:1507] CHIP:DMG: AttributeDataIBs = - [1653473207.686550][1507:1507] CHIP:DMG: [ - [1653473207.686611][1507:1507] CHIP:DMG: AttributeDataIB = - [1653473207.686710][1507:1507] CHIP:DMG: { - [1653473207.686775][1507:1507] CHIP:DMG: AttributePathIB = - [1653473207.686872][1507:1507] CHIP:DMG: { - [1653473207.686973][1507:1507] CHIP:DMG: Endpoint = 0x1, - [1653473207.687057][1507:1507] CHIP:DMG: Cluster = 0x6, - [1653473207.687163][1507:1507] CHIP:DMG: Attribute = 0x0000_4002, - [1653473207.687267][1507:1507] CHIP:DMG: } - [1653473207.687358][1507:1507] CHIP:DMG: - [1653473207.687460][1507:1507] CHIP:DMG: Data = 3, - [1653473207.687558][1507:1507] CHIP:DMG: }, - [1653473207.687638][1507:1507] CHIP:DMG: - [1653473207.687722][1507:1507] CHIP:DMG: ], - [1653473207.687795][1507:1507] CHIP:DMG: - [1653473207.687855][1507:1507] CHIP:DMG: moreChunkedMessages = false, - [1653473207.687916][1507:1507] CHIP:DMG: InteractionModelRevision = 1 - [1653473207.687974][1507:1507] CHIP:DMG: } + sudo ./chip-tool onoff subscribe off-wait-time 100 1000 1 1 --keepSubscriptions 1 + [1655898311.301185][1424:1424] CHIP:EM: Removed CHIP MessageCounter:187890668 from RetransTable on exchange 62245r + [1655898311.301229][1424:1424] CHIP:DMG: StatusResponseMessage = + [1655898311.301256][1424:1424] CHIP:DMG: { + [1655898311.301279][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655898311.301304][1424:1424] CHIP:DMG: InteractionModelRevision = 1 + [1655898311.301327][1424:1424] CHIP:DMG: } + [1655898311.301350][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655898311.301385][1424:1424] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + sudo ./chip-tool onoff subscribe on-time 100 1000 1 1 --keepSubscriptions 1 + [1655898429.764898][1424:1424] CHIP:EM: Removed CHIP MessageCounter:256700476 from RetransTable on exchange 46197r + [1655898429.764940][1424:1424] CHIP:DMG: StatusResponseMessage = + [1655898429.764966][1424:1424] CHIP:DMG: { + [1655898429.764989][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655898429.765014][1424:1424] CHIP:DMG: InteractionModelRevision = 1 + [1655898429.765037][1424:1424] CHIP:DMG: } + [1655898429.765060][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655898429.765095][1424:1424] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + sudo ./chip-tool onoff write off-wait-time 3 1 1 + [1655898493.521309][2009:2014] CHIP:DMG: StatusIB = + [1655898493.521352][2009:2014] CHIP:DMG: { + [1655898493.521392][2009:2014] CHIP:DMG: status = 0x00 (SUCCESS), + [1655898493.521438][2009:2014] CHIP:DMG: }, + + sudo ./chip-tool onoff write on-time 2 1 1 + [1655898534.627669][2019:2024] CHIP:DMG: + [1655898534.627712][2019:2024] CHIP:DMG: StatusIB = + [1655898534.627757][2019:2024] CHIP:DMG: { + [1655898534.627802][2019:2024] CHIP:DMG: status = 0x00 (SUCCESS), + [1655898534.627848][2019:2024] CHIP:DMG: }, + [1655898534.627892][2019:2024] CHIP:DMG: + + sudo ./chip-tool onoff subscribe off-wait-time 100 1000 1 1 --keepSubscriptions 1 + [1655898566.833039][2027:2032] CHIP:DMG: ReportDataMessage = + [1655898566.833079][2027:2032] CHIP:DMG: { + [1655898566.833115][2027:2032] CHIP:DMG: SubscriptionId = 0xeb08d8e5, + [1655898566.833151][2027:2032] CHIP:DMG: AttributeReportIBs = + [1655898566.833195][2027:2032] CHIP:DMG: [ + [1655898566.833231][2027:2032] CHIP:DMG: AttributeReportIB = + [1655898566.833277][2027:2032] CHIP:DMG: { + [1655898566.833314][2027:2032] CHIP:DMG: AttributeDataIB = + [1655898566.833358][2027:2032] CHIP:DMG: { + [1655898566.833407][2027:2032] CHIP:DMG: DataVersion = 0x25c36a99, + [1655898566.833453][2027:2032] CHIP:DMG: AttributePathIB = + [1655898566.833501][2027:2032] CHIP:DMG: { + [1655898566.833551][2027:2032] CHIP:DMG: Endpoint = 0x1, + [1655898566.833602][2027:2032] CHIP:DMG: Cluster = 0x6, + [1655898566.833653][2027:2032] CHIP:DMG: Attribute = 0x0000_4002, + [1655898566.833705][2027:2032] CHIP:DMG: } + [1655898566.833756][2027:2032] CHIP:DMG: + [1655898566.833806][2027:2032] CHIP:DMG: Data = 3, + [1655898566.833851][2027:2032] CHIP:DMG: }, + [1655898566.833898][2027:2032] CHIP:DMG: + [1655898566.833972][2027:2032] CHIP:DMG: }, + [1655898566.834017][2027:2032] CHIP:DMG: + [1655898566.834052][2027:2032] CHIP:DMG: ], + [1655898566.834096][2027:2032] CHIP:DMG: + [1655898566.834131][2027:2032] CHIP:DMG: InteractionModelRevision = 1 + [1655898566.834164][2027:2032] CHIP:DMG: } + [1655898566.834337][2027:2032] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4002 DataVersion: 633563801 + [1655898566.834423][2027:2032] CHIP:TOO: OffWaitTime: 3 + [1655898566.834476][2027:2032] CHIP:DMG: MoveToState ReadClient[0xffff90006670]: Moving to [AwaitingSu] + + + + sudo ./chip-tool onoff subscribe on-time 100 1000 1 1 --keepSubscriptions 1 + [1655898621.689883][2035:2040] CHIP:DMG: ReportDataMessage = + [1655898621.689941][2035:2040] CHIP:DMG: { + [1655898621.689976][2035:2040] CHIP:DMG: SubscriptionId = 0x8b29faa2, + [1655898621.690009][2035:2040] CHIP:DMG: AttributeReportIBs = + [1655898621.690051][2035:2040] CHIP:DMG: [ + [1655898621.690084][2035:2040] CHIP:DMG: AttributeReportIB = + [1655898621.690128][2035:2040] CHIP:DMG: { + [1655898621.690162][2035:2040] CHIP:DMG: AttributeDataIB = + [1655898621.690207][2035:2040] CHIP:DMG: { + [1655898621.690250][2035:2040] CHIP:DMG: DataVersion = 0x25c36a99, + [1655898621.690292][2035:2040] CHIP:DMG: AttributePathIB = + [1655898621.690336][2035:2040] CHIP:DMG: { + [1655898621.690385][2035:2040] CHIP:DMG: Endpoint = 0x1, + [1655898621.690432][2035:2040] CHIP:DMG: Cluster = 0x6, + [1655898621.690478][2035:2040] CHIP:DMG: Attribute = 0x0000_4001, + [1655898621.690522][2035:2040] CHIP:DMG: } + [1655898621.690569][2035:2040] CHIP:DMG: + [1655898621.690614][2035:2040] CHIP:DMG: Data = 2, + [1655898621.690655][2035:2040] CHIP:DMG: }, + [1655898621.690698][2035:2040] CHIP:DMG: + [1655898621.690735][2035:2040] CHIP:DMG: }, + [1655898621.690775][2035:2040] CHIP:DMG: + [1655898621.690806][2035:2040] CHIP:DMG: ], + [1655898621.690847][2035:2040] CHIP:DMG: + [1655898621.690879][2035:2040] CHIP:DMG: InteractionModelRevision = 1 + [1655898621.690909][2035:2040] CHIP:DMG: } + [1655898621.691073][2035:2040] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 633563801 + [1655898621.691154][2035:2040] CHIP:TOO: OnTime: 2 + [1655898621.691204][2035:2040] CHIP:DMG: MoveToState ReadClient[0xffff68006bc0]: Moving to [AwaitingSu] disabled: true - label: @@ -900,88 +629,68 @@ tests: to the DUT for another attribute with the KeepSubscriptions flag set to False. Change both the attribute values on the DUT." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - - onoff subscribe on-time 100 1000 1 1 --keepSubscriptions 1 - - [1653473413.660423][21558:21563] CHIP:DMG: ReportDataMessage = - [1653473413.660448][21558:21563] CHIP:DMG: { - [1653473413.660471][21558:21563] CHIP:DMG: SubscriptionId = 0x35e946cb, - [1653473413.660492][21558:21563] CHIP:DMG: AttributeReportIBs = - [1653473413.660521][21558:21563] CHIP:DMG: [ - [1653473413.660540][21558:21563] CHIP:DMG: AttributeReportIB = - [1653473413.660570][21558:21563] CHIP:DMG: { - [1653473413.660590][21558:21563] CHIP:DMG: AttributeDataIB = - [1653473413.660612][21558:21563] CHIP:DMG: { - [1653473413.660636][21558:21563] CHIP:DMG: DataVersion = 0xbf2fc26f, - [1653473413.660656][21558:21563] CHIP:DMG: AttributePathIB = - [1653473413.660681][21558:21563] CHIP:DMG: { - [1653473413.660704][21558:21563] CHIP:DMG: Endpoint = 0x1, - [1653473413.660733][21558:21563] CHIP:DMG: Cluster = 0x6, - [1653473413.660759][21558:21563] CHIP:DMG: Attribute = 0x0000_4001, - [1653473413.660782][21558:21563] CHIP:DMG: } - [1653473413.660808][21558:21563] CHIP:DMG: - [1653473413.660874][21558:21563] CHIP:DMG: Data = 2, - [1653473413.660910][21558:21563] CHIP:DMG: }, - [1653473413.660968][21558:21563] CHIP:DMG: - [1653473413.660990][21558:21563] CHIP:DMG: }, - [1653473413.661017][21558:21563] CHIP:DMG: - [1653473413.661035][21558:21563] CHIP:DMG: ], - [1653473413.661063][21558:21563] CHIP:DMG: - [1653473413.661081][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653473413.661098][21558:21563] CHIP:DMG: } - [1653473413.661214][21558:21563] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 3207578223 - [1653473413.661246][21558:21563] CHIP:TOO: OnTime: 2 - - onoff subscribe off-wait-time 100 1000 1 1 --keepSubscriptions 0 - [1653473420.739901][21558:21563] CHIP:DMG: ReportDataMessage = - [1653473420.739928][21558:21563] CHIP:DMG: { - [1653473420.739945][21558:21563] CHIP:DMG: SubscriptionId = 0x2293d74e, - [1653473420.739959][21558:21563] CHIP:DMG: AttributeReportIBs = - [1653473420.739984][21558:21563] CHIP:DMG: [ - [1653473420.740005][21558:21563] CHIP:DMG: AttributeReportIB = - [1653473420.740034][21558:21563] CHIP:DMG: { - [1653473420.740049][21558:21563] CHIP:DMG: AttributeDataIB = - [1653473420.740072][21558:21563] CHIP:DMG: { - [1653473420.740095][21558:21563] CHIP:DMG: DataVersion = 0xbf2fc26f, - [1653473420.740116][21558:21563] CHIP:DMG: AttributePathIB = - [1653473420.740138][21558:21563] CHIP:DMG: { - [1653473420.740161][21558:21563] CHIP:DMG: Endpoint = 0x1, - [1653473420.740183][21558:21563] CHIP:DMG: Cluster = 0x6, - [1653473420.740207][21558:21563] CHIP:DMG: Attribute = 0x0000_4002, - [1653473420.740228][21558:21563] CHIP:DMG: } - [1653473420.740253][21558:21563] CHIP:DMG: - [1653473420.740277][21558:21563] CHIP:DMG: Data = 3, - [1653473420.740297][21558:21563] CHIP:DMG: }, - [1653473420.740323][21558:21563] CHIP:DMG: - [1653473420.740342][21558:21563] CHIP:DMG: }, - [1653473420.740368][21558:21563] CHIP:DMG: - [1653473420.740386][21558:21563] CHIP:DMG: ], - [1653473420.740414][21558:21563] CHIP:DMG: - [1653473420.740433][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653473420.740450][21558:21563] CHIP:DMG: } - [1653473420.740566][21558:21563] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4002 DataVersion: 3207578223 - [1653473420.740601][21558:21563] CHIP:TOO: OffWaitTime: 3 - - onoff write on-time 2 1 1 - [1653473446.598647][21558:21563] CHIP:DMG: StatusIB = - [1653473446.598668][21558:21563] CHIP:DMG: { - [1653473446.598689][21558:21563] CHIP:DMG: status = 0x00 (SUCCESS), - [1653473446.598708][21558:21563] CHIP:DMG: }, - - onoff write off-wait-time 3 1 1 - [1653473455.212291][21558:21563] CHIP:DMG: StatusIB = - [1653473455.212313][21558:21563] CHIP:DMG: { - [1653473455.212335][21558:21563] CHIP:DMG: status = 0x00 (SUCCESS), - [1653473455.212354][21558:21563] CHIP:DMG: }, - [1653473455.212376][21558:21563] CHIP:DMG: - - - onoff subscribe on-time 100 1000 1 1 - [1653473471.271631][21558:21563] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 3207578225 - [1653473471.271692][21558:21563] CHIP:TOO: OnTime: 2 - [1653473471.271749][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc003d90]: Moving to [AwaitingSu] + sudo ./chip-tool onoff subscribe on-time 100 1000 1 1 --keepSubscriptions 1 + [1655898720.752290][1424:1424] CHIP:EM: Removed CHIP MessageCounter:242672799 from RetransTable on exchange 1309r + [1655898720.752333][1424:1424] CHIP:DMG: StatusResponseMessage = + [1655898720.752360][1424:1424] CHIP:DMG: { + [1655898720.752384][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655898720.752409][1424:1424] CHIP:DMG: InteractionModelRevision = 1 + [1655898720.752432][1424:1424] CHIP:DMG: } + [1655898720.752455][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655898720.752490][1424:1424] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + sudo ./chip-tool onoff subscribe off-wait-time 100 1000 1 1 --keepSubscriptions 0 + [1655898785.428573][1424:1424] CHIP:DMG: StatusResponseMessage = + [1655898785.428600][1424:1424] CHIP:DMG: { + [1655898785.428621][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655898785.428646][1424:1424] CHIP:DMG: InteractionModelRevision = 1 + [1655898785.428668][1424:1424] CHIP:DMG: } + [1655898785.428691][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655898785.428727][1424:1424] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + sudo ./chip-tool onoff write on-time 1 1 1 + [1655898874.614226][2072:2077] CHIP:DMG: StatusIB = + [1655898874.614267][2072:2077] CHIP:DMG: { + [1655898874.614307][2072:2077] CHIP:DMG: status = 0x00 (SUCCESS), + [1655898874.614349][2072:2077] CHIP:DMG: }, + + sudo ./chip-tool onoff write off-wait-time 2 1 1 + [1655899018.113489][2082:2087] CHIP:DMG: StatusIB = + [1655899018.113539][2082:2087] CHIP:DMG: { + [1655899018.113588][2082:2087] CHIP:DMG: status = 0x00 (SUCCESS), + [1655899018.113643][2082:2087] CHIP:DMG: }, + + sudo ./chip-tool onoff subscribe on-time 100 1000 1 1 + [1655899051.784907][2091:2096] CHIP:DMG: ReportDataMessage = + [1655899051.784952][2091:2096] CHIP:DMG: { + [1655899051.784992][2091:2096] CHIP:DMG: SubscriptionId = 0x68a034c4, + [1655899051.785032][2091:2096] CHIP:DMG: AttributeReportIBs = + [1655899051.785081][2091:2096] CHIP:DMG: [ + [1655899051.785122][2091:2096] CHIP:DMG: AttributeReportIB = + [1655899051.785174][2091:2096] CHIP:DMG: { + [1655899051.785216][2091:2096] CHIP:DMG: AttributeDataIB = + [1655899051.785266][2091:2096] CHIP:DMG: { + [1655899051.785317][2091:2096] CHIP:DMG: DataVersion = 0x25c36a9c, + [1655899051.785372][2091:2096] CHIP:DMG: AttributePathIB = + [1655899051.785425][2091:2096] CHIP:DMG: { + [1655899051.785479][2091:2096] CHIP:DMG: Endpoint = 0x1, + [1655899051.785541][2091:2096] CHIP:DMG: Cluster = 0x6, + [1655899051.785597][2091:2096] CHIP:DMG: Attribute = 0x0000_4001, + [1655899051.785649][2091:2096] CHIP:DMG: } + [1655899051.785704][2091:2096] CHIP:DMG: + [1655899051.785760][2091:2096] CHIP:DMG: Data = 1, + [1655899051.785809][2091:2096] CHIP:DMG: }, + [1655899051.785863][2091:2096] CHIP:DMG: + [1655899051.785905][2091:2096] CHIP:DMG: }, + [1655899051.786016][2091:2096] CHIP:DMG: + [1655899051.786058][2091:2096] CHIP:DMG: ], + [1655899051.786107][2091:2096] CHIP:DMG: + [1655899051.786147][2091:2096] CHIP:DMG: InteractionModelRevision = 1 + [1655899051.786185][2091:2096] CHIP:DMG: } + [1655899051.786376][2091:2096] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_4001 DataVersion: 633563804 + [1655899051.786468][2091:2096] CHIP:TOO: OnTime: 1 + [1655899051.786528][2091:2096] CHIP:DMG: MoveToState ReadClient[0xffff800080d0]: Moving to [AwaitingSu] disabled: true - label: @@ -990,7 +699,7 @@ tests: Change the value of the attribute and trigger an action on the DUT to trigger any event.' verification: | - + https://github.com/CHIP-Specifications/chip-test-plans/issues/1373 disabled: true - label: @@ -999,7 +708,7 @@ tests: the MinIntervalFloor to some value say "N"(seconds). Change all or few of the attributes on the DUT' verification: | - + Out of Scope for V1.0 disabled: true - label: @@ -1008,48 +717,7 @@ tests: Attribute, Cluster = ClusterID ]]. Set the MinIntervalFloor to some value say "N"(seconds). Change the attribute on the DUT' verification: | - This test case has been modified, please update the verification step - Use interactive mode to verify this - ./chip-tool start interactive mood - - onoff subscribe on-off 100 1000 1 1 - - [1653471711.843070][21032:21037] CHIP:DMG: ReportDataMessage = - [1653471711.843103][21032:21037] CHIP:DMG: { - [1653471711.843136][21032:21037] CHIP:DMG: SubscriptionId = 0x352176f5, - [1653471711.843166][21032:21037] CHIP:DMG: AttributeReportIBs = - [1653471711.843212][21032:21037] CHIP:DMG: [ - [1653471711.843239][21032:21037] CHIP:DMG: AttributeReportIB = - [1653471711.843284][21032:21037] CHIP:DMG: { - [1653471711.843310][21032:21037] CHIP:DMG: AttributeDataIB = - [1653471711.843344][21032:21037] CHIP:DMG: { - [1653471711.843372][21032:21037] CHIP:DMG: DataVersion = 0xbf2fc26d, - [1653471711.843404][21032:21037] CHIP:DMG: AttributePathIB = - [1653471711.843437][21032:21037] CHIP:DMG: { - [1653471711.843464][21032:21037] CHIP:DMG: Endpoint = 0x1, - [1653471711.843505][21032:21037] CHIP:DMG: Cluster = 0x6, - [1653471711.843536][21032:21037] CHIP:DMG: Attribute = 0x0000_0000, - [1653471711.843560][21032:21037] CHIP:DMG: } - [1653471711.843589][21032:21037] CHIP:DMG: - [1653471711.843615][21032:21037] CHIP:DMG: Data = false, - [1653471711.843647][21032:21037] CHIP:DMG: }, - [1653471711.843686][21032:21037] CHIP:DMG: - [1653471711.843710][21032:21037] CHIP:DMG: }, - [1653471711.843748][21032:21037] CHIP:DMG: - [1653471711.843771][21032:21037] CHIP:DMG: ], - [1653471711.843831][21032:21037] CHIP:DMG: - [1653471711.843852][21032:21037] CHIP:DMG: InteractionModelRevision = 1 - [1653471711.843873][21032:21037] CHIP:DMG: } - [1653471711.844008][21032:21037] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 3207578221 - [1653471711.844042][21032:21037] CHIP:TOO: OnOff: FALSE - - - onoff subscribe on-off 100 1000 1 1 --data-version 0xbf2fc26d - [1653471816.642239][21032:21037] CHIP:DMG: ReportDataMessage = - [1653471816.642244][21032:21037] CHIP:DMG: { - [1653471816.642250][21032:21037] CHIP:DMG: SubscriptionId = 0xe9e61b04, - [1653471816.642256][21032:21037] CHIP:DMG: InteractionModelRevision = 1 - [1653471816.642261][21032:21037] CHIP:DMG: } + Out of Scope for V1.0 disabled: true - label: @@ -1058,75 +726,7 @@ tests: MinIntervalFloor to some value say "N"(seconds). Change all or few of the attributes on the DUT' verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - identify subscribe-by-id 0x00 800 800 3 1 - - [1653656592.465788][14560:14565] CHIP:DMG: ReportDataMessage = - [1653656592.465817][14560:14565] CHIP:DMG: { - [1653656592.465834][14560:14565] CHIP:DMG: SubscriptionId = 0xc657316f, - [1653656592.465848][14560:14565] CHIP:DMG: AttributeReportIBs = - [1653656592.465872][14560:14565] CHIP:DMG: [ - [1653656592.465886][14560:14565] CHIP:DMG: AttributeReportIB = - [1653656592.465910][14560:14565] CHIP:DMG: { - [1653656592.465924][14560:14565] CHIP:DMG: AttributeDataIB = - [1653656592.465941][14560:14565] CHIP:DMG: { - [1653656592.465959][14560:14565] CHIP:DMG: DataVersion = 0xb45ba0b9, - [1653656592.465975][14560:14565] CHIP:DMG: AttributePathIB = - [1653656592.465998][14560:14565] CHIP:DMG: { - [1653656592.466031][14560:14565] CHIP:DMG: Endpoint = 0x1, - [1653656592.466054][14560:14565] CHIP:DMG: Cluster = 0x3, - [1653656592.466077][14560:14565] CHIP:DMG: Attribute = 0x0000_0000, - [1653656592.466097][14560:14565] CHIP:DMG: } - [1653656592.466122][14560:14565] CHIP:DMG: - [1653656592.466146][14560:14565] CHIP:DMG: Data = 0, - [1653656592.466166][14560:14565] CHIP:DMG: }, - [1653656592.466192][14560:14565] CHIP:DMG: - [1653656592.466210][14560:14565] CHIP:DMG: }, - [1653656592.466236][14560:14565] CHIP:DMG: - [1653656592.466253][14560:14565] CHIP:DMG: ], - [1653656592.466281][14560:14565] CHIP:DMG: - [1653656592.466300][14560:14565] CHIP:DMG: InteractionModelRevision = 1 - [1653656592.466318][14560:14565] CHIP:DMG: } - [1653656592.466465][14560:14565] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0000 DataVersion: 3025903801 - [1653656592.466516][14560:14565] CHIP:TOO: identify time: 0 - - identify write-by-id 0x00 2 3 1 - [1653656682.729852][14560:14565] CHIP:DMG: StatusIB = - [1653656682.729863][14560:14565] CHIP:DMG: { - [1653656682.729873][14560:14565] CHIP:DMG: status = 0x00 (SUCCESS), - [1653656682.729881][14560:14565] CHIP:DMG: }, - - identify subscribe-by-id 0x01 800 800 3 1 - [1653656754.979929][14560:14565] CHIP:DMG: ReportDataMessage = - [1653656754.979956][14560:14565] CHIP:DMG: { - [1653656754.979985][14560:14565] CHIP:DMG: SubscriptionId = 0x5d21ef91, - [1653656754.980010][14560:14565] CHIP:DMG: AttributeReportIBs = - [1653656754.980048][14560:14565] CHIP:DMG: [ - [1653656754.980068][14560:14565] CHIP:DMG: AttributeReportIB = - [1653656754.980103][14560:14565] CHIP:DMG: { - [1653656754.980125][14560:14565] CHIP:DMG: AttributeDataIB = - [1653656754.980154][14560:14565] CHIP:DMG: { - [1653656754.980180][14560:14565] CHIP:DMG: DataVersion = 0xb45ba0c0, - [1653656754.980207][14560:14565] CHIP:DMG: AttributePathIB = - [1653656754.980235][14560:14565] CHIP:DMG: { - [1653656754.980262][14560:14565] CHIP:DMG: Endpoint = 0x1, - [1653656754.980287][14560:14565] CHIP:DMG: Cluster = 0x3, - [1653656754.980310][14560:14565] CHIP:DMG: Attribute = 0x0000_0001, - [1653656754.980339][14560:14565] CHIP:DMG: } - [1653656754.980367][14560:14565] CHIP:DMG: - [1653656754.980390][14560:14565] CHIP:DMG: Data = 2, - [1653656754.980417][14560:14565] CHIP:DMG: }, - [1653656754.980450][14560:14565] CHIP:DMG: - [1653656754.980471][14560:14565] CHIP:DMG: }, - [1653656754.980504][14560:14565] CHIP:DMG: - [1653656754.980524][14560:14565] CHIP:DMG: ], - [1653656754.980558][14560:14565] CHIP:DMG: - [1653656754.980579][14560:14565] CHIP:DMG: InteractionModelRevision = 1 - [1653656754.980601][14560:14565] CHIP:DMG: } - [1653656754.980720][14560:14565] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 3025903808 - [1653656754.980755][14560:14565] CHIP:TOO: identify type: 2 - [1653656754.980799][14560:14565] CHIP:DMG: MoveToState ReadClient[0x7fda00004f10]: Moving to [AwaitingSu] + Out of Scope for V1.0 disabled: true - label: @@ -1135,16 +735,7 @@ tests: EndpointID]]. Set the MinIntervalFloor to some value say "N"(seconds). Change all or few of the attributes on the DUT' verification: | - sudo ./chip-tool thermostatuserinterfaceconfiguration subscribe temperature-display-mode 10000 1000 1 1 - - [1654863279.009335][32383:32388] CHIP:DMG: StatusResponseMessage = - [1654863279.009366][32383:32388] CHIP:DMG: { - [1654863279.009402][32383:32388] CHIP:DMG: Status = 0x01 (FAILURE), - [1654863279.009430][32383:32388] CHIP:DMG: InteractionModelRevision = 1 - [1654863279.009455][32383:32388] CHIP:DMG: } - [1654863279.009491][32383:32388] CHIP:IM: Received status response, status is 0x01 (FAILURE) - [1654863279.009531][32383:32388] CHIP:DMG: mResubscribePolicy is null - [1654863279.009562][32383:32388] CHIP:TOO: Error: IM Error 0x00000501: General error: 0x01 (FAILURE) + Out of Scope for V1.0 disabled: true - label: @@ -1153,5 +744,5 @@ tests: ClusterID]]. Set the MinIntervalFloor to some value say "N"(seconds). Change all or few of the attributes on the DUT' verification: | - + Out of Scope for V1.0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_5_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_5_1.yaml index defc8d5a3de041..a36e9693e2818a 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_5_1.yaml @@ -33,64 +33,83 @@ tests: Verify the DUT sent the invoke message to the TH after the specified timeout value for above command on the TH (reference all cluster app) you should see - - [1649683321.645175][2241:2241] CHIP:DMG: TimedRequestMessage = - [1649683321.645225][2241:2241] CHIP:DMG: { - [1649683321.645269][2241:2241] CHIP:DMG: TimeoutMs = 0xc8, - [1649683321.645317][2241:2241] CHIP:DMG: InteractionModelRevision = 1 - [1649683321.645360][2241:2241] CHIP:DMG: } - - [1649683321.647287][2241:2241] CHIP:DMG: InvokeRequestMessage = - [1649683321.647333][2241:2241] CHIP:DMG: { - [1649683321.647375][2241:2241] CHIP:DMG: suppressResponse = false, - [1649683321.647425][2241:2241] CHIP:DMG: timedRequest = true, - [1649683321.647470][2241:2241] CHIP:DMG: InvokeRequests = - [1649683321.647525][2241:2241] CHIP:DMG: [ - [1649683321.647571][2241:2241] CHIP:DMG: CommandDataIB = - [1649683321.647624][2241:2241] CHIP:DMG: { - [1649683321.647672][2241:2241] CHIP:DMG: CommandPathIB = - [1649683321.647719][2241:2241] CHIP:DMG: { - [1649683321.647776][2241:2241] CHIP:DMG: EndpointId = 0x1, - [1649683321.647838][2241:2241] CHIP:DMG: ClusterId = 0x6, - [1649683321.647899][2241:2241] CHIP:DMG: CommandId = 0x1, - [1649683321.647957][2241:2241] CHIP:DMG: }, - [1649683321.648020][2241:2241] CHIP:DMG: - [1649683321.648072][2241:2241] CHIP:DMG: CommandData = - [1649683321.648134][2241:2241] CHIP:DMG: { - [1649683321.648196][2241:2241] CHIP:DMG: }, - [1649683321.648251][2241:2241] CHIP:DMG: }, - [1649683321.648309][2241:2241] CHIP:DMG: - [1649683321.648353][2241:2241] CHIP:DMG: ], - [1649683321.648407][2241:2241] CHIP:DMG: - [1649683321.648454][2241:2241] CHIP:DMG: InteractionModelRevision = 1 - [1649683321.648499][2241:2241] CHIP:DMG: }, - - - TH receives InvokeRequestMessage - - [1641535680.297385][3878:3878] CHIP:DMG: InvokeRequestMessage = - [1641535680.297408][3878:3878] CHIP:DMG: { - [1641535680.297429][3878:3878] CHIP:DMG: suppressResponse = false, - [1641535680.297453][3878:3878] CHIP:DMG: timedRequest = true, - [1641535680.297475][3878:3878] CHIP:DMG: InvokeRequests = - [1641535680.297503][3878:3878] CHIP:DMG: [ - [1641535680.297525][3878:3878] CHIP:DMG: CommandDataIB = - [1641535680.297554][3878:3878] CHIP:DMG: { - [1641535680.297579][3878:3878] CHIP:DMG: CommandPathIB = - [1641535680.297610][3878:3878] CHIP:DMG: { - [1641535680.297644][3878:3878] CHIP:DMG: EndpointId = 0x1, - [1641535680.297676][3878:3878] CHIP:DMG: ClusterId = 0x6, - [1641535680.297706][3878:3878] CHIP:DMG: CommandId = 0x1, - [1641535680.297738][3878:3878] CHIP:DMG: }, - [1641535680.297771][3878:3878] CHIP:DMG: - [1641535680.297797][3878:3878] CHIP:DMG: CommandData = - [1641535680.297825][3878:3878] CHIP:DMG: { - [1641535680.297853][3878:3878] CHIP:DMG: }, - [1641535680.297880][3878:3878] CHIP:DMG: }, - [1641535680.297909][3878:3878] CHIP:DMG: - [1641535680.297931][3878:3878] CHIP:DMG: ], - [1641535680.297957][3878:3878] CHIP:DMG: - [1641535680.297976][3878:3878] CHIP:DMG: }, + [1655797318.624018][7331:7331] CHIP:EM: Handling via exchange: 28067r, Delegate: 0xaaaad9aed418 + [1655797318.624129][7331:7331] CHIP:DMG: TimedRequestMessage = + [1655797318.624185][7331:7331] CHIP:DMG: { + [1655797318.624235][7331:7331] CHIP:DMG: TimeoutMs = 0xc8, + [1655797318.624289][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655797318.624339][7331:7331] CHIP:DMG: } + [1655797318.624394][7331:7331] CHIP:DMG: Got Timed Request with timeout 200: handler 0xaaaaf9f93440 exchange 28067r + + [1655797318.626273][7331:7331] CHIP:DMG: Handing timed invoke to IM engine: handler 0xaaaaf9f93440 exchange 28067r + [1655797318.626358][7331:7331] CHIP:DMG: InvokeRequestMessage = + [1655797318.626411][7331:7331] CHIP:DMG: { + [1655797318.626460][7331:7331] CHIP:DMG: suppressResponse = false, + [1655797318.626517][7331:7331] CHIP:DMG: timedRequest = true, + [1655797318.626569][7331:7331] CHIP:DMG: InvokeRequests = + [1655797318.626633][7331:7331] CHIP:DMG: [ + [1655797318.626684][7331:7331] CHIP:DMG: CommandDataIB = + [1655797318.626742][7331:7331] CHIP:DMG: { + [1655797318.626796][7331:7331] CHIP:DMG: CommandPathIB = + [1655797318.626866][7331:7331] CHIP:DMG: { + [1655797318.626934][7331:7331] CHIP:DMG: EndpointId = 0x1, + [1655797318.627002][7331:7331] CHIP:DMG: ClusterId = 0x6, + [1655797318.627037][7331:7331] CHIP:DMG: CommandId = 0x1, + [1655797318.627070][7331:7331] CHIP:DMG: }, + [1655797318.627148][7331:7331] CHIP:DMG: + [1655797318.627179][7331:7331] CHIP:DMG: CommandFields = + [1655797318.627209][7331:7331] CHIP:DMG: { + [1655797318.627243][7331:7331] CHIP:DMG: }, + [1655797318.627274][7331:7331] CHIP:DMG: }, + [1655797318.627306][7331:7331] CHIP:DMG: + [1655797318.627330][7331:7331] CHIP:DMG: ], + [1655797318.627359][7331:7331] CHIP:DMG: + [1655797318.627383][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655797318.627406][7331:7331] CHIP:DMG: }, + [1655797318.627467][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + + + + TH receives InvokeResponseMessage from DUT + + [1655797318.637938][6989:6994] CHIP:DMG: InvokeResponseMessage = + [1655797318.637973][6989:6994] CHIP:DMG: { + [1655797318.638007][6989:6994] CHIP:DMG: suppressResponse = false, + [1655797318.638043][6989:6994] CHIP:DMG: InvokeResponseIBs = + [1655797318.638088][6989:6994] CHIP:DMG: [ + [1655797318.638123][6989:6994] CHIP:DMG: InvokeResponseIB = + [1655797318.638169][6989:6994] CHIP:DMG: { + [1655797318.638207][6989:6994] CHIP:DMG: CommandStatusIB = + [1655797318.638330][6989:6994] CHIP:DMG: { + [1655797318.638377][6989:6994] CHIP:DMG: CommandPathIB = + [1655797318.638429][6989:6994] CHIP:DMG: { + [1655797318.638479][6989:6994] CHIP:DMG: EndpointId = 0x1, + [1655797318.638530][6989:6994] CHIP:DMG: ClusterId = 0x6, + [1655797318.638581][6989:6994] CHIP:DMG: CommandId = 0x1, + [1655797318.638628][6989:6994] CHIP:DMG: }, + [1655797318.638681][6989:6994] CHIP:DMG: + [1655797318.638724][6989:6994] CHIP:DMG: StatusIB = + [1655797318.638773][6989:6994] CHIP:DMG: { + [1655797318.638822][6989:6994] CHIP:DMG: status = 0x00 (SUCCESS), + [1655797318.638869][6989:6994] CHIP:DMG: }, + [1655797318.638917][6989:6994] CHIP:DMG: + [1655797318.638961][6989:6994] CHIP:DMG: }, + [1655797318.639009][6989:6994] CHIP:DMG: + [1655797318.639048][6989:6994] CHIP:DMG: }, + [1655797318.639092][6989:6994] CHIP:DMG: + [1655797318.639126][6989:6994] CHIP:DMG: ], + [1655797318.639169][6989:6994] CHIP:DMG: + [1655797318.639204][6989:6994] CHIP:DMG: InteractionModelRevision = 1 + [1655797318.639238][6989:6994] CHIP:DMG: }, + [1655797318.639316][6989:6994] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x0 + [1655797318.639375][6989:6994] CHIP:DMG: ICR moving to [AwaitingDe] + + [1655797318.632282][6989:6994] CHIP:DMG: StatusResponseMessage = + [1655797318.632321][6989:6994] CHIP:DMG: { + [1655797318.632357][6989:6994] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655797318.632394][6989:6994] CHIP:DMG: InteractionModelRevision = 1 + [1655797318.632429][6989:6994] CHIP:DMG: } + [1655797318.632465][6989:6994] CHIP:IM: Received status response, status is 0x00 (SUCCESS) disabled: true - label: @@ -103,51 +122,78 @@ tests: ./chip-tool levelcontrol write on-level 1 1 1 --timedInteractionTimeoutMs 200 on the TH (reference all cluster app) you should see + [1655797580.941429][7331:7331] CHIP:DMG: TimedRequestMessage = + [1655797580.941479][7331:7331] CHIP:DMG: { + [1655797580.941561][7331:7331] CHIP:DMG: TimeoutMs = 0xc8, + [1655797580.941609][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655797580.941652][7331:7331] CHIP:DMG: } + [1655797580.941700][7331:7331] CHIP:DMG: Got Timed Request with timeout 200: handler 0xaaaaf9f94b20 exchange 47847r + + [1655797580.943440][7331:7331] CHIP:DMG: Handing timed write to IM engine: handler 0xaaaaf9f94b20 exchange 47847r + [1655797580.943482][7331:7331] CHIP:IM: Received Write request + [1655797580.943519][7331:7331] CHIP:DMG: IM WH moving to [Initialized] + [1655797580.943594][7331:7331] CHIP:DMG: WriteRequestMessage = + [1655797580.943641][7331:7331] CHIP:DMG: { + [1655797580.943684][7331:7331] CHIP:DMG: suppressResponse = false, + [1655797580.943733][7331:7331] CHIP:DMG: timedRequest = true, + [1655797580.943779][7331:7331] CHIP:DMG: AttributeDataIBs = + [1655797580.943941][7331:7331] CHIP:DMG: [ + [1655797580.943990][7331:7331] CHIP:DMG: AttributeDataIB = + [1655797580.944045][7331:7331] CHIP:DMG: { + [1655797580.944093][7331:7331] CHIP:DMG: AttributePathIB = + [1655797580.944150][7331:7331] CHIP:DMG: { + [1655797580.944211][7331:7331] CHIP:DMG: Endpoint = 0x1, + [1655797580.944274][7331:7331] CHIP:DMG: Cluster = 0x8, + [1655797580.944335][7331:7331] CHIP:DMG: Attribute = 0x0000_0011, + [1655797580.944392][7331:7331] CHIP:DMG: } + [1655797580.944452][7331:7331] CHIP:DMG: + [1655797580.944513][7331:7331] CHIP:DMG: Data = 1, + [1655797580.944567][7331:7331] CHIP:DMG: }, + [1655797580.944623][7331:7331] CHIP:DMG: + [1655797580.944667][7331:7331] CHIP:DMG: ], + [1655797580.944721][7331:7331] CHIP:DMG: + [1655797580.944766][7331:7331] CHIP:DMG: moreChunkedMessages = false, + [1655797580.944813][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655797580.944855][7331:7331] CHIP:DMG: }, + [1655797580.944986][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0008 e=1 p=o - [1652943666.776460][8499:8499] CHIP:DMG: TimedRequestMessage = - [1652943666.776504][8499:8499] CHIP:DMG: { - [1652943666.776542][8499:8499] CHIP:DMG: TimeoutMs = 0x384, - [1652943666.776584][8499:8499] CHIP:DMG: InteractionModelRevision = 1 - [1652943666.776623][8499:8499] CHIP:DMG: } - [1652943666.776666][8499:8499] CHIP:DMG: Got Timed Request with timeout 900: handler 0xaaaab360c2d0 exchange 2224r - - - [1652943666.780309][8499:8499] CHIP:DMG: WriteRequestMessage = - [1652943666.780349][8499:8499] CHIP:DMG: { - [1652943666.780387][8499:8499] CHIP:DMG: suppressResponse = false, - [1652943666.780430][8499:8499] CHIP:DMG: timedRequest = true, - [1652943666.780470][8499:8499] CHIP:DMG: AttributeDataIBs = - [1652943666.780518][8499:8499] CHIP:DMG: [ - [1652943666.780558][8499:8499] CHIP:DMG: AttributeDataIB = - [1652943666.780609][8499:8499] CHIP:DMG: { - [1652943666.780653][8499:8499] CHIP:DMG: AttributePathIB = - [1652943666.780710][8499:8499] CHIP:DMG: { - [1652943666.780763][8499:8499] CHIP:DMG: Endpoint = 0x1, - [1652943666.780824][8499:8499] CHIP:DMG: Cluster = 0x8, - [1652943666.780883][8499:8499] CHIP:DMG: Attribute = 0x0000_0011, - [1652943666.780934][8499:8499] CHIP:DMG: } - [1652943666.780993][8499:8499] CHIP:DMG: - [1652943666.781046][8499:8499] CHIP:DMG: Data = 1, - [1652943666.781101][8499:8499] CHIP:DMG: }, - [1652943666.781152][8499:8499] CHIP:DMG: - [1652943666.781191][8499:8499] CHIP:DMG: ], - [1652943666.781238][8499:8499] CHIP:DMG: - [1652943666.781278][8499:8499] CHIP:DMG: moreChunkedMessages = false, - [1652943666.781318][8499:8499] CHIP:DMG: InteractionModelRevision = 1 - [1652943666.781356][8499:8499] CHIP:DMG: }, On DUT--- - [1652943666.816563][34595:34600] CHIP:DMG: AttributePathIB = - [1652943666.816581][34595:34600] CHIP:DMG: { - [1652943666.816600][34595:34600] CHIP:DMG: Endpoint = 0x1, - [1652943666.816617][34595:34600] CHIP:DMG: Cluster = 0x8, - [1652943666.816637][34595:34600] CHIP:DMG: Attribute = 0x0000_0011, - [1652943666.816653][34595:34600] CHIP:DMG: } - [1652943666.816676][34595:34600] CHIP:DMG: - [1652943666.816692][34595:34600] CHIP:DMG: StatusIB = - [1652943666.816710][34595:34600] CHIP:DMG: { - [1652943666.816727][34595:34600] CHIP:DMG: status = 0x00 (SUCCESS), - [1652943666.816744][34595:34600] CHIP:DMG: }, + [1655797580.953617][7000:7005] CHIP:DMG: WriteClient moving to [ResponseRe] + [1655797580.953672][7000:7005] CHIP:DMG: WriteResponseMessage = + [1655797580.953707][7000:7005] CHIP:DMG: { + [1655797580.953738][7000:7005] CHIP:DMG: AttributeStatusIBs = + [1655797580.953782][7000:7005] CHIP:DMG: [ + [1655797580.953817][7000:7005] CHIP:DMG: AttributeStatusIB = + [1655797580.953856][7000:7005] CHIP:DMG: { + [1655797580.953893][7000:7005] CHIP:DMG: AttributePathIB = + [1655797580.953938][7000:7005] CHIP:DMG: { + [1655797580.953983][7000:7005] CHIP:DMG: Endpoint = 0x1, + [1655797580.954032][7000:7005] CHIP:DMG: Cluster = 0x8, + [1655797580.954079][7000:7005] CHIP:DMG: Attribute = 0x0000_0011, + [1655797580.954128][7000:7005] CHIP:DMG: } + [1655797580.954177][7000:7005] CHIP:DMG: + [1655797580.954220][7000:7005] CHIP:DMG: StatusIB = + [1655797580.954263][7000:7005] CHIP:DMG: { + [1655797580.954306][7000:7005] CHIP:DMG: status = 0x00 (SUCCESS), + [1655797580.954351][7000:7005] CHIP:DMG: }, + [1655797580.954394][7000:7005] CHIP:DMG: + [1655797580.954431][7000:7005] CHIP:DMG: }, + [1655797580.954473][7000:7005] CHIP:DMG: + [1655797580.954507][7000:7005] CHIP:DMG: ], + [1655797580.954554][7000:7005] CHIP:DMG: + [1655797580.954589][7000:7005] CHIP:DMG: InteractionModelRevision = 1 + [1655797580.954623][7000:7005] CHIP:DMG: } + [1655797580.954714][7000:7005] CHIP:DMG: WriteClient moving to [AwaitingDe] + + + [1655797580.950146][7000:7005] CHIP:EM: Removed CHIP MessageCounter:266490918 from RetransTable on exchange 47847i + [1655797580.950211][7000:7005] CHIP:DMG: StatusResponseMessage = + [1655797580.950251][7000:7005] CHIP:DMG: { + [1655797580.950287][7000:7005] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655797580.950324][7000:7005] CHIP:DMG: InteractionModelRevision = 1 + [1655797580.950357][7000:7005] CHIP:DMG: } + [1655797580.950393][7000:7005] CHIP:IM: Received status response, status is 0x00 (SUCCESS) disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_IDM_5_2.yaml b/src/app/tests/suites/certification/Test_TC_IDM_5_2.yaml index a12932cba10bfd..64c7fb3d6c2871 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_5_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_5_2.yaml @@ -28,43 +28,81 @@ tests: ./chip-tool onoff on 1 1 --timedInteractionTimeoutMs 200 On TH - [1652944460.867007][34730:34735] CHIP:DMG: StatusResponseMessage = - [1652944460.867025][34730:34735] CHIP:DMG: { - [1652944460.867041][34730:34735] CHIP:DMG: Status = 0x00 (SUCCESS), - [1652944460.867058][34730:34735] CHIP:DMG: InteractionModelRevision = 1 - [1652944460.867073][34730:34735] CHIP:DMG: } + [1655798564.111773][7331:7331] CHIP:DMG: TimedRequestMessage = + [1655798564.111822][7331:7331] CHIP:DMG: { + [1655798564.111866][7331:7331] CHIP:DMG: TimeoutMs = 0xc8, + [1655798564.111912][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655798564.111955][7331:7331] CHIP:DMG: } + [1655798564.112003][7331:7331] CHIP:DMG: Got Timed Request with timeout 200: handler 0xaaaaf9f93e70 exchange 20627r + + [1655798564.113754][7331:7331] CHIP:DMG: InvokeRequestMessage = + [1655798564.113800][7331:7331] CHIP:DMG: { + [1655798564.113842][7331:7331] CHIP:DMG: suppressResponse = false, + [1655798564.113892][7331:7331] CHIP:DMG: timedRequest = true, + [1655798564.113937][7331:7331] CHIP:DMG: InvokeRequests = + [1655798564.113993][7331:7331] CHIP:DMG: [ + [1655798564.114038][7331:7331] CHIP:DMG: CommandDataIB = + [1655798564.114093][7331:7331] CHIP:DMG: { + [1655798564.114141][7331:7331] CHIP:DMG: CommandPathIB = + [1655798564.114197][7331:7331] CHIP:DMG: { + [1655798564.114259][7331:7331] CHIP:DMG: EndpointId = 0x1, + [1655798564.114323][7331:7331] CHIP:DMG: ClusterId = 0x6, + [1655798564.114387][7331:7331] CHIP:DMG: CommandId = 0x1, + [1655798564.114446][7331:7331] CHIP:DMG: }, + [1655798564.114506][7331:7331] CHIP:DMG: + [1655798564.114558][7331:7331] CHIP:DMG: CommandFields = + [1655798564.114621][7331:7331] CHIP:DMG: { + [1655798564.114677][7331:7331] CHIP:DMG: }, + [1655798564.114731][7331:7331] CHIP:DMG: }, + [1655798564.114785][7331:7331] CHIP:DMG: + [1655798564.114829][7331:7331] CHIP:DMG: ], + [1655798564.114883][7331:7331] CHIP:DMG: + [1655798564.114927][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655798564.114961][7331:7331] CHIP:DMG: }, + [1655798564.115025][7331:7331] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + + On DUT - [1652944460.839395][8499:8499] CHIP:DMG: TimedRequestMessage = - [1652944460.839450][8499:8499] CHIP:DMG: { - [1652944460.839518][8499:8499] CHIP:DMG: TimeoutMs = 0x190, - [1652944460.839573][8499:8499] CHIP:DMG: InteractionModelRevision = 1 - [1652944460.839623][8499:8499] CHIP:DMG: } - - [1652944460.863502][8499:8499] CHIP:DMG: InvokeRequestMessage = - [1652944460.863587][8499:8499] CHIP:DMG: { - [1652944460.863644][8499:8499] CHIP:DMG: suppressResponse = false, - [1652944460.863729][8499:8499] CHIP:DMG: timedRequest = true, - [1652944460.863791][8499:8499] CHIP:DMG: InvokeRequests = - [1652944460.863883][8499:8499] CHIP:DMG: [ - [1652944460.863945][8499:8499] CHIP:DMG: CommandDataIB = - [1652944460.864038][8499:8499] CHIP:DMG: { - [1652944460.864108][8499:8499] CHIP:DMG: CommandPathIB = - [1652944460.864202][8499:8499] CHIP:DMG: { - [1652944460.864282][8499:8499] CHIP:DMG: EndpointId = 0x1, - [1652944460.864386][8499:8499] CHIP:DMG: ClusterId = 0x6, - [1652944460.864486][8499:8499] CHIP:DMG: CommandId = 0x1, - [1652944460.864564][8499:8499] CHIP:DMG: }, - [1652944460.864660][8499:8499] CHIP:DMG: - [1652944460.864729][8499:8499] CHIP:DMG: CommandData = - [1652944460.864948][8499:8499] CHIP:DMG: { - [1652944460.865032][8499:8499] CHIP:DMG: }, - [1652944460.865131][8499:8499] CHIP:DMG: }, - [1652944460.865346][8499:8499] CHIP:DMG: - [1652944460.865434][8499:8499] CHIP:DMG: ], - [1652944460.865509][8499:8499] CHIP:DMG: - [1652944460.865568][8499:8499] CHIP:DMG: InteractionModelRevision = 1 - [1652944460.865648][8499:8499] CHIP:DMG: }, + [1655798564.112839][7055:7060] CHIP:DMG: StatusResponseMessage = + [1655798564.112870][7055:7060] CHIP:DMG: { + [1655798564.112898][7055:7060] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655798564.112927][7055:7060] CHIP:DMG: InteractionModelRevision = 1 + [1655798564.112954][7055:7060] CHIP:DMG: } + [1655798564.112983][7055:7060] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + + + [1655798564.116059][7055:7060] CHIP:DMG: InvokeResponseMessage = + [1655798564.116095][7055:7060] CHIP:DMG: { + [1655798564.116130][7055:7060] CHIP:DMG: suppressResponse = false, + [1655798564.116188][7055:7060] CHIP:DMG: InvokeResponseIBs = + [1655798564.116234][7055:7060] CHIP:DMG: [ + [1655798564.116270][7055:7060] CHIP:DMG: InvokeResponseIB = + [1655798564.116322][7055:7060] CHIP:DMG: { + [1655798564.116361][7055:7060] CHIP:DMG: CommandStatusIB = + [1655798564.116406][7055:7060] CHIP:DMG: { + [1655798564.116446][7055:7060] CHIP:DMG: CommandPathIB = + [1655798564.116493][7055:7060] CHIP:DMG: { + [1655798564.116547][7055:7060] CHIP:DMG: EndpointId = 0x1, + [1655798564.116600][7055:7060] CHIP:DMG: ClusterId = 0x6, + [1655798564.116655][7055:7060] CHIP:DMG: CommandId = 0x1, + [1655798564.116707][7055:7060] CHIP:DMG: }, + [1655798564.116761][7055:7060] CHIP:DMG: + [1655798564.116801][7055:7060] CHIP:DMG: StatusIB = + [1655798564.116851][7055:7060] CHIP:DMG: { + [1655798564.116895][7055:7060] CHIP:DMG: status = 0x00 (SUCCESS), + [1655798564.116943][7055:7060] CHIP:DMG: }, + [1655798564.116987][7055:7060] CHIP:DMG: + [1655798564.117030][7055:7060] CHIP:DMG: }, + [1655798564.117079][7055:7060] CHIP:DMG: + [1655798564.117119][7055:7060] CHIP:DMG: }, + [1655798564.117162][7055:7060] CHIP:DMG: + [1655798564.117197][7055:7060] CHIP:DMG: ], + [1655798564.117241][7055:7060] CHIP:DMG: + [1655798564.117271][7055:7060] CHIP:DMG: InteractionModelRevision = 1 + [1655798564.117306][7055:7060] CHIP:DMG: }, + [1655798564.117386][7055:7060] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x0 + [1655798564.117446][7055:7060] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: @@ -75,59 +113,42 @@ tests: verification: | ./chip-tool levelcontrol write on-level 1 1 1 --timedInteractionTimeoutMs 500 On TH - [1652944714.550110][34757:34762] CHIP:DMG: StatusResponseMessage = - [1652944714.550129][34757:34762] CHIP:DMG: { - [1652944714.550144][34757:34762] CHIP:DMG: Status = 0x00 (SUCCESS), - [1652944714.550160][34757:34762] CHIP:DMG: InteractionModelRevision = 1 - [1652944714.550173][34757:34762] CHIP:DMG: } - - - [1652944714.558166][34757:34762] CHIP:DMG: WriteResponseMessage = - [1652944714.558183][34757:34762] CHIP:DMG: { - [1652944714.558198][34757:34762] CHIP:DMG: AttributeStatusIBs = - [1652944714.558225][34757:34762] CHIP:DMG: [ - [1652944714.558240][34757:34762] CHIP:DMG: AttributeStatusIB = - [1652944714.558259][34757:34762] CHIP:DMG: { - [1652944714.558274][34757:34762] CHIP:DMG: AttributePathIB = - [1652944714.558292][34757:34762] CHIP:DMG: { - [1652944714.558311][34757:34762] CHIP:DMG: Endpoint = 0x1, - [1652944714.558328][34757:34762] CHIP:DMG: Cluster = 0x8, - [1652944714.558347][34757:34762] CHIP:DMG: Attribute = 0x0000_0011, - [1652944714.558364][34757:34762] CHIP:DMG: } - [1652944714.558386][34757:34762] CHIP:DMG: - [1652944714.558404][34757:34762] CHIP:DMG: StatusIB = - [1652944714.558421][34757:34762] CHIP:DMG: { - [1652944714.558439][34757:34762] CHIP:DMG: status = 0x00 (SUCCESS), - [1652944714.558452][34757:34762] CHIP:DMG: }, - - - On DUT - [1652944714.526970][8499:8499] CHIP:DMG: WriteRequestMessage = - [1652944714.527020][8499:8499] CHIP:DMG: { - [1652944714.527053][8499:8499] CHIP:DMG: suppressResponse = false, - [1652944714.527092][8499:8499] CHIP:DMG: timedRequest = true, - [1652944714.527140][8499:8499] CHIP:DMG: AttributeDataIBs = - [1652944714.527185][8499:8499] CHIP:DMG: [ - [1652944714.527234][8499:8499] CHIP:DMG: AttributeDataIB = - [1652944714.527286][8499:8499] CHIP:DMG: { - [1652944714.527341][8499:8499] CHIP:DMG: AttributePathIB = - [1652944714.527411][8499:8499] CHIP:DMG: { - [1652944714.527463][8499:8499] CHIP:DMG: Endpoint = 0x1, - [1652944714.527525][8499:8499] CHIP:DMG: Cluster = 0x8, - [1652944714.527576][8499:8499] CHIP:DMG: Attribute = 0x0000_0011, - [1652944714.527636][8499:8499] CHIP:DMG: } - [1652944714.527701][8499:8499] CHIP:DMG: - [1652944714.527751][8499:8499] CHIP:DMG: Data = 1, - [1652944714.527801][8499:8499] CHIP:DMG: }, - [1652944714.527839][8499:8499] CHIP:DMG: - [1652944714.527950][8499:8499] CHIP:DMG: ], - [1652944714.527992][8499:8499] CHIP:DMG: - [1652944714.528033][8499:8499] CHIP:DMG: moreChunkedMessages = false, - [1652944714.528065][8499:8499] CHIP:DMG: InteractionModelRevision = 1 - [1652944714.528104][8499:8499] CHIP:DMG: }, - - - + [1655798786.127953][7331:7331] CHIP:EM: Handling via exchange: 38682r, Delegate: 0xaaaad9aed418 + [1655798786.128052][7331:7331] CHIP:DMG: TimedRequestMessage = + [1655798786.128103][7331:7331] CHIP:DMG: { + [1655798786.128147][7331:7331] CHIP:DMG: TimeoutMs = 0x1f4, + [1655798786.128194][7331:7331] CHIP:DMG: InteractionModelRevision = 1 + [1655798786.128237][7331:7331] CHIP:DMG: } + [1655798786.128282][7331:7331] CHIP:DMG: Got Timed Request with timeout 500: handler 0xaaaaf9f6ecd0 exchange 38682r + + [1655798786.131890][7065:7070] CHIP:DMG: WriteResponseMessage = + [1655798786.131932][7065:7070] CHIP:DMG: { + [1655798786.131984][7065:7070] CHIP:DMG: AttributeStatusIBs = + [1655798786.132035][7065:7070] CHIP:DMG: [ + [1655798786.132089][7065:7070] CHIP:DMG: AttributeStatusIB = + [1655798786.132142][7065:7070] CHIP:DMG: { + [1655798786.132246][7065:7070] CHIP:DMG: AttributePathIB = + [1655798786.132311][7065:7070] CHIP:DMG: { + [1655798786.132377][7065:7070] CHIP:DMG: Endpoint = 0x1, + [1655798786.132439][7065:7070] CHIP:DMG: Cluster = 0x8, + [1655798786.132512][7065:7070] CHIP:DMG: Attribute = 0x0000_0011, + [1655798786.132578][7065:7070] CHIP:DMG: } + [1655798786.132635][7065:7070] CHIP:DMG: + [1655798786.132704][7065:7070] CHIP:DMG: StatusIB = + [1655798786.132770][7065:7070] CHIP:DMG: { + [1655798786.132822][7065:7070] CHIP:DMG: status = 0x00 (SUCCESS), + [1655798786.132892][7065:7070] CHIP:DMG: }, + [1655798786.132960][7065:7070] CHIP:DMG: + [1655798786.133006][7065:7070] CHIP:DMG: }, + [1655798786.133070][7065:7070] CHIP:DMG: + [1655798786.133109][7065:7070] CHIP:DMG: ], + [1655798786.133173][7065:7070] CHIP:DMG: + [1655798786.133213][7065:7070] CHIP:DMG: InteractionModelRevision = 1 + [1655798786.133269][7065:7070] CHIP:DMG: } + [1655798786.133385][7065:7070] CHIP:DMG: WriteClient moving to [AwaitingDe] + + + By sending a ReadRequest that the Write action was performed correctly. ./chip-tool levelcontrol write on-level 1 1 1 [1652945083.826161][34821:34826] CHIP:DMG: AttributePathIB = [1652945083.826181][34821:34826] CHIP:DMG: { @@ -143,11 +164,9 @@ tests: ./chip-tool levelcontrol read on-level 1 1 - [1652944956.222032][34790:34795] CHIP:DMG: SuppressResponse = true, - [1652944956.222047][34790:34795] CHIP:DMG: InteractionModelRevision = 1 - [1652944956.222061][34790:34795] CHIP:DMG: } - [1652944956.222195][34790:34795] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 2105467261 - [1652944956.222235][34790:34795] CHIP:TOO: on level: 1 + [1655799013.466144][7075:7080] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 737039642 + [1655799013.466237][7075:7080] CHIP:TOO: on level: 1 + [1655799013.466336][7075:7080] CHIP:EM: Sending Standalone Ack for MessageCounter:202402347 on exchange 58038i disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_IDM_6_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_6_1.yaml index b6be17faf589e5..c77bf818340bfa 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_6_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_6_1.yaml @@ -13,7 +13,8 @@ # 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: 20.6.1. [TC-IDM-6.1] Events Read Interaction from TH to DUT +name: + 21.6.1. [TC-IDM-6.1] Events Read Interaction from TH to DUT. [{DUT_Server}] config: nodeId: 0x12344321 @@ -24,9 +25,11 @@ tests: - label: "TH sends Read Request Message to DUT with EventRequests set to a specific event from a specific cluster on a specific endpoint on a - specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = - Specific, Event = Specific]." + specific node that is, [Node = Specific, Endpoint = Specific, Cluster + = Specific, Event = Specific]." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool basic read-event start-up 1 0 [1653051591.078855][11664:11669] CHIP:DMG: ReportDataMessage = @@ -72,8 +75,8 @@ tests: - label: "TH sends Read Request Message to DUT with EventRequests set to all events from a specific cluster on a specific endpoint on a specific - node i.e. [Node = Specific, Endpoint = Specific, Cluster = Specific, - Event = Wildcard]." + node that is, [Node = Specific, Endpoint = Specific, Cluster = + Specific, Event = Wildcard]." verification: | In case of chip tool, here is an example command to use @@ -122,8 +125,8 @@ tests: - label: "TH sends Read Request Message to DUT with EventRequests set to all events from all clusters on a specific endpoint on a specific node - i.e. [Node = Specific, Endpoint = Specific, Cluster = Wildcard, Event - = Wildcard]." + that is, [Node = Specific, Endpoint = Specific, Cluster = Wildcard, + Event = Wildcard]." verification: | In case of chip tool, here is an example command to use @@ -165,9 +168,11 @@ tests: - label: "TH sends Read Request Message to DUT with EventRequests set to a specific event from a specific cluster on all endpoints on a specific - node i.e. [Node = Specific, Endpoint = Wildcard, Cluster = Specific, - Event = Specific]." + node that is, [Node = Specific, Endpoint = Wildcard, Cluster = + Specific, Event = Specific]." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool basic read-event start-up 1 0xFFFF [1653051642.744722][11676:11681] CHIP:DMG: ReportDataMessage = @@ -213,9 +218,11 @@ tests: - label: "TH sends Read Request Message to DUT with EventRequests set to all events from a specific cluster on all endpoints on a specific node - i.e. [Node = Specific, Endpoint = Wildcard, Cluster = Specific, Event - = Wildcard]." + that is, [Node = Specific, Endpoint = Wildcard, Cluster = Specific, + Event = Wildcard]." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool basic read-event-by-id 0xFFFFFFFF 1 0xFFFF [1653051699.893049][11691:11696] CHIP:DMG: ReportDataMessage = [1653051699.893068][11691:11696] CHIP:DMG: { @@ -259,10 +266,12 @@ tests: - label: "TH sends Read Request Message to DUT with EventRequests set to all - events from all clusters on all endpoints on a specific node i.e. + events from all clusters on all endpoints on a specific node that is, [Node = Specific, Endpoint = Wildcard, Cluster = Wildcard, Event = Wildcard]." verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool any read-event-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF [1653051769.144914][11706:11711] CHIP:DMG: ReportDataMessage = @@ -399,6 +408,8 @@ tests: which requires a privilege that is not granted for the cluster in the path." verification: | + In case of chip tool, here is an example command to use + ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1234], "targets": null}]' 1 0 ./chip-tool any read-event-by-id 0x28 0 1 0 [1653054249.514825][12265:12270] CHIP:DMG: ReportDataMessage = @@ -453,52 +464,62 @@ tests: EventMin field set to a number less than what was received in the previous step." verification: | - ./chip-tool softwarediagnostics read-by-id 0x0 1 0 + sudo ./chip-tool any read-event-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF + [1655986008.400642][4813:4818] CHIP:DMG: } + [1655986008.400859][4813:4818] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655986008.400893][4813:4818] CHIP:TOO: Event number: 0 + [1655986008.400923][4813:4818] CHIP:TOO: Priority: Critical + [1655986008.400952][4813:4818] CHIP:TOO: Timestamp: 4896714 + [1655986008.401039][4813:4818] CHIP:TOO: StartUp: { + [1655986008.401083][4813:4818] CHIP:TOO: SoftwareVersion: 1 + [1655986008.401116][4813:4818] CHIP:TOO: } + [1655986008.401259][4813:4818] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 + [1655986008.401291][4813:4818] CHIP:TOO: Event number: 1 + [1655986008.401321][4813:4818] CHIP:TOO: Priority: Info + [1655986008.401425][4813:4818] CHIP:TOO: Timestamp: 4971265 + [1655986008.401494][4813:4818] CHIP:TOO: AccessControlEntryChanged: { + [1655986008.401529][4813:4818] CHIP:TOO: AdminNodeID: null + [1655986008.401561][4813:4818] CHIP:TOO: AdminPasscodeID: 0 + [1655986008.401592][4813:4818] CHIP:TOO: ChangeType: 1 + [1655986008.401623][4813:4818] CHIP:TOO: LatestValue: { + [1655986008.401648][4813:4818] CHIP:TOO: Privilege: 5 + [1655986008.401675][4813:4818] CHIP:TOO: AuthMode: 2 + [1655986008.401712][4813:4818] CHIP:TOO: Subjects: 1 entries + [1655986008.401750][4813:4818] CHIP:TOO: [1]: 112233 + [1655986008.401786][4813:4818] CHIP:TOO: Targets: null + [1655986008.401816][4813:4818] CHIP:TOO: FabricIndex: 1 + [1655986008.401845][4813:4818] CHIP:TOO: } + [1655986008.401876][4813:4818] CHIP:TOO: AdminFabricIndex: 1 + [1655986008.401906][4813:4818] CHIP:TOO: } + [1655986008.402045][4813:4818] CHIP:EM: Sending Standalone Ack for MessageCounter:51662085 on exchange 4386i - [1651583857.832820][2932:2937] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Attribute 0x0000_0000 DataVersion: 440941735 - [1651583857.832964][2932:2937] CHIP:TOO: ThreadMetrics: 6 entries - [1651583857.833044][2932:2937] CHIP:TOO: [1]: { - [1651583857.833093][2932:2937] CHIP:TOO: Id: 2357 - [1651583857.833125][2932:2937] CHIP:TOO: Name: 2357 - [1651583857.833157][2932:2937] CHIP:TOO: StackFreeCurrent: 0 - [1651583857.833188][2932:2937] CHIP:TOO: StackFreeMinimum: 0 - [1651583857.833219][2932:2937] CHIP:TOO: StackSize: 0 - [1651583857.833250][2932:2937] CHIP:TOO: } - [1651583857.833292][2932:2937] CHIP:TOO: [2]: { - [1651583857.833324][2932:2937] CHIP:TOO: Id: 2356 - [1651583857.833353][2932:2937] CHIP:TOO: Name: 2356 - [1651583857.833382][2932:2937] CHIP:TOO: StackFreeCurrent: 0 - [1651583857.833412][2932:2937] CHIP:TOO: StackFreeMinimum: 0 - [1651583857.833442][2932:2937] CHIP:TOO: StackSize: 0 - [1651583857.833471][2932:2937] CHIP:TOO: } - [1651583857.833511][2932:2937] CHIP:TOO: [3]: { - [1651583857.833624][2932:2937] CHIP:TOO: Id: 2355 - [1651583857.833657][2932:2937] CHIP:TOO: Name: 2355 - [1651583857.833687][2932:2937] CHIP:TOO: StackFreeCurrent: 0 - [1651583857.833718][2932:2937] CHIP:TOO: StackFreeMinimum: 0 - [1651583857.833748][2932:2937] CHIP:TOO: StackSize: 0 - [1651583857.833777][2932:2937] CHIP:TOO: } - [1651583857.833819][2932:2937] CHIP:TOO: [4]: { - [1651583857.833851][2932:2937] CHIP:TOO: Id: 2354 - [1651583857.833880][2932:2937] CHIP:TOO: Name: 2354 - [1651583857.833909][2932:2937] CHIP:TOO: StackFreeCurrent: 0 - [1651583857.833939][2932:2937] CHIP:TOO: StackFreeMinimum: 0 - [1651583857.833969][2932:2937] CHIP:TOO: StackSize: 0 - [1651583857.833998][2932:2937] CHIP:TOO: } - [1651583857.834037][2932:2937] CHIP:TOO: [5]: { - [1651583857.834068][2932:2937] CHIP:TOO: Id: 2353 - [1651583857.834097][2932:2937] CHIP:TOO: Name: 2353 - [1651583857.834126][2932:2937] CHIP:TOO: StackFreeCurrent: 0 - [1651583857.834156][2932:2937] CHIP:TOO: StackFreeMinimum: 0 - [1651583857.834186][2932:2937] CHIP:TOO: StackSize: 0 - [1651583857.834215][2932:2937] CHIP:TOO: } - [1651583857.834254][2932:2937] CHIP:TOO: [6]: { - [1651583857.834284][2932:2937] CHIP:TOO: Id: 2352 - [1651583857.834313][2932:2937] CHIP:TOO: Name: 2352 - [1651583857.834343][2932:2937] CHIP:TOO: StackFreeCurrent: 0 - [1651583857.834372][2932:2937] CHIP:TOO: StackFreeMinimum: 0 - [1651583857.834402][2932:2937] CHIP:TOO: StackSize: 0 - [1651583857.834431][2932:2937] CHIP:TOO: } + sudo ./chip-tool any read-event-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF --event-min 0 + [1655986113.735628][4843:4848] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655986113.735661][4843:4848] CHIP:TOO: Event number: 0 + [1655986113.735690][4843:4848] CHIP:TOO: Priority: Critical + [1655986113.735718][4843:4848] CHIP:TOO: Timestamp: 4896714 + [1655986113.735803][4843:4848] CHIP:TOO: StartUp: { + [1655986113.735848][4843:4848] CHIP:TOO: SoftwareVersion: 1 + [1655986113.735878][4843:4848] CHIP:TOO: } + [1655986113.736018][4843:4848] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 + [1655986113.736049][4843:4848] CHIP:TOO: Event number: 1 + [1655986113.736078][4843:4848] CHIP:TOO: Priority: Info + [1655986113.736106][4843:4848] CHIP:TOO: Timestamp: 4971265 + [1655986113.736168][4843:4848] CHIP:TOO: AccessControlEntryChanged: { + [1655986113.736200][4843:4848] CHIP:TOO: AdminNodeID: null + [1655986113.736231][4843:4848] CHIP:TOO: AdminPasscodeID: 0 + [1655986113.736261][4843:4848] CHIP:TOO: ChangeType: 1 + [1655986113.736291][4843:4848] CHIP:TOO: LatestValue: { + [1655986113.736320][4843:4848] CHIP:TOO: Privilege: 5 + [1655986113.736348][4843:4848] CHIP:TOO: AuthMode: 2 + [1655986113.736384][4843:4848] CHIP:TOO: Subjects: 1 entries + [1655986113.736420][4843:4848] CHIP:TOO: [1]: 112233 + [1655986113.736454][4843:4848] CHIP:TOO: Targets: null + [1655986113.736483][4843:4848] CHIP:TOO: FabricIndex: 1 + [1655986113.736511][4843:4848] CHIP:TOO: } + [1655986113.736540][4843:4848] CHIP:TOO: AdminFabricIndex: 1 + [1655986113.736568][4843:4848] CHIP:TOO: } + [1655986113.736707][4843:4848] CHIP:EM: Sending Standalone Ack for MessageCounter:245457747 on exchange 9028i disabled: true - label: @@ -524,5 +545,13 @@ tests: event data. For every chunked data message received, DUT sends a status response." verification: | - https://github.com/CHIP-Specifications/chip-test-plans/issues/1365 + tried in doorlock app,I Sent wildcard read-event command from TH to DUT to verify this test-step, + ./chip-tool any read-event-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF + The message flow I would expect here is: + TH -> DUT ReadRequest + DUT -> TH ReportData, not last chunk + TH -> DUT StatusResponse + Possibly repeat steps 2 & 3 a few times + DUT -> TH ReportData, last chunk, SuppressResponse set to true + TH -> DUT standalone ack disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_6_2.yaml b/src/app/tests/suites/certification/Test_TC_IDM_6_2.yaml index 9ecfc1b4c540d8..85fb5c9dda0c47 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_6_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_6_2.yaml @@ -13,7 +13,9 @@ # 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: 20.6.2. [TC-IDM-6.2] Events Subscribe Interaction from TH to DUT +name: + 21.6.2. [TC-IDM-6.2] Events Subscribe Interaction from TH to DUT. + [{DUT_Server}] config: nodeId: 0x12344321 @@ -24,330 +26,368 @@ tests: - label: "TH sends Subscribe Request Message to DUT with EventRequests set to a specific event from a specific cluster on a specific endpoint on a - specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = - Specific, Event = Specific]." + specific node that is, [Node = Specific, Endpoint = Specific, Cluster + = Specific, Event = Specific]." verification: | In case of chip tool, here is an example command to use - sudo ./chip-tool any subscribe-event-by-id 0x0033 0x01 0 100 1 1 + sudo ./chip-tool basic subscribe-event start-up 20 100 1 0 on TH - [1651585153.535829][2998:3003] CHIP:DMG: ReportDataMessage = - [1651585153.535860][2998:3003] CHIP:DMG: { - [1651585153.535888][2998:3003] CHIP:DMG: SubscriptionId = 0x2e08688819c6e7af, - [1651585153.535918][2998:3003] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.535945][2998:3003] CHIP:DMG: } - [1651585153.535990][2998:3003] CHIP:DMG: MoveToState ReadClient[0xffff98002e10]: Moving to [AwaitingSu] - [1651585153.536039][2998:3003] CHIP:EM: Piggybacking Ack for MessageCounter:12695913 on exchange: 56366i - [1651585153.536099][2998:3003] CHIP:IN: Prepared secure message 0xaaaad8552488 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 56366i with MessageCounter:12866229. - [1651585153.536139][2998:3003] CHIP:IN: Sending encrypted msg 0xaaaad8552488 with MessageCounter:12866229 to 0x0000000000000001 (1) at monotonic time: 00000000005716CD msec - [1651585153.537541][2998:3003] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:12695914 on exchange 56366i - [1651585153.537579][2998:3003] CHIP:EM: Found matching exchange: 56366i, Delegate: 0xffff98002e10 - [1651585153.537614][2998:3003] CHIP:EM: Rxd Ack; Removing MessageCounter:12866229 from Retrans Table on exchange 56366i - [1651585153.537641][2998:3003] CHIP:EM: Removed CHIP MessageCounter:12866229 from RetransTable on exchange 56366i - [1651585153.537688][2998:3003] CHIP:DMG: SubscribeResponseMessage = - [1651585153.537718][2998:3003] CHIP:DMG: { - [1651585153.537749][2998:3003] CHIP:DMG: SubscriptionId = 0x2e08688819c6e7af, - [1651585153.537805][2998:3003] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651585153.537861][2998:3003] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651585153.537916][2998:3003] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.537967][2998:3003] CHIP:DMG: } - - - DUT side - [1651585153.529075][2352:2352] CHIP:DMG: SubscribeRequestMessage = - [1651585153.529112][2352:2352] CHIP:DMG: { - [1651585153.529158][2352:2352] CHIP:DMG: KeepSubscriptions = false, - [1651585153.529193][2352:2352] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651585153.529228][2352:2352] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651585153.529275][2352:2352] CHIP:DMG: EventPathIBs = - [1651585153.529311][2352:2352] CHIP:DMG: [ - [1651585153.529355][2352:2352] CHIP:DMG: EventPath = - [1651585153.529395][2352:2352] CHIP:DMG: { - [1651585153.529502][2352:2352] CHIP:DMG: Endpoint = 0x1, - [1651585153.529560][2352:2352] CHIP:DMG: Cluster = 0x33, - [1651585153.529603][2352:2352] CHIP:DMG: Event = 0x1, - [1651585153.529652][2352:2352] CHIP:DMG: }, - [1651585153.529694][2352:2352] CHIP:DMG: - [1651585153.529739][2352:2352] CHIP:DMG: ], - [1651585153.529778][2352:2352] CHIP:DMG: - [1651585153.529825][2352:2352] CHIP:DMG: isFabricFiltered = true, - [1651585153.529861][2352:2352] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.529905][2352:2352] CHIP:DMG: }, - [1651585153.529989][2352:2352] CHIP:DMG: Final negotiated min/max parameters: Min = 0s, Max = 100s - [1651585153.530085][2352:2352] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651585153.530195][2352:2352] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1651585153.530365][2352:2352] CHIP:DMG: Fetched 0 events - [1651585153.530403][2352:2352] CHIP:DMG: Sending report (payload has 15 bytes)... - [1651585153.530435][2352:2352] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1651585153.530472][2352:2352] CHIP:EM: Piggybacking Ack for MessageCounter:12866228 on exchange: 56366r - [1651585153.530547][2352:2352] CHIP:IN: Prepared secure message 0xaaaabeacb650 to 0x000000000001B669 (1) of type 0x5 and protocolId (0, 1) on exchange 56366r with MessageCounter:12695913. - [1651585153.530596][2352:2352] CHIP:IN: Sending encrypted msg 0xaaaabeacb650 with MessageCounter:12695913 to 0x000000000001B669 (1) at monotonic time: 00000000005729DD msec - [1651585153.530947][2352:2352] CHIP:DMG: ReportsInFlight = 3 with readHandler 0, RE has no more messages - [1651585153.530988][2352:2352] CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet - [1651585153.532011][2352:2352] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:12866229 on exchange 56366r - [1651585153.532053][2352:2352] CHIP:EM: Found matching exchange: 56366r, Delegate: 0xaaaabfc22d00 - [1651585153.532098][2352:2352] CHIP:EM: Rxd Ack; Removing MessageCounter:12695913 from Retrans Table on exchange 56366r - [1651585153.532129][2352:2352] CHIP:EM: Removed CHIP MessageCounter:12695913 from RetransTable on exchange 56366r - [1651585153.532185][2352:2352] CHIP:DMG: StatusResponseMessage = - [1651585153.532236][2352:2352] CHIP:DMG: { - [1651585153.532268][2352:2352] CHIP:DMG: Status = 0x00 (SUCCESS), - [1651585153.532305][2352:2352] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.532351][2352:2352] CHIP:DMG: } + [1655977276.638991][4311:4316] CHIP:DMG: ReportDataMessage = + [1655977276.639038][4311:4316] CHIP:DMG: { + [1655977276.639092][4311:4316] CHIP:DMG: SubscriptionId = 0x64e994d3, + [1655977276.639135][4311:4316] CHIP:DMG: EventReportIBs = + [1655977276.639201][4311:4316] CHIP:DMG: [ + [1655977276.639243][4311:4316] CHIP:DMG: EventReportIB = + [1655977276.639316][4311:4316] CHIP:DMG: { + [1655977276.639360][4311:4316] CHIP:DMG: EventDataIB = + [1655977276.639425][4311:4316] CHIP:DMG: { + [1655977276.639486][4311:4316] CHIP:DMG: EventPath = + [1655977276.639542][4311:4316] CHIP:DMG: { + [1655977276.639613][4311:4316] CHIP:DMG: Endpoint = 0x0, + [1655977276.639684][4311:4316] CHIP:DMG: Cluster = 0x28, + [1655977276.639741][4311:4316] CHIP:DMG: Event = 0x0, + [1655977276.639810][4311:4316] CHIP:DMG: }, + [1655977276.639880][4311:4316] CHIP:DMG: + [1655977276.639933][4311:4316] CHIP:DMG: EventNumber = 0x0, + [1655977276.640009][4311:4316] CHIP:DMG: PriorityLevel = 0x2, + [1655977276.640078][4311:4316] CHIP:DMG: SystemTimestamp = 0x4ab7ca, + [1655977276.640131][4311:4316] CHIP:DMG: EventData = + [1655977276.640198][4311:4316] CHIP:DMG: { + [1655977276.640298][4311:4316] CHIP:DMG: 0x0 = 1, + [1655977276.640368][4311:4316] CHIP:DMG: }, + [1655977276.640419][4311:4316] CHIP:DMG: }, + [1655977276.640490][4311:4316] CHIP:DMG: + [1655977276.640532][4311:4316] CHIP:DMG: }, + [1655977276.640597][4311:4316] CHIP:DMG: + [1655977276.640636][4311:4316] CHIP:DMG: ], + [1655977276.640702][4311:4316] CHIP:DMG: + [1655977276.640757][4311:4316] CHIP:DMG: InteractionModelRevision = 1 + [1655977276.640797][4311:4316] CHIP:DMG: } + [1655977276.641042][4311:4316] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655977276.641086][4311:4316] CHIP:TOO: Event number: 0 + [1655977276.641122][4311:4316] CHIP:TOO: Priority: Critical + [1655977276.641158][4311:4316] CHIP:TOO: Timestamp: 4896714 + [1655977276.641276][4311:4316] CHIP:TOO: StartUp: { + [1655977276.641344][4311:4316] CHIP:TOO: SoftwareVersion: 1 + [1655977276.641385][4311:4316] CHIP:TOO: } + [1655977276.641461][4311:4316] CHIP:DMG: MoveToState ReadClient[0xffff9c006f50]: Moving to [AwaitingSu] + [1655977276.641553][4311:4316] CHIP:EM: Piggybacking Ack for MessageCounter:264495416 on exchange: 5419i + [1655977276.641656][4311:4316] CHIP:IN: Prepared secure message 0xaaaac9574fd8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 5419i with MessageCounter:38634004. + [1655977276.641716][4311:4316] CHIP:IN: Sending encrypted msg 0xaaaac9574fd8 with MessageCounter:38634004 to 0x0000000000000001 (1) at monotonic time: 0000000000FA0882 msec + [1655977276.642731][4311:4316] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:264495417 on exchange 5419i + [1655977276.642784][4311:4316] CHIP:EM: Found matching exchange: 5419i, Delegate: 0xffff9c006f50 + [1655977276.642836][4311:4316] CHIP:EM: Rxd Ack; Removing MessageCounter:38634004 from Retrans Table on exchange 5419i + [1655977276.642875][4311:4316] CHIP:EM: Removed CHIP MessageCounter:38634004 from RetransTable on exchange 5419i + [1655977276.642967][4311:4316] CHIP:DMG: SubscribeResponseMessage = + [1655977276.643030][4311:4316] CHIP:DMG: { + [1655977276.643069][4311:4316] CHIP:DMG: SubscriptionId = 0x64e994d3, + [1655977276.643127][4311:4316] CHIP:DMG: MaxInterval = 0x64, + [1655977276.643168][4311:4316] CHIP:DMG: InteractionModelRevision = 1 + [1655977276.643220][4311:4316] CHIP:DMG: } + [1655977276.643263][4311:4316] CHIP:DMG: Subscription established with SubscriptionID = 0x64e994d3 MinInterval = 20s MaxInterval = 100s Peer = 01:0000000000000001 disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to all events from a specific cluster on a specific endpoint on a - specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = - Specific, Event = Wildcard]." + specific node that is, [Node = Specific, Endpoint = Specific, Cluster + = Specific, Event = Wildcard]." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - - basic subscribe-event-by-id 0xFFFFFFFF 100 1000 1 0 - - [1653477346.830909][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653477346.830930][21558:21563] CHIP:TOO: Event number: 0 - [1653477346.830947][21558:21563] CHIP:TOO: Priority: Critical - [1653477346.830963][21558:21563] CHIP:TOO: Timestamp: 2525140 - [1653477346.831045][21558:21563] CHIP:TOO: StartUp: { - [1653477346.831374][21558:21563] CHIP:TOO: SoftwareVersion: 1 - [1653477346.831401][21558:21563] CHIP:TOO: } - [1653477346.831540][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc002be0]: Moving to [AwaitingSu] - [1653477346.831599][21558:21563] CHIP:EM: Piggybacking Ack for MessageCounter:15912670 on exchange: 43248i - [1653477346.831656][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43248i with MessageCounter:16478636. - [1653477346.831692][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478636 to 0x0000000000000001 (1) at monotonic time: 00000000015D2104 msec - [1653477346.836230][21558:21563] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15912671 on exchange 43248i - [1653477346.836245][21558:21563] CHIP:EM: Found matching exchange: 43248i, Delegate: 0x7f35bc002be0 - [1653477346.836256][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478636 from Retrans Table on exchange 43248i - [1653477346.836262][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478636 from RetransTable on exchange 43248i - [1653477346.836277][21558:21563] CHIP:DMG: SubscribeResponseMessage = - [1653477346.836284][21558:21563] CHIP:DMG: { - [1653477346.836290][21558:21563] CHIP:DMG: SubscriptionId = 0x1e5c8a80, - [1653477346.836296][21558:21563] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653477346.836302][21558:21563] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653477346.836308][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653477346.836313][21558:21563] CHIP:DMG: } + sudo ./chip-tool basic subscribe-event-by-id 0xFFFFFFFF 100 1000 1 0 + [1655977531.386194][4337:4342] CHIP:DMG: ReportDataMessage = + [1655977531.386222][4337:4342] CHIP:DMG: { + [1655977531.386247][4337:4342] CHIP:DMG: SubscriptionId = 0x317286e5, + [1655977531.386271][4337:4342] CHIP:DMG: EventReportIBs = + [1655977531.386303][4337:4342] CHIP:DMG: [ + [1655977531.386327][4337:4342] CHIP:DMG: EventReportIB = + [1655977531.386360][4337:4342] CHIP:DMG: { + [1655977531.386385][4337:4342] CHIP:DMG: EventDataIB = + [1655977531.386420][4337:4342] CHIP:DMG: { + [1655977531.386449][4337:4342] CHIP:DMG: EventPath = + [1655977531.386482][4337:4342] CHIP:DMG: { + [1655977531.386517][4337:4342] CHIP:DMG: Endpoint = 0x0, + [1655977531.386552][4337:4342] CHIP:DMG: Cluster = 0x28, + [1655977531.386585][4337:4342] CHIP:DMG: Event = 0x0, + [1655977531.386619][4337:4342] CHIP:DMG: }, + [1655977531.386653][4337:4342] CHIP:DMG: + [1655977531.386684][4337:4342] CHIP:DMG: EventNumber = 0x0, + [1655977531.386717][4337:4342] CHIP:DMG: PriorityLevel = 0x2, + [1655977531.386749][4337:4342] CHIP:DMG: SystemTimestamp = 0x4ab7ca, + [1655977531.386780][4337:4342] CHIP:DMG: EventData = + [1655977531.386812][4337:4342] CHIP:DMG: { + [1655977531.386865][4337:4342] CHIP:DMG: 0x0 = 1, + [1655977531.386898][4337:4342] CHIP:DMG: }, + [1655977531.386973][4337:4342] CHIP:DMG: }, + [1655977531.387010][4337:4342] CHIP:DMG: + [1655977531.387037][4337:4342] CHIP:DMG: }, + [1655977531.387067][4337:4342] CHIP:DMG: + [1655977531.387091][4337:4342] CHIP:DMG: ], + [1655977531.387122][4337:4342] CHIP:DMG: + [1655977531.387146][4337:4342] CHIP:DMG: InteractionModelRevision = 1 + [1655977531.387168][4337:4342] CHIP:DMG: } + [1655977531.387299][4337:4342] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655977531.387325][4337:4342] CHIP:TOO: Event number: 0 + [1655977531.387346][4337:4342] CHIP:TOO: Priority: Critical + [1655977531.387368][4337:4342] CHIP:TOO: Timestamp: 4896714 + [1655977531.387435][4337:4342] CHIP:TOO: StartUp: { + [1655977531.387470][4337:4342] CHIP:TOO: SoftwareVersion: 1 + [1655977531.387494][4337:4342] CHIP:TOO: } + [1655977531.387541][4337:4342] CHIP:DMG: MoveToState ReadClient[0xffff68007030]: Moving to [AwaitingSu] + [1655977531.387593][4337:4342] CHIP:EM: Piggybacking Ack for MessageCounter:103226132 on exchange: 14818i + [1655977531.387651][4337:4342] CHIP:IN: Prepared secure message 0xaaaae64957e8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 14818i with MessageCounter:195745808. + [1655977531.387686][4337:4342] CHIP:IN: Sending encrypted msg 0xaaaae64957e8 with MessageCounter:195745808 to 0x0000000000000001 (1) at monotonic time: 0000000000FDEB9C msec + [1655977531.388695][4337:4342] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:103226133 on exchange 14818i + [1655977531.388759][4337:4342] CHIP:EM: Found matching exchange: 14818i, Delegate: 0xffff68007030 + [1655977531.388821][4337:4342] CHIP:EM: Rxd Ack; Removing MessageCounter:195745808 from Retrans Table on exchange 14818i + [1655977531.388871][4337:4342] CHIP:EM: Removed CHIP MessageCounter:195745808 from RetransTable on exchange 14818i + [1655977531.388950][4337:4342] CHIP:DMG: SubscribeResponseMessage = + [1655977531.389004][4337:4342] CHIP:DMG: { + [1655977531.389054][4337:4342] CHIP:DMG: SubscriptionId = 0x317286e5, + [1655977531.389107][4337:4342] CHIP:DMG: MaxInterval = 0x3e8, + [1655977531.389160][4337:4342] CHIP:DMG: InteractionModelRevision = 1 + [1655977531.389208][4337:4342] CHIP:DMG: } + [1655977531.389261][4337:4342] CHIP:DMG: Subscription established with SubscriptionID = 0x317286e5 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to all events from all clusters on a specific endpoint on a specific node - i.e. [Node = Specific, Endpoint = Specific, Cluster = Wildcard, Event - = Wildcard]." + that is, [Node = Specific, Endpoint = Specific, Cluster = Wildcard, + Event = Wildcard]." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 1 0 - - [1653477454.958220][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653477454.958253][21558:21563] CHIP:TOO: Event number: 0 - [1653477454.958270][21558:21563] CHIP:TOO: Priority: Critical - [1653477454.958288][21558:21563] CHIP:TOO: Timestamp: 2525140 - [1653477454.958322][21558:21563] CHIP:TOO: StartUp: { - [1653477454.958353][21558:21563] CHIP:TOO: SoftwareVersion: 1 - [1653477454.958376][21558:21563] CHIP:TOO: } - [1653477454.958487][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Event 0x0000_0003 - [1653477454.958505][21558:21563] CHIP:TOO: Event number: 1 - [1653477454.958520][21558:21563] CHIP:TOO: Priority: Critical - [1653477454.958536][21558:21563] CHIP:TOO: Timestamp: 2525141 - [1653477454.958559][21558:21563] CHIP:TOO: BootReason: { - [1653477454.958578][21558:21563] CHIP:TOO: BootReason: 0 - [1653477454.958594][21558:21563] CHIP:TOO: } - [1653477454.958726][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 - [1653477454.958742][21558:21563] CHIP:TOO: Event number: 2 - [1653477454.958756][21558:21563] CHIP:TOO: Priority: Info - [1653477454.958771][21558:21563] CHIP:TOO: Timestamp: 2533827 - [1653477454.959176][21558:21563] CHIP:TOO: AccessControlEntryChanged: { - [1653477454.959201][21558:21563] CHIP:TOO: AdminNodeID: null - [1653477454.959221][21558:21563] CHIP:TOO: AdminPasscodeID: 0 - [1653477454.959237][21558:21563] CHIP:TOO: ChangeType: 1 - [1653477454.959252][21558:21563] CHIP:TOO: LatestValue: { - [1653477454.959267][21558:21563] CHIP:TOO: Privilege: 5 - [1653477454.959284][21558:21563] CHIP:TOO: AuthMode: 2 - [1653477454.959304][21558:21563] CHIP:TOO: Subjects: 1 entries - [1653477454.959326][21558:21563] CHIP:TOO: [1]: 112233 - [1653477454.959344][21558:21563] CHIP:TOO: Targets: null - [1653477454.959360][21558:21563] CHIP:TOO: FabricIndex: 1 - [1653477454.959375][21558:21563] CHIP:TOO: } - [1653477454.959391][21558:21563] CHIP:TOO: AdminFabricIndex: 1 - [1653477454.959407][21558:21563] CHIP:TOO: } - [1653477454.959510][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc0035d0]: Moving to [AwaitingSu] + sudo ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 20 100 1 0 + + [1655978025.631905][4361:4366] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655978025.631939][4361:4366] CHIP:TOO: Event number: 0 + [1655978025.631968][4361:4366] CHIP:TOO: Priority: Critical + [1655978025.631997][4361:4366] CHIP:TOO: Timestamp: 4896714 + [1655978025.632083][4361:4366] CHIP:TOO: StartUp: { + [1655978025.632126][4361:4366] CHIP:TOO: SoftwareVersion: 1 + [1655978025.632158][4361:4366] CHIP:TOO: } + [1655978025.632299][4361:4366] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 + [1655978025.632330][4361:4366] CHIP:TOO: Event number: 1 + [1655978025.632359][4361:4366] CHIP:TOO: Priority: Info + [1655978025.632388][4361:4366] CHIP:TOO: Timestamp: 4971265 + [1655978025.632450][4361:4366] CHIP:TOO: AccessControlEntryChanged: { + [1655978025.632483][4361:4366] CHIP:TOO: AdminNodeID: null + [1655978025.632513][4361:4366] CHIP:TOO: AdminPasscodeID: 0 + [1655978025.632544][4361:4366] CHIP:TOO: ChangeType: 1 + [1655978025.632573][4361:4366] CHIP:TOO: LatestValue: { + [1655978025.632602][4361:4366] CHIP:TOO: Privilege: 5 + [1655978025.632631][4361:4366] CHIP:TOO: AuthMode: 2 + [1655978025.632668][4361:4366] CHIP:TOO: Subjects: 1 entries + [1655978025.632706][4361:4366] CHIP:TOO: [1]: 112233 + [1655978025.632740][4361:4366] CHIP:TOO: Targets: null + [1655978025.632770][4361:4366] CHIP:TOO: FabricIndex: 1 + [1655978025.632799][4361:4366] CHIP:TOO: } + [1655978025.632829][4361:4366] CHIP:TOO: AdminFabricIndex: 1 + [1655978025.632859][4361:4366] CHIP:TOO: } + [1655978025.632952][4361:4366] CHIP:DMG: MoveToState ReadClient[0xaaaacb9f11e0]: Moving to [AwaitingSu] disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to a specific event from a specific cluster on all endpoints on a specific - node i.e. [Node = Specific, Endpoint = Wildcard, Cluster = Specific, - Event = Specific]." + node that is, [Node = Specific, Endpoint = Wildcard, Cluster = + Specific, Event = Specific]." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - - basic subscribe-event-by-id 0x00 100 1000 1 0xFFFF - - - - [1653477546.644801][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653477546.644809][21558:21563] CHIP:TOO: Event number: 0 - [1653477546.644816][21558:21563] CHIP:TOO: Priority: Critical - [1653477546.644832][21558:21563] CHIP:TOO: Timestamp: 2525140 - [1653477546.644842][21558:21563] CHIP:TOO: StartUp: { - [1653477546.644851][21558:21563] CHIP:TOO: SoftwareVersion: 1 - [1653477546.644859][21558:21563] CHIP:TOO: } - [1653477546.644879][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc002260]: Moving to [AwaitingSu] - [1653477546.644899][21558:21563] CHIP:EM: Piggybacking Ack for MessageCounter:15912674 on exchange: 43250i - [1653477546.644922][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43250i with MessageCounter:16478642. - [1653477546.644936][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478642 to 0x0000000000000001 (1) at monotonic time: 0000000001602D89 msec - [1653477546.650168][21558:21563] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15912675 on exchange 43250i - [1653477546.650196][21558:21563] CHIP:EM: Found matching exchange: 43250i, Delegate: 0x7f35bc002260 - [1653477546.650215][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478642 from Retrans Table on exchange 43250i - [1653477546.650229][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478642 from RetransTable on exchange 43250i - [1653477546.650252][21558:21563] CHIP:DMG: SubscribeResponseMessage = - [1653477546.650261][21558:21563] CHIP:DMG: { - [1653477546.650269][21558:21563] CHIP:DMG: SubscriptionId = 0xee971ed7, - [1653477546.650277][21558:21563] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653477546.650285][21558:21563] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653477546.650292][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653477546.650299][21558:21563] CHIP:DMG: } - [1653477546.650310][21558:21563] CHIP:DMG: Subscription established with SubscriptionID = 0xee971ed7 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + sudo ./chip-tool basic subscribe-event-by-id 0x00 10 700 1 0xFFFF + + [1655978108.922718][4380:4385] CHIP:DMG: ReportDataMessage = + [1655978108.922755][4380:4385] CHIP:DMG: { + [1655978108.922788][4380:4385] CHIP:DMG: SubscriptionId = 0x6d4c1b90, + [1655978108.922822][4380:4385] CHIP:DMG: EventReportIBs = + [1655978108.922865][4380:4385] CHIP:DMG: [ + [1655978108.922898][4380:4385] CHIP:DMG: EventReportIB = + [1655978108.922980][4380:4385] CHIP:DMG: { + [1655978108.923019][4380:4385] CHIP:DMG: EventDataIB = + [1655978108.923062][4380:4385] CHIP:DMG: { + [1655978108.923102][4380:4385] CHIP:DMG: EventPath = + [1655978108.923145][4380:4385] CHIP:DMG: { + [1655978108.923191][4380:4385] CHIP:DMG: Endpoint = 0x0, + [1655978108.923238][4380:4385] CHIP:DMG: Cluster = 0x28, + [1655978108.923284][4380:4385] CHIP:DMG: Event = 0x0, + [1655978108.923327][4380:4385] CHIP:DMG: }, + [1655978108.923369][4380:4385] CHIP:DMG: + [1655978108.923411][4380:4385] CHIP:DMG: EventNumber = 0x0, + [1655978108.923460][4380:4385] CHIP:DMG: PriorityLevel = 0x2, + [1655978108.923508][4380:4385] CHIP:DMG: SystemTimestamp = 0x4ab7ca, + [1655978108.923551][4380:4385] CHIP:DMG: EventData = + [1655978108.923594][4380:4385] CHIP:DMG: { + [1655978108.923671][4380:4385] CHIP:DMG: 0x0 = 1, + [1655978108.923721][4380:4385] CHIP:DMG: }, + [1655978108.923758][4380:4385] CHIP:DMG: }, + [1655978108.923805][4380:4385] CHIP:DMG: + [1655978108.923839][4380:4385] CHIP:DMG: }, + [1655978108.923883][4380:4385] CHIP:DMG: + [1655978108.923914][4380:4385] CHIP:DMG: ], + [1655978108.923956][4380:4385] CHIP:DMG: + [1655978108.923988][4380:4385] CHIP:DMG: InteractionModelRevision = 1 + [1655978108.924019][4380:4385] CHIP:DMG: } + [1655978108.924188][4380:4385] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655978108.924222][4380:4385] CHIP:TOO: Event number: 0 + [1655978108.924252][4380:4385] CHIP:TOO: Priority: Critical + [1655978108.924281][4380:4385] CHIP:TOO: Timestamp: 4896714 + [1655978108.924367][4380:4385] CHIP:TOO: StartUp: { + [1655978108.924412][4380:4385] CHIP:TOO: SoftwareVersion: 1 + [1655978108.924444][4380:4385] CHIP:TOO: } + [1655978108.924507][4380:4385] CHIP:DMG: MoveToState ReadClient[0xffff7c0040a0]: Moving to [AwaitingSu] + [1655978108.924573][4380:4385] CHIP:EM: Piggybacking Ack for MessageCounter:198149325 on exchange: 7153i disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to all events from a specific cluster on all endpoints on a specific node - i.e. [Node = Specific, Endpoint = Wildcard, Cluster = Specific, Event - = Wildcard]." + that is, [Node = Specific, Endpoint = Wildcard, Cluster = Specific, + Event = Wildcard]." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - basic subscribe-event-by-id 0xFFFFFFFF 100 1000 1 0xFFFF - - [1653477615.136932][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653477615.136942][21558:21563] CHIP:TOO: Event number: 0 - [1653477615.136952][21558:21563] CHIP:TOO: Priority: Critical - [1653477615.136960][21558:21563] CHIP:TOO: Timestamp: 2525140 - [1653477615.136975][21558:21563] CHIP:TOO: StartUp: { - [1653477615.136986][21558:21563] CHIP:TOO: SoftwareVersion: 1 - [1653477615.136996][21558:21563] CHIP:TOO: } - [1653477615.137024][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc003ab0]: Moving to [AwaitingSu] - [1653477615.137046][21558:21563] CHIP:EM: Piggybacking Ack for MessageCounter:15912676 on exchange: 43251i - [1653477615.137070][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43251i with MessageCounter:16478645. - [1653477615.137088][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478645 to 0x0000000000000001 (1) at monotonic time: 0000000001613915 msec - [1653477615.161863][21558:21563] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15912677 on exchange 43251i - [1653477615.161915][21558:21563] CHIP:EM: Found matching exchange: 43251i, Delegate: 0x7f35bc003ab0 - [1653477615.161947][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478645 from Retrans Table on exchange 43251i - [1653477615.161965][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478645 from RetransTable on exchange 43251i - [1653477615.162016][21558:21563] CHIP:DMG: SubscribeResponseMessage = - [1653477615.162034][21558:21563] CHIP:DMG: { - [1653477615.162047][21558:21563] CHIP:DMG: SubscriptionId = 0x4f8636e3, - [1653477615.162061][21558:21563] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653477615.162075][21558:21563] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653477615.162091][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653477615.162106][21558:21563] CHIP:DMG: } - [1653477615.162131][21558:21563] CHIP:DMG: Subscription established with SubscriptionID = 0x4f8636e3 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + sudo ./chip-tool basic subscribe-event-by-id 0xFFFFFFFF 100 1000 1 0xFFFF + + [1655978154.819363][4396:4401] CHIP:DMG: ReportDataMessage = + [1655978154.819402][4396:4401] CHIP:DMG: { + [1655978154.819438][4396:4401] CHIP:DMG: SubscriptionId = 0x35c8f49e, + [1655978154.819474][4396:4401] CHIP:DMG: EventReportIBs = + [1655978154.819520][4396:4401] CHIP:DMG: [ + [1655978154.819557][4396:4401] CHIP:DMG: EventReportIB = + [1655978154.819607][4396:4401] CHIP:DMG: { + [1655978154.819645][4396:4401] CHIP:DMG: EventDataIB = + [1655978154.819697][4396:4401] CHIP:DMG: { + [1655978154.819740][4396:4401] CHIP:DMG: EventPath = + [1655978154.819789][4396:4401] CHIP:DMG: { + [1655978154.819838][4396:4401] CHIP:DMG: Endpoint = 0x0, + [1655978154.819888][4396:4401] CHIP:DMG: Cluster = 0x28, + [1655978154.819939][4396:4401] CHIP:DMG: Event = 0x0, + [1655978154.819991][4396:4401] CHIP:DMG: }, + [1655978154.820044][4396:4401] CHIP:DMG: + [1655978154.820090][4396:4401] CHIP:DMG: EventNumber = 0x0, + [1655978154.820139][4396:4401] CHIP:DMG: PriorityLevel = 0x2, + [1655978154.820187][4396:4401] CHIP:DMG: SystemTimestamp = 0x4ab7ca, + [1655978154.820238][4396:4401] CHIP:DMG: EventData = + [1655978154.820285][4396:4401] CHIP:DMG: { + [1655978154.820362][4396:4401] CHIP:DMG: 0x0 = 1, + [1655978154.820412][4396:4401] CHIP:DMG: }, + [1655978154.820457][4396:4401] CHIP:DMG: }, + [1655978154.820506][4396:4401] CHIP:DMG: + [1655978154.820546][4396:4401] CHIP:DMG: }, + [1655978154.820592][4396:4401] CHIP:DMG: + [1655978154.820627][4396:4401] CHIP:DMG: ], + [1655978154.820673][4396:4401] CHIP:DMG: + [1655978154.820709][4396:4401] CHIP:DMG: InteractionModelRevision = 1 + [1655978154.820743][4396:4401] CHIP:DMG: } + [1655978154.820927][4396:4401] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655978154.820964][4396:4401] CHIP:TOO: Event number: 0 + [1655978154.820997][4396:4401] CHIP:TOO: Priority: Critical + [1655978154.821029][4396:4401] CHIP:TOO: Timestamp: 4896714 + [1655978154.821122][4396:4401] CHIP:TOO: StartUp: { + [1655978154.821170][4396:4401] CHIP:TOO: SoftwareVersion: 1 + [1655978154.821204][4396:4401] CHIP:TOO: } + [1655978154.821272][4396:4401] CHIP:DMG: MoveToState ReadClient[0xffff68004370]: Moving to [AwaitingSu] disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to - all events from all clusters on all endpoints on a specific node i.e. - [Node = Specific, Endpoint = Wildcard, Cluster = Wildcard, Event = + all events from all clusters on all endpoints on a specific node that + is, [Node = Specific, Endpoint = Wildcard, Cluster = Wildcard, Event = Wildcard]." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 100 1000 1 0xFFFF - - [1653477656.896724][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653477656.896745][21558:21563] CHIP:TOO: Event number: 0 - [1653477656.896762][21558:21563] CHIP:TOO: Priority: Critical - [1653477656.896779][21558:21563] CHIP:TOO: Timestamp: 2525140 - [1653477656.896808][21558:21563] CHIP:TOO: StartUp: { - [1653477656.896865][21558:21563] CHIP:TOO: SoftwareVersion: 1 - [1653477656.896896][21558:21563] CHIP:TOO: } - [1653477656.897017][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Event 0x0000_0003 - [1653477656.897036][21558:21563] CHIP:TOO: Event number: 1 - [1653477656.897053][21558:21563] CHIP:TOO: Priority: Critical - [1653477656.897066][21558:21563] CHIP:TOO: Timestamp: 2525141 - [1653477656.897090][21558:21563] CHIP:TOO: BootReason: { - [1653477656.897111][21558:21563] CHIP:TOO: BootReason: 0 - [1653477656.897129][21558:21563] CHIP:TOO: } - [1653477656.897285][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 - [1653477656.897303][21558:21563] CHIP:TOO: Event number: 2 - [1653477656.897319][21558:21563] CHIP:TOO: Priority: Info - [1653477656.897335][21558:21563] CHIP:TOO: Timestamp: 2533827 - [1653477656.897386][21558:21563] CHIP:TOO: AccessControlEntryChanged: { - [1653477656.897406][21558:21563] CHIP:TOO: AdminNodeID: null - [1653477656.897427][21558:21563] CHIP:TOO: AdminPasscodeID: 0 - [1653477656.897446][21558:21563] CHIP:TOO: ChangeType: 1 - [1653477656.897463][21558:21563] CHIP:TOO: LatestValue: { - [1653477656.897481][21558:21563] CHIP:TOO: Privilege: 5 - [1653477656.897499][21558:21563] CHIP:TOO: AuthMode: 2 - [1653477656.897522][21558:21563] CHIP:TOO: Subjects: 1 entries - [1653477656.897546][21558:21563] CHIP:TOO: [1]: 112233 - [1653477656.897566][21558:21563] CHIP:TOO: Targets: null - [1653477656.897584][21558:21563] CHIP:TOO: FabricIndex: 1 - [1653477656.897602][21558:21563] CHIP:TOO: } - [1653477656.897620][21558:21563] CHIP:TOO: AdminFabricIndex: 1 - [1653477656.897638][21558:21563] CHIP:TOO: } - [1653477656.897753][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc002260]: Moving to [AwaitingSu] - [1653477656.897804][21558:21563] CHIP:EM: Piggybacking Ack for MessageCounter:15912678 on exchange: 43252i - [1653477656.897865][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43252i with MessageCounter:16478648. - [1653477656.897901][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478648 to 0x0000000000000001 (1) at monotonic time: 000000000161DC36 msec - [1653477656.905754][21558:21563] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15912679 on exchange 43252i - [1653477656.905777][21558:21563] CHIP:EM: Found matching exchange: 43252i, Delegate: 0x7f35bc002260 - [1653477656.905797][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478648 from Retrans Table on exchange 43252i - [1653477656.905806][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478648 from RetransTable on exchange 43252i - [1653477656.905861][21558:21563] CHIP:DMG: SubscribeResponseMessage = - [1653477656.905871][21558:21563] CHIP:DMG: { - [1653477656.905880][21558:21563] CHIP:DMG: SubscriptionId = 0x12b3d340, - [1653477656.905891][21558:21563] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653477656.905903][21558:21563] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653477656.905913][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653477656.905922][21558:21563] CHIP:DMG: } - [1653477656.905936][21558:21563] CHIP:DMG: Subscription established with SubscriptionID = 0x12b3d340 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + sudo ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 100 1000 1 0xFFFF + + [1655978294.671160][4411:4416] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655978294.671200][4411:4416] CHIP:TOO: Event number: 0 + [1655978294.671233][4411:4416] CHIP:TOO: Priority: Critical + [1655978294.671266][4411:4416] CHIP:TOO: Timestamp: 4896714 + [1655978294.671358][4411:4416] CHIP:TOO: StartUp: { + [1655978294.671406][4411:4416] CHIP:TOO: SoftwareVersion: 1 + [1655978294.671440][4411:4416] CHIP:TOO: } + [1655978294.671595][4411:4416] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 + [1655978294.671630][4411:4416] CHIP:TOO: Event number: 1 + [1655978294.671663][4411:4416] CHIP:TOO: Priority: Info + [1655978294.671695][4411:4416] CHIP:TOO: Timestamp: 4971265 + [1655978294.671763][4411:4416] CHIP:TOO: AccessControlEntryChanged: { + [1655978294.671800][4411:4416] CHIP:TOO: AdminNodeID: null + [1655978294.671835][4411:4416] CHIP:TOO: AdminPasscodeID: 0 + [1655978294.671869][4411:4416] CHIP:TOO: ChangeType: 1 + [1655978294.671902][4411:4416] CHIP:TOO: LatestValue: { + [1655978294.671935][4411:4416] CHIP:TOO: Privilege: 5 + [1655978294.671968][4411:4416] CHIP:TOO: AuthMode: 2 + [1655978294.672007][4411:4416] CHIP:TOO: Subjects: 1 entries + [1655978294.672050][4411:4416] CHIP:TOO: [1]: 112233 + [1655978294.672088][4411:4416] CHIP:TOO: Targets: null + [1655978294.672121][4411:4416] CHIP:TOO: FabricIndex: 1 + [1655978294.672154][4411:4416] CHIP:TOO: } + [1655978294.672187][4411:4416] CHIP:TOO: AdminFabricIndex: 1 + [1655978294.672219][4411:4416] CHIP:TOO: } + [1655978294.672320][4411:4416] CHIP:DMG: MoveToState ReadClient[0xffff94004410]: Moving to [AwaitingSu] + [1655978294.672390][4411:4416] CHIP:EM: Piggybacking Ack for MessageCounter:9582248 on exchange: 63074i + [1655978294.672469][4411:4416] CHIP:IN: Prepared secure message 0xaaaaaf336c48 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 63074i with MessageCounter:265102197. + [1655978294.672521][4411:4416] CHIP:IN: Sending encrypted msg 0xaaaaaf336c48 with MessageCounter:265102197 to 0x0000000000000001 (1) at monotonic time: 0000000001099131 msec + [1655978294.673483][4411:4416] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:9582249 on exchange 63074i + [1655978294.673530][4411:4416] CHIP:EM: Found matching exchange: 63074i, Delegate: 0xffff94004410 + [1655978294.673576][4411:4416] CHIP:EM: Rxd Ack; Removing MessageCounter:265102197 from Retrans Table on exchange 63074i + [1655978294.673611][4411:4416] CHIP:EM: Removed CHIP MessageCounter:265102197 from RetransTable on exchange 63074i + [1655978294.673667][4411:4416] CHIP:DMG: SubscribeResponseMessage = + [1655978294.673706][4411:4416] CHIP:DMG: { + [1655978294.673740][4411:4416] CHIP:DMG: SubscriptionId = 0xb01feb58, + [1655978294.673778][4411:4416] CHIP:DMG: MaxInterval = 0x3e8, + [1655978294.673815][4411:4416] CHIP:DMG: InteractionModelRevision = 1 + [1655978294.673849][4411:4416] CHIP:DMG: } + [1655978294.673887][4411:4416] CHIP:DMG: Subscription established with SubscriptionID = 0xb01feb58 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to - all events from all clusters on all endpoints on a specific node i.e. - [Node = Specific, Endpoint = Wildcard, Cluster = Wildcard, Event = + all events from all clusters on all endpoints on a specific node that + is, [Node = Specific, Endpoint = Wildcard, Cluster = Wildcard, Event = Wildcard]." verification: | Test step repeated disabled: true - label: - "Activate Event subscription from TH to DUT and change the attribute - value to create subscribed event before minimum interval." + "Activate Event subscription from TH to DUT and trigger the subscribed + event on the DUT before minimum interval." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - basic subscribe-event-by-id 0x000 100 1000 1 0 - - [1653478391.003351][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653478391.003375][21558:21563] CHIP:TOO: Event number: 0 - [1653478391.003395][21558:21563] CHIP:TOO: Priority: Critical - [1653478391.003415][21558:21563] CHIP:TOO: Timestamp: 2525140 - [1653478391.003447][21558:21563] CHIP:TOO: StartUp: { - [1653478391.003475][21558:21563] CHIP:TOO: SoftwareVersion: 1 - [1653478391.003498][21558:21563] CHIP:TOO: } - [1653478391.003565][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc003d90]: Moving to [AwaitingSu] - [1653478391.003619][21558:21563] CHIP:EM: Piggybacking Ack for MessageCounter:15912689 on exchange: 43259i - [1653478391.003706][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43259i with MessageCounter:16478666. - [1653478391.003766][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478666 to 0x0000000000000001 (1) at monotonic time: 00000000016D0FD0 msec - [1653478391.012173][21558:21563] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15912690 on exchange 43259i - [1653478391.012194][21558:21563] CHIP:EM: Found matching exchange: 43259i, Delegate: 0x7f35bc003d90 - [1653478391.012210][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478666 from Retrans Table on exchange 43259i - [1653478391.012219][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478666 from RetransTable on exchange 43259i - [1653478391.012241][21558:21563] CHIP:DMG: SubscribeResponseMessage = - [1653478391.012249][21558:21563] CHIP:DMG: { - [1653478391.012257][21558:21563] CHIP:DMG: SubscriptionId = 0x6b28cc4d, - [1653478391.012264][21558:21563] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653478391.012272][21558:21563] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653478391.012280][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653478391.012286][21558:21563] CHIP:DMG: } - [1653478391.012297][21558:21563] CHIP:DMG: Subscription established with SubscriptionID = 0x6b28cc4d MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + sudo ./chip-tool basic subscribe-event-by-id 0x000 100 1000 1 0 + [1655978403.942817][4421:4426] CHIP:DMG: ReportDataMessage = + [1655978403.942856][4421:4426] CHIP:DMG: { + [1655978403.942888][4421:4426] CHIP:DMG: SubscriptionId = 0xd8a1d921, + [1655978403.942913][4421:4426] CHIP:DMG: EventReportIBs = + [1655978403.943012][4421:4426] CHIP:DMG: [ + [1655978403.943037][4421:4426] CHIP:DMG: EventReportIB = + [1655978403.943070][4421:4426] CHIP:DMG: { + [1655978403.943106][4421:4426] CHIP:DMG: EventDataIB = + [1655978403.943139][4421:4426] CHIP:DMG: { + [1655978403.943176][4421:4426] CHIP:DMG: EventPath = + [1655978403.943218][4421:4426] CHIP:DMG: { + [1655978403.943252][4421:4426] CHIP:DMG: Endpoint = 0x0, + [1655978403.943295][4421:4426] CHIP:DMG: Cluster = 0x28, + [1655978403.943337][4421:4426] CHIP:DMG: Event = 0x0, + [1655978403.943370][4421:4426] CHIP:DMG: }, + [1655978403.943413][4421:4426] CHIP:DMG: + [1655978403.943452][4421:4426] CHIP:DMG: EventNumber = 0x0, + [1655978403.943487][4421:4426] CHIP:DMG: PriorityLevel = 0x2, + [1655978403.943530][4421:4426] CHIP:DMG: SystemTimestamp = 0x4ab7ca, + [1655978403.943571][4421:4426] CHIP:DMG: EventData = + [1655978403.943607][4421:4426] CHIP:DMG: { + [1655978403.943674][4421:4426] CHIP:DMG: 0x0 = 1, + [1655978403.943717][4421:4426] CHIP:DMG: }, + [1655978403.943747][4421:4426] CHIP:DMG: }, + [1655978403.943780][4421:4426] CHIP:DMG: + [1655978403.943815][4421:4426] CHIP:DMG: }, + [1655978403.943847][4421:4426] CHIP:DMG: + [1655978403.943879][4421:4426] CHIP:DMG: ], + [1655978403.943912][4421:4426] CHIP:DMG: + [1655978403.943944][4421:4426] CHIP:DMG: InteractionModelRevision = 1 + [1655978403.943968][4421:4426] CHIP:DMG: } + [1655978403.944242][4421:4426] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655978403.944296][4421:4426] CHIP:TOO: Event number: 0 + [1655978403.944343][4421:4426] CHIP:TOO: Priority: Critical + [1655978403.944389][4421:4426] CHIP:TOO: Timestamp: 4896714 + [1655978403.944531][4421:4426] CHIP:TOO: StartUp: { + [1655978403.944598][4421:4426] CHIP:TOO: SoftwareVersion: 1 + [1655978403.944664][4421:4426] CHIP:TOO: } + [1655978403.944762][4421:4426] CHIP:DMG: MoveToState ReadClient[0xffff94006630]: Moving to [AwaitingSu] disabled: true - label: @@ -356,126 +396,198 @@ tests: is set to True for a particular event path in the EventPathIB in the SubscribeRequestMessage." verification: | - https://github.com/CHIP-Specifications/chip-test-plans/issues/1451 + Use interactive mode to verify this + basic subscribe-event start-up 30 100 1 0 --is-urgent true + + On DUT + [1655979158.361200][1637:1637] CHIP:IM: Received Subscribe request + [1655979158.361388][1637:1637] CHIP:DMG: SubscribeRequestMessage = + [1655979158.361444][1637:1637] CHIP:DMG: { + [1655979158.361512][1637:1637] CHIP:DMG: KeepSubscriptions = false, + [1655979158.361568][1637:1637] CHIP:DMG: MinIntervalFloorSeconds = 0x1e, + [1655979158.361623][1637:1637] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, + [1655979158.361673][1637:1637] CHIP:DMG: EventPathIBs = + [1655979158.361727][1637:1637] CHIP:DMG: [ + [1655979158.361796][1637:1637] CHIP:DMG: EventPath = + [1655979158.361852][1637:1637] CHIP:DMG: { + [1655979158.361928][1637:1637] CHIP:DMG: Endpoint = 0x0, + [1655979158.362016][1637:1637] CHIP:DMG: Cluster = 0x28, + [1655979158.362082][1637:1637] CHIP:DMG: Event = 0x0, + [1655979158.362161][1637:1637] CHIP:DMG: isUrgent = true, + [1655979158.362220][1637:1637] CHIP:DMG: }, + [1655979158.362299][1637:1637] CHIP:DMG: + [1655979158.362350][1637:1637] CHIP:DMG: ], + [1655979158.362425][1637:1637] CHIP:DMG: + [1655979158.362477][1637:1637] CHIP:DMG: isFabricFiltered = true, + [1655979158.362546][1637:1637] CHIP:DMG: InteractionModelRevision = 1 + [1655979158.362638][1637:1637] CHIP:DMG: }, + [1655979158.362788][1637:1637] CHIP:DMG: Final negotiated min/max parameters: Min = 30s, Max = 100s + + + On TH + [1655979158.364976][4496:4501] CHIP:DMG: ReportDataMessage = + [1655979158.365035][4496:4501] CHIP:DMG: { + [1655979158.365087][4496:4501] CHIP:DMG: SubscriptionId = 0x10275693, + [1655979158.365139][4496:4501] CHIP:DMG: EventReportIBs = + [1655979158.365207][4496:4501] CHIP:DMG: [ + [1655979158.365259][4496:4501] CHIP:DMG: EventReportIB = + [1655979158.365331][4496:4501] CHIP:DMG: { + [1655979158.365386][4496:4501] CHIP:DMG: EventDataIB = + [1655979158.365452][4496:4501] CHIP:DMG: { + [1655979158.365514][4496:4501] CHIP:DMG: EventPath = + [1655979158.365584][4496:4501] CHIP:DMG: { + [1655979158.365661][4496:4501] CHIP:DMG: Endpoint = 0x0, + [1655979158.365737][4496:4501] CHIP:DMG: Cluster = 0x28, + [1655979158.365803][4496:4501] CHIP:DMG: Event = 0x0, + [1655979158.365873][4496:4501] CHIP:DMG: }, + [1655979158.365939][4496:4501] CHIP:DMG: + [1655979158.366005][4496:4501] CHIP:DMG: EventNumber = 0x0, + [1655979158.366082][4496:4501] CHIP:DMG: PriorityLevel = 0x2, + [1655979158.366152][4496:4501] CHIP:DMG: SystemTimestamp = 0x4ab7ca, + [1655979158.366221][4496:4501] CHIP:DMG: EventData = + [1655979158.366314][4496:4501] CHIP:DMG: { + [1655979158.366390][4496:4501] CHIP:DMG: 0x0 = 1, + [1655979158.366464][4496:4501] CHIP:DMG: }, + [1655979158.366528][4496:4501] CHIP:DMG: }, + [1655979158.366600][4496:4501] CHIP:DMG: + [1655979158.366654][4496:4501] CHIP:DMG: }, + [1655979158.366721][4496:4501] CHIP:DMG: + [1655979158.366772][4496:4501] CHIP:DMG: ], + [1655979158.366839][4496:4501] CHIP:DMG: + [1655979158.366891][4496:4501] CHIP:DMG: InteractionModelRevision = 1 + [1655979158.367002][4496:4501] CHIP:DMG: } + [1655979158.367266][4496:4501] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1655979158.367320][4496:4501] CHIP:TOO: Event number: 0 + [1655979158.367368][4496:4501] CHIP:TOO: Priority: Critical + [1655979158.367417][4496:4501] CHIP:TOO: Timestamp: 4896714 + [1655979158.367545][4496:4501] CHIP:TOO: StartUp: { + [1655979158.367612][4496:4501] CHIP:TOO: SoftwareVersion: 1 + [1655979158.367662][4496:4501] CHIP:TOO: } + [1655979158.367759][4496:4501] CHIP:DMG: MoveToState ReadClient[0xffff70007140]: Moving to [AwaitingSu] disabled: true - label: "Activate Event subscription from TH to DUT with no change in event triggering attribute values before maximum interval." verification: | - In case of chip tool, here is an example command to use - - sudo ./chip-tool any subscribe-event-by-id 0x0033 0x01 0 100 1 1 - on TH - [1651585153.535829][2998:3003] CHIP:DMG: ReportDataMessage = - [1651585153.535860][2998:3003] CHIP:DMG: { - [1651585153.535888][2998:3003] CHIP:DMG: SubscriptionId = 0x2e08688819c6e7af, - [1651585153.535918][2998:3003] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.535945][2998:3003] CHIP:DMG: } - [1651585153.535990][2998:3003] CHIP:DMG: MoveToState ReadClient[0xffff98002e10]: Moving to [AwaitingSu] - [1651585153.536039][2998:3003] CHIP:EM: Piggybacking Ack for MessageCounter:12695913 on exchange: 56366i - [1651585153.536099][2998:3003] CHIP:IN: Prepared secure message 0xaaaad8552488 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 56366i with MessageCounter:12866229. - [1651585153.536139][2998:3003] CHIP:IN: Sending encrypted msg 0xaaaad8552488 with MessageCounter:12866229 to 0x0000000000000001 (1) at monotonic time: 00000000005716CD msec - [1651585153.537541][2998:3003] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:12695914 on exchange 56366i - [1651585153.537579][2998:3003] CHIP:EM: Found matching exchange: 56366i, Delegate: 0xffff98002e10 - [1651585153.537614][2998:3003] CHIP:EM: Rxd Ack; Removing MessageCounter:12866229 from Retrans Table on exchange 56366i - [1651585153.537641][2998:3003] CHIP:EM: Removed CHIP MessageCounter:12866229 from RetransTable on exchange 56366i - [1651585153.537688][2998:3003] CHIP:DMG: SubscribeResponseMessage = - [1651585153.537718][2998:3003] CHIP:DMG: { - [1651585153.537749][2998:3003] CHIP:DMG: SubscriptionId = 0x2e08688819c6e7af, - [1651585153.537805][2998:3003] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651585153.537861][2998:3003] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651585153.537916][2998:3003] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.537967][2998:3003] CHIP:DMG: } - - - DUT side - [1651585153.529075][2352:2352] CHIP:DMG: SubscribeRequestMessage = - [1651585153.529112][2352:2352] CHIP:DMG: { - [1651585153.529158][2352:2352] CHIP:DMG: KeepSubscriptions = false, - [1651585153.529193][2352:2352] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1651585153.529228][2352:2352] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1651585153.529275][2352:2352] CHIP:DMG: EventPathIBs = - [1651585153.529311][2352:2352] CHIP:DMG: [ - [1651585153.529355][2352:2352] CHIP:DMG: EventPath = - [1651585153.529395][2352:2352] CHIP:DMG: { - [1651585153.529502][2352:2352] CHIP:DMG: Endpoint = 0x1, - [1651585153.529560][2352:2352] CHIP:DMG: Cluster = 0x33, - [1651585153.529603][2352:2352] CHIP:DMG: Event = 0x1, - [1651585153.529652][2352:2352] CHIP:DMG: }, - [1651585153.529694][2352:2352] CHIP:DMG: - [1651585153.529739][2352:2352] CHIP:DMG: ], - [1651585153.529778][2352:2352] CHIP:DMG: - [1651585153.529825][2352:2352] CHIP:DMG: isFabricFiltered = true, - [1651585153.529861][2352:2352] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.529905][2352:2352] CHIP:DMG: }, - [1651585153.529989][2352:2352] CHIP:DMG: Final negotiated min/max parameters: Min = 0s, Max = 100s - [1651585153.530085][2352:2352] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651585153.530195][2352:2352] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1651585153.530365][2352:2352] CHIP:DMG: Fetched 0 events - [1651585153.530403][2352:2352] CHIP:DMG: Sending report (payload has 15 bytes)... - [1651585153.530435][2352:2352] CHIP:DMG: IM RH moving to [AwaitingReportResponse] - [1651585153.530472][2352:2352] CHIP:EM: Piggybacking Ack for MessageCounter:12866228 on exchange: 56366r - [1651585153.530547][2352:2352] CHIP:IN: Prepared secure message 0xaaaabeacb650 to 0x000000000001B669 (1) of type 0x5 and protocolId (0, 1) on exchange 56366r with MessageCounter:12695913. - [1651585153.530596][2352:2352] CHIP:IN: Sending encrypted msg 0xaaaabeacb650 with MessageCounter:12695913 to 0x000000000001B669 (1) at monotonic time: 00000000005729DD msec - [1651585153.530947][2352:2352] CHIP:DMG: ReportsInFlight = 3 with readHandler 0, RE has no more messages - [1651585153.530988][2352:2352] CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet - [1651585153.532011][2352:2352] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:12866229 on exchange 56366r - [1651585153.532053][2352:2352] CHIP:EM: Found matching exchange: 56366r, Delegate: 0xaaaabfc22d00 - [1651585153.532098][2352:2352] CHIP:EM: Rxd Ack; Removing MessageCounter:12695913 from Retrans Table on exchange 56366r - [1651585153.532129][2352:2352] CHIP:EM: Removed CHIP MessageCounter:12695913 from RetransTable on exchange 56366r - [1651585153.532185][2352:2352] CHIP:DMG: StatusResponseMessage = - [1651585153.532236][2352:2352] CHIP:DMG: { - [1651585153.532268][2352:2352] CHIP:DMG: Status = 0x00 (SUCCESS), - [1651585153.532305][2352:2352] CHIP:DMG: InteractionModelRevision = 1 - [1651585153.532351][2352:2352] CHIP:DMG: } + ./chip-tool basic subscribe-event start-up 20 100 1 0 + [1656586853.121700][3433:3438] CHIP:EM: Removed CHIP MessageCounter:63910370 from RetransTable on exchange 37869i + [1656586853.121777][3433:3438] CHIP:DMG: ReportDataMessage = + [1656586853.121815][3433:3438] CHIP:DMG: { + [1656586853.121850][3433:3438] CHIP:DMG: SubscriptionId = 0x9657c553, + [1656586853.121886][3433:3438] CHIP:DMG: EventReportIBs = + [1656586853.121933][3433:3438] CHIP:DMG: [ + [1656586853.121969][3433:3438] CHIP:DMG: EventReportIB = + [1656586853.122019][3433:3438] CHIP:DMG: { + [1656586853.122057][3433:3438] CHIP:DMG: EventDataIB = + [1656586853.122105][3433:3438] CHIP:DMG: { + [1656586853.122150][3433:3438] CHIP:DMG: EventPath = + [1656586853.122204][3433:3438] CHIP:DMG: { + [1656586853.122254][3433:3438] CHIP:DMG: Endpoint = 0x0, + [1656586853.122310][3433:3438] CHIP:DMG: Cluster = 0x28, + [1656586853.122355][3433:3438] CHIP:DMG: Event = 0x0, + [1656586853.122434][3433:3438] CHIP:DMG: }, + [1656586853.122485][3433:3438] CHIP:DMG: + [1656586853.122531][3433:3438] CHIP:DMG: EventNumber = 0x0, + [1656586853.122581][3433:3438] CHIP:DMG: PriorityLevel = 0x2, + [1656586853.122629][3433:3438] CHIP:DMG: SystemTimestamp = 0x8b5ff, + [1656586853.122675][3433:3438] CHIP:DMG: EventData = + [1656586853.122721][3433:3438] CHIP:DMG: { + [1656586853.122797][3433:3438] CHIP:DMG: 0x0 = 1, + [1656586853.122852][3433:3438] CHIP:DMG: }, + [1656586853.122893][3433:3438] CHIP:DMG: }, + [1656586853.122944][3433:3438] CHIP:DMG: + [1656586853.122984][3433:3438] CHIP:DMG: }, + [1656586853.123030][3433:3438] CHIP:DMG: + [1656586853.123065][3433:3438] CHIP:DMG: ], + [1656586853.123113][3433:3438] CHIP:DMG: + [1656586853.123149][3433:3438] CHIP:DMG: InteractionModelRevision = 1 + [1656586853.123184][3433:3438] CHIP:DMG: } + [1656586853.123380][3433:3438] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1656586853.123417][3433:3438] CHIP:TOO: Event number: 0 + [1656586853.123450][3433:3438] CHIP:TOO: Priority: Critical + [1656586853.123483][3433:3438] CHIP:TOO: Timestamp: 570879 + [1656586853.123571][3433:3438] CHIP:TOO: StartUp: { + [1656586853.123634][3433:3438] CHIP:TOO: SoftwareVersion: 1 + [1656586853.123670][3433:3438] CHIP:TOO: } + [1656586853.123739][3433:3438] CHIP:DMG: MoveToState ReadClient[0xffff8c004000]: Moving to [AwaitingSu] disabled: true - label: "With an active Event subscription from TH to DUT, TH sends another Subscribe Request Message to DUT with KeepSubscriptions as False." verification: | - + ./chip-tool basic subscribe-event-by-id 0x000 100 1000 1 0 + + [1656586584.993544][3416:3421] CHIP:DMG: } + [1656586584.993743][3416:3421] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1656586584.993781][3416:3421] CHIP:TOO: Event number: 0 + [1656586584.993815][3416:3421] CHIP:TOO: Priority: Critical + [1656586584.993851][3416:3421] CHIP:TOO: Timestamp: 570879 + [1656586584.993938][3416:3421] CHIP:TOO: StartUp: { + [1656586584.994000][3416:3421] CHIP:TOO: SoftwareVersion: 1 + [1656586584.994036][3416:3421] CHIP:TOO: } + [1656586584.994105][3416:3421] CHIP:DMG: MoveToState ReadClient[0xffff84005da0]: Moving to [AwaitingSu] + [1656586584.994171][3416:3421] CHIP:EM: Piggybacking Ack for MessageCounter:201398118 on exchange: 37980i + [1656586584.994250][3416:3421] CHIP:IN: Prepared secure message 0xaaaae80fa2a8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 37980i with MessageCounter:65866683. + [1656586584.994302][3416:3421] CHIP:IN: Sending encrypted msg 0xaaaae80fa2a8 with MessageCounter:65866683 to 0x0000000000000001 (1) at monotonic time: 0000000001409EBB msec + [1656586584.995316][3416:3421] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:201398119 on exchange 37980i + [1656586584.995363][3416:3421] CHIP:EM: Found matching exchange: 37980i, Delegate: 0xffff84005da0 + [1656586584.995409][3416:3421] CHIP:EM: Rxd Ack; Removing MessageCounter:65866683 from Retrans Table on exchange 37980i + [1656586584.995444][3416:3421] CHIP:EM: Removed CHIP MessageCounter:65866683 from RetransTable on exchange 37980i + [1656586584.995501][3416:3421] CHIP:DMG: SubscribeResponseMessage = + [1656586584.995541][3416:3421] CHIP:DMG: { + [1656586584.995576][3416:3421] CHIP:DMG: SubscriptionId = 0x2f62924f, + [1656586584.995616][3416:3421] CHIP:DMG: MaxInterval = 0x3e8, + [1656586584.995653][3416:3421] CHIP:DMG: InteractionModelRevision = 1 + [1656586584.995687][3416:3421] CHIP:DMG: } + [1656586584.995724][3416:3421] CHIP:DMG: Subscription established with SubscriptionID = 0x2f62924f MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + + + ./chip-tool basic subscribe-event-by-id 0x000 100 1000 1 0 --keepSubscriptions 0 + [1656586592.481229][3423:3428] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 + [1656586592.481265][3423:3428] CHIP:TOO: Event number: 0 + [1656586592.481299][3423:3428] CHIP:TOO: Priority: Critical + [1656586592.481331][3423:3428] CHIP:TOO: Timestamp: 570879 + [1656586592.481420][3423:3428] CHIP:TOO: StartUp: { + [1656586592.481483][3423:3428] CHIP:TOO: SoftwareVersion: 1 + [1656586592.481519][3423:3428] CHIP:TOO: } + [1656586592.481588][3423:3428] CHIP:DMG: MoveToState ReadClient[0xffff98002f00]: Moving to [AwaitingSu] + [1656586592.481653][3423:3428] CHIP:EM: Piggybacking Ack for MessageCounter:193147231 on exchange: 54998i + [1656586592.481731][3423:3428] CHIP:IN: Prepared secure message 0xaaaaf7795938 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 54998i with MessageCounter:224157172. + [1656586592.481785][3423:3428] CHIP:IN: Sending encrypted msg 0xaaaaf7795938 with MessageCounter:224157172 to 0x0000000000000001 (1) at monotonic time: 000000000140BBFB msec + [1656586592.483234][3423:3428] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:193147232 on exchange 54998i + [1656586592.483282][3423:3428] CHIP:EM: Found matching exchange: 54998i, Delegate: 0xffff98002f00 + [1656586592.483327][3423:3428] CHIP:EM: Rxd Ack; Removing MessageCounter:224157172 from Retrans Table on exchange 54998i + [1656586592.483361][3423:3428] CHIP:EM: Removed CHIP MessageCounter:224157172 from RetransTable on exchange 54998i + [1656586592.483418][3423:3428] CHIP:DMG: SubscribeResponseMessage = + [1656586592.483456][3423:3428] CHIP:DMG: { + [1656586592.483490][3423:3428] CHIP:DMG: SubscriptionId = 0xc9446e32, + [1656586592.483532][3423:3428] CHIP:DMG: MaxInterval = 0x3e8, + [1656586592.483569][3423:3428] CHIP:DMG: InteractionModelRevision = 1 + [1656586592.483602][3423:3428] CHIP:DMG: } + [1656586592.483639][3423:3428] CHIP:DMG: Subscription established with SubscriptionID = 0xc9446e32 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 disabled: true - label: - "TH sends Subscribe Request Message to DUT. DUT sends Report Data + "TH sends Subscribe Request Message to DUT + DUT sends Report Data message to DUT. TH sends Status Response Message with a success Status code." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - - basic subscribe-event-by-id 0x000 100 1000 1 0 - - [1653478391.003351][21558:21563] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653478391.003375][21558:21563] CHIP:TOO: Event number: 0 - [1653478391.003395][21558:21563] CHIP:TOO: Priority: Critical - [1653478391.003415][21558:21563] CHIP:TOO: Timestamp: 2525140 - [1653478391.003447][21558:21563] CHIP:TOO: StartUp: { - [1653478391.003475][21558:21563] CHIP:TOO: SoftwareVersion: 1 - [1653478391.003498][21558:21563] CHIP:TOO: } - [1653478391.003565][21558:21563] CHIP:DMG: MoveToState ReadClient[0x7f35bc003d90]: Moving to [AwaitingSu] - [1653478391.003619][21558:21563] CHIP:EM: Piggybacking Ack for MessageCounter:15912689 on exchange: 43259i - [1653478391.003706][21558:21563] CHIP:IN: Prepared secure message 0x5604e6136648 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 43259i with MessageCounter:16478666. - [1653478391.003766][21558:21563] CHIP:IN: Sending encrypted msg 0x5604e6136648 with MessageCounter:16478666 to 0x0000000000000001 (1) at monotonic time: 00000000016D0FD0 msec - [1653478391.012173][21558:21563] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15912690 on exchange 43259i - [1653478391.012194][21558:21563] CHIP:EM: Found matching exchange: 43259i, Delegate: 0x7f35bc003d90 - [1653478391.012210][21558:21563] CHIP:EM: Rxd Ack; Removing MessageCounter:16478666 from Retrans Table on exchange 43259i - [1653478391.012219][21558:21563] CHIP:EM: Removed CHIP MessageCounter:16478666 from RetransTable on exchange 43259i - [1653478391.012241][21558:21563] CHIP:DMG: SubscribeResponseMessage = - [1653478391.012249][21558:21563] CHIP:DMG: { - [1653478391.012257][21558:21563] CHIP:DMG: SubscriptionId = 0x6b28cc4d, - [1653478391.012264][21558:21563] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653478391.012272][21558:21563] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653478391.012280][21558:21563] CHIP:DMG: InteractionModelRevision = 1 - [1653478391.012286][21558:21563] CHIP:DMG: } - [1653478391.012297][21558:21563] CHIP:DMG: Subscription established with SubscriptionID = 0x6b28cc4d MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + sudo ./chip-tool basic subscribe-event-by-id 0x000 20 400 1 0 + + [1655979596.078821][4557:4562] CHIP:DMG: SubscribeResponseMessage = + [1655979596.078861][4557:4562] CHIP:DMG: { + [1655979596.078897][4557:4562] CHIP:DMG: SubscriptionId = 0x6a61af41, + [1655979596.078955][4557:4562] CHIP:DMG: MaxInterval = 0x190, + [1655979596.078995][4557:4562] CHIP:DMG: InteractionModelRevision = 1 + [1655979596.079030][4557:4562] CHIP:DMG: } + [1655979596.079069][4557:4562] CHIP:DMG: Subscription established with SubscriptionID = 0x6a61af41 MinInterval = 20s MaxInterval = 400s Peer = 01:0000000000000001 disabled: true - label: "TH sends Subscribe Request Message to DUT. DUT sends Report Data - message to DUT . TH sends Status Response Message with an error + message to DUT + TH sends Status Response Message with an error Status." verification: | This is not testable in normal scenario, and needs to be tested as part of Unit test.This test step to be removed from the manual execution. @@ -485,7 +597,7 @@ tests: "TH sends Subscribe Request Message to DUT with EventRequests set to path which indicates a cluster event that is not supported." verification: | - cannot be executed with V1.0 SDK. + Out of Scope for V1.0 disabled: true - label: @@ -553,33 +665,201 @@ tests: information field matching the node indicated in the path and EventMin field." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood - basic subscribe-event-by-id 0 100 1000 3 0 - - [1653656063.055701][14377:14382] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653656063.055723][14377:14382] CHIP:TOO: Event number: 65536 - [1653656063.055741][14377:14382] CHIP:TOO: Priority: Critical - [1653656063.055758][14377:14382] CHIP:TOO: Timestamp: 127594 - [1653656063.055811][14377:14382] CHIP:TOO: StartUp: { - [1653656063.055838][14377:14382] CHIP:TOO: SoftwareVersion: 1 - [1653656063.055859][14377:14382] CHIP:TOO: } - [1653656063.055918][14377:14382] CHIP:DMG: MoveToState ReadClient[0x7f4f68002260]: Moving to [AwaitingSu] - [1653656063.055970][14377:14382] CHIP:EM: Piggybacking Ack for MessageCounter:5873379 on exchange: 39762i - [1653656063.056029][14377:14382] CHIP:IN: Prepared secure message 0x55ccea0fc878 to 0x0000000000000003 (1) of type 0x1 and protocolId (0, 1) on exchange 39762i with MessageCounter:3741292. - [1653656063.056240][14377:14382] CHIP:IN: Sending encrypted msg 0x55ccea0fc878 with MessageCounter:3741292 to 0x0000000000000003 (1) at monotonic time: 0000000001BE791F msec - [1653656063.069994][14377:14382] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:5873380 on exchange 39762i - [1653656063.070016][14377:14382] CHIP:EM: Found matching exchange: 39762i, Delegate: 0x7f4f68002260 - [1653656063.070032][14377:14382] CHIP:EM: Rxd Ack; Removing MessageCounter:3741292 from Retrans Table on exchange 39762i - [1653656063.070039][14377:14382] CHIP:EM: Removed CHIP MessageCounter:3741292 from RetransTable on exchange 39762i - [1653656063.070063][14377:14382] CHIP:DMG: SubscribeResponseMessage = - [1653656063.070074][14377:14382] CHIP:DMG: { - [1653656063.070083][14377:14382] CHIP:DMG: SubscriptionId = 0x49bb06f8, - [1653656063.070091][14377:14382] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653656063.070100][14377:14382] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653656063.070108][14377:14382] CHIP:DMG: InteractionModelRevision = 1 - [1653656063.070115][14377:14382] CHIP:DMG: } - [1653656063.070127][14377:14382] CHIP:DMG: Subscription established with SubscriptionID = 0x49bb06f8 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000003 + sudo ./chip-tool accesscontrol subscribe-event access-control-entry-changed 5 10 1 0 + [1655979825.174136][4566:4571] CHIP:DMG: ReportDataMessage = + [1655979825.174177][4566:4571] CHIP:DMG: { + [1655979825.174213][4566:4571] CHIP:DMG: SubscriptionId = 0xd263227e, + [1655979825.174249][4566:4571] CHIP:DMG: EventReportIBs = + [1655979825.174303][4566:4571] CHIP:DMG: [ + [1655979825.174339][4566:4571] CHIP:DMG: EventReportIB = + [1655979825.174396][4566:4571] CHIP:DMG: { + [1655979825.174434][4566:4571] CHIP:DMG: EventDataIB = + [1655979825.174481][4566:4571] CHIP:DMG: { + [1655979825.174524][4566:4571] CHIP:DMG: EventPath = + [1655979825.174578][4566:4571] CHIP:DMG: { + [1655979825.174628][4566:4571] CHIP:DMG: Endpoint = 0x0, + [1655979825.174681][4566:4571] CHIP:DMG: Cluster = 0x1f, + [1655979825.174732][4566:4571] CHIP:DMG: Event = 0x0, + [1655979825.174784][4566:4571] CHIP:DMG: }, + [1655979825.174835][4566:4571] CHIP:DMG: + [1655979825.174883][4566:4571] CHIP:DMG: EventNumber = 0x1, + [1655979825.174944][4566:4571] CHIP:DMG: PriorityLevel = 0x1, + [1655979825.174995][4566:4571] CHIP:DMG: SystemTimestamp = 0x4bdb01, + [1655979825.175041][4566:4571] CHIP:DMG: EventData = + [1655979825.175089][4566:4571] CHIP:DMG: { + [1655979825.175162][4566:4571] CHIP:DMG: 0x1 = NULL + [1655979825.175216][4566:4571] CHIP:DMG: 0x2 = 0, + [1655979825.175267][4566:4571] CHIP:DMG: 0x3 = 1, + [1655979825.175312][4566:4571] CHIP:DMG: 0x4 = + [1655979825.175360][4566:4571] CHIP:DMG: { + [1655979825.175470][4566:4571] CHIP:DMG: 0x1 = 5, + [1655979825.175529][4566:4571] CHIP:DMG: 0x2 = 2, + [1655979825.175584][4566:4571] CHIP:DMG: 0x3 = [ + [1655979825.175653][4566:4571] CHIP:DMG: 112233, + [1655979825.175754][4566:4571] CHIP:DMG: ], + [1655979825.175809][4566:4571] CHIP:DMG: 0x4 = NULL + [1655979825.175865][4566:4571] CHIP:DMG: 0xfe = 1, + [1655979825.175918][4566:4571] CHIP:DMG: }, + [1655979825.175968][4566:4571] CHIP:DMG: 0xfe = 1, + [1655979825.176018][4566:4571] CHIP:DMG: }, + [1655979825.176059][4566:4571] CHIP:DMG: }, + [1655979825.176115][4566:4571] CHIP:DMG: + [1655979825.176155][4566:4571] CHIP:DMG: }, + [1655979825.176208][4566:4571] CHIP:DMG: + [1655979825.176243][4566:4571] CHIP:DMG: ], + [1655979825.176326][4566:4571] CHIP:DMG: + [1655979825.176364][4566:4571] CHIP:DMG: InteractionModelRevision = 1 + [1655979825.176399][4566:4571] CHIP:DMG: } + [1655979825.176631][4566:4571] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 + [1655979825.176668][4566:4571] CHIP:TOO: Event number: 1 + [1655979825.176701][4566:4571] CHIP:TOO: Priority: Info + [1655979825.176733][4566:4571] CHIP:TOO: Timestamp: 4971265 + [1655979825.176857][4566:4571] CHIP:TOO: AccessControlEntryChanged: { + [1655979825.176896][4566:4571] CHIP:TOO: AdminNodeID: null + [1655979825.176945][4566:4571] CHIP:TOO: AdminPasscodeID: 0 + [1655979825.176982][4566:4571] CHIP:TOO: ChangeType: 1 + [1655979825.177016][4566:4571] CHIP:TOO: LatestValue: { + [1655979825.177049][4566:4571] CHIP:TOO: Privilege: 5 + [1655979825.177083][4566:4571] CHIP:TOO: AuthMode: 2 + [1655979825.177125][4566:4571] CHIP:TOO: Subjects: 1 entries + [1655979825.177168][4566:4571] CHIP:TOO: [1]: 112233 + [1655979825.177206][4566:4571] CHIP:TOO: Targets: null + [1655979825.177242][4566:4571] CHIP:TOO: FabricIndex: 1 + [1655979825.177276][4566:4571] CHIP:TOO: } + [1655979825.177310][4566:4571] CHIP:TOO: AdminFabricIndex: 1 + [1655979825.177344][4566:4571] CHIP:TOO: } + [1655979825.177433][4566:4571] CHIP:DMG: MoveToState ReadClient[0xffff84006d40]: Moving to [AwaitingSu] + + + + sudo ./chip-tool accesscontrol subscribe-event access-control-entry-changed 5 10 1 0 --event-min 0 + [1655979915.863156][4607:4612] CHIP:DMG: ReportDataMessage = + [1655979915.863196][4607:4612] CHIP:DMG: { + [1655979915.863232][4607:4612] CHIP:DMG: SubscriptionId = 0xeb39dedd, + [1655979915.863268][4607:4612] CHIP:DMG: EventReportIBs = + [1655979915.863321][4607:4612] CHIP:DMG: [ + [1655979915.863357][4607:4612] CHIP:DMG: EventReportIB = + [1655979915.863412][4607:4612] CHIP:DMG: { + [1655979915.863450][4607:4612] CHIP:DMG: EventDataIB = + [1655979915.863496][4607:4612] CHIP:DMG: { + [1655979915.863538][4607:4612] CHIP:DMG: EventPath = + [1655979915.863586][4607:4612] CHIP:DMG: { + [1655979915.863636][4607:4612] CHIP:DMG: Endpoint = 0x0, + [1655979915.863692][4607:4612] CHIP:DMG: Cluster = 0x1f, + [1655979915.863743][4607:4612] CHIP:DMG: Event = 0x0, + [1655979915.863790][4607:4612] CHIP:DMG: }, + [1655979915.863845][4607:4612] CHIP:DMG: + [1655979915.863892][4607:4612] CHIP:DMG: EventNumber = 0x1, + [1655979915.863942][4607:4612] CHIP:DMG: PriorityLevel = 0x1, + [1655979915.863990][4607:4612] CHIP:DMG: SystemTimestamp = 0x4bdb01, + [1655979915.864036][4607:4612] CHIP:DMG: EventData = + [1655979915.864083][4607:4612] CHIP:DMG: { + [1655979915.864149][4607:4612] CHIP:DMG: 0x1 = NULL + [1655979915.864201][4607:4612] CHIP:DMG: 0x2 = 0, + [1655979915.864252][4607:4612] CHIP:DMG: 0x3 = 1, + [1655979915.864300][4607:4612] CHIP:DMG: 0x4 = + [1655979915.864348][4607:4612] CHIP:DMG: { + [1655979915.864399][4607:4612] CHIP:DMG: 0x1 = 5, + [1655979915.864454][4607:4612] CHIP:DMG: 0x2 = 2, + [1655979915.864505][4607:4612] CHIP:DMG: 0x3 = [ + [1655979915.864571][4607:4612] CHIP:DMG: 112233, + [1655979915.864631][4607:4612] CHIP:DMG: ], + [1655979915.864685][4607:4612] CHIP:DMG: 0x4 = NULL + [1655979915.864738][4607:4612] CHIP:DMG: 0xfe = 1, + [1655979915.864791][4607:4612] CHIP:DMG: }, + [1655979915.864841][4607:4612] CHIP:DMG: 0xfe = 1, + [1655979915.864889][4607:4612] CHIP:DMG: }, + [1655979915.864934][4607:4612] CHIP:DMG: }, + [1655979915.864989][4607:4612] CHIP:DMG: + [1655979915.865025][4607:4612] CHIP:DMG: }, + [1655979915.865076][4607:4612] CHIP:DMG: + [1655979915.865111][4607:4612] CHIP:DMG: ], + [1655979915.865163][4607:4612] CHIP:DMG: + [1655979915.865198][4607:4612] CHIP:DMG: InteractionModelRevision = 1 + [1655979915.865232][4607:4612] CHIP:DMG: } + [1655979915.865462][4607:4612] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 + [1655979915.865497][4607:4612] CHIP:TOO: Event number: 1 + [1655979915.865530][4607:4612] CHIP:TOO: Priority: Info + [1655979915.865562][4607:4612] CHIP:TOO: Timestamp: 4971265 + [1655979915.865683][4607:4612] CHIP:TOO: AccessControlEntryChanged: { + [1655979915.865720][4607:4612] CHIP:TOO: AdminNodeID: null + [1655979915.865767][4607:4612] CHIP:TOO: AdminPasscodeID: 0 + [1655979915.865802][4607:4612] CHIP:TOO: ChangeType: 1 + [1655979915.865835][4607:4612] CHIP:TOO: LatestValue: { + [1655979915.865867][4607:4612] CHIP:TOO: Privilege: 5 + [1655979915.865899][4607:4612] CHIP:TOO: AuthMode: 2 + [1655979915.865939][4607:4612] CHIP:TOO: Subjects: 1 entries + [1655979915.865981][4607:4612] CHIP:TOO: [1]: 112233 + [1655979915.866018][4607:4612] CHIP:TOO: Targets: null + [1655979915.866052][4607:4612] CHIP:TOO: FabricIndex: 1 + [1655979915.866084][4607:4612] CHIP:TOO: } + [1655979915.866116][4607:4612] CHIP:TOO: AdminFabricIndex: 1 + [1655979915.866148][4607:4612] CHIP:TOO: } + [1655979915.866233][4607:4612] CHIP:DMG: MoveToState ReadClient[0xffffa0005710]: Moving to [AwaitingSu] + + [1655979915.863156][4607:4612] CHIP:DMG: ReportDataMessage = + [1655979915.863196][4607:4612] CHIP:DMG: { + [1655979915.863232][4607:4612] CHIP:DMG: SubscriptionId = 0xeb39dedd, + [1655979915.863268][4607:4612] CHIP:DMG: EventReportIBs = + [1655979915.863321][4607:4612] CHIP:DMG: [ + [1655979915.863357][4607:4612] CHIP:DMG: EventReportIB = + [1655979915.863412][4607:4612] CHIP:DMG: { + [1655979915.863450][4607:4612] CHIP:DMG: EventDataIB = + [1655979915.863496][4607:4612] CHIP:DMG: { + [1655979915.863538][4607:4612] CHIP:DMG: EventPath = + [1655979915.863586][4607:4612] CHIP:DMG: { + [1655979915.863636][4607:4612] CHIP:DMG: Endpoint = 0x0, + [1655979915.863692][4607:4612] CHIP:DMG: Cluster = 0x1f, + [1655979915.863743][4607:4612] CHIP:DMG: Event = 0x0, + [1655979915.863790][4607:4612] CHIP:DMG: }, + [1655979915.863845][4607:4612] CHIP:DMG: + [1655979915.863892][4607:4612] CHIP:DMG: EventNumber = 0x1, + [1655979915.863942][4607:4612] CHIP:DMG: PriorityLevel = 0x1, + [1655979915.863990][4607:4612] CHIP:DMG: SystemTimestamp = 0x4bdb01, + [1655979915.864036][4607:4612] CHIP:DMG: EventData = + [1655979915.864083][4607:4612] CHIP:DMG: { + [1655979915.864149][4607:4612] CHIP:DMG: 0x1 = NULL + [1655979915.864201][4607:4612] CHIP:DMG: 0x2 = 0, + [1655979915.864252][4607:4612] CHIP:DMG: 0x3 = 1, + [1655979915.864300][4607:4612] CHIP:DMG: 0x4 = + [1655979915.864348][4607:4612] CHIP:DMG: { + [1655979915.864399][4607:4612] CHIP:DMG: 0x1 = 5, + [1655979915.864454][4607:4612] CHIP:DMG: 0x2 = 2, + [1655979915.864505][4607:4612] CHIP:DMG: 0x3 = [ + [1655979915.864571][4607:4612] CHIP:DMG: 112233, + [1655979915.864631][4607:4612] CHIP:DMG: ], + [1655979915.864685][4607:4612] CHIP:DMG: 0x4 = NULL + [1655979915.864738][4607:4612] CHIP:DMG: 0xfe = 1, + [1655979915.864791][4607:4612] CHIP:DMG: }, + [1655979915.864841][4607:4612] CHIP:DMG: 0xfe = 1, + [1655979915.864889][4607:4612] CHIP:DMG: }, + [1655979915.864934][4607:4612] CHIP:DMG: }, + [1655979915.864989][4607:4612] CHIP:DMG: + [1655979915.865025][4607:4612] CHIP:DMG: }, + [1655979915.865076][4607:4612] CHIP:DMG: + [1655979915.865111][4607:4612] CHIP:DMG: ], + [1655979915.865163][4607:4612] CHIP:DMG: + [1655979915.865198][4607:4612] CHIP:DMG: InteractionModelRevision = 1 + [1655979915.865232][4607:4612] CHIP:DMG: } + [1655979915.865462][4607:4612] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0000 + [1655979915.865497][4607:4612] CHIP:TOO: Event number: 1 + [1655979915.865530][4607:4612] CHIP:TOO: Priority: Info + [1655979915.865562][4607:4612] CHIP:TOO: Timestamp: 4971265 + [1655979915.865683][4607:4612] CHIP:TOO: AccessControlEntryChanged: { + [1655979915.865720][4607:4612] CHIP:TOO: AdminNodeID: null + [1655979915.865767][4607:4612] CHIP:TOO: AdminPasscodeID: 0 + [1655979915.865802][4607:4612] CHIP:TOO: ChangeType: 1 + [1655979915.865835][4607:4612] CHIP:TOO: LatestValue: { + [1655979915.865867][4607:4612] CHIP:TOO: Privilege: 5 + [1655979915.865899][4607:4612] CHIP:TOO: AuthMode: 2 + [1655979915.865939][4607:4612] CHIP:TOO: Subjects: 1 entries + [1655979915.865981][4607:4612] CHIP:TOO: [1]: 112233 + [1655979915.866018][4607:4612] CHIP:TOO: Targets: null + [1655979915.866052][4607:4612] CHIP:TOO: FabricIndex: 1 + [1655979915.866084][4607:4612] CHIP:TOO: } + [1655979915.866116][4607:4612] CHIP:TOO: AdminFabricIndex: 1 + [1655979915.866148][4607:4612] CHIP:TOO: } + [1655979915.866233][4607:4612] CHIP:DMG: MoveToState ReadClient[0xffffa0005710]: Moving to [AwaitingSu] disabled: true - label: @@ -587,60 +867,192 @@ tests: information field matching the node indicated in the path and the event number is less than the EventMin field." verification: | - Use interactive mode to verify this - ./chip-tool start interactive mood + sudo ./chip-tool basic subscribe-event-by-id 0x000 100 1000 1 0 --event-min 1 - basic subscribe-event-by-id 0x000 100 1000 1 0 --event-min 1 On TH - [1653479609.999143][22515:22520] CHIP:DMG: ReportDataMessage = - [1653479609.999186][22515:22520] CHIP:DMG: { - [1653479609.999216][22515:22520] CHIP:DMG: SubscriptionId = 0x8ee91d0c, - [1653479609.999243][22515:22520] CHIP:DMG: InteractionModelRevision = 1 - [1653479609.999269][22515:22520] CHIP:DMG: } - [1653479609.999321][22515:22520] CHIP:DMG: MoveToState ReadClient[0x7fecd8003370]: Moving to [AwaitingSu] - - On TH - [1653479609.997019][1507:1507] CHIP:IM: Received Subscribe request - [1653479609.997218][1507:1507] CHIP:DMG: SubscribeRequestMessage = - [1653479609.997284][1507:1507] CHIP:DMG: { - [1653479609.997338][1507:1507] CHIP:DMG: KeepSubscriptions = false, - [1653479609.997401][1507:1507] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653479609.997466][1507:1507] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653479609.997526][1507:1507] CHIP:DMG: EventPathIBs = - [1653479609.997590][1507:1507] CHIP:DMG: [ - [1653479609.997649][1507:1507] CHIP:DMG: EventPath = - [1653479609.997714][1507:1507] CHIP:DMG: { - [1653479609.997780][1507:1507] CHIP:DMG: Endpoint = 0x0, - [1653479609.997858][1507:1507] CHIP:DMG: Cluster = 0x28, - [1653479609.997933][1507:1507] CHIP:DMG: Event = 0x0, - [1653479609.998005][1507:1507] CHIP:DMG: }, - [1653479609.998073][1507:1507] CHIP:DMG: - [1653479609.998132][1507:1507] CHIP:DMG: ], - [1653479609.998200][1507:1507] CHIP:DMG: - [1653479609.998256][1507:1507] CHIP:DMG: EventFilterIBs = - [1653479609.998327][1507:1507] CHIP:DMG: [ - [1653479609.998386][1507:1507] CHIP:DMG: EventFilterIB = - [1653479609.998451][1507:1507] CHIP:DMG: { - [1653479609.998514][1507:1507] CHIP:DMG: EventMin = 0x1, - [1653479609.998577][1507:1507] CHIP:DMG: }, - [1653479609.998642][1507:1507] CHIP:DMG: - [1653479609.998699][1507:1507] CHIP:DMG: ], - [1653479609.998764][1507:1507] CHIP:DMG: - [1653479609.998823][1507:1507] CHIP:DMG: isFabricFiltered = true, - [1653479609.998883][1507:1507] CHIP:DMG: InteractionModelRevision = 1 - [1653479609.998939][1507:1507] CHIP:DMG: }, - [1653479609.999107][1507:1507] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s - [1653479609.999296][1507:1507] CHIP:DMG: IM RH moving to [GeneratingReports] - [1653479609.999467][1507:1507] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1653479609.999772][1507:1507] CHIP:DMG: Fetched 0 events + [1655980488.281744][4665:4671] CHIP:EM: Removed CHIP MessageCounter:255017723 from RetransTable on exchange 3120i + [1655980488.281823][4665:4671] CHIP:DMG: ReportDataMessage = + [1655980488.281891][4665:4671] CHIP:DMG: { + [1655980488.281938][4665:4671] CHIP:DMG: SubscriptionId = 0x1b82bfe6, + [1655980488.282000][4665:4671] CHIP:DMG: InteractionModelRevision = 1 + [1655980488.282046][4665:4671] CHIP:DMG: } + [1655980488.282129][4665:4671] CHIP:DMG: MoveToState ReadClient[0xffff94006ea0]: Moving to [AwaitingSu] + [1655980488.282222][4665:4671] CHIP:EM: Piggybacking Ack for MessageCounter:7910071 on exchange: 3120i disabled: true - label: "With an active Event subscription from TH to DUT, change attribute values on DUT to create events multiple times." verification: | - + Provision DUT and TH. + + To generate the software fault event, execute the following + 1. Get the PID of the DUT & KIll it . + ps -aef|grep all-clusters-app + sudo kill -SIGUSR1 + + After killing the DUT , you may observe the following log in the DUT + [1656509949.322396][1609:1609] CHIP:IM: Received Subscribe request + [1656509949.322534][1609:1609] CHIP:DMG: SubscribeRequestMessage = + [1656509949.322582][1609:1609] CHIP:DMG: { + [1656509949.322626][1609:1609] CHIP:DMG: KeepSubscriptions = false, + [1656509949.322674][1609:1609] CHIP:DMG: MinIntervalFloorSeconds = 0x64, + [1656509949.322723][1609:1609] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, + [1656509949.322767][1609:1609] CHIP:DMG: EventPathIBs = + [1656509949.322814][1609:1609] CHIP:DMG: [ + [1656509949.322858][1609:1609] CHIP:DMG: EventPath = + [1656509949.322906][1609:1609] CHIP:DMG: { + [1656509949.322957][1609:1609] CHIP:DMG: Endpoint = 0x0, + [1656509949.323022][1609:1609] CHIP:DMG: Cluster = 0x34, + [1656509949.323085][1609:1609] CHIP:DMG: Event = 0x0, + [1656509949.323142][1609:1609] CHIP:DMG: }, + [1656509949.323197][1609:1609] CHIP:DMG: + [1656509949.323240][1609:1609] CHIP:DMG: ], + [1656509949.323290][1609:1609] CHIP:DMG: + [1656509949.323335][1609:1609] CHIP:DMG: isFabricFiltered = true, + [1656509949.323381][1609:1609] CHIP:DMG: InteractionModelRevision = 1 + [1656509949.323424][1609:1609] CHIP:DMG: }, + [1656509949.323535][1609:1609] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s + + [1656509949.326403][1609:1609] CHIP:DMG: Fetched 14 events + [1656509949.326451][1609:1609] CHIP:DMG: Sending report (payload has 984 bytes)... + + + + + On TH Send the below command + + ./chip-tool softwarediagnostics subscribe-event software-fault 1 0 + [1656509949.252105][1593:1598] CHIP:DMG: InteractionModelRevision = 1 + [1656509949.252131][1593:1598] CHIP:DMG: } + [1656509949.252482][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.252514][1593:1598] CHIP:TOO: Event number: 7 + [1656509949.252540][1593:1598] CHIP:TOO: Priority: Info + [1656509949.252564][1593:1598] CHIP:TOO: Timestamp: 1667389 + [1656509949.252673][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.252726][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.252755][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.252785][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33343A353220323032320A + [1656509949.252812][1593:1598] CHIP:TOO: } + [1656509949.252919][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.252946][1593:1598] CHIP:TOO: Event number: 8 + [1656509949.252970][1593:1598] CHIP:TOO: Priority: Info + [1656509949.252994][1593:1598] CHIP:TOO: Timestamp: 1668865 + [1656509949.253028][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.253054][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.253079][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.253106][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33343A353420323032320A + [1656509949.253131][1593:1598] CHIP:TOO: } + [1656509949.253235][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.253262][1593:1598] CHIP:TOO: Event number: 9 + [1656509949.253286][1593:1598] CHIP:TOO: Priority: Info + [1656509949.253310][1593:1598] CHIP:TOO: Timestamp: 1671097 + [1656509949.253343][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.253370][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.253394][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.253420][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33343A353620323032320A + [1656509949.253445][1593:1598] CHIP:TOO: } + [1656509949.253552][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.253578][1593:1598] CHIP:TOO: Event number: 10 + [1656509949.253602][1593:1598] CHIP:TOO: Priority: Info + [1656509949.253626][1593:1598] CHIP:TOO: Timestamp: 1899745 + [1656509949.253658][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.253685][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.253708][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.253734][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A343520323032320A + [1656509949.253755][1593:1598] CHIP:TOO: } + [1656509949.253856][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.253883][1593:1598] CHIP:TOO: Event number: 11 + [1656509949.253904][1593:1598] CHIP:TOO: Priority: Info + [1656509949.253924][1593:1598] CHIP:TOO: Timestamp: 1901573 + [1656509949.253954][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.253977][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.253997][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.254020][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A343620323032320A + [1656509949.254042][1593:1598] CHIP:TOO: } + [1656509949.254132][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.254155][1593:1598] CHIP:TOO: Event number: 12 + [1656509949.254176][1593:1598] CHIP:TOO: Priority: Info + [1656509949.254196][1593:1598] CHIP:TOO: Timestamp: 1903174 + [1656509949.254225][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.254247][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.254268][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.254291][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A343820323032320A + [1656509949.254313][1593:1598] CHIP:TOO: } + [1656509949.254403][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.254426][1593:1598] CHIP:TOO: Event number: 13 + [1656509949.254447][1593:1598] CHIP:TOO: Priority: Info + [1656509949.254468][1593:1598] CHIP:TOO: Timestamp: 1904273 + [1656509949.254496][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.254519][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.254540][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.254563][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A343920323032320A + [1656509949.254584][1593:1598] CHIP:TOO: } + [1656509949.254674][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.254697][1593:1598] CHIP:TOO: Event number: 14 + [1656509949.254718][1593:1598] CHIP:TOO: Priority: Info + [1656509949.254739][1593:1598] CHIP:TOO: Timestamp: 1905286 + [1656509949.254766][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.254789][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.254810][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.254833][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A353020323032320A + [1656509949.254854][1593:1598] CHIP:TOO: } + [1656509949.254945][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.254967][1593:1598] CHIP:TOO: Event number: 15 + [1656509949.254988][1593:1598] CHIP:TOO: Priority: Info + [1656509949.255008][1593:1598] CHIP:TOO: Timestamp: 1907173 + [1656509949.255036][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.255059][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.255080][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.255103][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A353220323032320A + [1656509949.255125][1593:1598] CHIP:TOO: } + [1656509949.255214][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.255236][1593:1598] CHIP:TOO: Event number: 16 + [1656509949.255257][1593:1598] CHIP:TOO: Priority: Info + [1656509949.255277][1593:1598] CHIP:TOO: Timestamp: 1908021 + [1656509949.255305][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.255328][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.255349][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.255372][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A353320323032320A + [1656509949.255393][1593:1598] CHIP:TOO: } + [1656509949.255484][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.255506][1593:1598] CHIP:TOO: Event number: 17 + [1656509949.255527][1593:1598] CHIP:TOO: Priority: Info + [1656509949.255548][1593:1598] CHIP:TOO: Timestamp: 1908798 + [1656509949.255575][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.255598][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.255618][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.255641][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A353420323032320A + [1656509949.255663][1593:1598] CHIP:TOO: } + [1656509949.255752][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.255774][1593:1598] CHIP:TOO: Event number: 18 + [1656509949.255796][1593:1598] CHIP:TOO: Priority: Info + [1656509949.255816][1593:1598] CHIP:TOO: Timestamp: 1909478 + [1656509949.255844][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.255866][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.255887][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.255910][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A353420323032320A + [1656509949.255931][1593:1598] CHIP:TOO: } + [1656509949.256022][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.256044][1593:1598] CHIP:TOO: Event number: 19 + [1656509949.256065][1593:1598] CHIP:TOO: Priority: Info + [1656509949.256086][1593:1598] CHIP:TOO: Timestamp: 1910178 + [1656509949.256114][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.256136][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.256157][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.256193][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A353520323032320A + [1656509949.256216][1593:1598] CHIP:TOO: } + [1656509949.256306][1593:1598] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1656509949.256328][1593:1598] CHIP:TOO: Event number: 20 + [1656509949.256349][1593:1598] CHIP:TOO: Priority: Info + [1656509949.256370][1593:1598] CHIP:TOO: Timestamp: 1911229 + [1656509949.256398][1593:1598] CHIP:TOO: SoftwareFault: { + [1656509949.256420][1593:1598] CHIP:TOO: Id: 1609 + [1656509949.256442][1593:1598] CHIP:TOO: Name: 1609 + [1656509949.256464][1593:1598] CHIP:TOO: FaultRecording: 576564204A756E2032392031333A33383A353620323032320A + [1656509949.256486][1593:1598] CHIP:TOO: } + [1656509949.256679][1593:1598] CHIP:DMG: MoveToState ReadClient[0xffff74004470]: Moving to [AwaitingSu] disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_IDM_6_3.yaml b/src/app/tests/suites/certification/Test_TC_IDM_6_3.yaml index 3b38b6b0218114..28d17f13f9f2ae 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_6_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_6_3.yaml @@ -14,8 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 20.6.3. [TC-IDM-6.3] Events Read Interaction from DUT to TH [DUT - - Controller] + 21.6.3. [TC-IDM-6.3] Events Read Interaction from DUT to TH. [{DUT_Client}] config: nodeId: 0x12344321 @@ -27,70 +26,13 @@ tests: verification: | In case of chip tool, here is an example command to use + On TH verify that Read Request Message received has these fields EventRequests, EventFilters, and FabricFiltered. + sudo ./chip-tool any read-event-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF - [1655210591.947581][2883:2883] CHIP:IM: Received Read request - [1655210591.947662][2883:2883] CHIP:DMG: ReadRequestMessage = - [1655210591.947709][2883:2883] CHIP:DMG: { - [1655210591.947750][2883:2883] CHIP:DMG: EventPathIBs = - [1655210591.947797][2883:2883] CHIP:DMG: [ - [1655210591.947841][2883:2883] CHIP:DMG: EventPath = - [1655210591.947889][2883:2883] CHIP:DMG: { - [1655210591.947935][2883:2883] CHIP:DMG: }, - [1655210591.947984][2883:2883] CHIP:DMG: - [1655210591.948027][2883:2883] CHIP:DMG: ], - [1655210591.948076][2883:2883] CHIP:DMG: - [1655210591.948121][2883:2883] CHIP:DMG: isFabricFiltered = true, - [1655210591.948168][2883:2883] CHIP:DMG: InteractionModelRevision = 1 - [1655210591.948211][2883:2883] CHIP:DMG: }, - [1655210591.948313][2883:2883] CHIP:DMG: IM RH moving to [GeneratingReports] - [1655210591.948437][2883:2883] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1655210591.948549][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0028 e=0 p=v - [1655210591.948611][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.948716][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_001F e=0 p=a - [1655210591.948744][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.948825][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1655210591.948852][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.948921][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.948948][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949032][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949061][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949123][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1655210591.949150][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949218][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1655210591.949244][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949311][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949337][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949398][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949424][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949484][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949510][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949570][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949595][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949656][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0033 e=0 p=v - [1655210591.949681][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949743][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949769][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949829][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949855][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949914][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.949940][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.949999][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.950025][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.950086][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1655210591.950112][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.950178][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.950204][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.950263][2883:2883] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_003B e=1 p=v - [1655210591.950289][2883:2883] CHIP:DMG: AccessControl: allowed - [1655210591.950334][2883:2883] CHIP:DMG: Fetched 19 events - [1655210591.950362][2883:2883] CHIP:DMG: Sending report (payload has 887 bytes)... - [1655210591.950396][2883:2883] CHIP:EM: Piggybacking Ack for MessageCounter:38120344 on exchange: 48722r - [1655210591.950502][2883:2883] CHIP:IN: Prepared secure message 0xaaaade6d4e40 to 0x000000000001B669 (1) of type 0x5 and protocolId (0, 1) on exchange 48722r with MessageCounter:59542778. - [1655210591.950539][2883:2883] CHIP:IN: Sending encrypted msg 0xaaaade6d4e40 with MessageCounter:59542778 to 0x000000000001B669 (1) at monotonic time: 0000000001C61135 msec - [1655210591.950689][2883:2883] CHIP:DMG: OnReportConfirm: NumReports = 0 + On TH [1655210591.986723][4218:4223] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 [1655210591.986748][4218:4223] CHIP:TOO: Event number: 65536 diff --git a/src/app/tests/suites/certification/Test_TC_IDM_6_4.yaml b/src/app/tests/suites/certification/Test_TC_IDM_6_4.yaml index 1624a7f7a24bce..09008ba0d5dd43 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_6_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_6_4.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: - 20.6.4. [TC-IDM-6.4] Events Subscribe Interaction from DUT to TH [DUT - - Controller] + 21.6.4. [TC-IDM-6.4] Events Subscribe Interaction from DUT to TH. + [{DUT_Client}] config: nodeId: 0x12344321 @@ -27,135 +27,44 @@ tests: "DUT sends Subscribe Request Message to the TH for a supported event." verification: | sudo ./chip-tool basic subscribe-event start-up 100 1000 1 0 - On DUT - [1653649895.213398][1424:1424] CHIP:DMG: SubscribeRequestMessage = - [1653649895.213464][1424:1424] CHIP:DMG: { - [1653649895.213522][1424:1424] CHIP:DMG: KeepSubscriptions = false, - [1653649895.213590][1424:1424] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653649895.213656][1424:1424] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653649895.213718][1424:1424] CHIP:DMG: EventPathIBs = - [1653649895.213782][1424:1424] CHIP:DMG: [ - [1653649895.213843][1424:1424] CHIP:DMG: EventPath = - [1653649895.213920][1424:1424] CHIP:DMG: { - [1653649895.213989][1424:1424] CHIP:DMG: Endpoint = 0x0, - [1653649895.214066][1424:1424] CHIP:DMG: Cluster = 0x28, - [1653649895.214140][1424:1424] CHIP:DMG: Event = 0x0, - [1653649895.214213][1424:1424] CHIP:DMG: }, - [1653649895.214282][1424:1424] CHIP:DMG: - [1653649895.214341][1424:1424] CHIP:DMG: ], - [1653649895.214409][1424:1424] CHIP:DMG: - [1653649895.214470][1424:1424] CHIP:DMG: isFabricFiltered = true, - [1653649895.214534][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653649895.214592][1424:1424] CHIP:DMG: }, - [1653649895.214740][1424:1424] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s - - - [1653649895.222992][1424:1424] CHIP:DMG: StatusResponseMessage = - [1653649895.223057][1424:1424] CHIP:DMG: { - [1653649895.223115][1424:1424] CHIP:DMG: Status = 0x00 (SUCCESS), - [1653649895.223177][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653649895.223236][1424:1424] CHIP:DMG: } - [1653649895.223296][1424:1424] CHIP:IM: Received status response, status is 0x00 (SUCCESS) - - - - - On TH - [1653402133.935993][12088:12093] CHIP:DMG: InteractionModelRevision = 1 - [1653402133.936007][12088:12093] CHIP:DMG: } - [1653402133.936164][12088:12093] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000 - [1653402133.936184][12088:12093] CHIP:TOO: Event number: 0 - [1653402133.936203][12088:12093] CHIP:TOO: Priority: Critical - [1653402133.936218][12088:12093] CHIP:TOO: Timestamp: 21600803 - [1653402133.936267][12088:12093] CHIP:TOO: StartUp: { - [1653402133.936291][12088:12093] CHIP:TOO: SoftwareVersion: 1 - [1653402133.936309][12088:12093] CHIP:TOO: } - [1653402133.936362][12088:12093] CHIP:DMG: MoveToState ReadClient[0x7ff794004750]: Moving to [AwaitingSu] - [1653402133.936407][12088:12093] CHIP:EM: Piggybacking Ack for MessageCounter:220576 on exchange: 40612i - [1653402133.936456][12088:12093] CHIP:IN: Prepared secure message 0x55713bb98058 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 40612i with MessageCounter:11138541. - [1653402133.936487][12088:12093] CHIP:IN: Sending encrypted msg 0x55713bb98058 with MessageCounter:11138541 to 0x0000000000000001 (1) at monotonic time: 00000000020D876B msec - [1653402133.939809][12088:12093] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:220577 on exchange 40612i - [1653402133.939854][12088:12093] CHIP:EM: Found matching exchange: 40612i, Delegate: 0x7ff794004750 - [1653402133.939897][12088:12093] CHIP:EM: Rxd Ack; Removing MessageCounter:11138541 from Retrans Table on exchange 40612i - [1653402133.939917][12088:12093] CHIP:EM: Removed CHIP MessageCounter:11138541 from RetransTable on exchange 40612i - [1653402133.939971][12088:12093] CHIP:DMG: SubscribeResponseMessage = - [1653402133.939998][12088:12093] CHIP:DMG: { - [1653402133.940016][12088:12093] CHIP:DMG: SubscriptionId = 0xde0863af, - [1653402133.940038][12088:12093] CHIP:DMG: MinIntervalFloorSeconds = 0x64, - [1653402133.940065][12088:12093] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653402133.940089][12088:12093] CHIP:DMG: InteractionModelRevision = 1 - [1653402133.940105][12088:12093] CHIP:DMG: } - [1653402133.940137][12088:12093] CHIP:DMG: Subscription established with SubscriptionID = 0xde0863af MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 + [1655981582.711841][1637:1637] CHIP:IM: Received Subscribe request + [1655981582.712024][1637:1637] CHIP:DMG: SubscribeRequestMessage = + [1655981582.712110][1637:1637] CHIP:DMG: { + [1655981582.712167][1637:1637] CHIP:DMG: KeepSubscriptions = false, + [1655981582.712231][1637:1637] CHIP:DMG: MinIntervalFloorSeconds = 0x64, + [1655981582.712316][1637:1637] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, + [1655981582.712375][1637:1637] CHIP:DMG: EventPathIBs = + [1655981582.712458][1637:1637] CHIP:DMG: [ + [1655981582.712516][1637:1637] CHIP:DMG: EventPath = + [1655981582.712601][1637:1637] CHIP:DMG: { + [1655981582.712668][1637:1637] CHIP:DMG: Endpoint = 0x0, + [1655981582.712764][1637:1637] CHIP:DMG: Cluster = 0x28, + [1655981582.712860][1637:1637] CHIP:DMG: Event = 0x0, + [1655981582.712930][1637:1637] CHIP:DMG: }, + [1655981582.713020][1637:1637] CHIP:DMG: + [1655981582.713079][1637:1637] CHIP:DMG: ], + [1655981582.713125][1637:1637] CHIP:DMG: + [1655981582.713149][1637:1637] CHIP:DMG: isFabricFiltered = true, + [1655981582.713182][1637:1637] CHIP:DMG: InteractionModelRevision = 1 + [1655981582.713205][1637:1637] CHIP:DMG: }, + [1655981582.713270][1637:1637] CHIP:DMG: Final negotiated min/max parameters: Min = 100s, Max = 1000s + [1655981582.713359][1637:1637] CHIP:DMG: IM RH moving to [GeneratingReports] disabled: true - label: - "DUT sends Subscribe Request Message to the TH + TH sends Report Data + "DUT sends Subscribe Request Message to the TH. TH sends Report Data message to DUT." verification: | - sudo ./chip-tool generaldiagnostics subscribe-event-by-id 3 0 100 1 0 - - - - [1653402203.752975][2753:2753] CHIP:IM: Received Subscribe request - [1653402203.753118][2753:2753] CHIP:DMG: SubscribeRequestMessage = - [1653402203.753166][2753:2753] CHIP:DMG: { - [1653402203.753209][2753:2753] CHIP:DMG: KeepSubscriptions = false, - [1653402203.753257][2753:2753] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653402203.753306][2753:2753] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1653402203.753350][2753:2753] CHIP:DMG: EventPathIBs = - [1653402203.753398][2753:2753] CHIP:DMG: [ - [1653402203.753441][2753:2753] CHIP:DMG: EventPath = - [1653402203.753594][2753:2753] CHIP:DMG: { - [1653402203.753649][2753:2753] CHIP:DMG: Endpoint = 0x0, - [1653402203.753705][2753:2753] CHIP:DMG: Cluster = 0x33, - [1653402203.753764][2753:2753] CHIP:DMG: Event = 0x3, - [1653402203.753818][2753:2753] CHIP:DMG: }, - [1653402203.753873][2753:2753] CHIP:DMG: - [1653402203.753916][2753:2753] CHIP:DMG: ], - [1653402203.753967][2753:2753] CHIP:DMG: - [1653402203.754012][2753:2753] CHIP:DMG: isFabricFiltered = true, - [1653402203.754058][2753:2753] CHIP:DMG: InteractionModelRevision = 1 - [1653402203.754101][2753:2753] CHIP:DMG: }, - - - [1653402203.781700][12097:12102] CHIP:DMG: ReportDataMessage = - [1653402203.781703][12097:12102] CHIP:DMG: { - [1653402203.781706][12097:12102] CHIP:DMG: SubscriptionId = 0xfeb6d63f, - [1653402203.781709][12097:12102] CHIP:DMG: EventReportIBs = - [1653402203.781714][12097:12102] CHIP:DMG: [ - [1653402203.781718][12097:12102] CHIP:DMG: EventReportIB = - [1653402203.781723][12097:12102] CHIP:DMG: { - [1653402203.781727][12097:12102] CHIP:DMG: EventDataIB = - [1653402203.781730][12097:12102] CHIP:DMG: { - [1653402203.781733][12097:12102] CHIP:DMG: EventPath = - [1653402203.781737][12097:12102] CHIP:DMG: { - [1653402203.781740][12097:12102] CHIP:DMG: Endpoint = 0x0, - [1653402203.781743][12097:12102] CHIP:DMG: Cluster = 0x33, - [1653402203.781746][12097:12102] CHIP:DMG: Event = 0x3, - [1653402203.781749][12097:12102] CHIP:DMG: }, - [1653402203.781753][12097:12102] CHIP:DMG: - [1653402203.781756][12097:12102] CHIP:DMG: EventNumber = 0x1, - [1653402203.781759][12097:12102] CHIP:DMG: PriorityLevel = 0x2, - [1653402203.781763][12097:12102] CHIP:DMG: SystemTimestamp = 0x1499a24, - [1653402203.781766][12097:12102] CHIP:DMG: EventData = - [1653402203.781770][12097:12102] CHIP:DMG: { - [1653402203.781774][12097:12102] CHIP:DMG: 0x0 = 0, - [1653402203.781778][12097:12102] CHIP:DMG: }, - [1653402203.781781][12097:12102] CHIP:DMG: }, - [1653402203.781786][12097:12102] CHIP:DMG: - [1653402203.781790][12097:12102] CHIP:DMG: }, - [1653402203.781795][12097:12102] CHIP:DMG: - [1653402203.781798][12097:12102] CHIP:DMG: ], - [1653402203.781804][12097:12102] CHIP:DMG: - [1653402203.781807][12097:12102] CHIP:DMG: InteractionModelRevision = 1 - [1653402203.781810][12097:12102] CHIP:DMG: } - [1653402203.781845][12097:12102] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Event 0x0000_0003 - [1653402203.781849][12097:12102] CHIP:TOO: Event number: 1 - [1653402203.781852][12097:12102] CHIP:TOO: Priority: Critical - [1653402203.781855][12097:12102] CHIP:TOO: Timestamp: 21600804 - [1653402203.781871][12097:12102] CHIP:TOO: BootReason: { - [1653402203.781876][12097:12102] CHIP:TOO: BootReason: 0 - [1653402203.781880][12097:12102] CHIP:TOO: } + sudo ./chip-tool basic subscribe-event-by-id 0x000 20 400 1 0 + + [1655981705.663905][1637:1637] CHIP:EM: Removed CHIP MessageCounter:153423939 from RetransTable on exchange 36114r + [1655981705.663961][1637:1637] CHIP:DMG: StatusResponseMessage = + [1655981705.663988][1637:1637] CHIP:DMG: { + [1655981705.664011][1637:1637] CHIP:DMG: Status = 0x00 (SUCCESS), + [1655981705.664046][1637:1637] CHIP:DMG: InteractionModelRevision = 1 + [1655981705.664069][1637:1637] CHIP:DMG: } + [1655981705.664104][1637:1637] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1655981705.664150][1637:1637] CHIP:DMG: Refresh Subscribe Sync Timer with max 400 seconds disabled: true - label: @@ -166,8 +75,8 @@ tests: disabled: true - label: - "DUT sends Subscribe Request Message to the TH . TH sends Report Data - message to DUT. DUT sends Status Response Message to the TH . TH does + "DUT sends Subscribe Request Message to the TH. TH sends Report Data + message to DUT. DUT sends Status Response Message to the TH. TH does not respond with Subscribe Response message to DUT." verification: | This is not testable in normal scenario, and needs to be tested as part of Unit test. This test step to be removed from the manual execution. @@ -194,32 +103,54 @@ tests: the TH, perform actions to trigger the event. (Trigger it multiple times). DUT resubscribes to the same event after bootup to the TH." verification: | - In case of chip tool, here is an example command to use - - - sudo ./chip-tool generaldiagnostics subscribe-event-by-id 3 0 100 1 0 - - [1653650128.888225][1424:1424] CHIP:DMG: SubscribeRequestMessage = - [1653650128.888290][1424:1424] CHIP:DMG: { - [1653650128.888348][1424:1424] CHIP:DMG: KeepSubscriptions = false, - [1653650128.888415][1424:1424] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653650128.888481][1424:1424] CHIP:DMG: MaxIntervalCeilingSeconds = 0x64, - [1653650128.888542][1424:1424] CHIP:DMG: EventPathIBs = - [1653650128.888606][1424:1424] CHIP:DMG: [ - [1653650128.888667][1424:1424] CHIP:DMG: EventPath = - [1653650128.888732][1424:1424] CHIP:DMG: { - [1653650128.888801][1424:1424] CHIP:DMG: Endpoint = 0x0, - [1653650128.888879][1424:1424] CHIP:DMG: Cluster = 0x33, - [1653650128.888954][1424:1424] CHIP:DMG: Event = 0x3, - [1653650128.889022][1424:1424] CHIP:DMG: }, - [1653650128.889092][1424:1424] CHIP:DMG: - [1653650128.889151][1424:1424] CHIP:DMG: ], - [1653650128.889218][1424:1424] CHIP:DMG: - [1653650128.889278][1424:1424] CHIP:DMG: isFabricFiltered = true, - [1653650128.889340][1424:1424] CHIP:DMG: InteractionModelRevision = 1 - [1653650128.889398][1424:1424] CHIP:DMG: }, - [1653650128.889547][1424:1424] CHIP:DMG: Final negotiated min/max parameters: Min = 0s, Max = 100s - - Once the subscription is active, reboot the TH. On the DUT, perform actions to trigger the event. (Trigger it multiple times). - TH resubscribes to the same event after bootup to the DUT. + ./chip-tool softwarediagnostics read-event software-fault 1 0 + + [1655375196.291424][35133:35138] CHIP:DMG: SuppressResponse = true, + [1655375196.291478][35133:35138] CHIP:DMG: InteractionModelRevision = 1 + [1655375196.291527][35133:35138] CHIP:DMG: } + [1655375196.291829][35133:35138] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1655375196.291882][35133:35138] CHIP:TOO: Event number: 6 + [1655375196.291931][35133:35138] CHIP:TOO: Priority: Info + [1655375196.291978][35133:35138] CHIP:TOO: Timestamp: 6164894 + [1655375196.292119][35133:35138] CHIP:TOO: SoftwareFault: { + [1655375196.292173][35133:35138] CHIP:TOO: SoftwareFault: { + [1655375196.292235][35133:35138] CHIP:TOO: Id: 2677 + [1655375196.292287][35133:35138] CHIP:TOO: Name: 2677 + [1655375196.292341][35133:35138] CHIP:TOO: FaultRecording: 546875204A756E2031362031303A32363A313420323032320A + [1655375196.292391][35133:35138] CHIP:TOO: } + [1655375196.292438][35133:35138] CHIP:TOO: } + + + Provision DUT and TH. + + To generate the software fault event, execute the following + 1. Get the PID of the DUT & KIll it . + ps -aef|grep all-clusters-app + sudo kill -SIGUSR1 + + After killing the DUT , you may observe the following log in the DUT + + [1655198519.293098][2883:2883] CHIP:ZCL: SoftwareDiagnosticsDelegate: OnSoftwareFaultDetected + [1655198519.293180][2883:2883] CHIP:EVL: LogEvent event number: 0x0000000000010006 priority: 1, endpoint id: 0x0 cluster id: 0x0000_0034 event id: 0x0 Sys timestamp: 0x00000000010DDA64 + + + + On TH Send the below command + + ./chip-tool softwarediagnostics read-event software-fault 1 0 + + [1655375196.291424][35133:35138] CHIP:DMG: SuppressResponse = true, + [1655375196.291478][35133:35138] CHIP:DMG: InteractionModelRevision = 1 + [1655375196.291527][35133:35138] CHIP:DMG: } + [1655375196.291829][35133:35138] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0034 Event 0x0000_0000 + [1655375196.291882][35133:35138] CHIP:TOO: Event number: 6 + [1655375196.291931][35133:35138] CHIP:TOO: Priority: Info + [1655375196.291978][35133:35138] CHIP:TOO: Timestamp: 6164894 + [1655375196.292119][35133:35138] CHIP:TOO: SoftwareFault: { + [1655375196.292173][35133:35138] CHIP:TOO: SoftwareFault: { + [1655375196.292235][35133:35138] CHIP:TOO: Id: 2677 + [1655375196.292287][35133:35138] CHIP:TOO: Name: 2677 + [1655375196.292341][35133:35138] CHIP:TOO: FaultRecording: 546875204A756E2031362031303A32363A313420323032320A + [1655375196.292391][35133:35138] CHIP:TOO: } + [1655375196.292438][35133:35138] CHIP:TOO: } disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_7_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_7_1.yaml index dea03da27f175a..7879dca9757b20 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_7_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_7_1.yaml @@ -13,9 +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: - 20.6.5. [TC-IDM-7.1] Multi Fabric Subscription Test Cases. DUT as the - server. +name: 21.6.5. [TC-IDM-7.1] Multi Fabric Subscription Test Cases. [{DUT_Server}] config: nodeId: 0x12344321 @@ -25,93 +23,246 @@ config: tests: - label: "RD1, RD2, RD3, RD4, RD5 send 3 Subscribe Request Messages to - DUT.(Total - 15 active subscriptions) + Each subscribe request should + DUT.(Total - 15 active subscriptions) Each subscribe request should contain 3 different paths. They can subscribe to different attributes and events. Once all subscriptions are active, change the value of all the attributes that have been subscribed or trigger an action on the DUT to generate an event." verification: | - sudo ./chip-tool any subscribe-by-id "6,8" "0,17" ${NODE_ID} 0 1000 1 "1,1" - Waiting For Test-Plan author for more input. Verification step upadte is in progress - - - [1653403086.002767][12239:12245] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0011 DataVersion: 3173357546 - [1653403086.002782][12239:12245] CHIP:TOO: on level: null - [1653403086.002800][12239:12245] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 2664954815 - [1653403086.002805][12239:12245] CHIP:TOO: OnOff: FALSE - [1653403086.002816][12239:12245] CHIP:DMG: MoveToState ReadClient[0x7f1d700072a0]: Moving to [AwaitingSu] - [1653403086.002829][12239:12245] CHIP:EM: Piggybacking Ack for MessageCounter:15927693 on exchange: 53574i - [1653403086.002842][12239:12245] CHIP:IN: Prepared secure message 0x5595b67a6108 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 53574i with MessageCounter:15164689. - [1653403086.002850][12239:12245] CHIP:IN: Sending encrypted msg 0x5595b67a6108 with MessageCounter:15164689 to 0x0000000000000001 (1) at monotonic time: 00000000021C0E6D msec - [1653403086.011341][12239:12245] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15927694 on exchange 53574i - [1653403086.011352][12239:12245] CHIP:EM: Found matching exchange: 53574i, Delegate: 0x7f1d700072a0 - [1653403086.011361][12239:12245] CHIP:EM: Rxd Ack; Removing MessageCounter:15164689 from Retrans Table on exchange 53574i - [1653403086.011365][12239:12245] CHIP:EM: Removed CHIP MessageCounter:15164689 from RetransTable on exchange 53574i - [1653403086.011376][12239:12245] CHIP:DMG: SubscribeResponseMessage = - [1653403086.011381][12239:12245] CHIP:DMG: { - [1653403086.011386][12239:12245] CHIP:DMG: SubscriptionId = 0xfa0b5c08, - [1653403086.011391][12239:12245] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653403086.011396][12239:12245] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653403086.011401][12239:12245] CHIP:DMG: InteractionModelRevision = 1 - [1653403086.011405][12239:12245] CHIP:DMG: } - - - sudo ./chip-tool any subscribe-by-id "3,8" "1,1" ${NODE_ID} 0 1000 1 "1,1" - [1653403576.015722][13006:13011] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0001 DataVersion: 3173357546 - [1653403576.015802][13006:13011] CHIP:TOO: remaining time: 0 - [1653403576.015900][13006:13011] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0003 Attribute 0x0000_0001 DataVersion: 1689730037 - [1653403576.015944][13006:13011] CHIP:TOO: identify type: 2 - [1653403576.016007][13006:13011] CHIP:DMG: MoveToState ReadClient[0x7f10cc004f50]: Moving to [AwaitingSu] - [1653403576.016077][13006:13011] CHIP:EM: Piggybacking Ack for MessageCounter:15501318 on exchange: 47781i - [1653403576.016150][13006:13011] CHIP:IN: Prepared secure message 0x55e293868908 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 47781i with MessageCounter:3013623. - [1653403576.016197][13006:13011] CHIP:IN: Sending encrypted msg 0x55e293868908 with MessageCounter:3013623 to 0x0000000000000001 (1) at monotonic time: 000000000223888B msec - [1653403576.016565][13006:13011] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:15501319 on exchange 47781i - [1653403576.016605][13006:13011] CHIP:EM: Found matching exchange: 47781i, Delegate: 0x7f10cc004f50 - [1653403576.016637][13006:13011] CHIP:EM: CHIP MessageCounter:3013622 not in RetransTable on exchange 47781i - [1653403576.175950][13006:13011] CHIP:DIS: Checking node lookup status after 200 ms - [1653403576.176075][13006:13011] CHIP:CTL: Updating device address to UDP:[fe80::e65f:1ff:fe69:61b1%wlp3s0]:5540 while in state 5 - [1653403576.176114][13006:13011] CHIP:DIS: Discovery does not require any more timeouts - [1653403576.247237][13006:13011] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:15501320 on exchange 47781i - [1653403576.247297][13006:13011] CHIP:EM: Found matching exchange: 47781i, Delegate: 0x7f10cc004f50 - [1653403576.247367][13006:13011] CHIP:EM: Rxd Ack; Removing MessageCounter:3013623 from Retrans Table on exchange 47781i - [1653403576.247390][13006:13011] CHIP:EM: Removed CHIP MessageCounter:3013623 from RetransTable on exchange 47781i - [1653403576.247460][13006:13011] CHIP:DMG: SubscribeResponseMessage = - [1653403576.247484][13006:13011] CHIP:DMG: { - [1653403576.247508][13006:13011] CHIP:DMG: SubscriptionId = 0x72a4e6bf, - [1653403576.247530][13006:13011] CHIP:DMG: MinIntervalFloorSeconds = 0x0, - [1653403576.247551][13006:13011] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, - [1653403576.247575][13006:13011] CHIP:DMG: InteractionModelRevision = 1 - [1653403576.247599][13006:13011] CHIP:DMG: } - - - sudo ./chip-tool any subscribe-by-id "8,3" "1,1" ${NODE_ID} 0 1000 1 "1,1" + Send 3 Subscriptionrequest message from each Reference Device(Eg. RD1...) to DUT + and verify all the subscription requests are succes, and change the value of + all the attributes by sending write command, after sending write commanfd + verify on each of these Reference Devices that the appropriate attribute + value has been received. + + + Below Given a example commands + + ./chip-tool onoff subscribe on-time 100 1000 1 1 + [1656330208.062624][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330208.062654][9924:9924] CHIP:DMG: { + [1656330208.062681][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330208.062712][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330208.062738][9924:9924] CHIP:DMG: } + [1656330208.062765][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330208.062804][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool levelcontrol subscribe on-level 100 1000 1 1 + [1656330387.470712][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330387.470740][9924:9924] CHIP:DMG: { + [1656330387.470765][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330387.470792][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330387.470816][9924:9924] CHIP:DMG: } + [1656330387.470842][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + + + ./chip-tool onoff subscribe start-up-on-off 100 1000 1 1 + [1656330608.134217][9924:9924] CHIP:EM: Removed CHIP MessageCounter:188047438 from RetransTable on exchange 44706r + [1656330608.134265][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330608.134293][9924:9924] CHIP:DMG: { + [1656330608.134319][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330608.134345][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330608.134370][9924:9924] CHIP:DMG: } + [1656330608.134395][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330608.134434][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330747.138152][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + ./chip-tool basic subscribe node-label 100 1000 1 0 + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330747.138152][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool levelcontrol subscribe options 100 1000 1 0 + [1656331434.214406][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656331434.214433][9924:9924] CHIP:DMG: { + [1656331434.214456][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656331434.214481][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656331434.214505][9924:9924] CHIP:DMG: } + [1656331434.214529][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656331434.214565][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + ./chip-tool basic subscribe location 100 1000 1 0 + [1656331099.398232][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656331099.398259][9924:9924] CHIP:DMG: { + [1656331099.398283][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656331099.398307][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656331099.398330][9924:9924] CHIP:DMG: } + [1656331099.398353][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656331099.398390][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds disabled: true - label: "RD1, RD2, RD3, RD4, RD5 send 3 Subscribe Request Messages to - DUT.(Total - 15 active subscriptions) + Each subscribe requests should + DUT.(Total - 15 active subscriptions) Each subscribe requests should contain 3 different paths. The subscription request from RD1 should contain 4 paths." verification: | - sudo ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0xFFFF + Send 3 Subscriptionrequest message from each Reference Device(Eg. RD1...) to DUT + and verify all the subscription requests are succes. and in The subscription request from RD1 should contain 4 paths, Verify that the subscriptions from RD2, RD3, RD4 and RD5 are not affected. + + Below Given a example commands + + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330747.138152][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + ./chip-tool basic subscribe node-label 100 1000 1 0 + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330747.138152][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool onoff subscribe on-time 100 1000 1 1 + [1656330208.062624][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330208.062654][9924:9924] CHIP:DMG: { + [1656330208.062681][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330208.062712][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330208.062738][9924:9924] CHIP:DMG: } + [1656330208.062765][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330208.062804][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool levelcontrol subscribe on-level 100 1000 1 1 + [1656330387.470712][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330387.470740][9924:9924] CHIP:DMG: { + [1656330387.470765][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330387.470792][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330387.470816][9924:9924] CHIP:DMG: } + [1656330387.470842][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + + + ./chip-tool onoff subscribe start-up-on-off 100 1000 1 1 + [1656330608.134217][9924:9924] CHIP:EM: Removed CHIP MessageCounter:188047438 from RetransTable on exchange 44706r + [1656330608.134265][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330608.134293][9924:9924] CHIP:DMG: { + [1656330608.134319][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330608.134345][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330608.134370][9924:9924] CHIP:DMG: } + [1656330608.134395][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330608.134434][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + ./chip-tool basic subscribe node-label 100 1000 1 0 + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330747.138152][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds disabled: true - label: "RD2, RD3, RD4, RD5 send 3 Subscribe request messages each with each - of them having 3 different paths. + Verify that the subscription - request messages from all reference devices succeed. + Once all the - Subscription Requests are activated, RD1 sends 6 subscription request - messages with each of them having 3 different paths." + of them having 3 different paths. Verify that the subscription request + messages from all reference devices succeed. Once all the Subscription + Requests are activated, RD1 sends 6 subscription request messages with + each of them having 3 different paths." verification: | + Send 3 Subscriptionrequest message from each Reference Device(Eg. RD1...) to DUT + and verify all the subscription requests are succes. and in The subscription request + from RD1 should contain 6 paths, Verify that the subscriptions from RD2, RD3, RD4 and + RD5 are not affected. + + Below Given a example commands + ./chip-tool onoff subscribe on-time 100 1000 1 1 + [1656330208.062624][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330208.062654][9924:9924] CHIP:DMG: { + [1656330208.062681][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330208.062712][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330208.062738][9924:9924] CHIP:DMG: } + [1656330208.062765][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330208.062804][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool levelcontrol subscribe on-level 100 1000 1 1 + [1656330387.470712][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330387.470740][9924:9924] CHIP:DMG: { + [1656330387.470765][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330387.470792][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330387.470816][9924:9924] CHIP:DMG: } + [1656330387.470842][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + + + ./chip-tool onoff subscribe start-up-on-off 100 1000 1 1 + [1656330608.134217][9924:9924] CHIP:EM: Removed CHIP MessageCounter:188047438 from RetransTable on exchange 44706r + [1656330608.134265][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330608.134293][9924:9924] CHIP:DMG: { + [1656330608.134319][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330608.134345][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330608.134370][9924:9924] CHIP:DMG: } + [1656330608.134395][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330608.134434][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool any subscribe-by-id 0x0008 0x0010 100 1000 1 1 + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330747.138152][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + + ./chip-tool basic subscribe node-label 100 1000 1 0 + [1656330747.137973][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656330747.138003][9924:9924] CHIP:DMG: { + [1656330747.138031][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656330747.138059][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656330747.138085][9924:9924] CHIP:DMG: } + [1656330747.138112][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656330747.138152][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + ./chip-tool levelcontrol subscribe options 100 1000 1 0 + [1656331434.214406][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656331434.214433][9924:9924] CHIP:DMG: { + [1656331434.214456][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656331434.214481][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656331434.214505][9924:9924] CHIP:DMG: } + [1656331434.214529][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656331434.214565][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds + + + ./chip-tool basic subscribe location 100 1000 1 0 + [1656331099.398232][9924:9924] CHIP:DMG: StatusResponseMessage = + [1656331099.398259][9924:9924] CHIP:DMG: { + [1656331099.398283][9924:9924] CHIP:DMG: Status = 0x00 (SUCCESS), + [1656331099.398307][9924:9924] CHIP:DMG: InteractionModelRevision = 1 + [1656331099.398330][9924:9924] CHIP:DMG: } + [1656331099.398353][9924:9924] CHIP:IM: Received status response, status is 0x00 (SUCCESS) + [1656331099.398390][9924:9924] CHIP:DMG: Refresh Subscribe Sync Timer with max 1000 seconds disabled: true - label: "RD1, RD2, RD3, RD4, RD5 send 3 Subscribe request messages each with - each of them having 3 different paths. + Verify that the subscription - request messages from RD1, RD2, RD3, RD4 and RD5 succeed. + Once all - the Subscription Requests are activated, send a Subscribe request - messages having 3 different paths from RD1A to the DUT." + each of them having 3 different paths. Verify that the subscription + request messages from RD1, RD2, RD3, RD4 and RD5 succeed. Once all the + Subscription Requests are activated, send a Subscribe request messages + having 3 different paths from RD1A to the DUT." verification: | - + Waiting For Test-Plan author for more input. Verification step upadte is in progress disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml index 032f2170c53ed7..9290f5798aad21 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml @@ -51,6 +51,7 @@ tests: value: 100 - label: "Reads the CurrentLevel attribute" + PICS: LVL.S.A0000 command: "readAttribute" attribute: "current level" response: @@ -60,6 +61,7 @@ tests: type: uint8 - label: "Reads the RemainingTime attribute" + PICS: LVL.S.A0001 command: "readAttribute" attribute: "remaining time" response: @@ -68,7 +70,7 @@ tests: type: uint16 - label: "Reads the MinLevel attribute" - PICS: LVL.S.F01 + PICS: LVL.S.A0002 command: "readAttribute" attribute: "min level" response: @@ -80,7 +82,7 @@ tests: maxValue: 1 - label: "Reads the MinLevel attribute" - PICS: " !LVL.S.F01 " + PICS: LVL.S.A0002 command: "readAttribute" attribute: "min level" response: @@ -91,7 +93,7 @@ tests: maxValue: 1 - label: "Reads the MaxLevel attribute" - PICS: LVL.S.F01 + PICS: LVL.S.A0003 command: "readAttribute" attribute: "max level" response: @@ -103,7 +105,7 @@ tests: maxValue: 254 - label: "Reads the MaxLevel attribute" - PICS: " !LVL.S.F01 " + PICS: LVL.S.A0003 command: "readAttribute" attribute: "max level" response: @@ -134,6 +136,7 @@ tests: maxValue: MaxLevelValue1 - label: "Reads the CurrentFrequency attribute" + PICS: LVL.S.A0004 command: "readAttribute" attribute: "current frequency" response: @@ -141,6 +144,7 @@ tests: type: uint16 - label: "Reads the MinFrequency attribute" + PICS: LVL.S.A0005 command: "readAttribute" attribute: "min frequency" response: @@ -149,6 +153,7 @@ tests: type: uint16 - label: "Reads the MaxFrequency attribute" + PICS: LVL.S.A0006 command: "readAttribute" attribute: "max frequency" response: @@ -157,6 +162,7 @@ tests: type: uint16 - label: "Step 7b & 7C Reads the CurrentFrequency attribute" + PICS: LVL.S.A0004 && LVL.S.A0005 command: "readAttribute" attribute: "current frequency" response: @@ -166,6 +172,7 @@ tests: maxValue: MaxFrequencyValue - label: "Reads the OnOffTransitionTime attribute" + PICS: LVL.S.A0010 command: "readAttribute" attribute: "on off transition time" response: @@ -194,6 +201,7 @@ tests: maxValue: MaxLevelValue1 - label: "Reads the OnTransitionTime attribute " + PICS: LVL.S.A0012 command: "readAttribute" attribute: "on transition time" response: @@ -201,6 +209,7 @@ tests: type: uint16 - label: "Reads the OffTransitionTime attribute " + PICS: LVL.S.A0013 command: "readAttribute" attribute: "off transition time" response: @@ -208,6 +217,7 @@ tests: type: uint16 - label: "Reads the DefaultMoveRate attribute " + PICS: LVL.S.A0014 command: "readAttribute" attribute: "default move rate" response: @@ -215,6 +225,7 @@ tests: type: uint8 - label: "Reads the Options attribute " + PICS: LVL.S.A000f command: "readAttribute" attribute: "options" response: @@ -223,6 +234,7 @@ tests: type: map8 - label: "Reads the StartUpCurrentLevel attribute " + PICS: LVL.S.A4000 command: "readAttribute" attribute: "start up current level" response: diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml index d2f3a406b2ed52..27fba174766849 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads the OnOffTransitionTime attribute from the DUT" + PICS: LVL.S.A0010 command: "readAttribute" attribute: "on off transition time" response: @@ -37,12 +38,14 @@ tests: type: uint16 - label: "writes the OnOffTransitionTime attribute on the DUT" + PICS: LVL.S.A0010 command: "writeAttribute" attribute: "on off transition time" arguments: value: 10 - label: "Reads the OnOffTransitionTime attribute from the DUT" + PICS: LVL.S.A0010 command: "readAttribute" attribute: "on off transition time" response: @@ -51,6 +54,7 @@ tests: type: uint16 - label: "Reads the OnLevel attribute from the DUT" + PICS: LVL.S.A0011 command: "readAttribute" attribute: "on level" response: @@ -59,12 +63,14 @@ tests: type: uint8 - label: "writes the OnLevel attribute on the DUT" + PICS: LVL.S.A0011 command: "writeAttribute" attribute: "on level" arguments: value: 254 - label: "Reads the OnLevel attribute from the DUT" + PICS: LVL.S.A0011 command: "readAttribute" attribute: "on level" response: @@ -74,6 +80,7 @@ tests: notValue: OnLevelValue - label: "Reads the OnTransitionTime attribute from the DUT" + PICS: LVL.S.A0012 command: "readAttribute" attribute: "on transition time" response: @@ -82,12 +89,14 @@ tests: type: uint16 - label: "Writes the OnTransitionTime attribute on the DUT" + PICS: LVL.S.A0012 command: "writeAttribute" attribute: "on transition time" arguments: value: 100 - label: "Reads the OnTransitionTime attribute from the DUT" + PICS: LVL.S.A0012 command: "readAttribute" attribute: "on transition time" response: @@ -97,6 +106,7 @@ tests: notValue: OnTransitionTimeValue - label: "Reads the OffTransitionTime attribute from the DUT" + PICS: LVL.S.A0013 command: "readAttribute" attribute: "off transition time" response: @@ -105,12 +115,14 @@ tests: type: uint16 - label: "Writes the OffTransitionTime attribute on the DUT" + PICS: LVL.S.A0013 command: "writeAttribute" attribute: "off transition time" arguments: value: 100 - label: "Reads the OffTransitionTime attribute from the DUT" + PICS: LVL.S.A0013 command: "readAttribute" attribute: "off transition time" response: @@ -120,6 +132,7 @@ tests: notValue: OffTransitionTimeValue - label: "Reads the DefaultMoveRate attribute from the DUT" + PICS: LVL.S.A0014 command: "readAttribute" attribute: "default move rate" response: @@ -128,12 +141,14 @@ tests: type: uint8 - label: "Writes the DefaultMoveRate attribute on the DUT" + PICS: LVL.S.A0014 command: "writeAttribute" attribute: "default move rate" arguments: value: 100 - label: "Reads the DefaultMoveRate attribute from the DUT" + PICS: LVL.S.A0014 command: "readAttribute" attribute: "default move rate" response: @@ -142,6 +157,7 @@ tests: type: uint8 - label: "Reads the StartUpCurrentLevel attribute from the DUT" + PICS: LVL.S.A4000 command: "readAttribute" attribute: "start up current level" response: @@ -150,12 +166,14 @@ tests: type: uint8 - label: "writes the StartUpCurrentLevel attribute on the DUT" + PICS: LVL.S.A4000 command: "writeAttribute" attribute: "start up current level" arguments: value: 254 - label: "reads the StartUpCurrentLevel attribute from the DUT" + PICS: LVL.S.A4000 command: "readAttribute" attribute: "start up current level" response: @@ -165,6 +183,7 @@ tests: notValue: StartUpCurrentLevelValue - label: "writes back default value of OnOffTransitionTime attribute" + PICS: LVL.S.A0010 command: "writeAttribute" attribute: "on off transition time" arguments: diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_3.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_3.yaml index 710e2ed32c5c82..4393b9c2355cbe 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_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: 24.2.3. [TC-LVL-2.3] Attributes with client as DUT +name: 22.2.3. [TC-LVL-2.3] Attributes with DUT as client config: nodeId: 0x12344321 @@ -22,106 +22,277 @@ config: tests: - label: - "DUT reads all supported mandatory attributes from TH once at a time - in a manufacturer specific order" + "DUT reads all supported mandatory attributes from TH one at a time in + a manufacturer specific order" verification: | - ./chip-tool levelcontrol read current-level 112233 1 - [1636147421.294296][5294:5299] CHIP:ZCL: ReadAttributesResponse: - [1636147421.294322][5294:5299] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147421.294348][5294:5299] CHIP:ZCL: attributeId: 0x0000_0000 - [1636147421.294371][5294:5299] CHIP:ZCL: status: Success (0x0000) - [1636147421.294394][5294:5299] CHIP:ZCL: attribute TLV Type: 0x04 - - ./chip-tool levelcontrol read on-level 112233 1 - [1636147635.980414][5350:5355] CHIP:ZCL: ReadAttributesResponse: - [1636147635.980436][5350:5355] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147635.980460][5350:5355] CHIP:ZCL: attributeId: 0x0000_0010 - [1636147635.980481][5350:5355] CHIP:ZCL: status: Success (0x0000) - [1636147635.980501][5350:5355] CHIP:ZCL: attribute TLV Type: 0x04 - - ./chip-tool levelcontrol read options 112233 1 - [1636147755.811403][5387:5392] CHIP:ZCL: ReadAttributesResponse: - [1636147755.811425][5387:5392] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147755.811446][5387:5392] CHIP:ZCL: attributeId: 0x0000_000F - [1636147755.811464][5387:5392] CHIP:ZCL: status: Success (0x0000) - [1636147755.811485][5387:5392] CHIP:ZCL: attribute TLV Type: 0x04 + ./chip-tool levelcontrol read current-level 1 1 + + [1652363362.205813][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363362.205844][2335:2335] CHIP:DMG: { + [1652363362.205947][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363362.205981][2335:2335] CHIP:DMG: [ + [1652363362.206009][2335:2335] CHIP:DMG: AttributePathIB = + [1652363362.206048][2335:2335] CHIP:DMG: { + [1652363362.206083][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363362.206120][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363362.206156][2335:2335] CHIP:DMG: Attribute = 0x0000_0000, + [1652363362.206189][2335:2335] CHIP:DMG: } + [1652363362.206221][2335:2335] CHIP:DMG: + [1652363362.206252][2335:2335] CHIP:DMG: ], + [1652363362.206285][2335:2335] CHIP:DMG: + [1652363362.206317][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363362.206346][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363362.206373][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read on-level 1 1 + [1652363399.089823][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363399.089855][2335:2335] CHIP:DMG: { + [1652363399.089882][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363399.089915][2335:2335] CHIP:DMG: [ + [1652363399.089945][2335:2335] CHIP:DMG: AttributePathIB = + [1652363399.089981][2335:2335] CHIP:DMG: { + [1652363399.090018][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363399.090056][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363399.090098][2335:2335] CHIP:DMG: Attribute = 0x0000_0011, + [1652363399.090135][2335:2335] CHIP:DMG: } + [1652363399.090172][2335:2335] CHIP:DMG: + [1652363399.090206][2335:2335] CHIP:DMG: ], + [1652363399.090241][2335:2335] CHIP:DMG: + [1652363399.090273][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363399.090305][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363399.090334][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read options 1 1 + [1652363446.883210][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363446.883245][2335:2335] CHIP:DMG: { + [1652363446.883274][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363446.883308][2335:2335] CHIP:DMG: [ + [1652363446.883341][2335:2335] CHIP:DMG: AttributePathIB = + [1652363446.883371][2335:2335] CHIP:DMG: { + [1652363446.883401][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363446.883430][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363446.883521][2335:2335] CHIP:DMG: Attribute = 0x0000_000F, + [1652363446.883554][2335:2335] CHIP:DMG: } + [1652363446.883584][2335:2335] CHIP:DMG: + [1652363446.883611][2335:2335] CHIP:DMG: ], + [1652363446.883639][2335:2335] CHIP:DMG: + [1652363446.883666][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363446.883691][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363446.883714][2335:2335] CHIP:DMG: }, disabled: true - label: - "DUT reads all supported optional attributes from TH once at a time in + "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order" verification: | - "./chip-tool levelcontrol read remaining-time 112233 1 - [1636147460.095983][5305:5310] CHIP:ZCL: ReadAttributesResponse: - [1636147460.096008][5305:5310] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147460.096035][5305:5310] CHIP:ZCL: attributeId: 0x0000_0001 - [1636147460.096060][5305:5310] CHIP:ZCL: status: Success (0x0000) - [1636147460.096084][5305:5310] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read min-level 112233 1 - [1636147490.255968][5312:5318] CHIP:ZCL: ReadAttributesResponse: - [1636147490.255991][5312:5318] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147490.256015][5312:5318] CHIP:ZCL: attributeId: 0x0000_0002 - [1636147490.256037][5312:5318] CHIP:ZCL: status: Success (0x0000) - [1636147490.256058][5312:5318] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read max-level 112233 1 - [1636147512.529027][5321:5326] CHIP:ZCL: ReadAttributesResponse: - [1636147512.529047][5321:5326] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147512.529068][5321:5326] CHIP:ZCL: attributeId: 0x0000_0003 - [1636147512.529087][5321:5326] CHIP:ZCL: status: Success (0x0000) - [1636147512.529106][5321:5326] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read current-frequency 112233 1 - [1636147546.233970][5328:5333] CHIP:ZCL: ReadAttributesResponse: - [1636147546.233992][5328:5333] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147546.234016][5328:5333] CHIP:ZCL: attributeId: 0x0000_0004 - [1636147546.234035][5328:5333] CHIP:ZCL: status: Success (0x0000) - [1636147546.234055][5328:5333] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read min-frequency 112233 1 - [1636147579.663628][5335:5340] CHIP:ZCL: ReadAttributesResponse: - [1636147579.663653][5335:5340] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147579.663679][5335:5340] CHIP:ZCL: attributeId: 0x0000_0005 - [1636147579.663703][5335:5340] CHIP:ZCL: status: Success (0x0000) - [1636147579.663726][5335:5340] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read max-frequency 112233 1 - [1636147611.528718][5342:5347] CHIP:ZCL: ReadAttributesResponse: - [1636147611.528741][5342:5347] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147611.528761][5342:5347] CHIP:ZCL: attributeId: 0x0000_0006 - [1636147611.528781][5342:5347] CHIP:ZCL: status: Success (0x0000) - [1636147611.528801][5342:5347] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read on-off-transition-time 112233 1 - [1636147635.980414][5350:5355] CHIP:ZCL: ReadAttributesResponse: - [1636147635.980436][5350:5355] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147635.980460][5350:5355] CHIP:ZCL: attributeId: 0x0000_0010 - [1636147635.980481][5350:5355] CHIP:ZCL: status: Success (0x0000) - [1636147635.980501][5350:5355] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read on-transition-time 112233 1 - [1636147685.431399][5364:5369] CHIP:ZCL: ReadAttributesResponse: - [1636147685.431422][5364:5369] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147685.431451][5364:5369] CHIP:ZCL: attributeId: 0x0000_0012 - [1636147685.431474][5364:5369] CHIP:ZCL: status: Success (0x0000) - [1636147685.431496][5364:5369] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read off-transition-time 112233 1 - [1636147702.981073][5371:5376] CHIP:ZCL: ReadAttributesResponse: - [1636147702.981098][5371:5376] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147702.981125][5371:5376] CHIP:ZCL: attributeId: 0x0000_0013 - [1636147702.981149][5371:5376] CHIP:ZCL: status: Success (0x0000) - [1636147702.981172][5371:5376] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read default-move-rate 112233 1 - [1636147727.632177][5379:5384] CHIP:ZCL: ReadAttributesResponse: - [1636147727.632201][5379:5384] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147727.632224][5379:5384] CHIP:ZCL: attributeId: 0x0000_0014 - [1636147727.632244][5379:5384] CHIP:ZCL: status: Success (0x0000) - [1636147727.632264][5379:5384] CHIP:ZCL: attribute TLV Type: 0x04" - "./chip-tool levelcontrol read start-up-current-level 112233 1 - [1636147777.843632][5395:5400] CHIP:ZCL: ReadAttributesResponse: - [1636147777.843657][5395:5400] CHIP:ZCL: ClusterId: 0x0000_0008 - [1636147777.843684][5395:5400] CHIP:ZCL: attributeId: 0x0000_4000 - [1636147777.843708][5395:5400] CHIP:ZCL: status: Success (0x0000) - [1636147777.843730][5395:5400] CHIP:ZCL: attribute TLV Type: 0x04" + ./chip-tool levelcontrol read remaining-time 112233 1 + + [1652363491.826059][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363491.826085][2335:2335] CHIP:DMG: { + [1652363491.826107][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363491.826132][2335:2335] CHIP:DMG: [ + [1652363491.826155][2335:2335] CHIP:DMG: AttributePathIB = + [1652363491.826183][2335:2335] CHIP:DMG: { + [1652363491.826214][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363491.826246][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363491.826279][2335:2335] CHIP:DMG: Attribute = 0x0000_0001, + [1652363491.826307][2335:2335] CHIP:DMG: } + [1652363491.826337][2335:2335] CHIP:DMG: + [1652363491.826365][2335:2335] CHIP:DMG: ], + [1652363491.826393][2335:2335] CHIP:DMG: + [1652363491.826419][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363491.826441][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363491.826461][2335:2335] CHIP:DMG: }, + + + + ./chip-tool levelcontrol read min-level 112233 1 + [1652363537.483192][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363537.483221][2335:2335] CHIP:DMG: { + [1652363537.483246][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363537.483275][2335:2335] CHIP:DMG: [ + [1652363537.483303][2335:2335] CHIP:DMG: AttributePathIB = + [1652363537.483337][2335:2335] CHIP:DMG: { + [1652363537.483369][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363537.483404][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363537.483442][2335:2335] CHIP:DMG: Attribute = 0x0000_0002, + [1652363537.483473][2335:2335] CHIP:DMG: } + [1652363537.483512][2335:2335] CHIP:DMG: + [1652363537.483541][2335:2335] CHIP:DMG: ], + [1652363537.483573][2335:2335] CHIP:DMG: + [1652363537.483604][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363537.483633][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363537.483659][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read max-level 1 1 + [1652363573.821260][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363573.821286][2335:2335] CHIP:DMG: { + [1652363573.821307][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363573.821333][2335:2335] CHIP:DMG: [ + [1652363573.821357][2335:2335] CHIP:DMG: AttributePathIB = + [1652363573.821387][2335:2335] CHIP:DMG: { + [1652363573.821417][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363573.821448][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363573.821479][2335:2335] CHIP:DMG: Attribute = 0x0000_0003, + [1652363573.821508][2335:2335] CHIP:DMG: } + [1652363573.821537][2335:2335] CHIP:DMG: + [1652363573.821564][2335:2335] CHIP:DMG: ], + [1652363573.821592][2335:2335] CHIP:DMG: + [1652363573.821615][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363573.821636][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363573.821659][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read current-frequency 112233 1 + [1652363623.270645][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363623.270675][2335:2335] CHIP:DMG: { + [1652363623.270696][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363623.270723][2335:2335] CHIP:DMG: [ + [1652363623.270746][2335:2335] CHIP:DMG: AttributePathIB = + [1652363623.270775][2335:2335] CHIP:DMG: { + [1652363623.270805][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363623.270834][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363623.270862][2335:2335] CHIP:DMG: Attribute = 0x0000_0004, + [1652363623.270891][2335:2335] CHIP:DMG: } + [1652363623.270918][2335:2335] CHIP:DMG: + [1652363623.270943][2335:2335] CHIP:DMG: ], + [1652363623.270971][2335:2335] CHIP:DMG: + [1652363623.270997][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363623.271022][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363623.271046][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read min-frequency 1 1 + [1652363650.520343][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363650.520370][2335:2335] CHIP:DMG: { + [1652363650.520393][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363650.520421][2335:2335] CHIP:DMG: [ + [1652363650.520447][2335:2335] CHIP:DMG: AttributePathIB = + [1652363650.520479][2335:2335] CHIP:DMG: { + [1652363650.520510][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363650.520564][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363650.520597][2335:2335] CHIP:DMG: Attribute = 0x0000_0005, + [1652363650.520629][2335:2335] CHIP:DMG: } + [1652363650.520660][2335:2335] CHIP:DMG: + [1652363650.520688][2335:2335] CHIP:DMG: ], + [1652363650.520718][2335:2335] CHIP:DMG: + [1652363650.520746][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363650.520773][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363650.520797][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read max-frequency 1 1 + [1652363692.622936][2335:2335] CHIP:IM: Received Read request + [1652363692.623003][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363692.623038][2335:2335] CHIP:DMG: { + [1652363692.623068][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363692.623103][2335:2335] CHIP:DMG: [ + [1652363692.623136][2335:2335] CHIP:DMG: AttributePathIB = + [1652363692.623173][2335:2335] CHIP:DMG: { + [1652363692.623209][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363692.623240][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363692.623272][2335:2335] CHIP:DMG: Attribute = 0x0000_0006, + [1652363692.623363][2335:2335] CHIP:DMG: } + [1652363692.623395][2335:2335] CHIP:DMG: + [1652363692.623423][2335:2335] CHIP:DMG: ], + [1652363692.623452][2335:2335] CHIP:DMG: + [1652363692.623479][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363692.623505][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363692.623528][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read on-off-transition-time 1 1 + [1652363727.411475][2335:2335] CHIP:IM: Received Read request + [1652363727.411532][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363727.411561][2335:2335] CHIP:DMG: { + [1652363727.411586][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363727.411615][2335:2335] CHIP:DMG: [ + [1652363727.411643][2335:2335] CHIP:DMG: AttributePathIB = + [1652363727.411678][2335:2335] CHIP:DMG: { + [1652363727.411710][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363727.411744][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363727.411776][2335:2335] CHIP:DMG: Attribute = 0x0000_0010, + [1652363727.411808][2335:2335] CHIP:DMG: } + [1652363727.411840][2335:2335] CHIP:DMG: + [1652363727.411871][2335:2335] CHIP:DMG: ], + [1652363727.411904][2335:2335] CHIP:DMG: + [1652363727.411934][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363727.411963][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363727.411989][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read on-transition-time 1 1 + [1652363775.374700][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363775.374738][2335:2335] CHIP:DMG: { + [1652363775.374767][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363775.374802][2335:2335] CHIP:DMG: [ + [1652363775.374834][2335:2335] CHIP:DMG: AttributePathIB = + [1652363775.374866][2335:2335] CHIP:DMG: { + [1652363775.374897][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363775.374935][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363775.375062][2335:2335] CHIP:DMG: Attribute = 0x0000_0012, + [1652363775.375091][2335:2335] CHIP:DMG: } + [1652363775.375119][2335:2335] CHIP:DMG: + [1652363775.375144][2335:2335] CHIP:DMG: ], + [1652363775.375172][2335:2335] CHIP:DMG: + [1652363775.375198][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363775.375224][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363775.375247][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read off-transition-time 1 1 + [1652363859.595028][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363859.595056][2335:2335] CHIP:DMG: { + [1652363859.595079][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363859.595108][2335:2335] CHIP:DMG: [ + [1652363859.595133][2335:2335] CHIP:DMG: AttributePathIB = + [1652363859.595164][2335:2335] CHIP:DMG: { + [1652363859.595195][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363859.595228][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363859.595263][2335:2335] CHIP:DMG: Attribute = 0x0000_0013, + [1652363859.595296][2335:2335] CHIP:DMG: } + [1652363859.595403][2335:2335] CHIP:DMG: + [1652363859.595433][2335:2335] CHIP:DMG: ], + [1652363859.595463][2335:2335] CHIP:DMG: + [1652363859.595491][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363859.595518][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363859.595543][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read default-move-rate 1 1 + [1652363891.332385][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363891.332411][2335:2335] CHIP:DMG: { + [1652363891.332432][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363891.332461][2335:2335] CHIP:DMG: [ + [1652363891.332492][2335:2335] CHIP:DMG: AttributePathIB = + [1652363891.332540][2335:2335] CHIP:DMG: { + [1652363891.332577][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363891.332608][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363891.332640][2335:2335] CHIP:DMG: Attribute = 0x0000_0014, + [1652363891.332666][2335:2335] CHIP:DMG: } + [1652363891.332696][2335:2335] CHIP:DMG: + [1652363891.332782][2335:2335] CHIP:DMG: ], + [1652363891.332814][2335:2335] CHIP:DMG: + [1652363891.332843][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363891.332870][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363891.332894][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read start-up-current-level 1 1 + [1652363926.814302][2335:2335] CHIP:IM: Received Read request + [1652363926.814367][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363926.814402][2335:2335] CHIP:DMG: { + [1652363926.814431][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363926.814519][2335:2335] CHIP:DMG: [ + [1652363926.814553][2335:2335] CHIP:DMG: AttributePathIB = + [1652363926.814600][2335:2335] CHIP:DMG: { + [1652363926.814639][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363926.814683][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363926.814725][2335:2335] CHIP:DMG: Attribute = 0x0000_4000, + [1652363926.814764][2335:2335] CHIP:DMG: } + [1652363926.814804][2335:2335] CHIP:DMG: + [1652363926.814831][2335:2335] CHIP:DMG: ], + [1652363926.814859][2335:2335] CHIP:DMG: + [1652363926.814886][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363926.814987][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363926.815014][2335:2335] CHIP:DMG: }, disabled: true - label: "DUT writes a suitable value to all supported mandatory attributes on - the TH once at a time in a manufacturer specific order" + the TH one at a time in a manufacturer specific order" verification: | "./chip-tool levelcontrol write on-level 5 (replace with your value) 123123 1 [1636522781.877694][6671:6676] CHIP:DMG: WriteResponseMessage = @@ -154,36 +325,34 @@ tests: - label: "DUT writes a suitable value to all supported optional attributes on - the TH once at a time in a manufacturer specific order" + the TH one at a time in a manufacturer specific order" verification: | - "./chip-tool levelcontrol write on-off-transition-time 5 (replace with your own value) 123123 1 - [1636522561.168841][6649:6654] CHIP:DMG: WriteResponseMessage = - [1636522561.168867][6649:6654] CHIP:DMG: { - [1636522561.168889][6649:6654] CHIP:DMG: AttributeStatuses = - [1636522561.168920][6649:6654] CHIP:DMG: [ - [1636522561.168945][6649:6654] CHIP:DMG: AttributeStatusIB = - [1636522561.168977][6649:6654] CHIP:DMG: { - [1636522561.169006][6649:6654] CHIP:DMG: AttributePathIB = - [1636522561.169040][6649:6654] CHIP:DMG: { - [1636522561.169074][6649:6654] CHIP:DMG: Attribute = 0x0000_0010, - [1636522561.169110][6649:6654] CHIP:DMG: Node = 0x0, - [1636522561.169145][6649:6654] CHIP:DMG: Cluster = 0x8, - [1636522561.169179][6649:6654] CHIP:DMG: Endpoint = 0x1, - [1636522561.169211][6649:6654] CHIP:DMG: } - [1636522561.169248][6649:6654] CHIP:DMG: - [1636522561.169280][6649:6654] CHIP:DMG: StatusIB = - [1636522561.169312][6649:6654] CHIP:DMG: { - [1636522561.169344][6649:6654] CHIP:DMG: status = 0x0, - [1636522561.169376][6649:6654] CHIP:DMG: }, - [1636522561.169411][6649:6654] CHIP:DMG: - [1636522561.169439][6649:6654] CHIP:DMG: }, - [1636522561.169474][6649:6654] CHIP:DMG: - [1636522561.169501][6649:6654] CHIP:DMG: ], - [1636522561.169532][6649:6654] CHIP:DMG: - [1636522561.169553][6649:6654] CHIP:DMG: } - [1636522561.169611][6649:6654] CHIP:ZCL: WriteResponse: - [1636522561.169634][6649:6654] CHIP:ZCL: status: Success (0x0000)" - "./chip-tool levelcontrol write on-transition-time 5 (replace with your value) 123123 1 + ./chip-tool levelcontrol write on-off-transition-time 5 (replace with your own value) 123123 1 + [1652363991.647034][2335:2335] CHIP:DMG: WriteRequestMessage = + [1652363991.647059][2335:2335] CHIP:DMG: { + [1652363991.647081][2335:2335] CHIP:DMG: suppressResponse = false, + [1652363991.647111][2335:2335] CHIP:DMG: timedRequest = false, + [1652363991.647135][2335:2335] CHIP:DMG: AttributeDataIBs = + [1652363991.647166][2335:2335] CHIP:DMG: [ + [1652363991.647190][2335:2335] CHIP:DMG: AttributeDataIB = + [1652363991.647218][2335:2335] CHIP:DMG: { + [1652363991.647243][2335:2335] CHIP:DMG: AttributePathIB = + [1652363991.647274][2335:2335] CHIP:DMG: { + [1652363991.647306][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363991.647339][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363991.647372][2335:2335] CHIP:DMG: Attribute = 0x0000_0010, + [1652363991.647403][2335:2335] CHIP:DMG: } + [1652363991.647436][2335:2335] CHIP:DMG: + [1652363991.647469][2335:2335] CHIP:DMG: Data = 5, + [1652363991.647502][2335:2335] CHIP:DMG: }, + [1652363991.647533][2335:2335] CHIP:DMG: + [1652363991.647556][2335:2335] CHIP:DMG: ], + [1652363991.647584][2335:2335] CHIP:DMG: + [1652363991.647609][2335:2335] CHIP:DMG: moreChunkedMessages = false, + [1652363991.647634][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363991.647657][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol write on-transition-time 5 (replace with your value) 1 1 [1636522899.652554][6689:6694] CHIP:DMG: WriteResponseMessage = [1636522899.652575][6689:6694] CHIP:DMG: { [1636522899.652599][6689:6694] CHIP:DMG: AttributeStatuses = @@ -209,8 +378,9 @@ tests: [1636522899.653243][6689:6694] CHIP:DMG: [1636522899.653264][6689:6694] CHIP:DMG: } [1636522899.653318][6689:6694] CHIP:ZCL: WriteResponse: - [1636522899.653339][6689:6694] CHIP:ZCL: status: Success (0x0000)" - "./chip-tool levelcontrol write off-transition-time 5 1 1 + [1636522899.653339][6689:6694] CHIP:ZCL: status: Success (0x0000) + + ./chip-tool levelcontrol write off-transition-time 5 1 1 [1636523135.094185][6710:6715] CHIP:DMG: WriteResponseMessage = [1636523135.094247][6710:6715] CHIP:DMG: { [1636523135.094306][6710:6715] CHIP:DMG: AttributeStatuses = @@ -236,8 +406,9 @@ tests: [1636523135.094983][6710:6715] CHIP:DMG: [1636523135.095004][6710:6715] CHIP:DMG: } [1636523135.095061][6710:6715] CHIP:ZCL: WriteResponse: - [1636523135.095082][6710:6715] CHIP:ZCL: status: Success (0x0000)" - "./chip-tool levelcontrol write default-move-rate 5 1 1 + [1636523135.095082][6710:6715] CHIP:ZCL: status: Success (0x0000) + + ./chip-tool levelcontrol write default-move-rate 5 1 1 [1636523200.238505][6728:6733] CHIP:DMG: WriteResponseMessage = [1636523200.238533][6728:6733] CHIP:DMG: { [1636523200.238559][6728:6733] CHIP:DMG: AttributeStatuses = @@ -263,8 +434,9 @@ tests: [1636523200.239310][6728:6733] CHIP:DMG: [1636523200.239334][6728:6733] CHIP:DMG: } [1636523200.239396][6728:6733] CHIP:ZCL: WriteResponse: - [1636523200.239421][6728:6733] CHIP:ZCL: status: Success (0x0000)" - "./chip-tool levelcontrol write start-up-current-level 5 (replace with your value) 123123 1 + [1636523200.239421][6728:6733] CHIP:ZCL: status: Success (0x0000) + + ./chip-tool levelcontrol write start-up-current-level 5 (replace with your value) 123123 1 [1636523273.060220][6749:6754] CHIP:DMG: WriteResponseMessage = [1636523273.060249][6749:6754] CHIP:DMG: { [1636523273.060276][6749:6754] CHIP:DMG: AttributeStatuses = @@ -290,5 +462,127 @@ tests: [1636523273.060992][6749:6754] CHIP:DMG: [1636523273.061015][6749:6754] CHIP:DMG: } [1636523273.061073][6749:6754] CHIP:ZCL: WriteResponse: - [1636523273.061097][6749:6754] CHIP:ZCL: status: Success (0x0000)" + [1636523273.061097][6749:6754] CHIP:ZCL: status: Success (0x0000) + disabled: true + + - label: + "Configure TH such that it implements mandatory and none of the + optional attributes of the server-side of the cluster, and that it + also reflects this in global attributes such as FeatureMap and + AttributeList. Commission DUT to TH again" + verification: | + ./chip-tool levelcontrol read attribute-list 1 1 + + [1654242920752] [91296:3991263] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_FFFB DataVersion: 2296172474 + [1654242920753] [91296:3991263] CHIP: [TOO] AttributeList: 8 entries + [1654242920753] [91296:3991263] CHIP: [TOO] [1]: 0 + [1654242920753] [91296:3991263] CHIP: [TOO] [2]: 15 + [1654242920753] [91296:3991263] CHIP: [TOO] [3]: 17 + [1654242920753] [91296:3991263] CHIP: [TOO] [4]: 65528 + [1654242920753] [91296:3991263] CHIP: [TOO] [5]: 65529 + [1654242920753] [91296:3991263] CHIP: [TOO] [6]: 65531 + [1654242920753] [91296:3991263] CHIP: [TOO] [7]: 65532 + [1654242920753] [91296:3991263] CHIP: [TOO] [8]: 65533 + + + " ./chip-tool levelcontrol read current-level 1 1 + + [1652363362.205813][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363362.205844][2335:2335] CHIP:DMG: { + [1652363362.205947][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363362.205981][2335:2335] CHIP:DMG: [ + [1652363362.206009][2335:2335] CHIP:DMG: AttributePathIB = + [1652363362.206048][2335:2335] CHIP:DMG: { + [1652363362.206083][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363362.206120][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363362.206156][2335:2335] CHIP:DMG: Attribute = 0x0000_0000, + [1652363362.206189][2335:2335] CHIP:DMG: } + [1652363362.206221][2335:2335] CHIP:DMG: + [1652363362.206252][2335:2335] CHIP:DMG: ], + [1652363362.206285][2335:2335] CHIP:DMG: + [1652363362.206317][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363362.206346][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363362.206373][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read on-level 1 1 + [1652363399.089823][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363399.089855][2335:2335] CHIP:DMG: { + [1652363399.089882][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363399.089915][2335:2335] CHIP:DMG: [ + [1652363399.089945][2335:2335] CHIP:DMG: AttributePathIB = + [1652363399.089981][2335:2335] CHIP:DMG: { + [1652363399.090018][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363399.090056][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363399.090098][2335:2335] CHIP:DMG: Attribute = 0x0000_0011, + [1652363399.090135][2335:2335] CHIP:DMG: } + [1652363399.090172][2335:2335] CHIP:DMG: + [1652363399.090206][2335:2335] CHIP:DMG: ], + [1652363399.090241][2335:2335] CHIP:DMG: + [1652363399.090273][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363399.090305][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363399.090334][2335:2335] CHIP:DMG: }, + + ./chip-tool levelcontrol read options 1 1 + [1652363446.883210][2335:2335] CHIP:DMG: ReadRequestMessage = + [1652363446.883245][2335:2335] CHIP:DMG: { + [1652363446.883274][2335:2335] CHIP:DMG: AttributePathIBs = + [1652363446.883308][2335:2335] CHIP:DMG: [ + [1652363446.883341][2335:2335] CHIP:DMG: AttributePathIB = + [1652363446.883371][2335:2335] CHIP:DMG: { + [1652363446.883401][2335:2335] CHIP:DMG: Endpoint = 0x1, + [1652363446.883430][2335:2335] CHIP:DMG: Cluster = 0x8, + [1652363446.883521][2335:2335] CHIP:DMG: Attribute = 0x0000_000F, + [1652363446.883554][2335:2335] CHIP:DMG: } + [1652363446.883584][2335:2335] CHIP:DMG: + [1652363446.883611][2335:2335] CHIP:DMG: ], + [1652363446.883639][2335:2335] CHIP:DMG: + [1652363446.883666][2335:2335] CHIP:DMG: isFabricFiltered = true, + [1652363446.883691][2335:2335] CHIP:DMG: InteractionModelRevision = 1 + [1652363446.883714][2335:2335] CHIP:DMG: }," + disabled: true + + - label: + "DUT reads all supported optional attributes from TH one at a time in + a manufacturer specific order" + verification: | + ./chip-tool levelcontrol read remaining-time 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol read min-level 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol read max-level 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol read current-frequency 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol read min-frequency 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol read max-frequency 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol read on-off-transition-time 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT writes a suitable value to all supported optional attributes on + the TH one at a time in a manufacturer specific order" + verification: | + ./chip-tool levelcontrol write on-off-transition-time 5 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol write on-transition-time 5 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol write off-transition-time 5 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol write default-move-rate 5 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + + ./chip-tool levelcontrol write start-up-current-level 5 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml index 4560edbd1f2aee..9ab73869aa45ea 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads the MinLevel attribute" + PICS: LVL.S.A0002 command: "readAttribute" attribute: "min level" response: @@ -36,6 +37,7 @@ tests: type: uint8 - label: "Reads the MaxLevel attribute" + PICS: LVL.S.A0003 command: "readAttribute" attribute: "max level" response: @@ -43,6 +45,7 @@ tests: type: uint8 - label: "sends a Move to level command" + PICS: LVL.S.C00.Rsp command: "MoveToLevel" arguments: values: @@ -64,12 +67,14 @@ tests: value: 100 - label: "Reads CurrentLevel attribute from DUT" + PICS: LVL.S.C04.Rsp && LVL.S.A0000 command: "readAttribute" attribute: "current level" response: value: 64 - label: "sends a Move to level command" + PICS: LVL.S.C00.Rsp command: "MoveToLevel" arguments: values: @@ -91,12 +96,14 @@ tests: value: 100 - label: "Reads CurrentLevel attribute from DUT" + PICS: LVL.S.C00.Rsp && LVL.S.A0000 command: "readAttribute" attribute: "current level" response: value: 100 - label: "Reads On Off Transition Time attribute from DUT" + PICS: LVL.S.A0010 command: "readAttribute" attribute: "On Off Transition Time" response: @@ -104,6 +111,7 @@ tests: type: uint16 - label: "sends a Move to level command" + PICS: LVL.S.C00.Rsp && LVL.S.A0010 command: "MoveToLevel" arguments: values: @@ -125,12 +133,14 @@ tests: value: 11000 - label: "Reads CurrentLevel attribute from DUT" + PICS: LVL.S.C00.Rsp && LVL.S.A0000 && LVL.S.M.VarRate command: "readAttribute" attribute: "current level" response: value: 128 - label: "Reads the OnOffTransitionTime attribute from the DUT" + PICS: LVL.S.A0010 command: "readAttribute" attribute: "on off transition time" response: @@ -138,6 +148,7 @@ tests: type: uint16 - label: "sends a Move to level command" + PICS: LVL.S.C00.Rsp && LVL.S.A0010 command: "MoveToLevel" arguments: values: @@ -159,12 +170,14 @@ tests: value: 1000 - label: "Reads CurrentLevel attribute from DUT" + PICS: LVL.S.A0000 command: "readAttribute" attribute: "current level" response: value: 64 - label: "Reset level to 254" + PICS: LVL.S.C00.Rsp command: "MoveToLevel" arguments: values: diff --git a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml index 0d8bd0bd3eb0bc..000381337e4c1e 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads Minlevel attribute from DUT" + PICS: LVL.S.A0002 command: "readAttribute" attribute: "min level" response: @@ -37,6 +38,7 @@ tests: type: uint8 - label: "sends a Move to level command" + PICS: LVL.S.C00.Rsp command: "MoveToLevel" arguments: values: @@ -50,6 +52,7 @@ tests: value: 1 - label: "reads max level attribute from DUT" + PICS: LVL.S.A0003 command: "readAttribute" attribute: "max level" response: @@ -58,6 +61,7 @@ tests: type: uint8 - label: "sends a Move up command" + PICS: LVL.S.C01.Rsp command: "Move" arguments: values: @@ -93,13 +97,14 @@ tests: value: 9000 - label: "Reads CurrentLevel attribute from DUT" - PICS: LVL.S.A0003 + PICS: LVL.S.C01.Rsp && LVL.S.A0000 command: "readAttribute" attribute: "current level" response: value: MaxlevelValue - label: "sends a MoveWithOnOff command" + PICS: LVL.S.C05.Rsp command: "MoveWithOnOff" arguments: values: @@ -136,7 +141,7 @@ tests: # For lighting Device type current level minimal value is 1 - label: "reads CurrentLevel attribute from DUT" - PICS: LVL.S.A0002 + PICS: LVL.S.C05.Rsp && LVL.S.A0000 command: "readAttribute" attribute: "current level" response: @@ -146,6 +151,7 @@ tests: maxValue: 1 - label: "reads default move rate attribute from DUT" + PICS: LVL.S.A0014 command: "readAttribute" attribute: "default move rate" response: @@ -154,6 +160,7 @@ tests: type: uint8 - label: "sends a Move up command at default move rate" + PICS: LVL.S.C05.Rsp && LVL.S.A0014 command: "Move" arguments: values: @@ -188,6 +195,7 @@ tests: value: "y" - label: "Reset level to 254" + PICS: LVL.S.C00.Rsp command: "MoveToLevel" arguments: values: diff --git a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml index 6d19877d9e3ccd..2a19d740390324 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads Minlevel attribute from DUT" + PICS: LVL.S.A0002 command: "readAttribute" attribute: "min level" response: @@ -37,6 +38,7 @@ tests: type: uint8 - label: "Sends MoveToLevelWithOnOff command to DUT" + PICS: LVL.S.C04.Rsp command: "MoveToLevelWithOnOff" arguments: values: @@ -50,6 +52,7 @@ tests: value: 1 - label: "Reads current level attribute from DUT" + PICS: LVL.S.A0000 command: "readAttribute" attribute: "current level" response: @@ -58,6 +61,7 @@ tests: type: uint8 - label: "Sends step up command to DUT" + PICS: LVL.S.C02.Rsp command: "Step" arguments: values: @@ -81,6 +85,7 @@ tests: value: 4000 - label: "Reads current level attribute from DUT" + PICS: LVL.S.A0000 && LVL.S.C02.Rsp command: "readAttribute" attribute: "current level" response: @@ -89,6 +94,7 @@ tests: type: uint8 - label: "Sends a StepWithOnOff command" + PICS: LVL.S.C06.Rsp command: "StepWithOnOff" arguments: values: @@ -112,12 +118,14 @@ tests: value: 4000 - label: "Reads current level attribute from DUT" + PICS: LVL.S.C06.Rsp && LVL.S.A0000 command: "readAttribute" attribute: "current level" response: value: CurrentlevelValue - label: "Reset level to 254" + PICS: LVL.S.C00.Rsp command: "MoveToLevel" arguments: values: diff --git a/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml index b531492d6c00d3..b9e25ebcfad545 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads Minlevel attribute from DUT" + PICS: LVL.S.A0002 command: "readAttribute" attribute: "min level" response: @@ -37,6 +38,7 @@ tests: type: uint8 - label: "Sends MoveToLevelWithOnOff command to DUT" + PICS: LVL.S.C04.Rsp command: "MoveToLevelWithOnOff" arguments: values: @@ -50,6 +52,7 @@ tests: value: 1 - label: "Reads CurrentLevel attribute from DUT" + PICS: LVL.S.A0000 command: "readAttribute" attribute: "current level" response: @@ -59,6 +62,7 @@ tests: maxValue: 1 - label: "Sends a move up command to DUT" + PICS: LVL.S.C01.Rsp command: "Move" arguments: values: @@ -80,6 +84,7 @@ tests: value: 5000 - label: "Sends stop command to DUT" + PICS: LVL.S.C03.Rsp command: "Stop" arguments: values: @@ -100,6 +105,7 @@ tests: value: "y" - label: "Reads CurrentLevel attribute from DUT" + PICS: LVL.S.C01.Rsp && LVL.S.C03.Rsp && LVL.S.A0000 command: "readAttribute" attribute: "current level" response: @@ -109,6 +115,7 @@ tests: notValue: CurrentLevelValue - label: "Sends a move up command to DUT" + PICS: LVL.S.C01.Rsp command: "Move" arguments: values: @@ -150,6 +157,7 @@ tests: value: "y" - label: "Reads CurrentLevel attribute from DUT" + PICS: LVL.S.C01.Rsp && LVL.S.C07.Rsp && LVL.S.A0000 command: "readAttribute" attribute: "current level" response: @@ -159,6 +167,7 @@ tests: notValue: CurrentLevelValue - label: "Reset level to 254" + PICS: LVL.S.C00.Rsp command: "MoveToLevel" arguments: values: diff --git a/src/app/tests/suites/certification/Test_TC_LVL_7_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_7_1.yaml new file mode 100644 index 00000000000000..ef2c3ef2ebc868 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_LVL_7_1.yaml @@ -0,0 +1,169 @@ +# 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: + 22.6.2. [TC-LVL-7.1] Verification of MoveToClosestFrequency command (DUT as + Server) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "TH reads the MinLevel attribute from the DUT" + PICS: LVL.S.A0002 + verification: | + ./chip-tool levelcontrol read min-level 1 1 + + [1654065563.003862][10039:10044] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0002 DataVersion: 540248549 + [1654065563.003916][10039:10044] CHIP:TOO: min level: 0 + [1654065563.003992][10039:10044] CHIP:EM: Sending Standalone Ack for MessageCounter:10228121 on exchange 38337i + disabled: true + + - label: "TH reads the MaxLevel attribute from the DUT" + PICS: LVL.S.A0003 + verification: | + ./chip-tool levelcontrol read max-level 1 1 + + + [1654065684.869569][10048:10053] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0003 DataVersion: 540248549 + [1654065684.869621][10048:10053] CHIP:TOO: max level: 254 + [1654065684.869737][10048:10053] CHIP:EM: Sending Standalone Ack for MessageCounter:9018536 on exchange 12814i + disabled: true + + - label: + "TH sends a MoveToLevelWithOnOff command to DUT, with the Level field + set to a value between the MinLevel and MaxLevel values (if present, + otherwise between 0x01 and 0xFE) and the TransitionTime field set to + 0x0000 (move immediately)." + PICS: LVL.S.C04.Rsp + verification: | + ./chip-tool levelcontrol move-to-level-with-on-off 253 0 1 1 + + [1654065833.084144][10181:10186] CHIP:DMG: InvokeResponseMessage = + [1654065833.084161][10181:10186] CHIP:DMG: { + [1654065833.084175][10181:10186] CHIP:DMG: suppressResponse = false, + [1654065833.084188][10181:10186] CHIP:DMG: InvokeResponseIBs = + [1654065833.084208][10181:10186] CHIP:DMG: [ + [1654065833.084237][10181:10186] CHIP:DMG: InvokeResponseIB = + [1654065833.084259][10181:10186] CHIP:DMG: { + [1654065833.084274][10181:10186] CHIP:DMG: CommandStatusIB = + [1654065833.084292][10181:10186] CHIP:DMG: { + [1654065833.084310][10181:10186] CHIP:DMG: CommandPathIB = + [1654065833.084331][10181:10186] CHIP:DMG: { + [1654065833.084352][10181:10186] CHIP:DMG: EndpointId = 0x1, + [1654065833.084370][10181:10186] CHIP:DMG: ClusterId = 0x8, + [1654065833.084386][10181:10186] CHIP:DMG: CommandId = 0x4, + [1654065833.084404][10181:10186] CHIP:DMG: }, + [1654065833.084428][10181:10186] CHIP:DMG: + [1654065833.084445][10181:10186] CHIP:DMG: StatusIB = + [1654065833.084467][10181:10186] CHIP:DMG: { + [1654065833.084485][10181:10186] CHIP:DMG: status = 0x00 (SUCCESS), + [1654065833.084503][10181:10186] CHIP:DMG: }, + [1654065833.084523][10181:10186] CHIP:DMG: + [1654065833.084540][10181:10186] CHIP:DMG: }, + [1654065833.084563][10181:10186] CHIP:DMG: + [1654065833.084580][10181:10186] CHIP:DMG: }, + [1654065833.084601][10181:10186] CHIP:DMG: + [1654065833.084617][10181:10186] CHIP:DMG: ], + [1654065833.084640][10181:10186] CHIP:DMG: + [1654065833.084657][10181:10186] CHIP:DMG: InteractionModelRevision = 1 + [1654065833.084672][10181:10186] CHIP:DMG: }, + [1654065833.084734][10181:10186] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0008 Command=0x0000_0004 Status=0x0 + disabled: true + + - label: "TH reads CurrentLevel attribute from DUT" + PICS: LVL.S.C04.Rsp && LVL.S.A0000 + verification: | + ./chip-tool levelcontrol read current-level 1 1 + + [1654065859.401140][10188:10193] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0000 DataVersion: 540248551 + [1654065859.401197][10188:10193] CHIP:TOO: current level: 253 + [1654065859.401268][10188:10193] CHIP:EM: Sending Standalone Ack for MessageCounter:2942065 on exchange 21982i + disabled: true + + - label: "TH reads the CurrentFrequency attribute." + PICS: LVL.S.A0004 + verification: | + ./chip-tool levelcontrol read current-frequency 1 1 + + [1654065889.927185][10196:10201] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0004 DataVersion: 540248551 + [1654065889.927213][10196:10201] CHIP:TOO: current frequency: 0 + [1654065889.927247][10196:10201] CHIP:EM: Sending Standalone Ack for MessageCounter:9499985 on exchange 53579i + disabled: true + + - label: "TH reads the MinFrequency attribute." + PICS: LVL.S.A0005 + verification: | + ./chip-tool levelcontrol read min-frequency 1 1 + + [1654066011.412756][10228:10233] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0005 DataVersion: 540248551 + [1654066011.412814][10228:10233] CHIP:TOO: min frequency: 0 + [1654066011.412890][10228:10233] CHIP:EM: Sending Standalone Ack for MessageCounter:4631273 on exchange 37550i + disabled: true + + - label: "TH reads the MaxFrequency attribute." + PICS: LVL.S.A0006 + verification: | + ./chip-tool levelcontrol read max-frequency 1 1 + + [1654066035.586373][10241:10246] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0006 DataVersion: 540248551 + [1654066035.586435][10241:10246] CHIP:TOO: max frequency: 0 + [1654066035.586512][10241:10246] CHIP:EM: Sending Standalone Ack for MessageCounter:13631899 on exchange 38194i + disabled: true + + - label: + "TH sends a MoveToClosestFrequency command to DUT, with the frequency + field set to a random value frand, chosen such that: fmin < frand < + fmax" + PICS: LVL.S.C08.Rsp + verification: | + Frequency feature for level control cluster is not supporting in chip-tool + disabled: true + + - label: "TH reads the CurrentFrequency attribute." + PICS: LVL.S.C08.Rsp && LVL.S.A0004 + verification: | + ./chip-tool levelcontrol read current-frequency 1 1 + disabled: true + + - label: + "TH sends a MoveToClosestFrequency command to DUT, with the frequency + field set to fmax + 1" + PICS: LVL.S.C08.Rsp + verification: | + Frequency feature for level control cluster is not supporting in chip-tool + disabled: true + + - label: "TH reads the CurrentFrequency attribute." + PICS: LVL.S.C08.Rsp && LVL.S.A0004 + verification: | + ./chip-tool levelcontrol read current-frequency 1 1 + disabled: true + + - label: + "TH sends a MoveToClosestFrequency command to DUT, with the frequency + field set to fmin - 1" + PICS: LVL.S.C08.Rsp + verification: | + Frequency feature for level control cluster is not supporting in chip-tool + disabled: true + + - label: "TH reads the CurrentFrequency attribute." + PICS: LVL.S.C08.Rsp && LVL.S.A0004 + verification: | + ./chip-tool levelcontrol read current-frequency 1 1 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml new file mode 100644 index 00000000000000..7841da4cef9249 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml @@ -0,0 +1,220 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default + +name: 3.2.2. [TC-OCC-2.2] Attributes with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Commission DUT to TH" + verification: | + + disabled: true + + - label: "DUT reads from the TH the (0x0000) Occupancy attribute" + PICS: OCC.C.A0000 + verification: | + ./chip-tool occupancysensing read occupancy 1 1 + + DUT: + + [1648461864.548948][9281:9286] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0000 DataVersion: 3082917122 + [1648461864.549008][9281:9286] CHIP:TOO: occupancy: 0 + + TH: + + [1651145623.970719][2336:2336] CHIP:IM: Received Read request + [1651145623.970774][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651145623.970800][2336:2336] CHIP:DMG: { + [1651145623.970821][2336:2336] CHIP:DMG: AttributePathIBs = + [1651145623.970847][2336:2336] CHIP:DMG: [ + [1651145623.970871][2336:2336] CHIP:DMG: AttributePathIB = + [1651145623.970902][2336:2336] CHIP:DMG: { + [1651145623.970931][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651145623.970964][2336:2336] CHIP:DMG: Cluster = 0x406, + [1651145623.970998][2336:2336] CHIP:DMG: Attribute = 0x0000_0000, + [1651145623.971030][2336:2336] CHIP:DMG: } + [1651145623.971060][2336:2336] CHIP:DMG: + [1651145623.971087][2336:2336] CHIP:DMG: ], + [1651145623.971138][2336:2336] CHIP:DMG: + [1651145623.971166][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651145623.971191][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651145623.971214][2336:2336] CHIP:DMG: }, + [1651145623.971285][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651145623.971367][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + [1651145623.971394][2336:2336] CHIP:DMG: Cluster 406, Attribute 0 is dirty + [1651145623.971415][2336:2336] CHIP:DMG: Reading attribute: Cluster=0x0000_0406 Endpoint=1 AttributeId=0x0000_0000 (expanded=0) + [1651145623.971445][2336:2336] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0406 e=1 p=v + [1651145623.971480][2336:2336] CHIP:DMG: AccessControl: allowed + disabled: true + + - label: "TH reads from the DUT the (0x0001) OccupancySensorType attribute" + PICS: OCC.C.A0001 + verification: | + ./chip-tool occupancysensing read occupancy-sensor-type 1 1 + + DUT: + + [1648461870.566809][9287:9292] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0001 DataVersion: 3082917122 + [1648461870.566882][9287:9292] CHIP:TOO: occupancy sensor type: 0 + + TH: + + [1651145797.858621][2336:2336] CHIP:IM: Received Read request + [1651145797.858677][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651145797.858703][2336:2336] CHIP:DMG: { + [1651145797.858725][2336:2336] CHIP:DMG: AttributePathIBs = + [1651145797.858753][2336:2336] CHIP:DMG: [ + [1651145797.858777][2336:2336] CHIP:DMG: AttributePathIB = + [1651145797.858808][2336:2336] CHIP:DMG: { + [1651145797.858838][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651145797.858869][2336:2336] CHIP:DMG: Cluster = 0x406, + [1651145797.858900][2336:2336] CHIP:DMG: Attribute = 0x0000_0001, + [1651145797.858929][2336:2336] CHIP:DMG: } + [1651145797.858958][2336:2336] CHIP:DMG: + [1651145797.858985][2336:2336] CHIP:DMG: ], + [1651145797.859015][2336:2336] CHIP:DMG: + [1651145797.859040][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651145797.859065][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651145797.859088][2336:2336] CHIP:DMG: }, + [1651145797.859186][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651145797.859273][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + disabled: true + + - label: + "DUT reads from the TH the (0x0002) OccupancySensorTypeBitmap + attribute" + PICS: OCC.C.A0002 + verification: | + ./chip-tool occupancysensing read occupancy-sensor-type-bitmap 1 1 + + DUT: + + [1648461876.157687][9293:9298] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0002 DataVersion: 3082917122 + [1648461876.157778][9293:9298] CHIP:TOO: occupancy sensor type bitmap: 1 + + TH: + + [1651145985.006057][2336:2336] CHIP:EM: Handling via exchange: 48378r, Delegate: 0xaaaaaf5c5098 + [1651145985.006150][2336:2336] CHIP:IM: Received Read request + [1651145985.006231][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651145985.006259][2336:2336] CHIP:DMG: { + [1651145985.006282][2336:2336] CHIP:DMG: AttributePathIBs = + [1651145985.006336][2336:2336] CHIP:DMG: [ + [1651145985.006395][2336:2336] CHIP:DMG: AttributePathIB = + [1651145985.006509][2336:2336] CHIP:DMG: { + [1651145985.006544][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651145985.006580][2336:2336] CHIP:DMG: Cluster = 0x406, + [1651145985.006616][2336:2336] CHIP:DMG: Attribute = 0x0000_0002, + [1651145985.006643][2336:2336] CHIP:DMG: } + [1651145985.006672][2336:2336] CHIP:DMG: + [1651145985.006694][2336:2336] CHIP:DMG: ], + [1651145985.006719][2336:2336] CHIP:DMG: + [1651145985.006744][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651145985.006769][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651145985.006793][2336:2336] CHIP:DMG: }, + [1651145985.006860][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651145985.006952][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + disabled: true + + - label: + "DUT reads from the TH the (0x0010) PIROccupiedToUnoccupiedDelay + optional attribute, if PIR sensor" + PICS: OCC.C.A0010 + verification: | + ./chip-tool occupancysensing read pir-occupied-to-unoccupied-delay 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0011) PIRUnoccupiedToOccupiedDelay + optional attribute, if PIR sensor" + PICS: OCC.C.A0011 + verification: | + ./chip-tool occupancysensing read pir-unoccupied-to-occupied-delay 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0011) PIRUnoccupiedToOccupiedThreshold + optional attribute, if PIR sensor" + PICS: OCC.C.A0012 + verification: | + ./chip-tool occupancysensing read pir-unoccupied-to-occupied-threshold 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0010) + UltrasonicOccupiedToUnoccupiedDelay optional attribute, if ultrasonic + sensor" + PICS: OCC.C.A0020 + verification: | + ./chip-tool occupancysensing read ultrasonic-occupied-to-unoccupied-delay 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0011) + UltrasonicUnoccupiedToOccupiedDelay optional attribute, if ultrasonic + sensor" + PICS: OCC.C.A0021 + verification: | + ./chip-tool occupancysensing read ultrasonic-unoccupied-to-occupied-delay 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0011) + UltrasonicUnoccupiedToOccupiedThreshold optional attribute, if + ultrasonic sensor" + PICS: OCC.C.A0022 + verification: | + ./chip-tool occupancysensing read ultrasonic-unoccupied-to-occupied-threshold 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0010) + PhysicalContactOccupiedToUnoccupiedDelay optional attribute, if + Physical Contact sensor" + PICS: OCC.C.A0030 + verification: | + ./chip-tool occupancysensing read physical-contact-occupied-to-unoccupied-delay 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0011) + PhysicalContactUnoccupiedToOccupiedDelay optional attribute, if + Physical Contact sensor" + PICS: OCC.C.A0031 + verification: | + ./chip-tool occupancysensing read physical-contact-unoccupied-to-occupied-delay 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT reads from the TH the (0x0011) + PhysicalContactUnoccupiedToOccupiedThreshold optional attribute, if + Physical Contact sensor" + PICS: OCC.C.A0032 + verification: | + ./chip-tool occupancysensing read physical-contact-unoccupied-to-occupied-threshold 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml index 6594c05336890b..5b97b4f2da56ef 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_2_3.yaml @@ -29,6 +29,7 @@ tests: disabled: true - label: "TH reads OccupancySensorType attribute from DUT" + PICS: OCC.S.A0001 verification: | ./chip-tool occupancysensing read occupancy-sensor-type 1 1 @@ -38,6 +39,7 @@ tests: disabled: true - label: "TH reads OccupancySensorTypeBitmap attribute from DUT" + PICS: OCC.S.A0002 verification: | ./chip-tool occupancysensing read occupancy-sensor-type-bitmap 1 1 diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_4.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_4.yaml index 48c5ef14be8915..aab2f74c041c97 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_2_4.yaml @@ -29,6 +29,7 @@ tests: disabled: true - label: "DUT reads OccupancySensorType attribute from TH" + PICS: OCC.C.A0001 verification: | ./chip-tool occupancysensing read occupancy-sensor-type 1 1 @@ -39,6 +40,7 @@ tests: disabled: true - label: "DUT reads OccupancySensorTypeBitmap attribute from TH" + PICS: OCC.C.A0002 verification: | ./chip-tool occupancysensing read occupancy-sensor-type-bitmap 1 1 diff --git a/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml index ed420dd8778f46..8078b515f5b4d1 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml @@ -29,15 +29,15 @@ tests: value: nodeId - label: "Reads Occupancy attribute from DUT" + PICS: OCC.S.A0000 command: "readAttribute" attribute: "occupancy" - PICS: A_OCCUPANCY response: value: 0 saveAs: OccupancyValue - label: "Operate on DUT to change the occupancy status" - PICS: MANUAL_OCCUPANCY_CHANGE + PICS: OCC.M.OccupancyChange cluster: "LogCommands" command: "UserPrompt" arguments: @@ -46,9 +46,9 @@ tests: value: "Operate on DUT to change the occupancy status" - label: "Reads back Occupancy attribute from DUT after few seconds" + PICS: OCC.S.A0000 command: "readAttribute" attribute: "occupancy" - PICS: A_OCCUPANCY response: constraints: notvalue: OccupancyValue diff --git a/src/app/tests/suites/certification/Test_TC_OCC_3_2.yaml b/src/app/tests/suites/certification/Test_TC_OCC_3_2.yaml index 5cedecfdb99390..490f4373385776 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_3_2.yaml @@ -27,6 +27,7 @@ tests: disabled: true - label: "DUT reads Occupancy attribute from TH" + PICS: OCC.C.A0000 verification: | ./chip-tool occupancysensing read occupancy 1 1 @@ -50,11 +51,13 @@ tests: disabled: true - label: "Operate on TH to change the occupancy status" + PICS: OCC.M.OccupancyChange verification: | - Logs will be device specific + Logs will be device specific[Dut Action needed] disabled: true - label: "after a few seconds, DUT reads Occupancy attribute from TH" + PICS: OCC.C.A0000 verification: | ./chip-tool occupancysensing read occupancy 1 1 diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values index 789ab35bfb40b7..551c949375d95d 100644 --- a/src/app/tests/suites/certification/ci-pics-values +++ b/src/app/tests/suites/certification/ci-pics-values @@ -33,8 +33,6 @@ A_MINCOOLSETPOINTLIMIT=1 A_MAXCOOLSETPOINTLIMIT=1 A_CONTROLSEQUENCEOFOPERATION=1 CR_SetpointRaiseLower=1 -A_OCCUPANCY=1 -MANUAL_OCCUPANCY_CHANGE=1 A_ONOFF=1 A_GLOBALSCENECONTROL=1 A_ONTIME=1 @@ -398,10 +396,36 @@ MC_TGTNAV.S.A0001=1 MC_TGTNAV.S.C0000=1 PRS.S.A0003=0 + +#Level Control Cluster +LVL.S.F01=1 LVL.S.F02=1 -LVL.S.A0003=1 +LVL.S.A0000=1 +LVL.S.A0001=1 LVL.S.A0002=1 -LVL.S.F01=1 +LVL.S.A0003=1 +LVL.S.A0004=1 +LVL.S.A0005=1 +LVL.S.A0006=1 +LVL.S.A000f=1 +LVL.S.A0010=1 +LVL.S.A0011=1 +LVL.S.A0012=1 +LVL.S.A0013=1 +LVL.S.A0014=1 +LVL.S.A4000=1 +LVL.S.C00.Rsp=1 +LVL.S.C01.Rsp=1 +LVL.S.C02.Rsp=1 +LVL.S.C03.Rsp=1 +LVL.S.C04.Rsp=1 +LVL.S.C05.Rsp=1 +LVL.S.C06.Rsp=1 +LVL.S.C07.Rsp=1 +LVL.S.C08.Rsp=1 +LVL.S.M.VarRate=1 + +#Occupancy Sensing Cluster OCC.S.A0000=1 OCC.S.A0001=1 OCC.S.A0002=1 @@ -414,6 +438,20 @@ OCC.S.A0022=0 OCC.S.A0030=0 OCC.S.A0031=0 OCC.S.A0032=0 +OCC.C.A0000=1 +OCC.C.A0001=1 +OCC.C.A0002=1 +OCC.C.A0010=0 +OCC.C.A0011=0 +OCC.C.A0012=0 +OCC.C.A0020=0 +OCC.C.A0021=0 +OCC.C.A0022=0 +OCC.C.A0030=0 +OCC.C.A0031=0 +OCC.C.A0032=0 +OCC.M.OccupancyChange=1 + FLW.S.A0003=0 #PRS @@ -661,3 +699,78 @@ PS.S.E02=1 TSUIC.S.A0000=1 TSUIC.S.A0001=1 TSUIC.S.A0002=1 +#Binding +BIND.S.A0000=1 +GRPKEY.C.A0000=1 +OO.C.C00.Tx=1 +OO.C.C01.Tx=1 +GRPKEY.C.C00.Tx=1 +G.C.C00.Tx=1 + +#Device Discovery +MCORE.DD.DT_SOFTAP=0 +MCORE.DD.WIFI=0 +MCORE.DD.BLE=1 +MCORE.DD.CHIP_DEV=1 +MCORE.DD.DEV_LOCK=1 +MCORE.DD.DEV_BARRIER=1 +MCORE.DD.IE=1 +MCORE.DD.QR=1 +MCORE.DD.MANUAL_PC=1 +MCORE.DD.TLV=1 +MCORE.DD.CONCAT=1 +MCORE.DD.NFC=1 +MCORE.DD.PASSCODE=1 +MCORE.DD.UI=1 +MCORE.DD.COMM_DISCOVERY=1 +MCORE.DD.CONTROLLER=1 +MCORE.DD.CTRL_CONCATENATED_QR_CODE_1=1 +MCORE.DD.CTRL_CONCATENATED_QR_CODE_2=1 +MCORE.DD.COMMISSIONER=1 +MCORE.DD.CUSTOM_COMM_FLOW=1 +MCORE.DD.DT_BLE=1 +MCORE.DD.CONTROLLER=1 +MCORE.DD.DT_IP=1 +MCORE.DD.STANDARD_COMM_FLOW=1 +MCORE.DD.USER_INTENT_COMM_FLOW=1 +MCORE.DD.CUSTOM_COMM_FLOW=1 +MCORE.DD.11_MANUAL_PC=1 +MCORE.DD.21_MANUAL_PC=1 +MCORE.DD.PHYSICAL_TAMPERING=1 +MCORE.DD.SCAN_NFC=1 +MCORE.DD.SCAN_QR_CODE=1 +MCORE.DD.THREAD=1 +MCORE.DD.WIRELESS=1 + +#Ethernet Network Diagnostics Cluster +DGETH.S.C00=1 +DGETH.S.A0000=1 +DGETH.S.A0001=1 +DGETH.S.A0002=1 +DGETH.S.A0003=1 +DGETH.S.A0004=1 +DGETH.S.A0005=1 +DGETH.S.A0006=1 +DGETH.S.A0007=1 +DGETH.S.A0008=1 + +#Wi-Fi Network Diagnostics Cluster +DGWIFI.S.F00=1 +DGWIFI.S.F01=1 +DGWIFI.S.A0000=1 +DGWIFI.S.A0001=1 +DGWIFI.S.A0002=1 +DGWIFI.S.A0003=1 +DGWIFI.S.A0004=1 +DGWIFI.S.A0005=1 +DGWIFI.S.A0006=1 +DGWIFI.S.A0007=1 +DGWIFI.S.A0008=1 +DGWIFI.S.A0009=1 +DGWIFI.S.A000a=1 +DGWIFI.S.A000b=1 +DGWIFI.S.A000c=1 +DGWIFI.S.E00=1 +DGWIFI.S.E01=1 +DGWIFI.S.E02=1 +DGWIFI.S.C00=1 diff --git a/src/app/tests/suites/tests.js b/src/app/tests/suites/tests.js index e8a0efade92b56..43864778419602 100644 --- a/src/app/tests/suites/tests.js +++ b/src/app/tests/suites/tests.js @@ -319,6 +319,7 @@ function getManualTests() { const FlowMeasurement = ["Test_TC_FLW_2_2", "Test_TC_FLW_3_1"]; const OccupancySensing = [ + "Test_TC_OCC_2_2", "Test_TC_OCC_2_3", "Test_TC_OCC_2_4", "Test_TC_OCC_3_1", @@ -359,7 +360,11 @@ function getManualTests() { "Test_TC_LCFG_3_1", ]; - const LevelControl = ["Test_TC_LVL_2_3", "Test_TC_LVL_8_1"]; + const LevelControl = [ + "Test_TC_LVL_2_3", + "Test_TC_LVL_7_1", + "Test_TC_LVL_8_1", + ]; const OnOff = ["Test_TC_OO_2_3", "Test_TC_OO_3_1", "Test_TC_OO_3_2"]; @@ -410,7 +415,12 @@ function getManualTests() { "Test_TC_FLABEL_2_2", ]; - const Binding = ["Test_TC_BIND_1_1", "Test_TC_BIND_2_1"]; + const Binding = [ + "Test_TC_BIND_1_1", + "Test_TC_BIND_2_1", + "Test_TC_BIND_2_2", + "Test_TC_BIND_2_3", + ]; const Scenes = [ "Test_TC_S_1_1", diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index c3bd19a940089b..2b4e10e74d4783 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -472,6 +472,7 @@ class ManualTestList : public Command printf("Test_TC_WNCV_7_1\n"); printf("Test_TC_FLW_2_2\n"); printf("Test_TC_FLW_3_1\n"); + printf("Test_TC_OCC_2_2\n"); printf("Test_TC_OCC_2_3\n"); printf("Test_TC_OCC_2_4\n"); printf("Test_TC_OCC_3_1\n"); @@ -501,6 +502,7 @@ class ManualTestList : public Command printf("Test_TC_LCFG_2_1\n"); printf("Test_TC_LCFG_3_1\n"); printf("Test_TC_LVL_2_3\n"); + printf("Test_TC_LVL_7_1\n"); printf("Test_TC_LVL_8_1\n"); printf("Test_TC_OO_2_3\n"); printf("Test_TC_OO_3_1\n"); @@ -539,6 +541,8 @@ class ManualTestList : public Command printf("Test_TC_FLABEL_2_2\n"); printf("Test_TC_BIND_1_1\n"); printf("Test_TC_BIND_2_1\n"); + printf("Test_TC_BIND_2_2\n"); + printf("Test_TC_BIND_2_3\n"); printf("Test_TC_S_1_1\n"); printf("Test_TC_S_2_1\n"); printf("Test_TC_S_2_2\n"); @@ -10383,22 +10387,25 @@ class Test_TC_DGETH_2_1Suite : public TestCommand } case 1: { LogStep(1, "Read PHYRate attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::PHYRate::Id, true, chip::NullOptional); } case 2: { LogStep(2, "Read FullDuplex attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::FullDuplex::Id, true, chip::NullOptional); } case 3: { LogStep(3, "Read PacketRxCount attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::PacketRxCount::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Read PacketRxCount value from DUT and verify the number of packets received on ethernet network interface"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -10408,12 +10415,13 @@ class Test_TC_DGETH_2_1Suite : public TestCommand } case 5: { LogStep(5, "Read PacketTxCount attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::PacketTxCount::Id, true, chip::NullOptional); } case 6: { LogStep(6, "Read PacketTxCount value from DUT and verify the number of packets received on ethernet network interface"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -10423,6 +10431,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand } case 7: { LogStep(7, "Read TxErrCount attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::TxErrCount::Id, true, chip::NullOptional); } @@ -10430,7 +10439,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand LogStep(8, "Read TxErrCount value from DUT and verify value indicates the number of failed packet transmission on " "ethernet network interface"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -10440,6 +10449,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand } case 9: { LogStep(9, "Read CollisionCount attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::CollisionCount::Id, true, chip::NullOptional); } @@ -10447,7 +10457,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand LogStep(10, "Read CollisionCount value from DUT and verify value indicates the number of collision occurred while " "transmitting packets on ethernet network interface"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -10457,6 +10467,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand } case 11: { LogStep(11, "Read OverrunCount attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0006"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::OverrunCount::Id, true, chip::NullOptional); } @@ -10464,7 +10475,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand LogStep(12, "Read OverrunCount value from DUT and verify value indicates the number of packets dropped due to lack of " "buffer memory on ethernet network interface"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0006"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -10474,6 +10485,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand } case 13: { LogStep(13, "Read CarrierDetect attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::CarrierDetect::Id, true, chip::NullOptional); } @@ -10481,7 +10493,7 @@ class Test_TC_DGETH_2_1Suite : public TestCommand LogStep(14, "Read CarrierDetect value from DUT and verify value indicates the presence of carrier detect control signal on " "ethernet network interface"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -10491,12 +10503,13 @@ class Test_TC_DGETH_2_1Suite : public TestCommand } case 15: { LogStep(15, "Read TimeSinceReset attribute constraints"); + VerifyOrDo(!ShouldSkip("DGETH.S.A0008"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::TimeSinceReset::Id, true, chip::NullOptional); } case 16: { LogStep(16, "Read TimeSinceReset value from DUT and verify the value indicates the duration of time, in minutes"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0008"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -10616,7 +10629,7 @@ class Test_TC_DGETH_2_2Suite : public TestCommand } case 1: { LogStep(1, "Sends ResetCounts command"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, @@ -10626,31 +10639,31 @@ class Test_TC_DGETH_2_2Suite : public TestCommand } case 2: { LogStep(2, "Read the PacketRxCount attribute"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::PacketRxCount::Id, true, chip::NullOptional); } case 3: { LogStep(3, "Read the PacketTxCount attribute"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::PacketTxCount::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Read the TxErrCount attribute"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::TxErrCount::Id, true, chip::NullOptional); } case 5: { LogStep(5, "Read the CollisionCount attribute"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::CollisionCount::Id, true, chip::NullOptional); } case 6: { LogStep(6, "Read the OverrunCount attribute"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0006"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), EthernetNetworkDiagnostics::Id, EthernetNetworkDiagnostics::Attributes::OverrunCount::Id, true, chip::NullOptional); } @@ -13401,35 +13414,37 @@ class Test_TC_LVL_2_1Suite : public TestCommand } case 3: { LogStep(3, "Reads the CurrentLevel attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Reads the RemainingTime attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::RemainingTime::Id, true, chip::NullOptional); } case 5: { LogStep(5, "Reads the MinLevel attribute"); - VerifyOrDo(!ShouldSkip("LVL.S.F01"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } case 6: { LogStep(6, "Reads the MinLevel attribute"); - VerifyOrDo(!ShouldSkip(" !LVL.S.F01 "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } case 7: { LogStep(7, "Reads the MaxLevel attribute"); - VerifyOrDo(!ShouldSkip("LVL.S.F01"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id, true, chip::NullOptional); } case 8: { LogStep(8, "Reads the MaxLevel attribute"); - VerifyOrDo(!ShouldSkip(" !LVL.S.F01 "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id, true, chip::NullOptional); } @@ -13447,26 +13462,31 @@ class Test_TC_LVL_2_1Suite : public TestCommand } case 11: { LogStep(11, "Reads the CurrentFrequency attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentFrequency::Id, true, chip::NullOptional); } case 12: { LogStep(12, "Reads the MinFrequency attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinFrequency::Id, true, chip::NullOptional); } case 13: { LogStep(13, "Reads the MaxFrequency attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0006"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxFrequency::Id, true, chip::NullOptional); } case 14: { LogStep(14, "Step 7b & 7C Reads the CurrentFrequency attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0004 && LVL.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentFrequency::Id, true, chip::NullOptional); } case 15: { LogStep(15, "Reads the OnOffTransitionTime attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id, true, chip::NullOptional); } @@ -13484,26 +13504,31 @@ class Test_TC_LVL_2_1Suite : public TestCommand } case 18: { LogStep(18, "Reads the OnTransitionTime attribute "); + VerifyOrDo(!ShouldSkip("LVL.S.A0012"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id, true, chip::NullOptional); } case 19: { LogStep(19, "Reads the OffTransitionTime attribute "); + VerifyOrDo(!ShouldSkip("LVL.S.A0013"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id, true, chip::NullOptional); } case 20: { LogStep(20, "Reads the DefaultMoveRate attribute "); + VerifyOrDo(!ShouldSkip("LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id, true, chip::NullOptional); } case 21: { LogStep(21, "Reads the Options attribute "); + VerifyOrDo(!ShouldSkip("LVL.S.A000f"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::Options::Id, true, chip::NullOptional); } case 22: { LogStep(22, "Reads the StartUpCurrentLevel attribute "); + VerifyOrDo(!ShouldSkip("LVL.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id, true, chip::NullOptional); } @@ -13720,11 +13745,13 @@ class Test_TC_LVL_2_2Suite : public TestCommand } case 1: { LogStep(1, "Reads the OnOffTransitionTime attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id, true, chip::NullOptional); } case 2: { LogStep(2, "writes the OnOffTransitionTime attribute on the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; uint16_t value; value = 10U; @@ -13733,16 +13760,19 @@ class Test_TC_LVL_2_2Suite : public TestCommand } case 3: { LogStep(3, "Reads the OnOffTransitionTime attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Reads the OnLevel attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0011"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id, true, chip::NullOptional); } case 5: { LogStep(5, "writes the OnLevel attribute on the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0011"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -13752,16 +13782,19 @@ class Test_TC_LVL_2_2Suite : public TestCommand } case 6: { LogStep(6, "Reads the OnLevel attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0011"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id, true, chip::NullOptional); } case 7: { LogStep(7, "Reads the OnTransitionTime attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0012"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id, true, chip::NullOptional); } case 8: { LogStep(8, "Writes the OnTransitionTime attribute on the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0012"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -13771,16 +13804,19 @@ class Test_TC_LVL_2_2Suite : public TestCommand } case 9: { LogStep(9, "Reads the OnTransitionTime attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0012"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id, true, chip::NullOptional); } case 10: { LogStep(10, "Reads the OffTransitionTime attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0013"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id, true, chip::NullOptional); } case 11: { LogStep(11, "Writes the OffTransitionTime attribute on the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0013"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -13790,16 +13826,19 @@ class Test_TC_LVL_2_2Suite : public TestCommand } case 12: { LogStep(12, "Reads the OffTransitionTime attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0013"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id, true, chip::NullOptional); } case 13: { LogStep(13, "Reads the DefaultMoveRate attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id, true, chip::NullOptional); } case 14: { LogStep(14, "Writes the DefaultMoveRate attribute on the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -13809,16 +13848,19 @@ class Test_TC_LVL_2_2Suite : public TestCommand } case 15: { LogStep(15, "Reads the DefaultMoveRate attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id, true, chip::NullOptional); } case 16: { LogStep(16, "Reads the StartUpCurrentLevel attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id, true, chip::NullOptional); } case 17: { LogStep(17, "writes the StartUpCurrentLevel attribute on the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -13828,11 +13870,13 @@ class Test_TC_LVL_2_2Suite : public TestCommand } case 18: { LogStep(18, "reads the StartUpCurrentLevel attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id, true, chip::NullOptional); } case 19: { LogStep(19, "writes back default value of OnOffTransitionTime attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; uint16_t value; value = 0U; @@ -14007,16 +14051,19 @@ class Test_TC_LVL_3_1Suite : public TestCommand } case 1: { LogStep(1, "Reads the MinLevel attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } case 2: { LogStep(2, "Reads the MaxLevel attribute"); + VerifyOrDo(!ShouldSkip("LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id, true, chip::NullOptional); } case 3: { LogStep(3, "sends a Move to level command"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 64U; @@ -14037,11 +14084,13 @@ class Test_TC_LVL_3_1Suite : public TestCommand } case 5: { LogStep(5, "Reads CurrentLevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C04.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 6: { LogStep(6, "sends a Move to level command"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 100U; @@ -14062,16 +14111,19 @@ class Test_TC_LVL_3_1Suite : public TestCommand } case 8: { LogStep(8, "Reads CurrentLevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 9: { LogStep(9, "Reads On Off Transition Time attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id, true, chip::NullOptional); } case 10: { LogStep(10, "sends a Move to level command"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 128U; @@ -14092,16 +14144,20 @@ class Test_TC_LVL_3_1Suite : public TestCommand } case 12: { LogStep(12, "Reads CurrentLevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000 && LVL.S.M.VarRate"), + return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 13: { LogStep(13, "Reads the OnOffTransitionTime attribute from the DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id, true, chip::NullOptional); } case 14: { LogStep(14, "sends a Move to level command"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 64U; @@ -14122,11 +14178,13 @@ class Test_TC_LVL_3_1Suite : public TestCommand } case 16: { LogStep(16, "Reads CurrentLevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 17: { LogStep(17, "Reset level to 254"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 254U; @@ -14306,11 +14364,13 @@ class Test_TC_LVL_4_1Suite : public TestCommand } case 1: { LogStep(1, "Reads Minlevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } case 2: { LogStep(2, "sends a Move to level command"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 1U; @@ -14324,11 +14384,13 @@ class Test_TC_LVL_4_1Suite : public TestCommand } case 3: { LogStep(3, "reads max level attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id, true, chip::NullOptional); } case 4: { LogStep(4, "sends a Move up command"); + VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; value.moveMode = static_cast(0); @@ -14361,12 +14423,13 @@ class Test_TC_LVL_4_1Suite : public TestCommand } case 7: { LogStep(7, "Reads CurrentLevel attribute from DUT"); - VerifyOrDo(!ShouldSkip("LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 8: { LogStep(8, "sends a MoveWithOnOff command"); + VerifyOrDo(!ShouldSkip("LVL.S.C05.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type value; value.moveMode = static_cast(1); @@ -14397,17 +14460,19 @@ class Test_TC_LVL_4_1Suite : public TestCommand } case 11: { LogStep(11, "reads CurrentLevel attribute from DUT"); - VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 12: { LogStep(12, "reads default move rate attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id, true, chip::NullOptional); } case 13: { LogStep(13, "sends a Move up command at default move rate"); + VerifyOrDo(!ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; value.moveMode = static_cast(0); @@ -14440,6 +14505,7 @@ class Test_TC_LVL_4_1Suite : public TestCommand } case 16: { LogStep(16, "Reset level to 254"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 254U; @@ -14589,11 +14655,13 @@ class Test_TC_LVL_5_1Suite : public TestCommand } case 1: { LogStep(1, "Reads Minlevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } case 2: { LogStep(2, "Sends MoveToLevelWithOnOff command to DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type value; value.level = 1U; @@ -14605,11 +14673,13 @@ class Test_TC_LVL_5_1Suite : public TestCommand } case 3: { LogStep(3, "Reads current level attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Sends step up command to DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C02.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Step::Type value; value.stepMode = static_cast(0); @@ -14631,11 +14701,13 @@ class Test_TC_LVL_5_1Suite : public TestCommand } case 6: { LogStep(6, "Reads current level attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0000 && LVL.S.C02.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 7: { LogStep(7, "Sends a StepWithOnOff command"); + VerifyOrDo(!ShouldSkip("LVL.S.C06.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type value; value.stepMode = static_cast(1); @@ -14655,11 +14727,13 @@ class Test_TC_LVL_5_1Suite : public TestCommand } case 9: { LogStep(9, "Reads current level attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C06.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 10: { LogStep(10, "Reset level to 254"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 254U; @@ -14827,11 +14901,13 @@ class Test_TC_LVL_6_1Suite : public TestCommand } case 1: { LogStep(1, "Reads Minlevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } case 2: { LogStep(2, "Sends MoveToLevelWithOnOff command to DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type value; value.level = 1U; @@ -14843,11 +14919,13 @@ class Test_TC_LVL_6_1Suite : public TestCommand } case 3: { LogStep(3, "Reads CurrentLevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Sends a move up command to DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; value.moveMode = static_cast(0); @@ -14868,6 +14946,7 @@ class Test_TC_LVL_6_1Suite : public TestCommand } case 6: { LogStep(6, "Sends stop command to DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C03.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Stop::Type value; value.optionMask = 0U; @@ -14889,11 +14968,14 @@ class Test_TC_LVL_6_1Suite : public TestCommand } case 8: { LogStep(8, "Reads CurrentLevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp && LVL.S.C03.Rsp && LVL.S.A0000"), + return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 9: { LogStep(9, "Sends a move up command to DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; value.moveMode = static_cast(0); @@ -14935,11 +15017,14 @@ class Test_TC_LVL_6_1Suite : public TestCommand } case 13: { LogStep(13, "Reads CurrentLevel attribute from DUT"); + VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp && LVL.S.C07.Rsp && LVL.S.A0000"), + return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 14: { LogStep(14, "Reset level to 254"); + VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; value.level = 254U; @@ -32634,73 +32719,79 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand } case 1: { LogStep(1, "Reads NetworkInterface structure attribute from DUT"); + VerifyOrDo(!ShouldSkip("DGWIFI.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), GeneralDiagnostics::Id, GeneralDiagnostics::Attributes::NetworkInterfaces::Id, true, chip::NullOptional); } case 2: { LogStep(2, "Reads SecurityType attribute constraints"); + VerifyOrDo(!ShouldSkip("DGWIFI.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::SecurityType::Id, true, chip::NullOptional); } case 3: { LogStep(3, "Reads WiFiVersion attribute constraints"); + VerifyOrDo(!ShouldSkip("DGWIFI.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::WiFiVersion::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Reads ChannelNumber attribute constraints"); + VerifyOrDo(!ShouldSkip("DGWIFI.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::ChannelNumber::Id, true, chip::NullOptional); } case 5: { LogStep(5, "Reads RSSI attribute constraints"); + VerifyOrDo(!ShouldSkip("DGWIFI.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::Rssi::Id, true, chip::NullOptional); } case 6: { LogStep(6, "Reads BeaconLostCount attribute constraints"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::BeaconLostCount::Id, true, chip::NullOptional); } case 7: { LogStep(7, "Reads BeaconRxCount attribute constraints"); + VerifyOrDo(!ShouldSkip("DGWIFI.S.A0006"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::BeaconRxCount::Id, true, chip::NullOptional); } case 8: { LogStep(8, "Reads PacketMulticastRxCount attribute constraints"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::Id, true, chip::NullOptional); } case 9: { LogStep(9, "Reads PacketMulticastTxCount attribute constraints"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0008"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::Id, true, chip::NullOptional); } case 10: { LogStep(10, "Reads PacketUnicastRxCount attribute constraints"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0009"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::Id, true, chip::NullOptional); } case 11: { LogStep(11, "Reads PacketUnicastTxCount attribute constraints"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000a"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::Id, true, chip::NullOptional); } case 12: { LogStep(12, "Reads CurrentMaxRate attribute constraints"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000b"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::Id, true, chip::NullOptional); } case 13: { LogStep(13, "Reads OverrunCount attribute constraints"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000c"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::OverrunCount::Id, true, chip::NullOptional); } @@ -32824,7 +32915,7 @@ class Test_TC_DGWIFI_2_3Suite : public TestCommand } case 1: { LogStep(1, "TH sends ResetCounts command to DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, @@ -32834,37 +32925,37 @@ class Test_TC_DGWIFI_2_3Suite : public TestCommand } case 2: { LogStep(2, "Reads BeaconLostCount attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::BeaconLostCount::Id, true, chip::NullOptional); } case 3: { LogStep(3, "Reads BeaconRxCount attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::BeaconRxCount::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Reads PacketMulticastRxCount attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::Id, true, chip::NullOptional); } case 5: { LogStep(5, "Reads PacketMulticastTxCount attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::Id, true, chip::NullOptional); } case 6: { LogStep(6, "Reads PacketUnicastRxCount attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::Id, true, chip::NullOptional); } case 7: { LogStep(7, "Reads PacketUnicastTxCount attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), WiFiNetworkDiagnostics::Id, WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::Id, true, chip::NullOptional); } @@ -78696,6 +78787,62 @@ class Test_TC_FLW_3_1Suite : public TestCommand } }; +class Test_TC_OCC_2_2Suite : public TestCommand +{ +public: + Test_TC_OCC_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_OCC_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_OCC_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_OCC_2_3Suite : public TestCommand { public: @@ -78895,13 +79042,13 @@ class Test_TC_OCC_3_1Suite : public TestCommand } case 1: { LogStep(1, "Reads Occupancy attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OCC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id, true, chip::NullOptional); } case 2: { LogStep(2, "Operate on DUT to change the occupancy status"); - VerifyOrDo(!ShouldSkip("MANUAL_OCCUPANCY_CHANGE"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OCC.M.OccupancyChange"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = @@ -78910,7 +79057,7 @@ class Test_TC_OCC_3_1Suite : public TestCommand } case 3: { LogStep(3, "Reads back Occupancy attribute from DUT after few seconds"); - VerifyOrDo(!ShouldSkip("A_OCCUPANCY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OCC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OccupancySensing::Id, OccupancySensing::Attributes::Occupancy::Id, true, chip::NullOptional); } @@ -82344,6 +82491,62 @@ class Test_TC_LVL_2_3Suite : public TestCommand } }; +class Test_TC_LVL_7_1Suite : public TestCommand +{ +public: + Test_TC_LVL_7_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_7_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_LVL_7_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_8_1Suite : public TestCommand { public: @@ -86420,6 +86623,118 @@ class Test_TC_BIND_2_1Suite : public TestCommand } }; +class Test_TC_BIND_2_2Suite : public TestCommand +{ +public: + Test_TC_BIND_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BIND_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_BIND_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_BIND_2_3Suite : public TestCommand +{ +public: + Test_TC_BIND_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_BIND_2_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_BIND_2_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_S_1_1Suite : public TestCommand { public: @@ -87193,6 +87508,7 @@ 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), @@ -87222,6 +87538,7 @@ 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), @@ -87260,6 +87577,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), diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index 4d498a43c0ef49..b2a264b17b6ebf 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -17054,21 +17054,33 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Read PHYRate attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0000")) { + NextTest(); + return; + } err = TestReadPHYRateAttributeConstraints_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Read FullDuplex attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0001")) { + NextTest(); + return; + } err = TestReadFullDuplexAttributeConstraints_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Read PacketRxCount attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0002")) { + NextTest(); + return; + } err = TestReadPacketRxCountAttributeConstraints_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Read PacketRxCount value from DUT and verify the number of packets received on ethernet " "network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0002")) { NextTest(); return; } @@ -17076,13 +17088,17 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Read PacketTxCount attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0003")) { + NextTest(); + return; + } err = TestReadPacketTxCountAttributeConstraints_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Read PacketTxCount value from DUT and verify the number of packets received on ethernet " "network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0003")) { NextTest(); return; } @@ -17090,13 +17106,17 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Read TxErrCount attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0004")) { + NextTest(); + return; + } err = TestReadTxErrCountAttributeConstraints_7(); break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Read TxErrCount value from DUT and verify value indicates the number of failed packet " "transmission on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0004")) { NextTest(); return; } @@ -17104,13 +17124,17 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Read CollisionCount attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0005")) { + NextTest(); + return; + } err = TestReadCollisionCountAttributeConstraints_9(); break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : Read CollisionCount value from DUT and verify value indicates the number of collision " "occurred while transmitting packets on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0005")) { NextTest(); return; } @@ -17118,13 +17142,17 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : Read OverrunCount attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0006")) { + NextTest(); + return; + } err = TestReadOverrunCountAttributeConstraints_11(); break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : Read OverrunCount value from DUT and verify value indicates the number of packets dropped " "due to lack of buffer memory on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0006")) { NextTest(); return; } @@ -17132,13 +17160,17 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : Read CarrierDetect attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0007")) { + NextTest(); + return; + } err = TestReadCarrierDetectAttributeConstraints_13(); break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : Read CarrierDetect value from DUT and verify value indicates the presence of carrier detect " "control signal on ethernet network interface\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0007")) { NextTest(); return; } @@ -17146,13 +17178,17 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { break; case 15: ChipLogProgress(chipTool, " ***** Test Step 15 : Read TimeSinceReset attribute constraints\n"); + if (ShouldSkip("DGETH.S.A0008")) { + NextTest(); + return; + } err = TestReadTimeSinceResetAttributeConstraints_15(); break; case 16: ChipLogProgress(chipTool, " ***** Test Step 16 : Read TimeSinceReset value from DUT and verify the value indicates the duration of time, in " "minutes\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && DGETH.S.A0008")) { NextTest(); return; } @@ -17553,7 +17589,7 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Sends ResetCounts command\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.C00")) { NextTest(); return; } @@ -17561,7 +17597,7 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Read the PacketRxCount attribute\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0002")) { NextTest(); return; } @@ -17569,7 +17605,7 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Read the PacketTxCount attribute\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0003")) { NextTest(); return; } @@ -17577,7 +17613,7 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Read the TxErrCount attribute\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0004")) { NextTest(); return; } @@ -17585,7 +17621,7 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Read the CollisionCount attribute\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0005")) { NextTest(); return; } @@ -17593,7 +17629,7 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Read the OverrunCount attribute\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGETH.S.A0006")) { NextTest(); return; } @@ -21898,15 +21934,23 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Reads the CurrentLevel attribute\n"); + if (ShouldSkip("LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsTheCurrentLevelAttribute_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Reads the RemainingTime attribute\n"); + if (ShouldSkip("LVL.S.A0001")) { + NextTest(); + return; + } err = TestReadsTheRemainingTimeAttribute_4(); break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Reads the MinLevel attribute\n"); - if (ShouldSkip("LVL.S.F01")) { + if (ShouldSkip("LVL.S.A0002")) { NextTest(); return; } @@ -21914,7 +21958,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Reads the MinLevel attribute\n"); - if (ShouldSkip(" !LVL.S.F01 ")) { + if (ShouldSkip("LVL.S.A0002")) { NextTest(); return; } @@ -21922,7 +21966,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Reads the MaxLevel attribute\n"); - if (ShouldSkip("LVL.S.F01")) { + if (ShouldSkip("LVL.S.A0003")) { NextTest(); return; } @@ -21930,7 +21974,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Reads the MaxLevel attribute\n"); - if (ShouldSkip(" !LVL.S.F01 ")) { + if (ShouldSkip("LVL.S.A0003")) { NextTest(); return; } @@ -21954,22 +21998,42 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : Reads the CurrentFrequency attribute\n"); + if (ShouldSkip("LVL.S.A0004")) { + NextTest(); + return; + } err = TestReadsTheCurrentFrequencyAttribute_11(); break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : Reads the MinFrequency attribute\n"); + if (ShouldSkip("LVL.S.A0005")) { + NextTest(); + return; + } err = TestReadsTheMinFrequencyAttribute_12(); break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : Reads the MaxFrequency attribute\n"); + if (ShouldSkip("LVL.S.A0006")) { + NextTest(); + return; + } err = TestReadsTheMaxFrequencyAttribute_13(); break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : Step 7b & 7C Reads the CurrentFrequency attribute\n"); + if (ShouldSkip("LVL.S.A0004 && LVL.S.A0005")) { + NextTest(); + return; + } err = TestStep7b7cReadsTheCurrentFrequencyAttribute_14(); break; case 15: ChipLogProgress(chipTool, " ***** Test Step 15 : Reads the OnOffTransitionTime attribute\n"); + if (ShouldSkip("LVL.S.A0010")) { + NextTest(); + return; + } err = TestReadsTheOnOffTransitionTimeAttribute_15(); break; case 16: @@ -21990,22 +22054,42 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 18: ChipLogProgress(chipTool, " ***** Test Step 18 : Reads the OnTransitionTime attribute \n"); + if (ShouldSkip("LVL.S.A0012")) { + NextTest(); + return; + } err = TestReadsTheOnTransitionTimeAttribute_18(); break; case 19: ChipLogProgress(chipTool, " ***** Test Step 19 : Reads the OffTransitionTime attribute \n"); + if (ShouldSkip("LVL.S.A0013")) { + NextTest(); + return; + } err = TestReadsTheOffTransitionTimeAttribute_19(); break; case 20: ChipLogProgress(chipTool, " ***** Test Step 20 : Reads the DefaultMoveRate attribute \n"); + if (ShouldSkip("LVL.S.A0014")) { + NextTest(); + return; + } err = TestReadsTheDefaultMoveRateAttribute_20(); break; case 21: ChipLogProgress(chipTool, " ***** Test Step 21 : Reads the Options attribute \n"); + if (ShouldSkip("LVL.S.A000f")) { + NextTest(); + return; + } err = TestReadsTheOptionsAttribute_21(); break; case 22: ChipLogProgress(chipTool, " ***** Test Step 22 : Reads the StartUpCurrentLevel attribute \n"); + if (ShouldSkip("LVL.S.A4000")) { + NextTest(); + return; + } err = TestReadsTheStartUpCurrentLevelAttribute_22(); break; } @@ -22660,78 +22744,154 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the OnOffTransitionTime attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0010")) { + NextTest(); + return; + } err = TestReadsTheOnOffTransitionTimeAttributeFromTheDut_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : writes the OnOffTransitionTime attribute on the DUT\n"); + if (ShouldSkip("LVL.S.A0010")) { + NextTest(); + return; + } err = TestWritesTheOnOffTransitionTimeAttributeOnTheDut_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Reads the OnOffTransitionTime attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0010")) { + NextTest(); + return; + } err = TestReadsTheOnOffTransitionTimeAttributeFromTheDut_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Reads the OnLevel attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0011")) { + NextTest(); + return; + } err = TestReadsTheOnLevelAttributeFromTheDut_4(); break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : writes the OnLevel attribute on the DUT\n"); + if (ShouldSkip("LVL.S.A0011")) { + NextTest(); + return; + } err = TestWritesTheOnLevelAttributeOnTheDut_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Reads the OnLevel attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0011")) { + NextTest(); + return; + } err = TestReadsTheOnLevelAttributeFromTheDut_6(); break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Reads the OnTransitionTime attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0012")) { + NextTest(); + return; + } err = TestReadsTheOnTransitionTimeAttributeFromTheDut_7(); break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Writes the OnTransitionTime attribute on the DUT\n"); + if (ShouldSkip("LVL.S.A0012")) { + NextTest(); + return; + } err = TestWritesTheOnTransitionTimeAttributeOnTheDut_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Reads the OnTransitionTime attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0012")) { + NextTest(); + return; + } err = TestReadsTheOnTransitionTimeAttributeFromTheDut_9(); break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : Reads the OffTransitionTime attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0013")) { + NextTest(); + return; + } err = TestReadsTheOffTransitionTimeAttributeFromTheDut_10(); break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : Writes the OffTransitionTime attribute on the DUT\n"); + if (ShouldSkip("LVL.S.A0013")) { + NextTest(); + return; + } err = TestWritesTheOffTransitionTimeAttributeOnTheDut_11(); break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : Reads the OffTransitionTime attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0013")) { + NextTest(); + return; + } err = TestReadsTheOffTransitionTimeAttributeFromTheDut_12(); break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : Reads the DefaultMoveRate attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0014")) { + NextTest(); + return; + } err = TestReadsTheDefaultMoveRateAttributeFromTheDut_13(); break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : Writes the DefaultMoveRate attribute on the DUT\n"); + if (ShouldSkip("LVL.S.A0014")) { + NextTest(); + return; + } err = TestWritesTheDefaultMoveRateAttributeOnTheDut_14(); break; case 15: ChipLogProgress(chipTool, " ***** Test Step 15 : Reads the DefaultMoveRate attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0014")) { + NextTest(); + return; + } err = TestReadsTheDefaultMoveRateAttributeFromTheDut_15(); break; case 16: ChipLogProgress(chipTool, " ***** Test Step 16 : Reads the StartUpCurrentLevel attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A4000")) { + NextTest(); + return; + } err = TestReadsTheStartUpCurrentLevelAttributeFromTheDut_16(); break; case 17: ChipLogProgress(chipTool, " ***** Test Step 17 : writes the StartUpCurrentLevel attribute on the DUT\n"); + if (ShouldSkip("LVL.S.A4000")) { + NextTest(); + return; + } err = TestWritesTheStartUpCurrentLevelAttributeOnTheDut_17(); break; case 18: ChipLogProgress(chipTool, " ***** Test Step 18 : reads the StartUpCurrentLevel attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A4000")) { + NextTest(); + return; + } err = TestReadsTheStartUpCurrentLevelAttributeFromTheDut_18(); break; case 19: ChipLogProgress(chipTool, " ***** Test Step 19 : writes back default value of OnOffTransitionTime attribute\n"); + if (ShouldSkip("LVL.S.A0010")) { + NextTest(); + return; + } err = TestWritesBackDefaultValueOfOnOffTransitionTimeAttribute_19(); break; } @@ -23333,14 +23493,26 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the MinLevel attribute\n"); + if (ShouldSkip("LVL.S.A0002")) { + NextTest(); + return; + } err = TestReadsTheMinLevelAttribute_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the MaxLevel attribute\n"); + if (ShouldSkip("LVL.S.A0003")) { + NextTest(); + return; + } err = TestReadsTheMaxLevelAttribute_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : sends a Move to level command\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { + NextTest(); + return; + } err = TestSendsAMoveToLevelCommand_3(); break; case 4: @@ -23349,10 +23521,18 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.C04.Rsp && LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : sends a Move to level command\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { + NextTest(); + return; + } err = TestSendsAMoveToLevelCommand_6(); break; case 7: @@ -23361,14 +23541,26 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Reads On Off Transition Time attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0010")) { + NextTest(); + return; + } err = TestReadsOnOffTransitionTimeAttributeFromDut_9(); break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : sends a Move to level command\n"); + if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010")) { + NextTest(); + return; + } err = TestSendsAMoveToLevelCommand_10(); break; case 11: @@ -23377,14 +23569,26 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000 && LVL.S.M.VarRate")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_12(); break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : Reads the OnOffTransitionTime attribute from the DUT\n"); + if (ShouldSkip("LVL.S.A0010")) { + NextTest(); + return; + } err = TestReadsTheOnOffTransitionTimeAttributeFromTheDut_13(); break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : sends a Move to level command\n"); + if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010")) { + NextTest(); + return; + } err = TestSendsAMoveToLevelCommand_14(); break; case 15: @@ -23393,10 +23597,18 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { break; case 16: ChipLogProgress(chipTool, " ***** Test Step 16 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_16(); break; case 17: ChipLogProgress(chipTool, " ***** Test Step 17 : Reset level to 254\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { + NextTest(); + return; + } err = TestResetLevelTo254_17(); break; case 18: @@ -23853,18 +24065,34 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Minlevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0002")) { + NextTest(); + return; + } err = TestReadsMinlevelAttributeFromDut_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : sends a Move to level command\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { + NextTest(); + return; + } err = TestSendsAMoveToLevelCommand_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : reads max level attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0003")) { + NextTest(); + return; + } err = TestReadsMaxLevelAttributeFromDut_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : sends a Move up command\n"); + if (ShouldSkip("LVL.S.C01.Rsp")) { + NextTest(); + return; + } err = TestSendsAMoveUpCommand_4(); break; case 5: @@ -23883,7 +24111,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Reads CurrentLevel attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0003")) { + if (ShouldSkip("LVL.S.C01.Rsp && LVL.S.A0000")) { NextTest(); return; } @@ -23891,6 +24119,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : sends a MoveWithOnOff command\n"); + if (ShouldSkip("LVL.S.C05.Rsp")) { + NextTest(); + return; + } err = TestSendsAMoveWithOnOffCommand_8(); break; case 9: @@ -23909,7 +24141,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : reads CurrentLevel attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0002")) { + if (ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0000")) { NextTest(); return; } @@ -23917,10 +24149,18 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : reads default move rate attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0014")) { + NextTest(); + return; + } err = TestReadsDefaultMoveRateAttributeFromDut_12(); break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : sends a Move up command at default move rate\n"); + if (ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0014")) { + NextTest(); + return; + } err = TestSendsAMoveUpCommandAtDefaultMoveRate_13(); break; case 14: @@ -23939,6 +24179,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { break; case 16: ChipLogProgress(chipTool, " ***** Test Step 16 : Reset level to 254\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { + NextTest(); + return; + } err = TestResetLevelTo254_16(); break; case 17: @@ -24371,18 +24615,34 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Minlevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0002")) { + NextTest(); + return; + } err = TestReadsMinlevelAttributeFromDut_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Sends MoveToLevelWithOnOff command to DUT\n"); + if (ShouldSkip("LVL.S.C04.Rsp")) { + NextTest(); + return; + } err = TestSendsMoveToLevelWithOnOffCommandToDut_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Reads current level attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Sends step up command to DUT\n"); + if (ShouldSkip("LVL.S.C02.Rsp")) { + NextTest(); + return; + } err = TestSendsStepUpCommandToDut_4(); break; case 5: @@ -24391,10 +24651,18 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Reads current level attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0000 && LVL.S.C02.Rsp")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_6(); break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Sends a StepWithOnOff command\n"); + if (ShouldSkip("LVL.S.C06.Rsp")) { + NextTest(); + return; + } err = TestSendsAStepWithOnOffCommand_7(); break; case 8: @@ -24403,10 +24671,18 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Reads current level attribute from DUT\n"); + if (ShouldSkip("LVL.S.C06.Rsp && LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_9(); break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : Reset level to 254\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { + NextTest(); + return; + } err = TestResetLevelTo254_10(); break; case 11: @@ -24734,18 +25010,34 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Minlevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0002")) { + NextTest(); + return; + } err = TestReadsMinlevelAttributeFromDut_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Sends MoveToLevelWithOnOff command to DUT\n"); + if (ShouldSkip("LVL.S.C04.Rsp")) { + NextTest(); + return; + } err = TestSendsMoveToLevelWithOnOffCommandToDut_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Sends a move up command to DUT\n"); + if (ShouldSkip("LVL.S.C01.Rsp")) { + NextTest(); + return; + } err = TestSendsAMoveUpCommandToDut_4(); break; case 5: @@ -24754,6 +25046,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Sends stop command to DUT\n"); + if (ShouldSkip("LVL.S.C03.Rsp")) { + NextTest(); + return; + } err = TestSendsStopCommandToDut_6(); break; case 7: @@ -24766,10 +25062,18 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.C01.Rsp && LVL.S.C03.Rsp && LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Sends a move up command to DUT\n"); + if (ShouldSkip("LVL.S.C01.Rsp")) { + NextTest(); + return; + } err = TestSendsAMoveUpCommandToDut_9(); break; case 10: @@ -24790,10 +25094,18 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.C01.Rsp && LVL.S.C07.Rsp && LVL.S.A0000")) { + NextTest(); + return; + } err = TestReadsCurrentLevelAttributeFromDut_13(); break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : Reset level to 254\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { + NextTest(); + return; + } err = TestResetLevelTo254_14(); break; case 15: @@ -50626,27 +50938,47 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Reads NetworkInterface structure attribute from DUT\n"); + if (ShouldSkip("DGWIFI.S.A0000")) { + NextTest(); + return; + } err = TestReadsNetworkInterfaceStructureAttributeFromDut_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Reads SecurityType attribute constraints\n"); + if (ShouldSkip("DGWIFI.S.A0001")) { + NextTest(); + return; + } err = TestReadsSecurityTypeAttributeConstraints_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Reads WiFiVersion attribute constraints\n"); + if (ShouldSkip("DGWIFI.S.A0002")) { + NextTest(); + return; + } err = TestReadsWiFiVersionAttributeConstraints_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Reads ChannelNumber attribute constraints\n"); + if (ShouldSkip("DGWIFI.S.A0003")) { + NextTest(); + return; + } err = TestReadsChannelNumberAttributeConstraints_4(); break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Reads RSSI attribute constraints\n"); + if (ShouldSkip("DGWIFI.S.A0004")) { + NextTest(); + return; + } err = TestReadsRssiAttributeConstraints_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Reads BeaconLostCount attribute constraints\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0005")) { NextTest(); return; } @@ -50654,11 +50986,15 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Reads BeaconRxCount attribute constraints\n"); + if (ShouldSkip("DGWIFI.S.A0006")) { + NextTest(); + return; + } err = TestReadsBeaconRxCountAttributeConstraints_7(); break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Reads PacketMulticastRxCount attribute constraints\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0007")) { NextTest(); return; } @@ -50666,7 +51002,7 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Reads PacketMulticastTxCount attribute constraints\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0008")) { NextTest(); return; } @@ -50674,7 +51010,7 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : Reads PacketUnicastRxCount attribute constraints\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0009")) { NextTest(); return; } @@ -50682,7 +51018,7 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : Reads PacketUnicastTxCount attribute constraints\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000a")) { NextTest(); return; } @@ -50690,7 +51026,7 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : Reads CurrentMaxRate attribute constraints\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000b")) { NextTest(); return; } @@ -50698,7 +51034,7 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : Reads OverrunCount attribute constraints\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000c")) { NextTest(); return; } @@ -51109,7 +51445,7 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : TH sends ResetCounts command to DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00")) { NextTest(); return; } @@ -51117,7 +51453,7 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Reads BeaconLostCount attribute from DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00")) { NextTest(); return; } @@ -51125,7 +51461,7 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Reads BeaconRxCount attribute from DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00")) { NextTest(); return; } @@ -51133,7 +51469,7 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Reads PacketMulticastRxCount attribute from DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00")) { NextTest(); return; } @@ -51141,7 +51477,7 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Reads PacketMulticastTxCount attribute from DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00")) { NextTest(); return; } @@ -51149,7 +51485,7 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Reads PacketUnicastRxCount attribute from DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00")) { NextTest(); return; } @@ -51157,7 +51493,7 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Reads PacketUnicastTxCount attribute from DUT\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00")) { NextTest(); return; } From ae2913fc75e177367ed4f960751ed4e95f85ed5b Mon Sep 17 00:00:00 2001 From: Jeff Tung <100387939+jtung-apple@users.noreply.github.com> Date: Wed, 6 Jul 2022 19:02:55 -0700 Subject: [PATCH 11/15] Issue 20336 - Darwin: rename MTRDevice and MTRClsutersObjc files and classes (#20345) * Issue 20336 - Darwin: rename MTRDevice and MTRClsutersObjc files and classes * Restyled by astyle * Restyled by clang-format * Restyled by jq * Restyled by prettier-json * uncommited zap generated file MTRBaseClusters.mm * Restyled by astyle * Restyled by clang-format * Restyled by jq * Restyled by prettier-json Co-authored-by: Restyled.io --- .restyled.yaml | 2 +- .../Framework Helpers/DefaultsUtils.h | 2 +- .../Framework Helpers/DefaultsUtils.m | 15 +- .../Bindings/BindingsViewController.m | 4 +- .../Enumeration/EnumerateViewController.m | 15 +- .../Fabric/FabricUIViewController.m | 45 +- .../MultiAdmin/MultiAdminViewController.m | 2 +- .../OnOffCluster/OnOffViewController.m | 24 +- .../QRCode/QRCodeViewController.m | 4 +- .../TemperatureSensorViewController.m | 13 +- .../CHIP/MTRAttributeCacheContainer.mm | 2 +- .../CHIP/{MTRDevice.h => MTRBaseDevice.h} | 2 +- .../CHIP/{MTRDevice.mm => MTRBaseDevice.mm} | 6 +- ...ce_Internal.h => MTRBaseDevice_Internal.h} | 4 +- .../CHIP/MTRCallbackBridgeBase_internal.h | 2 +- src/darwin/Framework/CHIP/MTRCluster.h | 2 +- src/darwin/Framework/CHIP/MTRCluster.mm | 2 +- .../Framework/CHIP/MTRCluster_internal.h | 6 +- .../CHIP/MTRDeviceConnectionBridge.mm | 4 +- .../Framework/CHIP/MTRDeviceController+XPC.m | 2 +- .../Framework/CHIP/MTRDeviceController.h | 10 +- .../Framework/CHIP/MTRDeviceController.mm | 12 +- .../CHIP/MTRDeviceControllerOverXPC.m | 6 +- src/darwin/Framework/CHIP/MTRDeviceOverXPC.h | 4 +- src/darwin/Framework/CHIP/Matter.h | 4 +- ...Objc-src.zapt => MTRBaseClusters-src.zapt} | 14 +- ...ClustersObjc.zapt => MTRBaseClusters.zapt} | 4 +- ...nal.zapt => MTRBaseClusters_internal.zapt} | 7 +- .../Framework/CHIP/templates/templates.json | 12 +- .../{MTRClustersObjc.h => MTRBaseClusters.h} | 256 +++--- ...{MTRClustersObjc.mm => MTRBaseClusters.mm} | 262 +++--- .../zap-generated/MTRBaseClusters_internal.h | 409 ++++++++++ .../Framework/CHIPTests/MTRClustersTests.m | 34 +- .../Framework/CHIPTests/MTRControllerTests.m | 10 +- .../Framework/CHIPTests/MTRDeviceTests.m | 166 ++-- .../CHIPTests/MTRXPCListenerSampleTests.m | 396 ++++----- .../Framework/CHIPTests/MTRXPCProtocolTests.m | 760 +++++++++--------- .../Matter.xcodeproj/project.pbxproj | 44 +- 38 files changed, 1499 insertions(+), 1069 deletions(-) rename src/darwin/Framework/CHIP/{MTRDevice.h => MTRBaseDevice.h} (99%) rename src/darwin/Framework/CHIP/{MTRDevice.mm => MTRBaseDevice.mm} (99%) rename src/darwin/Framework/CHIP/{MTRDevice_Internal.h => MTRBaseDevice_Internal.h} (96%) rename src/darwin/Framework/CHIP/templates/{MTRClustersObjc-src.zapt => MTRBaseClusters-src.zapt} (97%) rename src/darwin/Framework/CHIP/templates/{MTRClustersObjc.zapt => MTRBaseClusters.zapt} (96%) rename src/darwin/Framework/CHIP/templates/{MTRClustersObjc_internal.zapt => MTRBaseClusters_internal.zapt} (66%) rename src/darwin/Framework/CHIP/zap-generated/{MTRClustersObjc.h => MTRBaseClusters.h} (99%) rename src/darwin/Framework/CHIP/zap-generated/{MTRClustersObjc.mm => MTRBaseClusters.mm} (99%) create mode 100644 src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters_internal.h diff --git a/.restyled.yaml b/.restyled.yaml index 95780a56920d35..c45fe98588b7ec 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -72,7 +72,7 @@ exclude: - "scripts/idl/tests/outputs/**/*" # Matches generated output 1:1 - "examples/chef/sample_app_util/test_files/*.yaml" - "examples/chef/zzz_generated/**/*" - - "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm" # https://github.com/project-chip/connectedhomeip/issues/20236 + - "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm" # https://github.com/project-chip/connectedhomeip/issues/20236 changed_paths: diff --git a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.h b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.h index 8b3320ec2992b5..e4f114bc4ab869 100644 --- a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.h +++ b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.h @@ -39,7 +39,7 @@ BOOL MTRIsDevicePaired(uint64_t id); BOOL MTRGetConnectedDevice(MTRDeviceConnectionCallback completionHandler); BOOL MTRGetConnectedDeviceWithID(uint64_t deviceId, MTRDeviceConnectionCallback completionHandler); void MTRUnpairDeviceWithID(uint64_t deviceId); -MTRDevice * _Nullable MTRGetDeviceBeingCommissioned(void); +MTRBaseDevice * _Nullable MTRGetDeviceBeingCommissioned(void); @interface CHIPToolPersistentStorageDelegate : NSObject - (nullable NSData *)storageDataForKey:(NSString *)key; diff --git a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m index bdf66f2db41a7d..3440a251b98bbe 100644 --- a/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m +++ b/src/darwin/CHIPTool/CHIPTool/Framework Helpers/DefaultsUtils.m @@ -135,14 +135,14 @@ BOOL MTRGetConnectedDevice(MTRDeviceConnectionCallback completionHandler) // Let's use the last device that was paired uint64_t deviceId = MTRGetLastPairedDeviceId(); - return [controller getDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; + return [controller getBaseDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; } -MTRDevice * MTRGetDeviceBeingCommissioned(void) +MTRBaseDevice * MTRGetDeviceBeingCommissioned(void) { NSError * error; MTRDeviceController * controller = InitializeMTR(); - MTRDevice * device = [controller getDeviceBeingCommissioned:MTRGetLastPairedDeviceId() error:&error]; + MTRBaseDevice * device = [controller getDeviceBeingCommissioned:MTRGetLastPairedDeviceId() error:&error]; if (error) { NSLog(@"Error retrieving device being commissioned for deviceId %llu", MTRGetLastPairedDeviceId()); return nil; @@ -154,7 +154,7 @@ BOOL MTRGetConnectedDeviceWithID(uint64_t deviceId, MTRDeviceConnectionCallback { MTRDeviceController * controller = InitializeMTR(); - return [controller getDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; + return [controller getBaseDevice:deviceId queue:dispatch_get_main_queue() completionHandler:completionHandler]; } BOOL MTRIsDevicePaired(uint64_t deviceId) @@ -173,15 +173,14 @@ void MTRSetDevicePaired(uint64_t deviceId, BOOL paired) void MTRUnpairDeviceWithID(uint64_t deviceId) { MTRSetDevicePaired(deviceId, NO); - MTRGetConnectedDeviceWithID(deviceId, ^(MTRDevice * _Nullable device, NSError * _Nullable error) { + MTRGetConnectedDeviceWithID(deviceId, ^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { if (error) { NSLog(@"Failed to unpair device %llu still removing from CHIPTool. %@", deviceId, error); return; } NSLog(@"Attempting to unpair device %llu", deviceId); - MTROperationalCredentials * opCredsCluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:dispatch_get_main_queue()]; + MTRBaseClusterOperationalCredentials * opCredsCluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:dispatch_get_main_queue()]; [opCredsCluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { if (error) { diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m index 4e31fc87ca32e5..b98e45ec0d8749 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Bindings/BindingsViewController.m @@ -134,7 +134,7 @@ - (IBAction)bind:(id)sender [scanner scanUnsignedLongLong:&nodeId]; // TODO Binding Support was removed from ObjC Clusters.h - if (MTRGetConnectedDevice(^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDevice(^(MTRBaseDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { NSString * resultString = [NSString stringWithFormat:@"Not Supported"]; NSLog(resultString, nil); @@ -150,7 +150,7 @@ - (IBAction)bind:(id)sender - (IBAction)unbind:(id)sender { - if (MTRGetConnectedDevice(^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { + if (MTRGetConnectedDevice(^(MTRBaseDevice * _Nullable chipDevice, NSError * _Nullable error) { if (chipDevice) { NSString * resultString = [NSString stringWithFormat:@"Not Supported"]; NSLog(resultString, nil); diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m index e8f9d37e6cb4dc..8d6441fc078488 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Enumeration/EnumerateViewController.m @@ -108,16 +108,16 @@ - (IBAction)sendMessage:(id)sender // 4. Success? - (void)enumerate { - MTRGetConnectedDevice(^(MTRDevice * _Nullable device, NSError * _Nullable error) { + MTRGetConnectedDevice(^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { if (error) { NSString * resultLog = [[NSString alloc] initWithFormat:@"Unable to get connected device: Error: %@", error]; [self updateResult:resultLog]; return; } - MTRDescriptor * descriptorCluster = [[MTRDescriptor alloc] initWithDevice:device - endpoint:0 - queue:dispatch_get_main_queue()]; + MTRBaseClusterDescriptor * descriptorCluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:dispatch_get_main_queue()]; NSLog(@"Reading parts list to get list of endpoints in use..."); [descriptorCluster readAttributePartsListWithCompletionHandler:^( NSArray * _Nullable endpointsInUse, NSError * _Nullable error) { @@ -131,9 +131,10 @@ - (void)enumerate [self updateResult:resultLog]; for (NSNumber * endpoint in endpointsInUse) { - MTRDescriptor * descriptorCluster = [[MTRDescriptor alloc] initWithDevice:device - endpoint:[endpoint unsignedShortValue] - queue:dispatch_get_main_queue()]; + MTRBaseClusterDescriptor * descriptorCluster = + [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:[endpoint unsignedShortValue] + queue:dispatch_get_main_queue()]; [descriptorCluster readAttributeDeviceListWithCompletionHandler:^( NSArray * _Nullable value, NSError * _Nullable error) { if (error) { diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m index 6d281c0312d80f..39f0f1a35977ee 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Fabric/FabricUIViewController.m @@ -217,11 +217,12 @@ - (void)updateFabricsListUIWithFabrics:(NSArray #import "MTRAttributeCacheContainer_Internal.h" +#import "MTRBaseDevice_Internal.h" #import "MTRCluster.h" #import "MTRDeviceControllerXPCConnection.h" -#import "MTRDevice_Internal.h" #import "MTRError.h" #import "MTRError_Internal.h" #import "MTRLogging.h" diff --git a/src/darwin/Framework/CHIP/MTRDevice.h b/src/darwin/Framework/CHIP/MTRBaseDevice.h similarity index 99% rename from src/darwin/Framework/CHIP/MTRDevice.h rename to src/darwin/Framework/CHIP/MTRBaseDevice.h index 3230b26a15dedf..815e37c3c7d655 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.h +++ b/src/darwin/Framework/CHIP/MTRBaseDevice.h @@ -90,7 +90,7 @@ extern NSString * const MTRArrayValueType; @class MTRReadParams; @class MTRSubscribeParams; -@interface MTRDevice : NSObject +@interface MTRBaseDevice : NSObject - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRBaseDevice.mm similarity index 99% rename from src/darwin/Framework/CHIP/MTRDevice.mm rename to src/darwin/Framework/CHIP/MTRBaseDevice.mm index 9cc39ad8aa581a..c1a54ac7b6983d 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRBaseDevice.mm @@ -17,9 +17,9 @@ #import "MTRAttributeCacheContainer_Internal.h" #import "MTRAttributeTLVValueDecoder_Internal.h" +#import "MTRBaseDevice_Internal.h" #import "MTRCallbackBridgeBase_internal.h" #import "MTRCluster.h" -#import "MTRDevice_Internal.h" #import "MTRError_Internal.h" #import "MTREventTLVValueDecoder_Internal.h" #import "MTRLogging.h" @@ -65,7 +65,7 @@ class NSObjectDataValueCallbackBridge; -@interface MTRDevice () +@interface MTRBaseDevice () @property (nonatomic, readonly, strong, nonnull) NSRecursiveLock * lock; @property (readonly) chip::DeviceProxy * cppDevice; @@ -221,7 +221,7 @@ - (void)dealloc } @end -@implementation MTRDevice +@implementation MTRBaseDevice - (instancetype)init { diff --git a/src/darwin/Framework/CHIP/MTRDevice_Internal.h b/src/darwin/Framework/CHIP/MTRBaseDevice_Internal.h similarity index 96% rename from src/darwin/Framework/CHIP/MTRDevice_Internal.h rename to src/darwin/Framework/CHIP/MTRBaseDevice_Internal.h index 7dea9c4a92b152..0bc99ae0c3c7ba 100644 --- a/src/darwin/Framework/CHIP/MTRDevice_Internal.h +++ b/src/darwin/Framework/CHIP/MTRBaseDevice_Internal.h @@ -15,7 +15,7 @@ * limitations under the License. */ -#import "MTRDevice.h" +#import "MTRBaseDevice.h" #import #include @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface MTRDevice () +@interface MTRBaseDevice () - (instancetype)initWithDevice:(chip::DeviceProxy *)device; - (chip::DeviceProxy *)internalDevice; diff --git a/src/darwin/Framework/CHIP/MTRCallbackBridgeBase_internal.h b/src/darwin/Framework/CHIP/MTRCallbackBridgeBase_internal.h index fe7ded16cb7e57..61bc9f41de3676 100644 --- a/src/darwin/Framework/CHIP/MTRCallbackBridgeBase_internal.h +++ b/src/darwin/Framework/CHIP/MTRCallbackBridgeBase_internal.h @@ -18,7 +18,7 @@ #import #import "MTRError_Internal.h" -#import "zap-generated/MTRClustersObjc.h" +#import "zap-generated/MTRBaseClusters.h" #include #include diff --git a/src/darwin/Framework/CHIP/MTRCluster.h b/src/darwin/Framework/CHIP/MTRCluster.h index d7cc4e1c810af5..3517772447353e 100644 --- a/src/darwin/Framework/CHIP/MTRCluster.h +++ b/src/darwin/Framework/CHIP/MTRCluster.h @@ -17,7 +17,7 @@ #import -@class MTRDevice; +@class MTRBaseDevice; NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/Framework/CHIP/MTRCluster.mm b/src/darwin/Framework/CHIP/MTRCluster.mm index 384c509565420d..17d943996bdba8 100644 --- a/src/darwin/Framework/CHIP/MTRCluster.mm +++ b/src/darwin/Framework/CHIP/MTRCluster.mm @@ -15,8 +15,8 @@ * limitations under the License. */ +#import "MTRBaseDevice.h" #import "MTRCluster_internal.h" -#import "MTRDevice.h" #import "NSDataSpanConversion.h" using namespace ::chip; diff --git a/src/darwin/Framework/CHIP/MTRCluster_internal.h b/src/darwin/Framework/CHIP/MTRCluster_internal.h index 2ef58581c9e6f8..615b8eb732b48d 100644 --- a/src/darwin/Framework/CHIP/MTRCluster_internal.h +++ b/src/darwin/Framework/CHIP/MTRCluster_internal.h @@ -17,12 +17,12 @@ #import +#import "MTRBaseDevice.h" +#import "MTRBaseDevice_Internal.h" #import "MTRCluster.h" -#import "MTRDevice.h" -#import "MTRDevice_Internal.h" #import "zap-generated/CHIPClusters.h" -#import "zap-generated/MTRClustersObjc.h" +#import "zap-generated/MTRBaseClusters.h" NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.mm b/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.mm index 6972ae7f788698..2ad2c2f6c08f83 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.mm @@ -16,13 +16,13 @@ */ #import "MTRDeviceConnectionBridge.h" -#import "MTRDevice_Internal.h" +#import "MTRBaseDevice_Internal.h" #import "MTRError_Internal.h" void MTRDeviceConnectionBridge::OnConnected(void * context, chip::OperationalDeviceProxy * device) { auto * object = static_cast(context); - MTRDevice * chipDevice = [[MTRDevice alloc] initWithDevice:device]; + MTRBaseDevice * chipDevice = [[MTRBaseDevice alloc] initWithDevice:device]; dispatch_async(object->mQueue, ^{ object->mCompletionHandler(chipDevice, nil); object->Release(); diff --git a/src/darwin/Framework/CHIP/MTRDeviceController+XPC.m b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.m index 717bbff4628703..6dc425eba5cd7c 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController+XPC.m +++ b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.m @@ -17,8 +17,8 @@ #import "MTRDeviceController+XPC.h" +#import "MTRBaseDevice.h" #import "MTRCluster.h" -#import "MTRDevice.h" #import "MTRDeviceControllerOverXPC.h" NS_ASSUME_NONNULL_BEGIN diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.h b/src/darwin/Framework/CHIP/MTRDeviceController.h index c05e442328ea8c..61db4061896d10 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController.h @@ -19,11 +19,11 @@ #import -@class MTRDevice; +@class MTRBaseDevice; NS_ASSUME_NONNULL_BEGIN -typedef void (^MTRDeviceConnectionCallback)(MTRDevice * _Nullable device, NSError * _Nullable error); +typedef void (^MTRDeviceConnectionCallback)(MTRBaseDevice * _Nullable device, NSError * _Nullable error); @class MTRCommissioningParameters; @protocol MTRDevicePairingDelegate; @@ -92,8 +92,10 @@ typedef void (^MTRDeviceConnectionCallback)(MTRDevice * _Nullable device, NSErro - (BOOL)stopDevicePairing:(uint64_t)deviceID error:(NSError * __autoreleasing *)error; -- (nullable MTRDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error; -- (BOOL)getDevice:(uint64_t)deviceID queue:(dispatch_queue_t)queue completionHandler:(MTRDeviceConnectionCallback)completionHandler; +- (nullable MTRBaseDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error; +- (BOOL)getBaseDevice:(uint64_t)deviceID + queue:(dispatch_queue_t)queue + completionHandler:(MTRDeviceConnectionCallback)completionHandler; - (BOOL)openPairingWindow:(uint64_t)deviceID duration:(NSUInteger)duration error:(NSError * __autoreleasing *)error; - (nullable NSString *)openPairingWindowWithPIN:(uint64_t)deviceID diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.mm b/src/darwin/Framework/CHIP/MTRDeviceController.mm index 86e8b66aa0e771..987166a6fc4abf 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceController.mm @@ -16,12 +16,12 @@ */ #import "MTRDeviceController.h" +#import "MTRBaseDevice_Internal.h" #import "MTRCommissioningParameters.h" #import "MTRControllerFactory_Internal.h" #import "MTRDeviceControllerStartupParams.h" #import "MTRDeviceControllerStartupParams_Internal.h" #import "MTRDevicePairingDelegateBridge.h" -#import "MTRDevice_Internal.h" #import "MTRError_Internal.h" #import "MTRKeypair.h" #import "MTRLogging.h" @@ -32,7 +32,7 @@ #import "NSDataSpanConversion.h" #import #import -#import +#import #import "MTRDeviceAttestationDelegateBridge.h" #import "MTRDeviceConnectionBridge.h" @@ -498,7 +498,7 @@ - (BOOL)stopDevicePairing:(uint64_t)deviceID error:(NSError * __autoreleasing *) return success; } -- (MTRDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error +- (MTRBaseDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error { CHIP_ERROR errorCode = CHIP_ERROR_INCORRECT_STATE; if (![self isRunning]) { @@ -514,10 +514,12 @@ - (MTRDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __ } return nil; } - return [[MTRDevice alloc] initWithDevice:deviceProxy]; + return [[MTRBaseDevice alloc] initWithDevice:deviceProxy]; } -- (BOOL)getDevice:(uint64_t)deviceID queue:(dispatch_queue_t)queue completionHandler:(MTRDeviceConnectionCallback)completionHandler +- (BOOL)getBaseDevice:(uint64_t)deviceID + queue:(dispatch_queue_t)queue + completionHandler:(MTRDeviceConnectionCallback)completionHandler { __block CHIP_ERROR errorCode = CHIP_ERROR_INCORRECT_STATE; if (![self isRunning]) { diff --git a/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.m b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.m index a96c3ab65a9bbc..54463a59f99a65 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.m +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerOverXPC.m @@ -91,13 +91,15 @@ - (BOOL)stopDevicePairing:(uint64_t)deviceID error:(NSError * __autoreleasing *) return NO; } -- (nullable MTRDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error +- (nullable MTRBaseDevice *)getDeviceBeingCommissioned:(uint64_t)deviceId error:(NSError * __autoreleasing *)error { MTR_LOG_ERROR("MTRDevice doesn't support getDeviceBeingCommissioned over XPC"); return nil; } -- (BOOL)getDevice:(uint64_t)deviceID queue:(dispatch_queue_t)queue completionHandler:(MTRDeviceConnectionCallback)completionHandler +- (BOOL)getBaseDevice:(uint64_t)deviceID + queue:(dispatch_queue_t)queue + completionHandler:(MTRDeviceConnectionCallback)completionHandler { dispatch_async(_workQueue, ^{ dispatch_group_t group = dispatch_group_create(); diff --git a/src/darwin/Framework/CHIP/MTRDeviceOverXPC.h b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.h index 918ab8829d9f5d..e0a46f4f17cec5 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceOverXPC.h +++ b/src/darwin/Framework/CHIP/MTRDeviceOverXPC.h @@ -15,12 +15,12 @@ * limitations under the License. */ -#import "MTRDevice.h" +#import "MTRBaseDevice.h" #import "MTRDeviceControllerXPCConnection.h" NS_ASSUME_NONNULL_BEGIN -@interface MTRDeviceOverXPC : MTRDevice +@interface MTRDeviceOverXPC : MTRBaseDevice - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; diff --git a/src/darwin/Framework/CHIP/Matter.h b/src/darwin/Framework/CHIP/Matter.h index 0d5e8c403e3e37..3f5856e892c8e6 100644 --- a/src/darwin/Framework/CHIP/Matter.h +++ b/src/darwin/Framework/CHIP/Matter.h @@ -18,14 +18,14 @@ #import #import +#import +#import #import #import #import -#import #import #import #import -#import #import #import #import diff --git a/src/darwin/Framework/CHIP/templates/MTRClustersObjc-src.zapt b/src/darwin/Framework/CHIP/templates/MTRBaseClusters-src.zapt similarity index 97% rename from src/darwin/Framework/CHIP/templates/MTRClustersObjc-src.zapt rename to src/darwin/Framework/CHIP/templates/MTRBaseClusters-src.zapt index 7e8152218b09a2..a120d05653a190 100644 --- a/src/darwin/Framework/CHIP/templates/MTRClustersObjc-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRBaseClusters-src.zapt @@ -3,11 +3,11 @@ #import #import "MTRAttributeCacheContainer_Internal.h" +#import "MTRBaseClusters_internal.h" +#import "MTRBaseDevice.h" +#import "MTRBaseDevice_Internal.h" #import "MTRCallbackBridge_internal.h" #import "MTRCluster_internal.h" -#import "MTRClustersObjc_internal.h" -#import "MTRDevice.h" -#import "MTRDevice_Internal.h" #import "MTRStructsObjc.h" #import "MTRCommandPayloadsObjc.h" @@ -20,9 +20,9 @@ using chip::Callback::Cancelable; using namespace chip::app::Clusters; // NOLINTBEGIN(clang-analyzer-cplusplus.NewDeleteLeaks): Linter is unable to locate the delete on these objects. {{#chip_client_clusters includeAll=true}} -@implementation MTR{{asUpperCamelCase name}} +@implementation MTRBaseCluster{{asUpperCamelCase name}} -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -148,7 +148,7 @@ using namespace chip::app::Clusters; timedWriteTimeout.SetValue(10000); } {{/if}} - + new MTR{{>callbackName}}CallbackBridge(self.callbackQueue, {{! For now, don't change the bridge API; instead just use an adapter to invoke our completion handler. This is not great from a @@ -165,7 +165,7 @@ using namespace chip::app::Clusters; auto failureFn = Callback::FromCancelable(failure); return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeout); }); - + } {{/if}} diff --git a/src/darwin/Framework/CHIP/templates/MTRClustersObjc.zapt b/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt similarity index 96% rename from src/darwin/Framework/CHIP/templates/MTRClustersObjc.zapt rename to src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt index e1fcaee949a99d..98adfc639f4bf0 100644 --- a/src/darwin/Framework/CHIP/templates/MTRClustersObjc.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt @@ -20,9 +20,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster {{name}} * {{description}} */ -@interface MTR{{asUpperCamelCase name}} : MTRCluster +@interface MTRBaseCluster{{asUpperCamelCase name}} : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; diff --git a/src/darwin/Framework/CHIP/templates/MTRClustersObjc_internal.zapt b/src/darwin/Framework/CHIP/templates/MTRBaseClusters_internal.zapt similarity index 66% rename from src/darwin/Framework/CHIP/templates/MTRClustersObjc_internal.zapt rename to src/darwin/Framework/CHIP/templates/MTRBaseClusters_internal.zapt index 134372f0d366a3..a86993b5977210 100644 --- a/src/darwin/Framework/CHIP/templates/MTRClustersObjc_internal.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRBaseClusters_internal.zapt @@ -2,11 +2,14 @@ #import -#import "MTRDevice.h" +#import "MTRBaseClusters.h" +#import "MTRBaseDevice.h" + +#include {{#chip_client_clusters includeAll=true}} -@interface MTR{{asUpperCamelCase name}} () +@interface MTRBaseCluster{{asUpperCamelCase name}} () // Must only touch cppCluster on the Matter queue. @property (readonly) chip::Controller::{{asUpperCamelCase name}}Cluster * cppCluster; - (chip::Controller::{{asUpperCamelCase name}}Cluster **) cppClusterSlot; diff --git a/src/darwin/Framework/CHIP/templates/templates.json b/src/darwin/Framework/CHIP/templates/templates.json index 30e9f2926fe8aa..3939322c5601b3 100644 --- a/src/darwin/Framework/CHIP/templates/templates.json +++ b/src/darwin/Framework/CHIP/templates/templates.json @@ -53,19 +53,19 @@ "output": "src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm" }, { - "path": "MTRClustersObjc_internal.zapt", + "path": "MTRBaseClusters_internal.zapt", "name": "Objc ZCL API Internal Header", - "output": "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc_internal.h" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters_internal.h" }, { - "path": "MTRClustersObjc.zapt", + "path": "MTRBaseClusters.zapt", "name": "Objc ZCL API Header", - "output": "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h" }, { - "path": "MTRClustersObjc-src.zapt", + "path": "MTRBaseClusters-src.zapt", "name": "Objc ZCL API", - "output": "src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm" + "output": "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm" }, { "path": "MTRStructsObjc.zapt", diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h similarity index 99% rename from src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h rename to src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index 9aba082e93ca66..43ed2183d0a4f6 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -34,9 +34,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Identify * */ -@interface MTRIdentify : MTRCluster +@interface MTRBaseClusterIdentify : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -184,9 +184,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Groups * */ -@interface MTRGroups : MTRCluster +@interface MTRBaseClusterGroups : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -325,9 +325,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Scenes * */ -@interface MTRScenes : MTRCluster +@interface MTRBaseClusterScenes : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -565,9 +565,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster On/Off * */ -@interface MTROnOff : MTRCluster +@interface MTRBaseClusterOnOff : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -779,9 +779,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster On/off Switch Configuration * */ -@interface MTROnOffSwitchConfiguration : MTRCluster +@interface MTRBaseClusterOnOffSwitchConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -924,9 +924,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Level Control * */ -@interface MTRLevelControl : MTRCluster +@interface MTRBaseClusterLevelControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -1322,9 +1322,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Binary Input (Basic) * */ -@interface MTRBinaryInputBasic : MTRCluster +@interface MTRBaseClusterBinaryInputBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -1608,9 +1608,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Descriptor * */ -@interface MTRDescriptor : MTRCluster +@interface MTRBaseClusterDescriptor : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -1778,9 +1778,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Binding * */ -@interface MTRBinding : MTRCluster +@interface MTRBaseClusterBinding : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -1904,9 +1904,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Access Control * */ -@interface MTRAccessControl : MTRCluster +@interface MTRBaseClusterAccessControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -2107,9 +2107,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Bridged Actions * */ -@interface MTRBridgedActions : MTRCluster +@interface MTRBaseClusterBridgedActions : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -2287,9 +2287,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Basic * */ -@interface MTRBasic : MTRCluster +@interface MTRBaseClusterBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -2756,9 +2756,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster OTA Software Update Provider * */ -@interface MTROtaSoftwareUpdateProvider : MTRCluster +@interface MTRBaseClusterOtaSoftwareUpdateProvider : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -2871,9 +2871,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster OTA Software Update Requestor * */ -@interface MTROtaSoftwareUpdateRequestor : MTRCluster +@interface MTRBaseClusterOtaSoftwareUpdateRequestor : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -3058,9 +3058,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Localization Configuration * */ -@interface MTRLocalizationConfiguration : MTRCluster +@interface MTRBaseClusterLocalizationConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -3204,9 +3204,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Time Format Localization * */ -@interface MTRTimeFormatLocalization : MTRCluster +@interface MTRBaseClusterTimeFormatLocalization : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -3372,9 +3372,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Unit Localization * */ -@interface MTRUnitLocalization : MTRCluster +@interface MTRBaseClusterUnitLocalization : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -3500,9 +3500,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Power Source Configuration * */ -@interface MTRPowerSourceConfiguration : MTRCluster +@interface MTRBaseClusterPowerSourceConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -3621,9 +3621,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Power Source * */ -@interface MTRPowerSource : MTRCluster +@interface MTRBaseClusterPowerSource : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -4297,9 +4297,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster General Commissioning * */ -@interface MTRGeneralCommissioning : MTRCluster +@interface MTRBaseClusterGeneralCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -4514,9 +4514,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Network Commissioning * */ -@interface MTRNetworkCommissioning : MTRCluster +@interface MTRBaseClusterNetworkCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -4786,9 +4786,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Diagnostic Logs * */ -@interface MTRDiagnosticLogs : MTRCluster +@interface MTRBaseClusterDiagnosticLogs : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -4896,9 +4896,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster General Diagnostics * */ -@interface MTRGeneralDiagnostics : MTRCluster +@interface MTRBaseClusterGeneralDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -5166,9 +5166,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Software Diagnostics * */ -@interface MTRSoftwareDiagnostics : MTRCluster +@interface MTRBaseClusterSoftwareDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -5349,9 +5349,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Thread Network Diagnostics * */ -@interface MTRThreadNetworkDiagnostics : MTRCluster +@interface MTRBaseClusterThreadNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -6598,9 +6598,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster WiFi Network Diagnostics * */ -@interface MTRWiFiNetworkDiagnostics : MTRCluster +@interface MTRBaseClusterWiFiNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -6939,9 +6939,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Ethernet Network Diagnostics * */ -@interface MTREthernetNetworkDiagnostics : MTRCluster +@interface MTRBaseClusterEthernetNetworkDiagnostics : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -7207,9 +7207,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Bridged Device Basic * */ -@interface MTRBridgedDeviceBasic : MTRCluster +@interface MTRBaseClusterBridgedDeviceBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -7577,9 +7577,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Switch * */ -@interface MTRSwitch : MTRCluster +@interface MTRBaseClusterSwitch : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -7737,9 +7737,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster AdministratorCommissioning * */ -@interface MTRAdministratorCommissioning : MTRCluster +@interface MTRBaseClusterAdministratorCommissioning : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -7905,9 +7905,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Operational Credentials * */ -@interface MTROperationalCredentials : MTRCluster +@interface MTRBaseClusterOperationalCredentials : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -8141,9 +8141,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Group Key Management * */ -@interface MTRGroupKeyManagement : MTRCluster +@interface MTRBaseClusterGroupKeyManagement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -8332,9 +8332,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Fixed Label * */ -@interface MTRFixedLabel : MTRCluster +@interface MTRBaseClusterFixedLabel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -8454,9 +8454,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster User Label * */ -@interface MTRUserLabel : MTRCluster +@interface MTRBaseClusterUserLabel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -8580,9 +8580,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Boolean State * */ -@interface MTRBooleanState : MTRCluster +@interface MTRBaseClusterBooleanState : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -8703,9 +8703,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Mode Select * */ -@interface MTRModeSelect : MTRCluster +@interface MTRBaseClusterModeSelect : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -8922,9 +8922,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Door Lock * */ -@interface MTRDoorLock : MTRCluster +@interface MTRBaseClusterDoorLock : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -9806,9 +9806,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Window Covering * */ -@interface MTRWindowCovering : MTRCluster +@interface MTRBaseClusterWindowCovering : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -10340,9 +10340,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Barrier Control * */ -@interface MTRBarrierControl : MTRCluster +@interface MTRBaseClusterBarrierControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -10662,9 +10662,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Pump Configuration and Control * */ -@interface MTRPumpConfigurationAndControl : MTRCluster +@interface MTRBaseClusterPumpConfigurationAndControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -11189,9 +11189,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Thermostat * */ -@interface MTRThermostat : MTRCluster +@interface MTRBaseClusterThermostat : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -12329,9 +12329,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Fan Control * */ -@interface MTRFanControl : MTRCluster +@interface MTRBaseClusterFanControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -12649,9 +12649,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Thermostat User Interface Configuration * */ -@interface MTRThermostatUserInterfaceConfiguration : MTRCluster +@interface MTRBaseClusterThermostatUserInterfaceConfiguration : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -12825,9 +12825,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Color Control * */ -@interface MTRColorControl : MTRCluster +@interface MTRBaseClusterColorControl : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -13931,9 +13931,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Illuminance Measurement * */ -@interface MTRIlluminanceMeasurement : MTRCluster +@interface MTRBaseClusterIlluminanceMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -14125,9 +14125,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Temperature Measurement * */ -@interface MTRTemperatureMeasurement : MTRCluster +@interface MTRBaseClusterTemperatureMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -14301,9 +14301,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Pressure Measurement * */ -@interface MTRPressureMeasurement : MTRCluster +@interface MTRBaseClusterPressureMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -14563,9 +14563,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Flow Measurement * */ -@interface MTRFlowMeasurement : MTRCluster +@interface MTRBaseClusterFlowMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -14739,9 +14739,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Relative Humidity Measurement * */ -@interface MTRRelativeHumidityMeasurement : MTRCluster +@interface MTRBaseClusterRelativeHumidityMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -14915,9 +14915,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Occupancy Sensing * */ -@interface MTROccupancySensing : MTRCluster +@interface MTRBaseClusterOccupancySensing : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -15295,9 +15295,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Wake on LAN * */ -@interface MTRWakeOnLan : MTRCluster +@interface MTRBaseClusterWakeOnLan : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -15418,9 +15418,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Channel * */ -@interface MTRChannel : MTRCluster +@interface MTRBaseClusterChannel : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -15584,9 +15584,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Target Navigator * */ -@interface MTRTargetNavigator : MTRCluster +@interface MTRBaseClusterTargetNavigator : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -15728,9 +15728,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Media Playback * */ -@interface MTRMediaPlayback : MTRCluster +@interface MTRBaseClusterMediaPlayback : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -16006,9 +16006,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Media Input * */ -@interface MTRMediaInput : MTRCluster +@interface MTRBaseClusterMediaInput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -16155,9 +16155,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Low Power * */ -@interface MTRLowPower : MTRCluster +@interface MTRBaseClusterLowPower : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -16264,9 +16264,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Keypad Input * */ -@interface MTRKeypadInput : MTRCluster +@interface MTRBaseClusterKeypadInput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -16374,9 +16374,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Content Launcher * */ -@interface MTRContentLauncher : MTRCluster +@interface MTRBaseClusterContentLauncher : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -16528,9 +16528,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Audio Output * */ -@interface MTRAudioOutput : MTRCluster +@interface MTRBaseClusterAudioOutput : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -16673,9 +16673,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Application Launcher * */ -@interface MTRApplicationLauncher : MTRCluster +@interface MTRBaseClusterApplicationLauncher : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -16829,9 +16829,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Application Basic * */ -@interface MTRApplicationBasic : MTRCluster +@interface MTRBaseClusterApplicationBasic : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -17073,9 +17073,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Account Login * */ -@interface MTRAccountLogin : MTRCluster +@interface MTRBaseClusterAccountLogin : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -17187,9 +17187,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Electrical Measurement * */ -@interface MTRElectricalMeasurement : MTRCluster +@interface MTRBaseClusterElectricalMeasurement : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; @@ -19700,9 +19700,9 @@ NS_ASSUME_NONNULL_BEGIN * Cluster Test Cluster * */ -@interface MTRTestCluster : MTRCluster +@interface MTRBaseClusterTestCluster : MTRCluster -- (nullable instancetype)initWithDevice:(MTRDevice *)device +- (nullable instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm similarity index 99% rename from src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm rename to src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm index 518abbae399411..45b77617ef60bc 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClustersObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm @@ -20,12 +20,12 @@ #import #import "MTRAttributeCacheContainer_Internal.h" +#import "MTRBaseClusters_internal.h" +#import "MTRBaseDevice.h" +#import "MTRBaseDevice_Internal.h" #import "MTRCallbackBridge_internal.h" #import "MTRCluster_internal.h" -#import "MTRClustersObjc_internal.h" #import "MTRCommandPayloadsObjc.h" -#import "MTRDevice.h" -#import "MTRDevice_Internal.h" #import "MTRStructsObjc.h" #include @@ -36,9 +36,9 @@ using chip::Callback::Cancelable; using namespace chip::app::Clusters; // NOLINTBEGIN(clang-analyzer-cplusplus.NewDeleteLeaks): Linter is unable to locate the delete on these objects. -@implementation MTRIdentify +@implementation MTRBaseClusterIdentify -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -597,9 +597,9 @@ - (void)dealloc @end -@implementation MTRGroups +@implementation MTRBaseClusterGroups -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -1180,9 +1180,9 @@ - (void)dealloc @end -@implementation MTRScenes +@implementation MTRBaseClusterScenes -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -2296,9 +2296,9 @@ - (void)dealloc @end -@implementation MTROnOff +@implementation MTRBaseClusterOnOff -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -3221,9 +3221,9 @@ - (void)dealloc @end -@implementation MTROnOffSwitchConfiguration +@implementation MTRBaseClusterOnOffSwitchConfiguration -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -3730,9 +3730,9 @@ - (void)dealloc @end -@implementation MTRLevelControl +@implementation MTRBaseClusterLevelControl -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -5443,9 +5443,9 @@ - (void)dealloc @end -@implementation MTRBinaryInputBasic +@implementation MTRBaseClusterBinaryInputBasic -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -6536,9 +6536,9 @@ - (void)dealloc @end -@implementation MTRDescriptor +@implementation MTRBaseClusterDescriptor -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -7133,9 +7133,9 @@ - (void)dealloc @end -@implementation MTRBinding +@implementation MTRBaseClusterBinding -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -7616,9 +7616,9 @@ - (void)dealloc @end -@implementation MTRAccessControl +@implementation MTRBaseClusterAccessControl -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -8467,9 +8467,9 @@ - (void)dealloc @end -@implementation MTRBridgedActions +@implementation MTRBaseClusterBridgedActions -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -9370,9 +9370,9 @@ - (void)dealloc @end -@implementation MTRBasic +@implementation MTRBaseClusterBasic -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -11071,9 +11071,9 @@ - (void)dealloc @end -@implementation MTROtaSoftwareUpdateProvider +@implementation MTRBaseClusterOtaSoftwareUpdateProvider -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -11541,9 +11541,9 @@ - (void)dealloc @end -@implementation MTROtaSoftwareUpdateRequestor +@implementation MTRBaseClusterOtaSoftwareUpdateRequestor -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -12245,9 +12245,9 @@ - (void)dealloc @end -@implementation MTRLocalizationConfiguration +@implementation MTRBaseClusterLocalizationConfiguration -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -12757,9 +12757,9 @@ - (void)dealloc @end -@implementation MTRTimeFormatLocalization +@implementation MTRBaseClusterTimeFormatLocalization -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -13366,9 +13366,9 @@ - (void)dealloc @end -@implementation MTRUnitLocalization +@implementation MTRBaseClusterUnitLocalization -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -13815,9 +13815,9 @@ - (void)dealloc @end -@implementation MTRPowerSourceConfiguration +@implementation MTRBaseClusterPowerSourceConfiguration -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -14231,9 +14231,9 @@ - (void)dealloc @end -@implementation MTRPowerSource +@implementation MTRBaseClusterPowerSource -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -16523,9 +16523,9 @@ - (void)dealloc @end -@implementation MTRGeneralCommissioning +@implementation MTRBaseClusterGeneralCommissioning -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -17309,9 +17309,9 @@ - (void)dealloc @end -@implementation MTRNetworkCommissioning +@implementation MTRBaseClusterNetworkCommissioning -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -18373,9 +18373,9 @@ - (void)dealloc @end -@implementation MTRDiagnosticLogs +@implementation MTRBaseClusterDiagnosticLogs -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -18752,9 +18752,9 @@ - (void)dealloc @end -@implementation MTRGeneralDiagnostics +@implementation MTRBaseClusterGeneralDiagnostics -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -19697,9 +19697,9 @@ - (void)dealloc @end -@implementation MTRSoftwareDiagnostics +@implementation MTRBaseClusterSoftwareDiagnostics -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -20329,9 +20329,9 @@ - (void)dealloc @end -@implementation MTRThreadNetworkDiagnostics +@implementation MTRBaseClusterThreadNetworkDiagnostics -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -24652,9 +24652,9 @@ - (void)dealloc @end -@implementation MTRWiFiNetworkDiagnostics +@implementation MTRBaseClusterWiFiNetworkDiagnostics -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -25847,9 +25847,9 @@ - (void)dealloc @end -@implementation MTREthernetNetworkDiagnostics +@implementation MTRBaseClusterEthernetNetworkDiagnostics -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -26789,9 +26789,9 @@ - (void)dealloc @end -@implementation MTRBridgedDeviceBasic +@implementation MTRBaseClusterBridgedDeviceBasic -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -28089,9 +28089,9 @@ - (void)dealloc @end -@implementation MTRSwitch +@implementation MTRBaseClusterSwitch -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -28627,9 +28627,9 @@ - (void)dealloc @end -@implementation MTRAdministratorCommissioning +@implementation MTRBaseClusterAdministratorCommissioning -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -29261,9 +29261,9 @@ - (void)dealloc @end -@implementation MTROperationalCredentials +@implementation MTRBaseClusterOperationalCredentials -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -30196,9 +30196,9 @@ - (void)dealloc @end -@implementation MTRGroupKeyManagement +@implementation MTRBaseClusterGroupKeyManagement -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -31013,9 +31013,9 @@ - (void)dealloc @end -@implementation MTRFixedLabel +@implementation MTRBaseClusterFixedLabel -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -31427,9 +31427,9 @@ - (void)dealloc @end -@implementation MTRUserLabel +@implementation MTRBaseClusterUserLabel -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -31895,9 +31895,9 @@ - (void)dealloc @end -@implementation MTRBooleanState +@implementation MTRBaseClusterBooleanState -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -32308,9 +32308,9 @@ - (void)dealloc @end -@implementation MTRModeSelect +@implementation MTRBaseClusterModeSelect -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -33132,9 +33132,9 @@ - (void)dealloc @end -@implementation MTRDoorLock +@implementation MTRBaseClusterDoorLock -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -36897,9 +36897,9 @@ - (void)dealloc @end -@implementation MTRWindowCovering +@implementation MTRBaseClusterWindowCovering -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -38864,9 +38864,9 @@ - (void)dealloc @end -@implementation MTRBarrierControl +@implementation MTRBaseClusterBarrierControl -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -40094,9 +40094,9 @@ - (void)dealloc @end -@implementation MTRPumpConfigurationAndControl +@implementation MTRBaseClusterPumpConfigurationAndControl -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -42041,9 +42041,9 @@ - (void)dealloc @end -@implementation MTRThermostat +@implementation MTRBaseClusterThermostat -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -46517,9 +46517,9 @@ - (void)dealloc @end -@implementation MTRFanControl +@implementation MTRBaseClusterFanControl -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -47749,9 +47749,9 @@ - (void)dealloc @end -@implementation MTRThermostatUserInterfaceConfiguration +@implementation MTRBaseClusterThermostatUserInterfaceConfiguration -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -48404,9 +48404,9 @@ - (void)dealloc @end -@implementation MTRColorControl +@implementation MTRBaseClusterColorControl -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -52955,9 +52955,9 @@ - (void)dealloc @end -@implementation MTRIlluminanceMeasurement +@implementation MTRBaseClusterIlluminanceMeasurement -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -53620,9 +53620,9 @@ - (void)dealloc @end -@implementation MTRTemperatureMeasurement +@implementation MTRBaseClusterTemperatureMeasurement -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -54222,9 +54222,9 @@ - (void)dealloc @end -@implementation MTRPressureMeasurement +@implementation MTRBaseClusterPressureMeasurement -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -55133,9 +55133,9 @@ - (void)dealloc @end -@implementation MTRFlowMeasurement +@implementation MTRBaseClusterFlowMeasurement -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -55735,9 +55735,9 @@ - (void)dealloc @end -@implementation MTRRelativeHumidityMeasurement +@implementation MTRBaseClusterRelativeHumidityMeasurement -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -56342,9 +56342,9 @@ - (void)dealloc @end -@implementation MTROccupancySensing +@implementation MTRBaseClusterOccupancySensing -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -57766,9 +57766,9 @@ - (void)dealloc @end -@implementation MTRWakeOnLan +@implementation MTRBaseClusterWakeOnLan -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -58179,9 +58179,9 @@ - (void)dealloc @end -@implementation MTRChannel +@implementation MTRBaseClusterChannel -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -58794,9 +58794,9 @@ - (void)dealloc @end -@implementation MTRTargetNavigator +@implementation MTRBaseClusterTargetNavigator -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -59298,9 +59298,9 @@ - (void)dealloc @end -@implementation MTRMediaPlayback +@implementation MTRBaseClusterMediaPlayback -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -60372,9 +60372,9 @@ - (void)dealloc @end -@implementation MTRMediaInput +@implementation MTRBaseClusterMediaInput -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -60956,9 +60956,9 @@ - (void)dealloc @end -@implementation MTRLowPower +@implementation MTRBaseClusterLowPower -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -61337,9 +61337,9 @@ - (void)dealloc @end -@implementation MTRKeypadInput +@implementation MTRBaseClusterKeypadInput -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -61713,9 +61713,9 @@ - (void)dealloc @end -@implementation MTRContentLauncher +@implementation MTRBaseClusterContentLauncher -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -62426,9 +62426,9 @@ - (void)dealloc @end -@implementation MTRAudioOutput +@implementation MTRBaseClusterAudioOutput -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -62956,9 +62956,9 @@ - (void)dealloc @end -@implementation MTRApplicationLauncher +@implementation MTRBaseClusterApplicationLauncher -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -63556,9 +63556,9 @@ - (void)dealloc @end -@implementation MTRApplicationBasic +@implementation MTRBaseClusterApplicationBasic -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -64404,9 +64404,9 @@ - (void)dealloc @end -@implementation MTRAccountLogin +@implementation MTRBaseClusterAccountLogin -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -64844,9 +64844,9 @@ - (void)dealloc @end -@implementation MTRElectricalMeasurement +@implementation MTRBaseClusterElectricalMeasurement -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { @@ -73508,9 +73508,9 @@ - (void)dealloc @end -@implementation MTRTestCluster +@implementation MTRBaseClusterTestCluster -- (instancetype)initWithDevice:(MTRDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue +- (instancetype)initWithDevice:(MTRBaseDevice *)device endpoint:(uint16_t)endpoint queue:(dispatch_queue_t)queue { if (self = [super initWithQueue:queue]) { if (device == nil) { diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters_internal.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters_internal.h new file mode 100644 index 00000000000000..d918ac6284b7ef --- /dev/null +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters_internal.h @@ -0,0 +1,409 @@ +/* + * + * Copyright (c) 2022 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. + */ + +// THIS FILE IS GENERATED BY ZAP + +#import + +#import "MTRBaseClusters.h" +#import "MTRBaseDevice.h" + +#include + +@interface MTRBaseClusterIdentify () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::IdentifyCluster * cppCluster; +- (chip::Controller::IdentifyCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterGroups () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::GroupsCluster * cppCluster; +- (chip::Controller::GroupsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterScenes () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ScenesCluster * cppCluster; +- (chip::Controller::ScenesCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterOnOff () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::OnOffCluster * cppCluster; +- (chip::Controller::OnOffCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterOnOffSwitchConfiguration () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::OnOffSwitchConfigurationCluster * cppCluster; +- (chip::Controller::OnOffSwitchConfigurationCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterLevelControl () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::LevelControlCluster * cppCluster; +- (chip::Controller::LevelControlCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterBinaryInputBasic () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::BinaryInputBasicCluster * cppCluster; +- (chip::Controller::BinaryInputBasicCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterDescriptor () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::DescriptorCluster * cppCluster; +- (chip::Controller::DescriptorCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterBinding () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::BindingCluster * cppCluster; +- (chip::Controller::BindingCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterAccessControl () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::AccessControlCluster * cppCluster; +- (chip::Controller::AccessControlCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterBridgedActions () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::BridgedActionsCluster * cppCluster; +- (chip::Controller::BridgedActionsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterBasic () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::BasicCluster * cppCluster; +- (chip::Controller::BasicCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterOtaSoftwareUpdateProvider () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::OtaSoftwareUpdateProviderCluster * cppCluster; +- (chip::Controller::OtaSoftwareUpdateProviderCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterOtaSoftwareUpdateRequestor () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::OtaSoftwareUpdateRequestorCluster * cppCluster; +- (chip::Controller::OtaSoftwareUpdateRequestorCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterLocalizationConfiguration () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::LocalizationConfigurationCluster * cppCluster; +- (chip::Controller::LocalizationConfigurationCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterTimeFormatLocalization () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::TimeFormatLocalizationCluster * cppCluster; +- (chip::Controller::TimeFormatLocalizationCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterUnitLocalization () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::UnitLocalizationCluster * cppCluster; +- (chip::Controller::UnitLocalizationCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterPowerSourceConfiguration () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::PowerSourceConfigurationCluster * cppCluster; +- (chip::Controller::PowerSourceConfigurationCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterPowerSource () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::PowerSourceCluster * cppCluster; +- (chip::Controller::PowerSourceCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterGeneralCommissioning () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::GeneralCommissioningCluster * cppCluster; +- (chip::Controller::GeneralCommissioningCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterNetworkCommissioning () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::NetworkCommissioningCluster * cppCluster; +- (chip::Controller::NetworkCommissioningCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterDiagnosticLogs () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::DiagnosticLogsCluster * cppCluster; +- (chip::Controller::DiagnosticLogsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterGeneralDiagnostics () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::GeneralDiagnosticsCluster * cppCluster; +- (chip::Controller::GeneralDiagnosticsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterSoftwareDiagnostics () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::SoftwareDiagnosticsCluster * cppCluster; +- (chip::Controller::SoftwareDiagnosticsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterThreadNetworkDiagnostics () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ThreadNetworkDiagnosticsCluster * cppCluster; +- (chip::Controller::ThreadNetworkDiagnosticsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterWiFiNetworkDiagnostics () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::WiFiNetworkDiagnosticsCluster * cppCluster; +- (chip::Controller::WiFiNetworkDiagnosticsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterEthernetNetworkDiagnostics () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::EthernetNetworkDiagnosticsCluster * cppCluster; +- (chip::Controller::EthernetNetworkDiagnosticsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterBridgedDeviceBasic () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::BridgedDeviceBasicCluster * cppCluster; +- (chip::Controller::BridgedDeviceBasicCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterSwitch () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::SwitchCluster * cppCluster; +- (chip::Controller::SwitchCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterAdministratorCommissioning () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::AdministratorCommissioningCluster * cppCluster; +- (chip::Controller::AdministratorCommissioningCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterOperationalCredentials () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::OperationalCredentialsCluster * cppCluster; +- (chip::Controller::OperationalCredentialsCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterGroupKeyManagement () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::GroupKeyManagementCluster * cppCluster; +- (chip::Controller::GroupKeyManagementCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterFixedLabel () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::FixedLabelCluster * cppCluster; +- (chip::Controller::FixedLabelCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterUserLabel () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::UserLabelCluster * cppCluster; +- (chip::Controller::UserLabelCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterBooleanState () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::BooleanStateCluster * cppCluster; +- (chip::Controller::BooleanStateCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterModeSelect () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ModeSelectCluster * cppCluster; +- (chip::Controller::ModeSelectCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterDoorLock () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::DoorLockCluster * cppCluster; +- (chip::Controller::DoorLockCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterWindowCovering () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::WindowCoveringCluster * cppCluster; +- (chip::Controller::WindowCoveringCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterBarrierControl () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::BarrierControlCluster * cppCluster; +- (chip::Controller::BarrierControlCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterPumpConfigurationAndControl () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::PumpConfigurationAndControlCluster * cppCluster; +- (chip::Controller::PumpConfigurationAndControlCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterThermostat () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ThermostatCluster * cppCluster; +- (chip::Controller::ThermostatCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterFanControl () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::FanControlCluster * cppCluster; +- (chip::Controller::FanControlCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterThermostatUserInterfaceConfiguration () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ThermostatUserInterfaceConfigurationCluster * cppCluster; +- (chip::Controller::ThermostatUserInterfaceConfigurationCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterColorControl () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ColorControlCluster * cppCluster; +- (chip::Controller::ColorControlCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterIlluminanceMeasurement () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::IlluminanceMeasurementCluster * cppCluster; +- (chip::Controller::IlluminanceMeasurementCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterTemperatureMeasurement () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::TemperatureMeasurementCluster * cppCluster; +- (chip::Controller::TemperatureMeasurementCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterPressureMeasurement () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::PressureMeasurementCluster * cppCluster; +- (chip::Controller::PressureMeasurementCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterFlowMeasurement () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::FlowMeasurementCluster * cppCluster; +- (chip::Controller::FlowMeasurementCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterRelativeHumidityMeasurement () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::RelativeHumidityMeasurementCluster * cppCluster; +- (chip::Controller::RelativeHumidityMeasurementCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterOccupancySensing () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::OccupancySensingCluster * cppCluster; +- (chip::Controller::OccupancySensingCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterWakeOnLan () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::WakeOnLanCluster * cppCluster; +- (chip::Controller::WakeOnLanCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterChannel () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ChannelCluster * cppCluster; +- (chip::Controller::ChannelCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterTargetNavigator () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::TargetNavigatorCluster * cppCluster; +- (chip::Controller::TargetNavigatorCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterMediaPlayback () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::MediaPlaybackCluster * cppCluster; +- (chip::Controller::MediaPlaybackCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterMediaInput () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::MediaInputCluster * cppCluster; +- (chip::Controller::MediaInputCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterLowPower () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::LowPowerCluster * cppCluster; +- (chip::Controller::LowPowerCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterKeypadInput () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::KeypadInputCluster * cppCluster; +- (chip::Controller::KeypadInputCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterContentLauncher () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ContentLauncherCluster * cppCluster; +- (chip::Controller::ContentLauncherCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterAudioOutput () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::AudioOutputCluster * cppCluster; +- (chip::Controller::AudioOutputCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterApplicationLauncher () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ApplicationLauncherCluster * cppCluster; +- (chip::Controller::ApplicationLauncherCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterApplicationBasic () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ApplicationBasicCluster * cppCluster; +- (chip::Controller::ApplicationBasicCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterAccountLogin () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::AccountLoginCluster * cppCluster; +- (chip::Controller::AccountLoginCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterElectricalMeasurement () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::ElectricalMeasurementCluster * cppCluster; +- (chip::Controller::ElectricalMeasurementCluster **)cppClusterSlot; +@end + +@interface MTRBaseClusterTestCluster () +// Must only touch cppCluster on the Matter queue. +@property (readonly) chip::Controller::TestClusterCluster * cppCluster; +- (chip::Controller::TestClusterCluster **)cppClusterSlot; +@end diff --git a/src/darwin/Framework/CHIPTests/MTRClustersTests.m b/src/darwin/Framework/CHIPTests/MTRClustersTests.m index f6aebf6b0e5bb0..bdab9a531ea21e 100644 --- a/src/darwin/Framework/CHIPTests/MTRClustersTests.m +++ b/src/darwin/Framework/CHIPTests/MTRClustersTests.m @@ -139,13 +139,13 @@ - (void)testInitStack [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - }]; + [controller getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } @@ -166,22 +166,22 @@ - (void)testReuseChipClusterObject MTRDeviceController * controller = sController; XCTAssertNotNil(controller); - __block MTRDevice * device; + __block MTRBaseDevice * device; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable retrievedDevice, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - device = retrievedDevice; - }]; + [controller getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable retrievedDevice, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + device = retrievedDevice; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; XCTestExpectation * expectation = [self expectationWithDescription:@"ReuseMTRClusterObjectFirstCall"]; dispatch_queue_t queue = dispatch_get_main_queue(); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); [cluster testWithCompletionHandler:^(NSError * err) { diff --git a/src/darwin/Framework/CHIPTests/MTRControllerTests.m b/src/darwin/Framework/CHIPTests/MTRControllerTests.m index 9d3b3e462e5a9a..c4e7955c6890c1 100644 --- a/src/darwin/Framework/CHIPTests/MTRControllerTests.m +++ b/src/darwin/Framework/CHIPTests/MTRControllerTests.m @@ -181,11 +181,11 @@ - (void)testControllerInvalidAccess [controller shutdown]; XCTAssertFalse([controller isRunning]); - XCTAssertFalse([controller getDevice:1234 - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable chipDevice, NSError * _Nullable error) { - XCTAssertEqual(error.code, MTRErrorCodeInvalidState); - }]); + XCTAssertFalse([controller getBaseDevice:1234 + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable chipDevice, NSError * _Nullable error) { + XCTAssertEqual(error.code, MTRErrorCodeInvalidState); + }]); [factory shutdown]; XCTAssertFalse([factory isRunning]); diff --git a/src/darwin/Framework/CHIPTests/MTRDeviceTests.m b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m index 5e781f83cadc06..676fb31eba184f 100644 --- a/src/darwin/Framework/CHIPTests/MTRDeviceTests.m +++ b/src/darwin/Framework/CHIPTests/MTRDeviceTests.m @@ -20,8 +20,8 @@ // module headers #import -#import -#import +#import +#import #import #import "MTRErrorTestUtils.h" @@ -50,7 +50,7 @@ // This test suite reuses a device object to speed up the test process for CI. // The following global variable holds the reference to the device object. -static MTRDevice * mConnectedDevice; +static MTRBaseDevice * mConnectedDevice; // Singleton controller we use. static MTRDeviceController * sController = nil; @@ -60,23 +60,23 @@ static void WaitForCommissionee(XCTestExpectation * expectation, dispatch_queue_ MTRDeviceController * controller = sController; XCTAssertNotNil(controller); - [controller getDevice:kDeviceId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [expectation fulfill]; - mConnectedDevice = device; - }]; + [controller getBaseDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [expectation fulfill]; + mConnectedDevice = device; + }]; } -static MTRDevice * GetConnectedDevice(void) +static MTRBaseDevice * GetConnectedDevice(void) { XCTAssertNotNil(mConnectedDevice); return mConnectedDevice; } #ifdef DEBUG -@interface MTRDevice (Test) +@interface MTRBaseDevice (Test) - (void)failSubscribers:(dispatch_queue_t)clientQueue completion:(void (^)(void))completion; @end #endif @@ -177,13 +177,13 @@ - (void)initStack [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getDevice:kDeviceId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - }]; + [controller getBaseDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } @@ -224,7 +224,7 @@ - (void)test001_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:nil @@ -264,7 +264,7 @@ - (void)test002_WriteAttribute #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write LevelControl Brightness attribute"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary @@ -307,7 +307,7 @@ - (void)test003_InvokeCommand #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * fields = @{ @@ -355,7 +355,7 @@ - (void)test005_Subscribe [self initStack]; [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); // Subscribe @@ -498,7 +498,7 @@ - (void)test006_ReadAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"read failed"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device @@ -527,7 +527,7 @@ - (void)test007_WriteAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write failed"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary @@ -560,31 +560,33 @@ - (void)test008_InvokeCommandFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); - NSDictionary * fields = @{ - @"type" : @"Structure", - @"value" : @[ - @{ @"contextTag" : @0, @"data" : @ { @"type" : @"UnsignedInteger", @"value" : @0 } }, - @{ @"contextTag" : @1, @"data" : @ { @"type" : @"UnsignedInteger", @"value" : @10 } } + NSDictionary * fields = @ { +@"type" : + @"Structure", +@"value" : + @[ +@{ @"contextTag" : @0, @"data" : @ { @"type" : @"UnsignedInteger", @"value" : @0 } }, +@{ @"contextTag" : @1, @"data" : @ { @"type" : @"UnsignedInteger", @"value" : @10 } } ] }; [device - invokeCommandWithEndpointId:@1 - clusterId:@8 - commandId:@40000 - commandFields:fields - timedInvokeTimeout:nil - clientQueue:queue - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); - - XCTAssertNil(values); - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); - - [expectation fulfill]; - }]; + invokeCommandWithEndpointId:@1 + clusterId:@8 + commandId:@40000 + commandFields:fields + timedInvokeTimeout:nil + clientQueue:queue + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); + + XCTAssertNil(values); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:error], EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); + + [expectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:expectation] timeout:kTimeoutInSeconds]; } @@ -607,7 +609,7 @@ - (void)test009_SubscribeFailure [errorReportExpectation fulfill]; }; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * cleanSubscriptionExpectation = [self expectationWithDescription:@"Previous subscriptions cleaned"]; @@ -653,7 +655,7 @@ - (void)test010_ReadAllAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:@1 @@ -691,7 +693,7 @@ - (void)test011_ReadCachedAttribute [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * cleanSubscriptionExpectation = [self expectationWithDescription:@"Previous subscriptions cleaned"]; NSLog(@"Deregistering report handlers..."); @@ -738,7 +740,7 @@ - (void)test011_ReadCachedAttribute // Invoke command to set the attribute to a known state XCTestExpectation * commandExpectation = [self expectationWithDescription:@"Command invoked"]; - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:1 queue:queue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); NSLog(@"Invoking command..."); @@ -756,15 +758,15 @@ - (void)test011_ReadCachedAttribute // Read cache NSLog(@"Reading from cache..."); XCTestExpectation * cacheExpectation = [self expectationWithDescription:@"Attribute cache read"]; - [MTROnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer - endpoint:@1 - queue:queue - completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read attribute cache value: %@, error: %@", value, err); - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); - XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:YES]]); - [cacheExpectation fulfill]; - }]; + [MTRBaseClusterOnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer + endpoint:@1 + queue:queue + completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute cache value: %@, error: %@", value, err); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); + XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:YES]]); + [cacheExpectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:cacheExpectation] timeout:kTimeoutInSeconds]; // Add another subscriber of the attribute to verify that attribute cache still works when there are other subscribers. @@ -821,15 +823,15 @@ - (void)test011_ReadCachedAttribute // Read cache NSLog(@"Reading from cache..."); cacheExpectation = [self expectationWithDescription:@"Attribute cache read"]; - [MTROnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer - endpoint:@1 - queue:queue - completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read attribute cache value: %@, error: %@", value, err); - XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); - XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:NO]]); - [cacheExpectation fulfill]; - }]; + [MTRBaseClusterOnOff readAttributeOnOffWithAttributeCache:attributeCacheContainer + endpoint:@1 + queue:queue + completionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute cache value: %@, error: %@", value, err); + XCTAssertEqual([MTRErrorTestUtils errorToZCLErrorCode:err], 0); + XCTAssertTrue([value isEqualToNumber:[NSNumber numberWithBool:NO]]); + [cacheExpectation fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObject:cacheExpectation] timeout:kTimeoutInSeconds]; // Read from cache using generic path @@ -944,7 +946,7 @@ - (void)test012_SubscriptionError [self initStack]; [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * deregisterExpectation = [self expectationWithDescription:@"Report handler deregistered"]; [device deregisterReportHandlersWithClientQueue:queue @@ -1052,7 +1054,7 @@ - (void)test900_SubscribeAllAttributes [self initStack]; [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * cleanSubscriptionExpectation = [self expectationWithDescription:@"Previous subscriptions cleaned"]; NSLog(@"Deregistering report handlers..."); @@ -1229,7 +1231,7 @@ - (void)test999_TearDown @end -@interface MTRDevice (Test) +@interface MTRBaseDevice (Test) // Test function for whitebox testing + (id)CHIPEncodeAndDecodeNSObject:(id)object; @end @@ -1243,7 +1245,7 @@ - (void)testSignedInteger { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"SignedInteger", @"type", [NSNumber numberWithInteger:-713], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1254,7 +1256,7 @@ - (void)testSignedInteger64Bits { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"SignedInteger", @"type", [NSNumber numberWithInteger:-0x7000111122223333ll], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1265,7 +1267,7 @@ - (void)testUnsignedInteger { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithInteger:1025], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1276,7 +1278,7 @@ - (void)testUnsignedInteger64Bits { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"UnsignedInteger", @"type", [NSNumber numberWithUnsignedLongLong:0xCCCCDDDDEEEEFFFFull], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1287,7 +1289,7 @@ - (void)testBoolean { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Boolean", @"type", [NSNumber numberWithBool:YES], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1297,7 +1299,7 @@ - (void)testBoolean - (void)testUTF8String { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"UTF8String", @"type", @"Hello World", @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1309,7 +1311,7 @@ - (void)testOctetString const uint8_t data[] = { 0x00, 0xF2, 0x63 }; NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"OctetString", @"type", [NSData dataWithBytes:data length:sizeof(data)], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1320,7 +1322,7 @@ - (void)testFloat { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Float", @"type", [NSNumber numberWithFloat:0.1245], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1332,7 +1334,7 @@ - (void)testDouble { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Double", @"type", [NSNumber numberWithFloat:0.1245], @"value", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1343,7 +1345,7 @@ - (void)testDouble - (void)testNull { NSDictionary * input = [NSDictionary dictionaryWithObjectsAndKeys:@"Null", @"type", nil]; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:input]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:input]; NSLog(@"Conversion input: %@\nOutput: %@", input, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1364,7 +1366,7 @@ - (void)testStructure ]; NSDictionary * inputValue = @{ @"type" : @"Structure", @"value" : inputFields }; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:inputValue]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:inputValue]; NSLog(@"Conversion input: %@\nOutput: %@", inputValue, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); @@ -1379,7 +1381,7 @@ - (void)testArray ]; NSDictionary * inputValue = @{ @"type" : @"Array", @"value" : inputFields }; - id output = [MTRDevice CHIPEncodeAndDecodeNSObject:inputValue]; + id output = [MTRBaseDevice CHIPEncodeAndDecodeNSObject:inputValue]; NSLog(@"Conversion input: %@\nOutput: %@", inputValue, output); XCTAssertNotNil(output); XCTAssertTrue([output isKindOfClass:[NSDictionary class]]); diff --git a/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m b/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m index 3b3b3bc26ac38a..6536ed5bf7b772 100644 --- a/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m +++ b/src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m @@ -19,7 +19,7 @@ */ // module headers -#import +#import #import #import "MTRErrorTestUtils.h" @@ -170,24 +170,24 @@ - (void)readAttributeWithController:(id)controller (void) controller; __auto_type sharedController = sController; if (sharedController) { - [sharedController getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - completion(nil, error); - } else { - [device readAttributeWithEndpointId:endpointId - clusterId:clusterId - attributeId:attributeId - params:[MTRDeviceController decodeXPCReadParams:params] - clientQueue:dispatch_get_main_queue() - completion:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - completion([MTRDeviceController encodeXPCResponseValues:values], error); - }]; - } - }]; + [sharedController getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + completion(nil, error); + } else { + [device readAttributeWithEndpointId:endpointId + clusterId:clusterId + attributeId:attributeId + params:[MTRDeviceController decodeXPCReadParams:params] + clientQueue:dispatch_get_main_queue() + completion:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + completion([MTRDeviceController encodeXPCResponseValues:values], error); + }]; + } + }]; } else { NSLog(@"Failed to get shared controller"); completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); @@ -206,25 +206,25 @@ - (void)writeAttributeWithController:(id)controller (void) controller; __auto_type sharedController = sController; if (sharedController) { - [sharedController getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - completion(nil, error); - } else { - [device writeAttributeWithEndpointId:endpointId - clusterId:clusterId - attributeId:attributeId - value:value - timedWriteTimeout:timeoutMs - clientQueue:dispatch_get_main_queue() - completion:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - completion([MTRDeviceController encodeXPCResponseValues:values], error); - }]; - } - }]; + [sharedController getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + completion(nil, error); + } else { + [device writeAttributeWithEndpointId:endpointId + clusterId:clusterId + attributeId:attributeId + value:value + timedWriteTimeout:timeoutMs + clientQueue:dispatch_get_main_queue() + completion:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + completion([MTRDeviceController encodeXPCResponseValues:values], error); + }]; + } + }]; } else { NSLog(@"Failed to get shared controller"); completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); @@ -243,25 +243,25 @@ - (void)invokeCommandWithController:(id)controller (void) controller; __auto_type sharedController = sController; if (sharedController) { - [sharedController getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - completion(nil, error); - } else { - [device invokeCommandWithEndpointId:endpointId - clusterId:clusterId - commandId:commandId - commandFields:fields - timedInvokeTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - completion([MTRDeviceController encodeXPCResponseValues:values], error); - }]; - } - }]; + [sharedController getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + completion(nil, error); + } else { + [device invokeCommandWithEndpointId:endpointId + clusterId:clusterId + commandId:commandId + commandFields:fields + timedInvokeTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + completion([MTRDeviceController encodeXPCResponseValues:values], error); + }]; + } + }]; } else { NSLog(@"Failed to get shared controller"); completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); @@ -280,39 +280,39 @@ - (void)subscribeAttributeWithController:(id)controller { __auto_type sharedController = sController; if (sharedController) { - [sharedController getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - establishedHandler(); - // Send an error report so that the client knows of the failure - [self.clientProxy handleReportWithController:controller - nodeId:nodeId - values:nil - error:[NSError errorWithDomain:MTRErrorDomain - code:MTRErrorCodeGeneralError - userInfo:nil]]; - } else { - [device subscribeAttributeWithEndpointId:endpointId - clusterId:clusterId - attributeId:attributeId - minInterval:minInterval - maxInterval:maxInterval - params:[MTRDeviceController decodeXPCSubscribeParams:params] - clientQueue:dispatch_get_main_queue() - reportHandler:^(NSArray *> * _Nullable values, - NSError * _Nullable error) { - [self.clientProxy - handleReportWithController:controller - nodeId:nodeId - values:[MTRDeviceController - encodeXPCResponseValues:values] - error:error]; - } - subscriptionEstablished:establishedHandler]; - } - }]; + [sharedController getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + establishedHandler(); + // Send an error report so that the client knows of the failure + [self.clientProxy handleReportWithController:controller + nodeId:nodeId + values:nil + error:[NSError errorWithDomain:MTRErrorDomain + code:MTRErrorCodeGeneralError + userInfo:nil]]; + } else { + [device subscribeAttributeWithEndpointId:endpointId + clusterId:clusterId + attributeId:attributeId + minInterval:minInterval + maxInterval:maxInterval + params:[MTRDeviceController decodeXPCSubscribeParams:params] + clientQueue:dispatch_get_main_queue() + reportHandler:^(NSArray *> * _Nullable values, + NSError * _Nullable error) { + [self.clientProxy + handleReportWithController:controller + nodeId:nodeId + values:[MTRDeviceController + encodeXPCResponseValues:values] + error:error]; + } + subscriptionEstablished:establishedHandler]; + } + }]; } else { NSLog(@"Failed to get shared controller"); establishedHandler(); @@ -330,15 +330,15 @@ - (void)stopReportsWithController:(id _Nullable)controller nodeId:(uint64_t)node { __auto_type sharedController = sController; if (sharedController) { - [sharedController getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Failed to get connected device"); - } else { - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() completion:completion]; - } - }]; + [sharedController getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Failed to get connected device"); + } else { + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() completion:completion]; + } + }]; } else { NSLog(@"Failed to get shared controller"); completion(); @@ -360,43 +360,43 @@ - (void)subscribeWithController:(id _Nullable)controller attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; } - [sharedController getDevice:nodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", nodeId, error); - completion(error); - return; - } - NSMutableArray * established = [NSMutableArray arrayWithCapacity:1]; - [established addObject:@NO]; - [device subscribeWithQueue:dispatch_get_main_queue() - minInterval:[minInterval unsignedShortValue] - maxInterval:[maxInterval unsignedShortValue] - params:[MTRDeviceController decodeXPCSubscribeParams:params] - cacheContainer:attributeCacheContainer - attributeReportHandler:^(NSArray * value) { - NSLog(@"Received report: %@", value); + [sharedController getBaseDevice:nodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", nodeId, error); + completion(error); + return; } - eventReportHandler:nil - errorHandler:^(NSError * error) { - NSLog(@"Received report error: %@", error); - if (![established[0] boolValue]) { - established[0] = @YES; - completion(error); + NSMutableArray * established = [NSMutableArray arrayWithCapacity:1]; + [established addObject:@NO]; + [device subscribeWithQueue:dispatch_get_main_queue() + minInterval:[minInterval unsignedShortValue] + maxInterval:[maxInterval unsignedShortValue] + params:[MTRDeviceController decodeXPCSubscribeParams:params] + cacheContainer:attributeCacheContainer + attributeReportHandler:^(NSArray * value) { + NSLog(@"Received report: %@", value); } - } - subscriptionEstablished:^() { - NSLog(@"Attribute cache subscription succeeded for device %llu", nodeId); - if (attributeCacheContainer) { - [self.attributeCacheDictionary setObject:attributeCacheContainer forKey:@(nodeId)]; - } - if (![established[0] boolValue]) { - established[0] = @YES; - completion(nil); + eventReportHandler:nil + errorHandler:^(NSError * error) { + NSLog(@"Received report error: %@", error); + if (![established[0] boolValue]) { + established[0] = @YES; + completion(error); + } } - }]; - }]; + subscriptionEstablished:^() { + NSLog(@"Attribute cache subscription succeeded for device %llu", nodeId); + if (attributeCacheContainer) { + [self.attributeCacheDictionary setObject:attributeCacheContainer forKey:@(nodeId)]; + } + if (![established[0] boolValue]) { + established[0] = @YES; + completion(nil); + } + }]; + }]; } else { NSLog(@"Failed to get shared controller"); completion([NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); @@ -439,11 +439,11 @@ - (void)readAttributeCacheWithController:(id _Nullable)controller // This test suite reuses a device object to speed up the test process for CI. // The following global variable holds the reference to the device object. -static MTRDevice * mConnectedDevice; +static MTRBaseDevice * mConnectedDevice; static MTRDeviceController * mDeviceController; static MTRXPCListenerSample * mSampleListener; -static MTRDevice * GetConnectedDevice(void) +static MTRBaseDevice * GetConnectedDevice(void) { XCTAssertNotNil(mConnectedDevice); return mConnectedDevice; @@ -546,13 +546,13 @@ - (void)initStack [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; - [controller getDevice:kDeviceId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertEqual(error.code, 0); - [connectionExpectation fulfill]; - connectionExpectation = nil; - }]; + [controller getBaseDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; mSampleListener = [[MTRXPCListenerSample alloc] init]; @@ -589,12 +589,12 @@ - (void)waitForCommissionee NSLog(@"Listener is not active"); return nil; }]; - [remoteController getDevice:kDeviceId - queue:queue - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - mConnectedDevice = device; - [expectation fulfill]; - }]; + [remoteController getBaseDevice:kDeviceId + queue:queue + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + mConnectedDevice = device; + [expectation fulfill]; + }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; mDeviceController = remoteController; } @@ -616,7 +616,7 @@ - (void)test001_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:nil @@ -656,7 +656,7 @@ - (void)test002_WriteAttribute #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write LevelControl Brightness attribute"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary @@ -699,7 +699,7 @@ - (void)test003_InvokeCommand #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * fields = @{ @@ -749,7 +749,7 @@ - (void)test004_Subscribe #endif XCTestExpectation * expectation = [self expectationWithDescription:@"subscribe OnOff attribute"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device subscribeAttributeWithEndpointId:@1 @@ -840,7 +840,7 @@ - (void)test005_ReadAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"read failed"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device readAttributeWithEndpointId:@0 @@ -871,7 +871,7 @@ - (void)test006_WriteAttributeFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"write failed"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * writeValue = [NSDictionary @@ -906,29 +906,29 @@ - (void)test007_InvokeCommandFailure #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary *fields = [NSDictionary dictionaryWithObjectsAndKeys: - @"Structure", @"type", - [NSArray arrayWithObjects: - [NSDictionary dictionaryWithObjectsAndKeys: - [NSNumber numberWithUnsignedInteger:0], @"tag", - [NSDictionary dictionaryWithObjectsAndKeys: - @"UnsignedInteger", @"type", - [NSNumber numberWithUnsignedInteger:0], @"value", nil], @"value", nil], - [NSDictionary dictionaryWithObjectsAndKeys: - [NSNumber numberWithUnsignedInteger:1], @"tag", - [NSDictionary dictionaryWithObjectsAndKeys: - @"UnsignedInteger", @"type", - [NSNumber numberWithUnsignedInteger:10], @"value", nil], @"value", nil], - nil], @"value", nil]; + @"Structure", @"type", + [NSArray arrayWithObjects: + [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithUnsignedInteger:0], @"tag", + [NSDictionary dictionaryWithObjectsAndKeys: + @"UnsignedInteger", @"type", + [NSNumber numberWithUnsignedInteger:0], @"value", nil], @"value", nil], + [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithUnsignedInteger:1], @"tag", + [NSDictionary dictionaryWithObjectsAndKeys: + @"UnsignedInteger", @"type", + [NSNumber numberWithUnsignedInteger:10], @"value", nil], @"value", nil], + nil], @"value", nil]; [device invokeCommandWithEndpointId:@1 clusterId:@8 commandId:@40000 commandFields:fields clientQueue:queue - timedInvokeTimeout:nil - completion:^(id _Nullable values, NSError * _Nullable error) { - NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); + timedInvokeTimeout:nil + completion:^(id _Nullable values, NSError * _Nullable error) { + NSLog(@"invoke command: MoveToLevelWithOnOff values: %@, error: %@", values, error); - XCTAssertNil(values); + XCTAssertNil(values); // Error is copied over XPC and hence cannot use MTRErrorTestUtils utility which checks against a local domain string object. XCTAssertTrue([error.domain isEqualToString:MTRInteractionErrorDomain]); XCTAssertEqual(error.code, EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); @@ -959,7 +959,7 @@ - (void)test008_SubscribeFailure [errorReportExpectation fulfill]; }; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); [device subscribeAttributeWithEndpointId:@10000 @@ -996,7 +996,7 @@ - (void)test009_ReadAttributeWithParams XCTestExpectation * expectation = [self expectationWithDescription:@"read DeviceDescriptor DeviceType attribute for all endpoints"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); MTRReadParams * readParams = [[MTRReadParams alloc] init]; @@ -1036,7 +1036,7 @@ - (void)test010_SubscribeWithNoParams [self initStack]; [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * clearExpectation = [self expectationWithDescription:@"report handlers deregistered"]; @@ -1215,7 +1215,7 @@ - (void)test011_SubscribeWithParams [self initStack]; [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * clearExpectation = [self expectationWithDescription:@"report handlers deregistered"]; @@ -1403,7 +1403,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription [self initStack]; [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); XCTestExpectation * clearExpectation = [self expectationWithDescription:@"report handlers deregistered"]; @@ -1582,7 +1582,7 @@ - (void)test013_TimedWriteAttribute [self initStack]; [self waitForCommissionee]; #endif - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); // Write an initial value @@ -1654,25 +1654,25 @@ - (void)test013_TimedWriteAttribute expectation = [self expectationWithDescription:@"Subscribed"]; __block void (^reportHandler)(id _Nullable values, NSError * _Nullable error); [device subscribeAttributeWithEndpointId:@1 - clusterId:@8 - attributeId:@17 - minInterval:@2 - maxInterval:@10 - params:nil - clientQueue:queue - reportHandler:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"report attribute: Brightness values: %@, error: %@", value, error); - - if (reportHandler) { - __auto_type callback = reportHandler; - callback = nil; - callback(value, error); - } + clusterId:@8 + attributeId:@17 + minInterval:@2 + maxInterval:@10 + params:nil + clientQueue:queue + reportHandler:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"report attribute: Brightness values: %@, error: %@", value, error); + + if (reportHandler) { + __auto_type callback = reportHandler; + callback = nil; + callback(value, error); } - subscriptionEstablished:^{ - NSLog(@"subscribe attribute: Brightness established"); - [expectation fulfill]; - }]; + } + subscriptionEstablished:^ { + NSLog(@"subscribe attribute: Brightness established"); + [expectation fulfill]; + }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; // Setup report expectation @@ -1725,7 +1725,7 @@ - (void)test014_TimedInvokeCommand #endif XCTestExpectation * expectation = [self expectationWithDescription:@"invoke MoveToLevelWithOnOff command"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); NSDictionary * fields = @{ @@ -1774,7 +1774,7 @@ - (void)test900_SubscribeAttributeCache #endif XCTestExpectation * expectation = [self expectationWithDescription:@"subscribe attributes by cache"]; - MTRDevice * device = GetConnectedDevice(); + MTRBaseDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); MTRAttributeCacheContainer * attributeCacheContainer = [[MTRAttributeCacheContainer alloc] init]; diff --git a/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m b/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m index b01535c07ad3bf..017313aad905fd 100644 --- a/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m +++ b/src/darwin/Framework/CHIPTests/MTRXPCProtocolTests.m @@ -98,40 +98,40 @@ - (void)subscribeWithDeviceController:(MTRDeviceController *)deviceController completion(error); }); }; - [deviceController getDevice:deviceId - queue:workQueue - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error) { - NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", deviceId, error); - completionHandler(error); - return; - } - __auto_type established = [NSMutableArray arrayWithCapacity:1]; - [established addObject:@NO]; - [device subscribeWithQueue:clientQueue - minInterval:1 - maxInterval:43200 - params:params - cacheContainer:self - attributeReportHandler:^(NSArray * value) { - NSLog(@"Report received for attribute cache: %@", value); + [deviceController getBaseDevice:deviceId + queue:workQueue + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error) { + NSLog(@"Error: Failed to get connected device (%llu) for attribute cache: %@", deviceId, error); + completionHandler(error); + return; } - eventReportHandler:nil - errorHandler:^(NSError * error) { - NSLog(@"Report error received for attribute cache: %@", error); - if (![established[0] boolValue]) { - established[0] = @YES; - completionHandler(error); + __auto_type established = [NSMutableArray arrayWithCapacity:1]; + [established addObject:@NO]; + [device subscribeWithQueue:clientQueue + minInterval:1 + maxInterval:43200 + params:params + cacheContainer:self + attributeReportHandler:^(NSArray * value) { + NSLog(@"Report received for attribute cache: %@", value); } - } - subscriptionEstablished:^() { - NSLog(@"Attribute cache subscription succeeded for device %llu", deviceId); - if (![established[0] boolValue]) { - established[0] = @YES; - completionHandler(nil); + eventReportHandler:nil + errorHandler:^(NSError * error) { + NSLog(@"Report error received for attribute cache: %@", error); + if (![established[0] boolValue]) { + established[0] = @YES; + completionHandler(error); + } } - }]; - }]; + subscriptionEstablished:^() { + NSLog(@"Attribute cache subscription succeeded for device %llu", deviceId); + if (![established[0] boolValue]) { + established[0] = @YES; + completionHandler(nil); + } + }]; + }]; } @end @@ -363,27 +363,27 @@ - (void)testReadAttributeSuccess completion([MTRDeviceController encodeXPCResponseValues:myValues], nil); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myValues isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myValues isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -425,27 +425,27 @@ - (void)testReadAttributeWithParamsSuccess completion([MTRDeviceController encodeXPCResponseValues:myValues], nil); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:myParams - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myValues isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:myParams + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myValues isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -478,26 +478,26 @@ - (void)testReadAttributeFailure completion(nil, myError); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -537,28 +537,28 @@ - (void)testWriteAttributeSuccess completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Writing..."); - [device writeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - value:myValue - timedWriteTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Write response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Writing..."); + [device writeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + value:myValue + timedWriteTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Write response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -600,28 +600,28 @@ - (void)testTimedWriteAttributeSuccess completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Writing..."); - [device writeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - value:myValue - timedWriteTimeout:myTimedWriteTimeout - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Write response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Writing..."); + [device writeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + value:myValue + timedWriteTimeout:myTimedWriteTimeout + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Write response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -656,27 +656,27 @@ - (void)testWriteAttributeFailure completion(nil, myError); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Writing..."); - [device writeAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - value:myValue - timedWriteTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Write response: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Writing..."); + [device writeAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + value:myValue + timedWriteTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Write response: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -716,28 +716,28 @@ - (void)testInvokeCommandSuccess completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Invoking command..."); - [device invokeCommandWithEndpointId:myEndpointId - clusterId:myClusterId - commandId:myCommandId - commandFields:myFields - timedInvokeTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Command response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Invoking command..."); + [device invokeCommandWithEndpointId:myEndpointId + clusterId:myClusterId + commandId:myCommandId + commandFields:myFields + timedInvokeTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Command response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -779,28 +779,28 @@ - (void)testTimedInvokeCommandSuccess completion([MTRDeviceController encodeXPCResponseValues:myResults], nil); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Invoking command..."); - [device invokeCommandWithEndpointId:myEndpointId - clusterId:myClusterId - commandId:myCommandId - commandFields:myFields - timedInvokeTimeout:myTimedInvokeTimeout - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Command response: %@", value); - XCTAssertNotNil(value); - XCTAssertNil(error); - XCTAssertTrue([myResults isEqualTo:value]); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Invoking command..."); + [device invokeCommandWithEndpointId:myEndpointId + clusterId:myClusterId + commandId:myCommandId + commandFields:myFields + timedInvokeTimeout:myTimedInvokeTimeout + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Command response: %@", value); + XCTAssertNotNil(value); + XCTAssertNil(error); + XCTAssertTrue([myResults isEqualTo:value]); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -838,27 +838,27 @@ - (void)testInvokeCommandFailure completion(nil, myError); }; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Invoking command..."); - [device invokeCommandWithEndpointId:myEndpointId - clusterId:myClusterId - commandId:myCommandId - commandFields:myFields - timedInvokeTimeout:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Command response: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - self.xpcDisconnectExpectation = - [self expectationWithDescription:@"XPC Disconnected"]; - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Invoking command..."); + [device invokeCommandWithEndpointId:myEndpointId + clusterId:myClusterId + commandId:myCommandId + commandFields:myFields + timedInvokeTimeout:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Command response: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + self.xpcDisconnectExpectation = + [self expectationWithDescription:@"XPC Disconnected"]; + }]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:callExpectation, responseExpectation, nil] timeout:kTimeoutInSeconds]; @@ -904,9 +904,9 @@ - (void)testSubscribeAttributeSuccess _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -967,15 +967,15 @@ - (void)testSubscribeAttributeSuccess }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1024,9 +1024,9 @@ - (void)testSubscribeAttributeWithParamsSuccess _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1087,15 +1087,15 @@ - (void)testSubscribeAttributeWithParamsSuccess }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1139,9 +1139,9 @@ - (void)testBadlyFormattedReport _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1200,15 +1200,15 @@ - (void)testBadlyFormattedReport // Deregister report handler _xpcDisconnectExpectation.inverted = NO; - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1253,9 +1253,9 @@ - (void)testReportWithUnrelatedEndpointId _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1316,15 +1316,15 @@ - (void)testReportWithUnrelatedEndpointId }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1369,9 +1369,9 @@ - (void)testReportWithUnrelatedClusterId _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1432,15 +1432,15 @@ - (void)testReportWithUnrelatedClusterId }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1485,9 +1485,9 @@ - (void)testReportWithUnrelatedAttributeId _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1548,15 +1548,15 @@ - (void)testReportWithUnrelatedAttributeId }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1601,9 +1601,9 @@ - (void)testReportWithUnrelatedNode _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1664,15 +1664,15 @@ - (void)testReportWithUnrelatedNode }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1716,9 +1716,9 @@ - (void)testSubscribeMultiEndpoints _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1779,15 +1779,15 @@ - (void)testSubscribeMultiEndpoints }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1831,9 +1831,9 @@ - (void)testSubscribeMultiClusters _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -1894,15 +1894,15 @@ - (void)testSubscribeMultiClusters }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -1946,9 +1946,9 @@ - (void)testSubscribeMultiAttributes _xpcDisconnectExpectation = [self expectationWithDescription:@"XPC Disconnected"]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -2009,15 +2009,15 @@ - (void)testSubscribeMultiAttributes }; // Deregister report handler - [_remoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - }]; - }]; + [_remoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + }]; + }]; // Wait for disconnection [self waitForExpectations:@[ _xpcDisconnectExpectation, stopExpectation ] timeout:kTimeoutInSeconds]; @@ -2072,9 +2072,9 @@ - (void)testMutiSubscriptions callExpectation = [self expectationWithDescription:[NSString stringWithFormat:@"XPC call (%d) received", i]]; establishExpectation = [self expectationWithDescription:[NSString stringWithFormat:@"Established (%d) called", i]]; [_remoteDeviceController - getDevice:myNodeId + getBaseDevice:myNodeId queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { XCTAssertNotNil(device); XCTAssertNil(error); NSLog(@"Device acquired. Subscribing..."); @@ -2146,16 +2146,16 @@ - (void)testMutiSubscriptions // Deregister report handler for first subscriber __auto_type deregisterExpectation = [self expectationWithDescription:@"First subscriber deregistered"]; - [_remoteDeviceController getDevice:nodeToStop - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - [deregisterExpectation fulfill]; - }]; - }]; + [_remoteDeviceController getBaseDevice:nodeToStop + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + [deregisterExpectation fulfill]; + }]; + }]; [self waitForExpectations:@[ stopExpectation, deregisterExpectation ] timeout:kTimeoutInSeconds]; @@ -2204,16 +2204,16 @@ - (void)testMutiSubscriptions // Deregister report handler for second subscriber __auto_type secondDeregisterExpectation = [self expectationWithDescription:@"Second subscriber deregistered"]; - [_remoteDeviceController getDevice:nodeToStop - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - NSLog(@"Device acquired. Deregistering..."); - [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() - completion:^{ - NSLog(@"Deregistered"); - [secondDeregisterExpectation fulfill]; - }]; - }]; + [_remoteDeviceController getBaseDevice:nodeToStop + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + NSLog(@"Device acquired. Deregistering..."); + [device deregisterReportHandlersWithClientQueue:dispatch_get_main_queue() + completion:^{ + NSLog(@"Deregistered"); + [secondDeregisterExpectation fulfill]; + }]; + }]; // Wait for deregistration and disconnection [self waitForExpectations:@[ secondDeregisterExpectation, _xpcDisconnectExpectation, stopExpectation ] @@ -2274,13 +2274,13 @@ - (void)testAnySharedRemoteController }; __auto_type deviceAcquired = [self expectationWithDescription:@"Connected device was acquired"]; - [unspecifiedRemoteDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - [deviceAcquired fulfill]; - }]; + [unspecifiedRemoteDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + [deviceAcquired fulfill]; + }]; [self waitForExpectations:[NSArray arrayWithObjects:anySharedRemoteControllerCallExpectation, deviceAcquired, nil] timeout:kTimeoutInSeconds]; @@ -2534,24 +2534,24 @@ - (void)testXPCConnectionFailure return nil; }]; - [failingDeviceController getDevice:myNodeId - queue:dispatch_get_main_queue() - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - XCTAssertNotNil(device); - XCTAssertNil(error); - NSLog(@"Device acquired. Reading..."); - [device readAttributeWithEndpointId:myEndpointId - clusterId:myClusterId - attributeId:myAttributeId - params:nil - clientQueue:dispatch_get_main_queue() - completion:^(id _Nullable value, NSError * _Nullable error) { - NSLog(@"Read value: %@", value); - XCTAssertNil(value); - XCTAssertNotNil(error); - [responseExpectation fulfill]; - }]; - }]; + [failingDeviceController getBaseDevice:myNodeId + queue:dispatch_get_main_queue() + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertNotNil(device); + XCTAssertNil(error); + NSLog(@"Device acquired. Reading..."); + [device readAttributeWithEndpointId:myEndpointId + clusterId:myClusterId + attributeId:myAttributeId + params:nil + clientQueue:dispatch_get_main_queue() + completion:^(id _Nullable value, NSError * _Nullable error) { + NSLog(@"Read value: %@", value); + XCTAssertNil(value); + XCTAssertNotNil(error); + [responseExpectation fulfill]; + }]; + }]; [self waitForExpectations:@[ responseExpectation ] timeout:kTimeoutInSeconds]; } diff --git a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj index 305a9f857e9937..688e7fa03bb1fc 100644 --- a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj +++ b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj @@ -10,8 +10,8 @@ 1E85730C265519AE0050A4D9 /* callback-stub.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1E857307265519AE0050A4D9 /* callback-stub.cpp */; }; 1EB41B7B263C4CC60048E4C1 /* MTRClustersTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EB41B7A263C4CC60048E4C1 /* MTRClustersTests.m */; }; 1EC3238D271999E2002A8BF0 /* cluster-objects.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */; }; - 1EC4CE5D25CC26E900D7304F /* MTRClustersObjc.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE5925CC26E900D7304F /* MTRClustersObjc.mm */; }; - 1EC4CE6425CC276600D7304F /* MTRClustersObjc.h in Headers */ = {isa = PBXBuildFile; fileRef = 1EC4CE6325CC276600D7304F /* MTRClustersObjc.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1EC4CE5D25CC26E900D7304F /* MTRBaseClusters.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE5925CC26E900D7304F /* MTRBaseClusters.mm */; }; + 1EC4CE6425CC276600D7304F /* MTRBaseClusters.h in Headers */ = {isa = PBXBuildFile; fileRef = 1EC4CE6325CC276600D7304F /* MTRBaseClusters.h */; settings = {ATTRIBUTES = (Public, ); }; }; 1ED276E026C57CF000547A89 /* MTRCallbackBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1ED276DF26C57CF000547A89 /* MTRCallbackBridge.mm */; }; 1ED276E226C5812A00547A89 /* MTRCluster.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1ED276E126C5812A00547A89 /* MTRCluster.mm */; }; 1ED276E426C5832500547A89 /* MTRCluster.h in Headers */ = {isa = PBXBuildFile; fileRef = 1ED276E326C5832500547A89 /* MTRCluster.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -19,9 +19,9 @@ 27A53C1827FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 27A53C1627FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm */; }; 2C1B027A2641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C1B02782641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm */; }; 2C1B027B2641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C1B02792641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h */; }; - 2C222AD0255C620600E446B9 /* MTRDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ACE255C620600E446B9 /* MTRDevice.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2C222AD1255C620600E446B9 /* MTRDevice.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C222ACF255C620600E446B9 /* MTRDevice.mm */; }; - 2C222ADF255C811800E446B9 /* MTRDevice_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ADE255C811800E446B9 /* MTRDevice_Internal.h */; }; + 2C222AD0255C620600E446B9 /* MTRBaseDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ACE255C620600E446B9 /* MTRBaseDevice.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2C222AD1255C620600E446B9 /* MTRBaseDevice.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C222ACF255C620600E446B9 /* MTRBaseDevice.mm */; }; + 2C222ADF255C811800E446B9 /* MTRBaseDevice_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C222ADE255C811800E446B9 /* MTRBaseDevice_Internal.h */; }; 2C4DF09E248B2C60009307CB /* libmbedtls.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C4DF09D248B2C60009307CB /* libmbedtls.a */; settings = {ATTRIBUTES = (Required, ); }; }; 2C5EEEF6268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C5EEEF4268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h */; }; 2C5EEEF7268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2C5EEEF5268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm */; }; @@ -76,6 +76,7 @@ 5AE6D4E427A99041001F2493 /* MTRDeviceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AE6D4E327A99041001F2493 /* MTRDeviceTests.m */; }; 754F3DF427FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 754F3DF327FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h */; }; 7560FD1C27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7560FD1B27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm */; }; + 7596A83E28751220004DAE0E /* MTRBaseClusters_internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 7596A83D28751220004DAE0E /* MTRBaseClusters_internal.h */; }; 88EBF8CE27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 88EBF8CB27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; 88EBF8CF27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 88EBF8CC27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm */; }; 88EBF8D027FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 88EBF8CD27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h */; }; @@ -125,8 +126,8 @@ 1E857307265519AE0050A4D9 /* callback-stub.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "callback-stub.cpp"; path = "../../../../zzz_generated/controller-clusters/zap-generated/callback-stub.cpp"; sourceTree = ""; }; 1EB41B7A263C4CC60048E4C1 /* MTRClustersTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MTRClustersTests.m; sourceTree = ""; }; 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "cluster-objects.cpp"; path = "../../../../zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp"; sourceTree = ""; }; - 1EC4CE5925CC26E900D7304F /* MTRClustersObjc.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRClustersObjc.mm; path = "zap-generated/MTRClustersObjc.mm"; sourceTree = ""; }; - 1EC4CE6325CC276600D7304F /* MTRClustersObjc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTRClustersObjc.h; path = "zap-generated/MTRClustersObjc.h"; sourceTree = ""; }; + 1EC4CE5925CC26E900D7304F /* MTRBaseClusters.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRBaseClusters.mm; path = "zap-generated/MTRBaseClusters.mm"; sourceTree = ""; }; + 1EC4CE6325CC276600D7304F /* MTRBaseClusters.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTRBaseClusters.h; path = "zap-generated/MTRBaseClusters.h"; sourceTree = ""; }; 1ED276DF26C57CF000547A89 /* MTRCallbackBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTRCallbackBridge.mm; path = "zap-generated/MTRCallbackBridge.mm"; sourceTree = ""; }; 1ED276E126C5812A00547A89 /* MTRCluster.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRCluster.mm; sourceTree = ""; }; 1ED276E326C5832500547A89 /* MTRCluster.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRCluster.h; sourceTree = ""; }; @@ -134,9 +135,9 @@ 27A53C1627FBC6920053F131 /* MTRAttestationTrustStoreBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRAttestationTrustStoreBridge.mm; sourceTree = ""; }; 2C1B02782641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTROperationalCredentialsDelegate.mm; sourceTree = ""; }; 2C1B02792641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTROperationalCredentialsDelegate.h; sourceTree = ""; }; - 2C222ACE255C620600E446B9 /* MTRDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDevice.h; sourceTree = ""; }; - 2C222ACF255C620600E446B9 /* MTRDevice.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDevice.mm; sourceTree = ""; }; - 2C222ADE255C811800E446B9 /* MTRDevice_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDevice_Internal.h; sourceTree = ""; }; + 2C222ACE255C620600E446B9 /* MTRBaseDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRBaseDevice.h; sourceTree = ""; }; + 2C222ACF255C620600E446B9 /* MTRBaseDevice.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRBaseDevice.mm; sourceTree = ""; }; + 2C222ADE255C811800E446B9 /* MTRBaseDevice_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRBaseDevice_Internal.h; sourceTree = ""; }; 2C4DF09D248B2C60009307CB /* libmbedtls.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmbedtls.a; path = lib/libmbedtls.a; sourceTree = BUILT_PRODUCTS_DIR; }; 2C5EEEF4268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceConnectionBridge.h; sourceTree = ""; }; 2C5EEEF5268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceConnectionBridge.mm; sourceTree = ""; }; @@ -191,6 +192,7 @@ 5AE6D4E327A99041001F2493 /* MTRDeviceTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MTRDeviceTests.m; sourceTree = ""; }; 754F3DF327FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTREventTLVValueDecoder_Internal.h; sourceTree = ""; }; 7560FD1B27FBBD3F005E85B3 /* MTREventTLVValueDecoder.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MTREventTLVValueDecoder.mm; path = "zap-generated/MTREventTLVValueDecoder.mm"; sourceTree = ""; }; + 7596A83D28751220004DAE0E /* MTRBaseClusters_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MTRBaseClusters_internal.h; path = "zap-generated/MTRBaseClusters_internal.h"; sourceTree = ""; }; 88EBF8CB27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceAttestationDelegate.h; sourceTree = ""; }; 88EBF8CC27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceAttestationDelegateBridge.mm; sourceTree = ""; }; 88EBF8CD27FABDD500686BC1 /* MTRDeviceAttestationDelegateBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceAttestationDelegateBridge.h; sourceTree = ""; }; @@ -275,8 +277,9 @@ 1EC3238C271999E2002A8BF0 /* cluster-objects.cpp */, 1ED276DF26C57CF000547A89 /* MTRCallbackBridge.mm */, 1E857307265519AE0050A4D9 /* callback-stub.cpp */, - 1EC4CE6325CC276600D7304F /* MTRClustersObjc.h */, - 1EC4CE5925CC26E900D7304F /* MTRClustersObjc.mm */, + 1EC4CE6325CC276600D7304F /* MTRBaseClusters.h */, + 1EC4CE5925CC26E900D7304F /* MTRBaseClusters.mm */, + 7596A83D28751220004DAE0E /* MTRBaseClusters_internal.h */, D4772A45285AE98300383630 /* MTRClusterConstants.h */, ); name = CHIPGeneratedFiles; @@ -323,9 +326,9 @@ 2C1B02792641DB4E00780EF1 /* MTROperationalCredentialsDelegate.h */, 2C1B02782641DB4E00780EF1 /* MTROperationalCredentialsDelegate.mm */, 1EC4CE5825CC26AB00D7304F /* CHIPGeneratedFiles */, - 2C222ADE255C811800E446B9 /* MTRDevice_Internal.h */, - 2C222ACE255C620600E446B9 /* MTRDevice.h */, - 2C222ACF255C620600E446B9 /* MTRDevice.mm */, + 2C222ADE255C811800E446B9 /* MTRBaseDevice_Internal.h */, + 2C222ACE255C620600E446B9 /* MTRBaseDevice.h */, + 2C222ACF255C620600E446B9 /* MTRBaseDevice.mm */, 2C8C8FBE253E0C2100797F05 /* MTRPersistentStorageDelegate.h */, 5ACDDD7927CD129700EFD68A /* MTRAttributeCacheContainer.h */, 5A60370727EA1FF60020DB79 /* MTRAttributeCacheContainer+XPC.h */, @@ -442,13 +445,14 @@ 513DDB862761F69300DAA01A /* MTRAttributeTLVValueDecoder_Internal.h in Headers */, 2CB7163F252F731E0026E2BB /* MTRDevicePairingDelegate.h in Headers */, 88EBF8CE27FABDD500686BC1 /* MTRDeviceAttestationDelegate.h in Headers */, - 2C222AD0255C620600E446B9 /* MTRDevice.h in Headers */, + 2C222AD0255C620600E446B9 /* MTRBaseDevice.h in Headers */, 991DC0842475F45400C13860 /* MTRDeviceController.h in Headers */, AF1CB86E2874B03B00865A96 /* MTROTAProviderDelegate.h in Headers */, 754F3DF427FBB94B00E60580 /* MTREventTLVValueDecoder_Internal.h in Headers */, B2E0D7B2245B0B5C003C5B48 /* MTRManualSetupPayloadParser.h in Headers */, B2E0D7B1245B0B5C003C5B48 /* Matter.h in Headers */, B2E0D7B8245B0B5C003C5B48 /* MTRSetupPayload.h in Headers */, + 7596A83E28751220004DAE0E /* MTRBaseClusters_internal.h in Headers */, 997DED182695344800975E97 /* MTRThreadOperationalDataset.h in Headers */, 9956064426420367000C28DE /* MTRSetupPayload_Internal.h in Headers */, 27A53C1727FBC6920053F131 /* MTRAttestationTrustStoreBridge.h in Headers */, @@ -464,12 +468,12 @@ 2C8C8FC1253E0C2100797F05 /* MTRPersistentStorageDelegate.h in Headers */, AF1CB8702874B04C00865A96 /* MTROTAProviderDelegateBridge.h in Headers */, B2E0D7B5245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.h in Headers */, - 1EC4CE6425CC276600D7304F /* MTRClustersObjc.h in Headers */, + 1EC4CE6425CC276600D7304F /* MTRBaseClusters.h in Headers */, 2C5EEEF6268A85C400CAE3D3 /* MTRDeviceConnectionBridge.h in Headers */, 2C8C8FC0253E0C2100797F05 /* MTRPersistentStorageDelegateBridge.h in Headers */, 51E51FC0282AD37A00FC978D /* MTRDeviceControllerStartupParams_Internal.h in Headers */, 998F286F26D55EC5001846C6 /* MTRP256KeypairBridge.h in Headers */, - 2C222ADF255C811800E446B9 /* MTRDevice_Internal.h in Headers */, + 2C222ADF255C811800E446B9 /* MTRBaseDevice_Internal.h in Headers */, 51E0310027EA20D20083DC9C /* MTRControllerAccessControl.h in Headers */, 991DC08B247704DC00C13860 /* MTRLogging.h in Headers */, 5A7947E527C0129F00434CF2 /* MTRDeviceController+XPC.h in Headers */, @@ -608,11 +612,11 @@ 51B22C2A2740CB47008D5055 /* MTRCommandPayloadsObjc.mm in Sources */, 2C5EEEF7268A85C400CAE3D3 /* MTRDeviceConnectionBridge.mm in Sources */, 51B22C262740CB32008D5055 /* MTRStructsObjc.mm in Sources */, - 2C222AD1255C620600E446B9 /* MTRDevice.mm in Sources */, + 2C222AD1255C620600E446B9 /* MTRBaseDevice.mm in Sources */, 1EC3238D271999E2002A8BF0 /* cluster-objects.cpp in Sources */, 991DC0892475F47D00C13860 /* MTRDeviceController.mm in Sources */, B2E0D7B7245B0B5C003C5B48 /* MTRQRCodeSetupPayloadParser.mm in Sources */, - 1EC4CE5D25CC26E900D7304F /* MTRClustersObjc.mm in Sources */, + 1EC4CE5D25CC26E900D7304F /* MTRBaseClusters.mm in Sources */, 51E0310127EA20D20083DC9C /* MTRControllerAccessControl.mm in Sources */, 1ED276E226C5812A00547A89 /* MTRCluster.mm in Sources */, B2E0D7B3245B0B5C003C5B48 /* MTRError.mm in Sources */, From 1107d8efe933c925e16db0818ba638a7146b6efd Mon Sep 17 00:00:00 2001 From: kowsisoundhar12 <57476670+kowsisoundhar12@users.noreply.github.com> Date: Thu, 7 Jul 2022 09:15:54 +0530 Subject: [PATCH 12/15] Added PICS Condition (#20216) --- src/app/tests/suites/certification/PICS.yaml | 181 ++++- .../suites/certification/Test_TC_ACT_2_1.yaml | 19 +- .../suites/certification/Test_TC_ACT_2_2.yaml | 82 ++- .../suites/certification/Test_TC_ACT_3_1.yaml | 40 +- .../suites/certification/Test_TC_ACT_3_2.yaml | 94 +++ .../certification/Test_TC_BOOL_2_1.yaml | 1 + .../certification/Test_TC_BOOL_2_2.yaml | 67 +- .../certification/Test_TC_BOOL_3_1.yaml | 85 ++- .../suites/certification/Test_TC_DA_1_1.yaml | 59 +- .../suites/certification/Test_TC_DA_1_2.yaml | 458 +++++++++++- .../suites/certification/Test_TC_DA_1_3.yaml | 683 +++++++++++++++++- .../suites/certification/Test_TC_DA_1_4.yaml | 325 ++++++++- .../suites/certification/Test_TC_DA_1_5.yaml | 524 +++++++++++++- .../suites/certification/Test_TC_DA_1_6.yaml | 251 ++++++- .../suites/certification/Test_TC_DA_1_7.yaml | 67 ++ .../certification/Test_TC_DLOG_1_1.yaml | 14 +- .../certification/Test_TC_DLOG_2_1.yaml | 1 + .../certification/Test_TC_DLOG_3_1.yaml | 1 + .../certification/Test_TC_LCFG_1_1.yaml | 206 ++---- .../certification/Test_TC_LCFG_2_1.yaml | 16 +- .../certification/Test_TC_LCFG_3_1.yaml | 4 +- .../suites/certification/Test_TC_OO_2_1.yaml | 5 + .../suites/certification/Test_TC_OO_2_2.yaml | 20 +- .../suites/certification/Test_TC_OO_2_3.yaml | 214 +++--- .../suites/certification/Test_TC_OO_2_4.yaml | 12 + .../suites/certification/Test_TC_OO_3_2.yaml | 385 +++++----- .../certification/Test_TC_PSCFG_2_1.yaml | 25 +- .../certification/Test_TC_PSCFG_2_2.yaml | 24 +- .../suites/certification/Test_TC_RH_2_1.yaml | 3 + .../suites/certification/Test_TC_RH_2_2.yaml | 7 +- .../suites/certification/Test_TC_RH_3_1.yaml | 229 +++++- .../suites/certification/Test_TC_TM_2_1.yaml | 4 + .../suites/certification/Test_TC_TM_2_2.yaml | 8 +- .../suites/certification/Test_TC_TM_3_1.yaml | 193 ++++- .../tests/suites/certification/ci-pics-values | 89 ++- src/app/tests/suites/tests.js | 8 +- .../chip-tool/zap-generated/test/Commands.h | 389 +++++++--- .../zap-generated/test/Commands.h | 168 ++++- 38 files changed, 4078 insertions(+), 883 deletions(-) create mode 100644 src/app/tests/suites/certification/Test_TC_ACT_3_2.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_DA_1_7.yaml diff --git a/src/app/tests/suites/certification/PICS.yaml b/src/app/tests/suites/certification/PICS.yaml index 763e551ca6a18f..d8b2d12612f08b 100644 --- a/src/app/tests/suites/certification/PICS.yaml +++ b/src/app/tests/suites/certification/PICS.yaml @@ -536,30 +536,39 @@ PICS: # Relative Humidity cluster - label: "Does the device implement the MeasuredValue attribute?" - id: A_RELATIVEHUMIDITY + id: RH.S.A0000 - label: "Does the device implement the MinMeasuredValue attribute?" - id: A_RELATIVEHUMIDITY_MIN + id: RH.S.A0001 - label: "Does the device implement the MaxMeasuredValue attribute?" - id: A_RELATIVEHUMIDITY_MAX + id: RH.S.A0002 - label: "Does the device implement the Tolerance attribute?" - id: A_RELATIVEHUMIDITY_TOLERANCE + id: RH.S.A0003 - label: "Can the MeasuredValue attribute changed by physical control at the device?" - id: MANUAL_RELATIVEHUMIDITY_CHANGE + id: RH.M.ManuallyControlled # Temperature Measurement cluster - - label: "Does the device implement the MeasuredValue attribute" - id: A_TEMPERATURE + - label: "Does the device implement the MeasuredValue attribute?" + id: TM.S.A0000 + + - label: "Does the device implement the MinMeasuredValue attribute?" + id: TM.S.A0001 + + - label: "Does the device implement the MaxMeasuredValue attribute?" + id: TM.S.A0002 + + - label: "Does the device implement the Tolerance attribute?" + id: TM.S.A0003 - label: "Can the MeasuredValue attribute changed by physical control at the - device" - id: MANUAL_TEMPERATURE_CHANGE + device?" + id: TM.M.ManuallyControlled # Thermostat User Configuration cluster - label: "Does the device implement the TemperatureDisplayMode attribute?" @@ -826,33 +835,63 @@ PICS: # On/Off Cluster - label: "Does the device implement the OnOff attribute?" - id: A_ONOFF + id: OO.S.A0000 - label: "Does the device implement the GlobalSceneControl attribute?" - id: A_GLOBALSCENECONTROL + id: OO.S.A4000 - label: "Does the device implement the OnTime attribute?" - id: A_ONTIME + id: OO.S.A4001 - label: "Does the device implement the OffWaitTime attribute?" - id: A_OFFWAITTIME + id: OO.S.A4002 + + - label: "Does the device implement the StartUpOnOff attribute?" + id: OO.S.A4003 - label: "Does the device implement receiving the Off command?" - id: CR_OFF + id: OO.S.C00.Rsp - - label: "Does the device implement sending the On command?" - id: CR_ON + - label: "Does the device implement receiving the On command?" + id: OO.S.C01.Rsp + + - label: "Does the device implement receiving the Toggle command?" + id: OO.S.C02.Rsp - label: "Does the device implement receiving the OffWithEffect command?" - id: CR_OFFWITHEFFECT + id: OO.S.C40.Rsp - label: "Does the device implement receiving the OnWithRecallGlobalScene command?" - id: CR_ONWITHRECALL + id: OO.S.C41.Rsp - label: "Does the device implement receiving the OnWithTimedOff command?" - id: CR_ONWITHTIMEOFF + id: OO.S.C42.Rsp + + - label: + "Can the OnOff attribute changed by physical control at the device?" + id: OO.M.ManuallyControlled + + - label: "Does the device implement sending the Off command?" + id: OO.C.C00.Tx + + - label: "Does the device implement sending the On command?" + id: OO.C.C01.Tx + + - label: "Does the device implement sending the Toggle command?" + id: OO.C.C02.Tx + + - label: "Does the device implement sending the OffWithEffect command?" + id: OO.C.C40.Tx + + - label: + "Does the device implement sending the OnWithRecallGlobalScene + command?" + id: OO.C.C41.Tx + + - label: "Does the device implement sending the OnWithTimedOff command?" + id: OO.C.C42.Tx - label: "Does Dnssd advertisment broadcast Vendor ID" id: VENDOR_SUBTYPE @@ -2656,3 +2695,107 @@ PICS: PacketMulticastRxCount, PacketMulticastTxCount, PacketUnicastRxCount, PacketUnicastTxCount" id: DGWIFI.S.C00 + #Actions Cluster + - label: "Does the device implement the ActionList attribute?" + id: ACT.S.A0000 + + - label: "Does the device implement the EndpointLists attribute?" + id: ACT.S.A0001 + + - label: "Does the device implement the SetupURL attribute?" + id: ACT.S.A0002 + + - label: "Can the ActionList attribute be changed by some means?" + id: ACT.S.M.FillActionList + + - label: "Can the EndpointLists attribute be changed by some means?" + id: ACT.S.M.FillEndpointLists + + - label: "Does the DUT support sending the InstantAction command?" + id: ACT.C.C00.Tx + + - label: + "Does the DUT support sending the InstantActionWithTransition command?" + id: ACT.C.C01.Tx + + - label: "Does the DUT support sending the StartAction command?" + id: ACT.C.C02.Tx + + - label: "Does the DUT support sending the StartActionWithDuration command?" + id: ACT.C.C03.Tx + + - label: "Does the DUT support sending the StopAction command?" + id: ACT.C.C04.Tx + + - label: "Does the DUT support sending the PauseAction command?" + id: ACT.C.C05.Tx + + - label: "Does the DUT support sending the PauseActionWithDuration command?" + id: ACT.C.C06.Tx + + - label: "Does the DUT support sending the ResumeAction command?" + id: ACT.C.C07.Tx + + - label: "Does the DUT support sending the EnableAction command?" + id: ACT.C.C08.Tx + + - label: + "Does the DUT support sending the EnableActionWithDuration command?" + id: ACT.C.C09.Tx + + - label: "Does the DUT support sending the DisableAction command?" + id: ACT.C.C0a.Tx + + - label: + "Does the DUT support sending the DisableActionWithDuration command?" + id: ACT.C.C0b.Tx + + #Boolean State Cluster + - label: "Does the device implement the StateValue attribute?" + id: BOOL.S.A0000 + + - label: + "Can the StateValue attribute be changed by manual operation at the + DUT?" + id: BOOL.M.ManuallyControlled + + - label: "Does the device implement the StateChange event?" + id: BOOL.S.E00 + + #Diagnostics Logs Cluster + - label: + "Does the Device(Server) implement receiving the RetrieveLogsRequest + command?" + id: DLOG.S.C00.Rsp + + - label: + "Does the Device(Server) invoking/generating the RetrieveLogsResponse + command?" + id: DLOG.S.C01.Tx + + - label: + "Does the Device(client) implement receiving the RetrieveLogsResponse + command?" + id: DLOG.C.C01.Rsp + + - label: + "Does the Device(client) invoking/generating the RetrieveLogsRequeste + command?" + id: DLOG.C.C00.Tx + + #Localization Configuration Cluster + - label: "Does the DUT(server) support the ActiveLocale attribute?" + id: LCFG.S.A0000 + + - label: "Does the DUT(server) support the SupportedLocales attribute?" + id: LCFG.S.A0001 + + - label: "Does the DUT(client) support the ActiveLocale attribute?" + id: LCFG.C.A0000 + + - label: "Does the DUT(server) support the SupportedLocales attribute?" + id: LCFG.C.A0001 + + #Power Source Configuration Cluster + - label: "Does the device implement the Sources attribute?" + id: PSCFG.S.A0000 diff --git a/src/app/tests/suites/certification/Test_TC_ACT_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ACT_2_1.yaml index 08520ebf2bbe95..4ca785fd0ed56d 100644 --- a/src/app/tests/suites/certification/Test_TC_ACT_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACT_2_1.yaml @@ -31,6 +31,7 @@ tests: endpoints that can be exposed using the Actions server cluster (NOTE if this is not provided, it is assumed the DUT automagically creates these)" + PICS: ACT.S.M.FillEndpointLists verification: | no Matter messages, result will be used in steps 4a and beyond disabled: true @@ -40,6 +41,7 @@ tests: actions that can be exposed using the Actions server cluster (NOTE if this is not provided, it is assumed the DUT automagically creates these)" + PICS: ACT.S.M.FillActionList verification: | no Matter messages, result will be used in steps 5a and beyond disabled: true @@ -56,9 +58,8 @@ tests: internal TH: create list of all EP on this server disabled: true - - label: - "Read EndpointLists attribute of Actions server and validate the - EndpointListStructs using the following steps" + - label: "Read EndpointLists attribute of Actions server" + PICS: ACT.S.A0001 verification: | Read EndpointLists attribute disabled: true @@ -93,13 +94,13 @@ tests: "For each EndpointListStruct, verify Name and Type against the name/type of each group of endpoints provided by the manufacturers means" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | no Matter messages, but TH internal checking disabled: true - - label: - "Read ActionList attribute of Actions server and validate the - ActionStructs using the following steps" + - label: "Read ActionList attribute of Actions server" + PICS: ACT.S.A0000 verification: | Read ActionList attribute disabled: true @@ -145,18 +146,18 @@ tests: "For each ActionStruct, verify Name, Type and State against the name/type/state info for the action provided by the manufacturers means" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | no Matter messages, but TH internal checking disabled: true - label: "Read SetupURL attribute" + PICS: ACT.S.A0002 verification: | Read SetupURL attribute disabled: true - - label: - "Verify that its syntax follows the syntax as specified in RFC 3986, - max. 512 ASCII characters" + - label: "Verify that its syntax" verification: | no Matter messages, but TH internal checking disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ACT_2_2.yaml b/src/app/tests/suites/certification/Test_TC_ACT_2_2.yaml index 125bbd7e564c5f..400f6dfb190104 100644 --- a/src/app/tests/suites/certification/Test_TC_ACT_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACT_2_2.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: 3.2.2. [TC-ACT-2.2] Primary functionality with server as DUT +name: 76.2.2. [TC-ACT-2.2] Primary functionality with server as DUT config: nodeId: 0x12344321 @@ -29,11 +29,13 @@ tests: - label: "Using the manufacturer provided means, create multiple groups with each multiple bridged devices (endpoints)" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | no Matter messages disabled: true - label: "Read EndpointLists attribute" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | Read EndpointLists attribute disabled: true @@ -41,144 +43,170 @@ tests: - label: "Using the manufacturer provided means, update the name of one of the groups" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - no Matter messages + Read EndpointLists attribute disabled: true - label: "Read EndpointLists attribute again" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - Read EndpointLists attribute + TH internal checking of changes to EndpointLists attribute matching what was changed in 2c disabled: true - label: "compare result of step 2d to what was read in step 2b" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - TH internal checking of changes to EndpointLists attribute matching what was changed in 2c + no Matter messages disabled: true - label: "Using the manufacturer provided means, move one of the bridged devices (one endpoint) from one group to another group" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - no Matter messages + TH internal checking of changes to EndpointLists attribute matching what was changed in 2f disabled: true - label: "Read EndpointLists attribute again" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - Read EndpointLists attribute + no Matter messages disabled: true - label: "compare result of step 2g to what was read in step 2e" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - TH internal checking of changes to EndpointLists attribute matching what was changed in 2f + Read EndpointLists attribute disabled: true - label: "Using the manufacturer provided means, remove one of the groups" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | no Matter messages disabled: true - label: "Read EndpointLists attribute again" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | Read EndpointLists attribute disabled: true - label: "compare result of step 2j to what was read in step 2h" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - TH internal checking of changes to EndpointLists attribute matching what was changed in 2i + TH internal checking of changes to EndpointLists attribute matching what was changed in 2l disabled: true - label: "Using the manufacturer provided means, create a new group, which includes one of the bridged devices also present in another group" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | no Matter messages disabled: true - label: "Read EndpointLists attribute again" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - Read EndpointLists attribute + Read ActionList attribute disabled: true - label: "compare result of step 2m to what was read in step 2k" + PICS: ACT.S.A0001 && ACT.S.M.FillEndpointLists verification: | - TH internal checking of changes to EndpointLists attribute matching what was changed in 2l + no Matter messages disabled: true - label: "Using the manufacturer provided means, create multiple actions" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - no Matter messages + TH internal checking of changes to ActionList attribute matching what was changed in 3c disabled: true - label: "Read ActionList attribute" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - Read ActionList attribute + no Matter messages disabled: true - label: "Using the manufacturer provided means, update the name of one of the actions" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - no Matter messages + TH internal checking of changes to ActionList attribute matching what was changed in 3f disabled: true - label: "Read ActionList attribute again" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - Read ActionList attribute + no Matter messages disabled: true - label: "compare result of step 3d to what was read in step 3b" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - TH internal checking of changes to ActionList attribute matching what was changed in 3c + Read ActionList attribute disabled: true - label: "Using the manufacturer provided means, remove one of the exposed actions" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - no Matter messages + disabled: true - label: "Read ActionList attribute again" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - Read ActionList attribute + no Matter messages disabled: true - label: "compare result of step 3g to what was read in step 3e" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - TH internal checking of changes to ActionList attribute matching what was changed in 3f + Read ActionList attribute disabled: true - label: "Using the manufacturer provided means, add a new exposed action" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - no Matter messages + sequence of Matter messages as described disabled: true - label: "Read ActionList attribute again" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - Read ActionList attribute + sequence of Matter messages as described disabled: true - label: "compare result of step 3j to what was read in step 3h" + PICS: ACT.S.A0000 && ACT.S.M.FillActionList verification: | - TH internal checking of changes to ActionList attribute matching what was changed in 3i + disabled: true - label: "Using the manufacturer provided means, create multiple actions (NOTE if this is not provided, it is assumed the DUT automagically creates these)" + PICS: ACT.S.A0000 verification: | - no Matter messages + disabled: true - label: "Read ActionList attribute" + PICS: ACT.S.A0000 verification: | - Read ActionList attribute + disabled: true - label: "subscribe to StateChanged and ActionFailed events" + PICS: ACT.S.A0000 verification: | - subscribe to events + disabled: true - label: @@ -186,11 +214,13 @@ tests: 4b), perform one of the actions supported (see SupportedCommands in this ActionStruct) by sending the command with this particular ActionID and a random value for InvokeID" + PICS: ACT.S.A0000 verification: | - sequence of Matter messages as described + disabled: true - label: "repeat 4d for the other SupportedCommands of each ActionStruct" + PICS: ACT.S.A0000 verification: | - sequence of Matter messages as described + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ACT_3_1.yaml b/src/app/tests/suites/certification/Test_TC_ACT_3_1.yaml index 5d389fef09934c..9aec071cf8518d 100644 --- a/src/app/tests/suites/certification/Test_TC_ACT_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ACT_3_1.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: 3.2.3. [TC-ACT-3.1] GLobal attributes with client as DUT +name: 76.2.3. [TC-ACT-3.1] GLobal attributes with client as DUT config: nodeId: 0x12344321 @@ -56,19 +56,51 @@ tests: also reflects this in global attributes such as FeatureMap and AttributeList. Commission DUT to TH again" verification: | - https://github.com/project-chip/connectedhomeip/issues/16851 + ./chip-tool bridgedactions read action-list 1 1 + ./chip-tool bridgedactions read endpoint-list 1 1 disabled: true - label: "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order" verification: | - https://github.com/project-chip/connectedhomeip/issues/16851 + ./chip-tool bridgedactions read setup-url 1 1 + + [1656480136859] [49753:5741500] CHIP: [DMG] ReportDataMessage = + [1656480136859] [49753:5741500] CHIP: [DMG] { + [1656480136859] [49753:5741500] CHIP: [DMG] AttributeReportIBs = + [1656480136859] [49753:5741500] CHIP: [DMG] [ + [1656480136859] [49753:5741500] CHIP: [DMG] AttributeReportIB = + [1656480136859] [49753:5741500] CHIP: [DMG] { + [1656480136859] [49753:5741500] CHIP: [DMG] AttributeStatusIB = + [1656480136859] [49753:5741500] CHIP: [DMG] { + [1656480136859] [49753:5741500] CHIP: [DMG] AttributePathIB = + [1656480136859] [49753:5741500] CHIP: [DMG] { + [1656480136859] [49753:5741500] CHIP: [DMG] Endpoint = 0x1, + [1656480136859] [49753:5741500] CHIP: [DMG] Cluster = 0x25, + [1656480136859] [49753:5741500] CHIP: [DMG] Attribute = 0x0000_0002, + [1656480136859] [49753:5741500] CHIP: [DMG] } + [1656480136859] [49753:5741500] CHIP: [DMG] + [1656480136859] [49753:5741500] CHIP: [DMG] StatusIB = + [1656480136859] [49753:5741500] CHIP: [DMG] { + [1656480136859] [49753:5741500] CHIP: [DMG] status = 0x86 (UNSUPPORTED_ATTRIBUTE), + [1656480136859] [49753:5741500] CHIP: [DMG] }, + [1656480136859] [49753:5741500] CHIP: [DMG] + [1656480136859] [49753:5741500] CHIP: [DMG] }, + [1656480136859] [49753:5741500] CHIP: [DMG] + [1656480136859] [49753:5741500] CHIP: [DMG] }, + [1656480136859] [49753:5741500] CHIP: [DMG] + [1656480136859] [49753:5741500] CHIP: [DMG] ], + [1656480136859] [49753:5741500] CHIP: [DMG] + [1656480136859] [49753:5741500] CHIP: [DMG] SuppressResponse = true, + [1656480136859] [49753:5741500] CHIP: [DMG] InteractionModelRevision = 1 + [1656480136859] [49753:5741500] CHIP: [DMG] } + [1656480136859] [49753:5741500] CHIP: [TOO] Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE) disabled: true - label: "DUT writes a suitable value to all supported optional attributes on the TH one at a time in a manufacturer specific order" verification: | - https://github.com/project-chip/connectedhomeip/issues/16851 + No writeable attribute disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ACT_3_2.yaml b/src/app/tests/suites/certification/Test_TC_ACT_3_2.yaml new file mode 100644 index 00000000000000..ec4c5a908eda85 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ACT_3_2.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: 3.2.4. [TC-ACT-3.2] Functionality with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT issues an InstantAction command to TH" + PICS: ACT.C.C00.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an StartAction command to TH" + PICS: ACT.C.C02.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an StopAction command to TH" + PICS: ACT.C.C04.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an PauseAction command to TH" + PICS: ACT.C.C05.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an ResumeAction command to TH" + PICS: ACT.C.C07.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an EnableAction command to TH" + PICS: ACT.C.C08.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an DisableAction command to TH" + PICS: ACT.C.C0a.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an StartActionWithDuration command to TH" + PICS: ACT.C.C03.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an PauseActionWithDuration command to TH" + PICS: ACT.C.C06.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an EnableActionWithDuration command to TH" + PICS: ACT.C.C09.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an DisableActionWithDuration command to TH" + PICS: ACT.C.C0b.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true + + - label: "DUT issues an InstantActionWithTransition command to TH" + PICS: ACT.C.C01.Tx + verification: | + Optional command, needs an SDK implementation + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml index 93f8b42124b2e5..316b44e10edd3a 100644 --- a/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Read mandatory non-global attribute: StateValue" + PICS: BOOL.S.A0000 command: "readAttribute" attribute: "StateValue" response: diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_2_2.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_2_2.yaml index 67c89012db9cdd..80d54e00220002 100644 --- a/src/app/tests/suites/certification/Test_TC_BOOL_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_BOOL_2_2.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: 68.2.2. [TC-BOOL-2.2] Primary functionality with server as DUT +name: 67.2.2. [TC-BOOL-2.2] Primary Functionality with Server as DUT config: nodeId: 0x12344321 @@ -27,11 +27,13 @@ tests: disabled: true - label: "Bring the DUT into a state so StateValue is FALSE" + PICS: BOOL.M.ManuallyControlled && BOOL.S.A0000 verification: | Manual operation disabled: true - label: "TH reads the StateValue attribute from the DUT" + PICS: BOOL.M.ManuallyControlled && BOOL.S.A0000 verification: | ./chip-tool booleanstate read state-value 1 1 @@ -40,11 +42,13 @@ tests: disabled: true - label: "Bring the DUT into a state so StateValue is TRUE" + PICS: BOOL.M.ManuallyControlled && BOOL.S.A0000 verification: | - + Manual operation disabled: true - label: "TH reads the StateValue attribute from the DUT" + PICS: BOOL.M.ManuallyControlled && BOOL.S.A0000 verification: | ./chip-tool booleanstate read state-value 1 1 @@ -53,43 +57,20 @@ tests: disabled: true - label: "Set up subscription to StateChange event" + PICS: BOOL.M.ManuallyControlled && BOOL.S.E00 && BOOL.S.A0000 verification: | - ./chip-tool booleanstate subscribe state-value 1 100 1 1 1 + ./chip-tool booleanstate subscribe-event-by-id 0x0 1 100 2 1 disabled: true - label: "Bring the DUT into a state so StateValue is FALSE" + PICS: BOOL.M.ManuallyControlled && BOOL.S.E00 && BOOL.S.A0000 verification: | - [1646119162.627309][3311:3316] CHIP:DMG: ReportDataMessage = - [1646119162.627342][3311:3316] CHIP:DMG: { - [1646119162.627370][3311:3316] CHIP:DMG: SubscriptionId = 0xb3476ff99df21d7f, - [1646119162.627397][3311:3316] CHIP:DMG: AttributeReportIBs = - [1646119162.627432][3311:3316] CHIP:DMG: [ - [1646119162.627454][3311:3316] CHIP:DMG: AttributeReportIB = - [1646119162.627483][3311:3316] CHIP:DMG: { - [1646119162.627505][3311:3316] CHIP:DMG: AttributeDataIB = - [1646119162.627530][3311:3316] CHIP:DMG: { - [1646119162.627562][3311:3316] CHIP:DMG: DataVersion = 0x7ed289df, - [1646119162.627592][3311:3316] CHIP:DMG: AttributePathIB = - [1646119162.627623][3311:3316] CHIP:DMG: { - [1646119162.627654][3311:3316] CHIP:DMG: Endpoint = 0x1, - [1646119162.627685][3311:3316] CHIP:DMG: Cluster = 0x45, - [1646119162.627721][3311:3316] CHIP:DMG: Attribute = 0x0000_0000, - [1646119162.627759][3311:3316] CHIP:DMG: } - [1646119162.627794][3311:3316] CHIP:DMG: - [1646119162.627830][3311:3316] CHIP:DMG: Data = false, - [1646119162.627860][3311:3316] CHIP:DMG: }, - [1646119162.627888][3311:3316] CHIP:DMG: - [1646119162.627909][3311:3316] CHIP:DMG: }, - [1646119162.627938][3311:3316] CHIP:DMG: - [1646119162.627960][3311:3316] CHIP:DMG: ], - [1646119162.627991][3311:3316] CHIP:DMG: - [1646119162.628013][3311:3316] CHIP:DMG: InteractionModelRevision = 1 - [1646119162.628035][3311:3316] CHIP:DMG: } [1646119162.628169][3311:3316] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0045 Attribute 0x0000_0000DataVersion: 2127727071 [1646119162.628207][3311:3316] CHIP:TOO: StateValue: FALSE disabled: true - label: "TH reads the StateValue attribute from the DUT" + PICS: BOOL.M.ManuallyControlled && BOOL.S.E00 && BOOL.S.A0000 verification: | ./chip-tool booleanstate read state-value 1 1 @@ -98,38 +79,14 @@ tests: disabled: true - label: "Bring the DUT into a state so StateValue is TRUE" + PICS: BOOL.M.ManuallyControlled && BOOL.S.E00 && BOOL.S.A0000 verification: | - [1646119162.627309][3311:3316] CHIP:DMG: ReportDataMessage = - [1646119162.627342][3311:3316] CHIP:DMG: { - [1646119162.627370][3311:3316] CHIP:DMG: SubscriptionId = 0xb3476ff99df21d7f, - [1646119162.627397][3311:3316] CHIP:DMG: AttributeReportIBs = - [1646119162.627432][3311:3316] CHIP:DMG: [ - [1646119162.627454][3311:3316] CHIP:DMG: AttributeReportIB = - [1646119162.627483][3311:3316] CHIP:DMG: { - [1646119162.627505][3311:3316] CHIP:DMG: AttributeDataIB = - [1646119162.627530][3311:3316] CHIP:DMG: { - [1646119162.627562][3311:3316] CHIP:DMG: DataVersion = 0x7ed289df, - [1646119162.627592][3311:3316] CHIP:DMG: AttributePathIB = - [1646119162.627623][3311:3316] CHIP:DMG: { - [1646119162.627654][3311:3316] CHIP:DMG: Endpoint = 0x1, - [1646119162.627685][3311:3316] CHIP:DMG: Cluster = 0x45, - [1646119162.627721][3311:3316] CHIP:DMG: Attribute = 0x0000_0000, - [1646119162.627759][3311:3316] CHIP:DMG: } - [1646119162.627794][3311:3316] CHIP:DMG: - [1646119162.627830][3311:3316] CHIP:DMG: Data = true, - [1646119162.627860][3311:3316] CHIP:DMG: }, - [1646119162.627888][3311:3316] CHIP:DMG: - [1646119162.627909][3311:3316] CHIP:DMG: }, - [1646119162.627938][3311:3316] CHIP:DMG: - [1646119162.627960][3311:3316] CHIP:DMG: ], - [1646119162.627991][3311:3316] CHIP:DMG: - [1646119162.628013][3311:3316] CHIP:DMG: InteractionModelRevision = 1 - [1646119162.628035][3311:3316] CHIP:DMG: } [1646119162.628169][3311:3316] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0045 Attribute 0x0000_0000DataVersion: 2127727071 [1646119162.628207][3311:3316] CHIP:TOO: StateValue: TRUE disabled: true - label: "TH reads the StateValue attribute from the DUT" + PICS: BOOL.M.ManuallyControlled && BOOL.S.E00 && BOOL.S.A0000 verification: | ./chip-tool booleanstate read state-value 1 1 diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_3_1.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_3_1.yaml index b6c5f6ea82458d..e4a0c691297690 100644 --- a/src/app/tests/suites/certification/Test_TC_BOOL_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BOOL_3_1.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: 68.3.1. [TC-BOOL-3.1] Attributes with client as DUT +name: 67.3.1. [TC-BOOL-3.1] Attributes with Client as DUT config: nodeId: 0x12344321 @@ -22,46 +22,91 @@ config: tests: - label: - "DUT reads all supported mandatory attributes from TH once at a time - in a manufacturer specific order" + "DUT reads all supported mandatory attributes from TH one at a time in + a manufacturer specific order" verification: | - On TestHarnes (all-cluster-app) a received read of state-value (id 0) looks like this: + ./chip-tool booleanstate read state-value 1 1 + + Verify on TestHarnes (all-cluster-app) a received read of state-value printing the cluster ID endpoint used and attribute ID which is read in logs [CHIP:DMG: ReadRequestMessage = [1646667214.092121][11498:11498] CHIP:DMG: { - [1646667214.092142][11498:11498] CHIP:DMG: AttributePathIBs = - [1646667214.092179][11498:11498] CHIP:DMG: [ - [1646667214.092204][11498:11498] CHIP:DMG: AttributePathIB = - [1646667214.092242][11498:11498] CHIP:DMG: { - [1646667214.092279][11498:11498] CHIP:DMG: Endpoint = 0x1, - [1646667214.092319][11498:11498] CHIP:DMG: Cluster = 0x45, - [1646667214.092359][11498:11498] CHIP:DMG: Attribute = 0x0000_0000, - [1646667214.092391][11498:11498] CHIP:DMG: } + [1646667214.092142][11498:11498] CHIP:DMG: AttributePathIBs = + [1646667214.092179][11498:11498] CHIP:DMG: [ + [1646667214.092204][11498:11498] CHIP:DMG: AttributePathIB = + [1646667214.092242][11498:11498] CHIP:DMG: { + [1646667214.092279][11498:11498] CHIP:DMG: Endpoint = 0x1, + [1646667214.092319][11498:11498] CHIP:DMG: Cluster = 0x45, + [1646667214.092359][11498:11498] CHIP:DMG: Attribute = 0x0000_0000, + [1646667214.092391][11498:11498] CHIP:DMG: } [1646667214.092430][11498:11498] CHIP:DMG: - [1646667214.092456][11498:11498] CHIP:DMG: ], + [1646667214.092456][11498:11498] CHIP:DMG: ], [1646667214.092494][11498:11498] CHIP:DMG: - [1646667214.092529][11498:11498] CHIP:DMG: isFabricFiltered = true, - [1646667214.092555][11498:11498] CHIP:DMG: InteractionModelRevision = 1 + [1646667214.092529][11498:11498] CHIP:DMG: isFabricFiltered = true, + [1646667214.092555][11498:11498] CHIP:DMG: InteractionModelRevision = 1 [1646667214.092577][11498:11498] CHIP:DMG: }, + + + Verify on DUT + + ./chip-tool booleanstate read state-value 1 1 + + [1646118838.087500][3279:3284] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0045 Attribute 0x0000_0000DataVersion: 2127727071 + [1646118838.087536][3279:3284] CHIP:TOO: StateValue: TRUE disabled: true - label: - "DUT reads all supported optional attributes from TH once at a time in + "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order" verification: | - see above + No optional attribute disabled: true - label: "DUT writes a suitable value to all supported mandatory attributes on - the TH once at a time in a manufacturer specific order" + the TH one at a time in a manufacturer specific order" verification: | No writable attributes disabled: true - label: "DUT writes a suitable value to all supported optional attributes on - the TH once at a time in a manufacturer specific order" + the TH one at a time in a manufacturer specific order" verification: | - No writable attributes + No optional attribute + disabled: true + + - label: + "Configure TH such that it implements mandatory and none of the + optional attributes of the server-side of the cluster, and that it + also reflects this in global attributes such as FeatureMap and + AttributeList. Commission DUT to TH again" + verification: | + ./chip-tool booleanstate read attribute-list 1 1 + [1654244313219] [91456:3997555] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0045 Attribute 0x0000_FFFB DataVersion: 2739318439 + [1654244313220] [91456:3997555] CHIP: [TOO] AttributeList: 6 entries + [1654244313220] [91456:3997555] CHIP: [TOO] [1]: 0 + [1654244313220] [91456:3997555] CHIP: [TOO] [2]: 65528 + [1654244313220] [91456:3997555] CHIP: [TOO] [3]: 65529 + [1654244313220] [91456:3997555] CHIP: [TOO] [4]: 65531 + [1654244313220] [91456:3997555] CHIP: [TOO] [5]: 65532 + [1654244313220] [91456:3997555] CHIP: [TOO] [6]: 65533 + + ./chip-tool booleanstate read state-value 1 1 + [1654244423171] [91468:3998115] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0045 Attribute 0x0000_0000 DataVersion: 2739318439 + [1654244423171] [91468:3998115] CHIP: [TOO] StateValue: FALSE + disabled: true + + - label: + "DUT reads all supported optional attributes from TH one at a time in + a manufacturer specific order" + verification: | + No optional attribute + disabled: true + + - label: + "DUT writes a suitable value to all supported optional attributes on + the TH one at a time in a manufacturer specific order" + verification: | + No optional attribute disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DA_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DA_1_1.yaml index e82f81ae21e8fe..daef7cd71a53a5 100644 --- a/src/app/tests/suites/certification/Test_TC_DA_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DA_1_1.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: - 17.1.1. [TC-DA-1.1] The NOC SHALL be wiped on Factory Reset [DUT - + 4.1.1. [TC-DA-1.1] The NOC SHALL be wiped on Factory Reset [DUT - Commissionee] config: @@ -25,37 +25,78 @@ config: tests: - label: "Commission DUT to TH1s Fabric" verification: | + DUT side: + sudo ./chip-all-clusters-app --wifi + TH side: + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1 + + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success disabled: true - label: - "TH1 reads the NOCs attribute list from DUT TH1 saves the NOCs list - for future usage." + "TH1 does a non-fabric-filtered read of Fabrics attribute list from + DUT TH1 saves the NOCs list for future usage." verification: | + ./chip-tool operationalcredentials read fabrics 1 0 + [1655471672.386120][13377:13382] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2667297992 + [1655471672.386213][13377:13382] CHIP:TOO: Fabrics: 1 entries + [1655471672.386291][13377:13382] CHIP:TOO: [1]: { + [1655471672.386339][13377:13382] CHIP:TOO: RootPublicKey: 04FB421853FB8AE6AEA281845DE7C8689E7C24AD3283A3536E09BA2FAAE88F6EA4C08DC055A965D8FE0A8060A7F9F45E509B7A4C9092FB3D8D2E253B057899F5AB + [1655471672.386378][13377:13382] CHIP:TOO: VendorId: 65521 + [1655471672.386412][13377:13382] CHIP:TOO: FabricId: 1 + [1655471672.386445][13377:13382] CHIP:TOO: NodeId: 1 + [1655471672.386675][13377:13382] CHIP:TOO: Label: + [1655471672.386716][13377:13382] CHIP:TOO: FabricIndex: 1 + [1655471672.386750][13377:13382] CHIP:TOO: } disabled: true - label: "Factory reset DUT Perform the device discovery flow checks as covered in TC-DD-2.2" verification: | - + 1. TH starts matter announcement procedure using BLE transport : verify this by sending "./chip-tool discover commissionables" after launching all-clusters-app on DUT + 2. DUT must find TH and provide onboarding data to for validation. + Pass Criteria: DUT is able to report the Onboarding payload as set on TH : Verify this by commissioning DUT with TH by passing "./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1" disabled: true - label: "Commission DUT to TH2s Fabric" verification: | - + To commission DUT to TH2 follow below procedure + 1../chip-tool pairing open-commissioning-window 1 1 400 2000 3840 on TH + 2. manualcode will be provided by TH when we pass above command pass manualcode in TH2 to commission by using "./chip-tool pairing code 2 36199720672" considering 36199720672 as manualcode generated in TH disabled: true - label: "TH2 does a non-fabric-filtered read of Fabrics attribute list from - DUT and saves the FabricDescriptorStruct values" + DUT" verification: | - Verify that there is only one entry in the 'Fabrics' List Verify that the FabricID is the same as the TH2 Fabric ID + ./chip-tool operationalcredentials read fabrics 2 0 + + [1655471672.386120][13377:13382] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 2667297992 + [1655471672.386213][13377:13382] CHIP:TOO: Fabrics: 1 entries + [1655471672.386291][13377:13382] CHIP:TOO: [1]: { + [1655471672.386339][13377:13382] CHIP:TOO: RootPublicKey: 04FB421853FB8AE6AEA281845DE7C8689E7C24AD3283A3536E09BA2FAAE88F6EA4C08DC055A965D8FE0A8060A7F9F45E509B7A4C9092FB3D8D2E253B057899F5AB + [1655471672.386378][13377:13382] CHIP:TOO: VendorId: 65521 + [1655471672.386412][13377:13382] CHIP:TOO: FabricId: 1 + [1655471672.386445][13377:13382] CHIP:TOO: NodeId: 2 + [1655471672.386675][13377:13382] CHIP:TOO: Label: + [1655471672.386716][13377:13382] CHIP:TOO: FabricIndex: 2 + [1655471672.386750][13377:13382] CHIP:TOO: } disabled: true - label: - "TH2 does a non-fabric-filtered read of NOC attribute list from DUT" + "TH2 does a non-fabric-filtered read of NOCs attribute list from DUT" + PICS: "" verification: | - Verify that there is only one entry in the 'NOC' List + "./chip-tool operationalcredentials read nocs 2 0 + + [1655471146.098327][13302:13307] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2667297991 + [1655471146.098416][13302:13307] CHIP:TOO: NOCs: 1 entries + [1655471146.098486][13302:13307] CHIP:TOO: [1]: { + [1655471146.098537][13302:13307] CHIP:TOO: Noc: 1530010101240201370324130118260480228127260580254D3A37062415012411011824070124080130094104D5FA104FF03F9118BDC2A072D50DB3BED32C47F138439FBF05753D02D01AEC10F350CB77EA22844A83FF0FEF6CFA764F5B1FD48E487F3EC82A201D376F56DCC8370A350128011824020136030402040118300414BD61F9405A7A15EFA38F8B6833AB9027876482E1300514B5AED0B2C2CDBB9D4D0124755B56278B081FD4AD18300B40441AA0EE6ACE43EEA2A52321821D8B260AAFFEBD394C2FD11E83008C5AD2DF5EA58FAFA14A3EF7BAFDE190591298311D7DE6A257819D98D0E9FE239A635684B418 + [1655471146.098591][13302:13307] CHIP:TOO: Icac: 1530010100240201370324140018260480228127260580254D3A37062413011824070124080130094104B267483D9981A2C15E7DE8C63298FEB6DC19EAA9AEA41D9D659CD3BBBD25B943B3186716C82B297091D64B1620E8FB2C6FD095F509684E074C5B479E583CE295370A3501290118240260300414B5AED0B2C2CDBB9D4D0124755B56278B081FD4AD3005146EDE812590A5E6E4463798EB06AC3BD5284DFAAE18300B404A48E0B45704A98739C0C656B0F1A4252AEED8E1EBA5FD1032C79A4B26BF8A314EFDD7C835947DEB4B3E9F6D0BF2A561CEE54B45F311773301D4B5CFFF2F76D918 + [1655471146.098630][13302:13307] CHIP:TOO: FabricIndex: 2 + [1655471146.098660][13302:13307] CHIP:TOO: }" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DA_1_2.yaml b/src/app/tests/suites/certification/Test_TC_DA_1_2.yaml index 322265307e05cd..2292c0db1e1c76 100644 --- a/src/app/tests/suites/certification/Test_TC_DA_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DA_1_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: - 17.1.2. [TC-DA-1.2] Device Attestation Request Validation [DUT - + 4.1.2. [TC-DA-1.2] Device Attestation Request Validation [DUT - Commissionee] config: @@ -25,32 +25,407 @@ config: tests: - label: "TH1 generates 32-byte AttestationNonce" verification: | - + Verifu in TH log + [1655374218.117635][35023:35028] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655374218.117686][35023:35028] CHIP:DMG: ICR moving to [AwaitingDe] + [1655374218.204040][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655374218.252180][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.252405][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.352372][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.352509][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.450622][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.450870][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.452138][35023:35028] CHIP:DMG: << from BLE | 224958145 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 19710 / Exchange = 1302] + [1655374218.452241][35023:35028] CHIP:DMG: Header Flags = + [1655374218.452300][35023:35028] CHIP:DMG: { + [1655374218.452395][35023:35028] CHIP:DMG: } + [1655374218.452449][35023:35028] CHIP:DMG: + [1655374218.452521][35023:35028] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655374218.452579][35023:35028] CHIP:DMG: { + [1655374218.452634][35023:35028] CHIP:DMG: data = 00fe4c00c196680d30c5e98d35a6d844102a8b0067edba80e2adf97e28751f8353657dacb7c9706c2c22add28d18adca15378d16af57f0f4092893cfc5d3e85f6e409f70e39bcb9e0bd3397947e927d20e5bf5173e3def7218d0152cf40e7cb16db615efbd282fd6e84c710bd2c7441228eb5dbbcf0dc76a3eaa0b04655f434d3c8223c7016703b8082c9984c3a91432d12271c87f4d09e90cb6e78d07c81d6359cd5a756f2bace60a7a216896949b536e5583f22db64aeae0279ba2fd279813be383e4324ab63472e3d9877f6c9fa539e577dc50fbcc5a7124a14ea78abdd6ada4ec256a3ee0a242747d636215ffab3c8b4291023eb51b3701939e153912b0f5764479b05e1cf472c350304d1ead872295c80fed3a545530f773e729b6f7bd7d5547de03076a72b8855191beb12d8194477bc9798b6177557cccf3b11b2c1f82cee31d451408359650112394dc2c1592cd2eb1e75881aa340885e65ef9a9905947842574ddcac832d68188b0a3a20fb223258d766692b13a6cde0de34d4f9047046d38ad94caf0a9cc7a786c082d5ae8c62346d69684c6ed5ae958ab68c0685922751ff04d922a838c9d2257a7af6e72af524b459a45ea6311431d30c7de32b3d79581ac119d6e7f63a877b53fda9d69256c5870f2af36f74e08b22e1217a0324b772394a4a596ff237331c623b8d7746077826088dddd2a741f19011cde09f1e897f92ac975fd9a157de0b780f6551b11a50ffe12c781f304dbda9dd75465fb3a8ec52d30f7ddb9179f1b9dfe415ae2d66a53bad67bcf27b3351b8a5cdc9e8b54095c81774007237c8a14a3e2c9cf350616cf5ebf7f6ae5a8c77207924b0e1cddc6c7e77c2a514319947c5988af1dd77325259f496293e53041941d45a1355f56b8036008ab696f7d47d17f9fc4890aa78c2811560b7b4d79a460b7dcd3d9bc3bdd5f72d27bb0060f722aa9c22e7d635895404c832bf2371321d1ababa954482c847fedd0d4676bd188365 + [1655374218.452884][35023:35028] CHIP:DMG: buffer_ptr = 281472627984864 + [1655374218.452941][35023:35028] CHIP:DMG: } + [1655374218.452992][35023:35028] CHIP:DMG: + [1655374218.453303][35023:35028] CHIP:DMG: Attestation Elements (585 bytes) = + [1655374218.453366][35023:35028] CHIP:DMG: { + [1655374218.453431][35023:35028] CHIP:DMG: Certification Declaration = + [1655374218.453483][35023:35028] CHIP:DMG: { + [1655374218.455342][35023:35028] CHIP:DMG: Format Version = 1 + [1655374218.455398][35023:35028] CHIP:DMG: Vendor Id = 65521 + [1655374218.455438][35023:35028] CHIP:DMG: Product Ids = + [1655374218.455474][35023:35028] CHIP:DMG: { + [1655374218.455512][35023:35028] CHIP:DMG: Product Id = 32768 + [1655374218.455552][35023:35028] CHIP:DMG: Product Id = 32769 + [1655374218.455590][35023:35028] CHIP:DMG: Product Id = 32770 + [1655374218.455628][35023:35028] CHIP:DMG: Product Id = 32771 + [1655374218.455666][35023:35028] CHIP:DMG: Product Id = 32772 + [1655374218.455704][35023:35028] CHIP:DMG: Product Id = 32773 + [1655374218.455742][35023:35028] CHIP:DMG: Product Id = 32774 + [1655374218.455780][35023:35028] CHIP:DMG: Product Id = 32775 + [1655374218.455818][35023:35028] CHIP:DMG: Product Id = 32776 + [1655374218.455855][35023:35028] CHIP:DMG: Product Id = 32777 + [1655374218.455893][35023:35028] CHIP:DMG: Product Id = 32778 + [1655374218.455931][35023:35028] CHIP:DMG: Product Id = 32779 + [1655374218.455969][35023:35028] CHIP:DMG: Product Id = 32780 + [1655374218.456007][35023:35028] CHIP:DMG: Product Id = 32781 + [1655374218.456045][35023:35028] CHIP:DMG: Product Id = 32782 + [1655374218.456082][35023:35028] CHIP:DMG: Product Id = 32783 + [1655374218.456120][35023:35028] CHIP:DMG: Product Id = 32784 + [1655374218.456158][35023:35028] CHIP:DMG: Product Id = 32785 + [1655374218.456196][35023:35028] CHIP:DMG: Product Id = 32786 + [1655374218.456234][35023:35028] CHIP:DMG: Product Id = 32787 + [1655374218.456271][35023:35028] CHIP:DMG: Product Id = 32788 + [1655374218.456309][35023:35028] CHIP:DMG: Product Id = 32789 + [1655374218.456347][35023:35028] CHIP:DMG: Product Id = 32790 + [1655374218.456385][35023:35028] CHIP:DMG: Product Id = 32791 + [1655374218.456423][35023:35028] CHIP:DMG: Product Id = 32792 + [1655374218.456461][35023:35028] CHIP:DMG: Product Id = 32793 + [1655374218.456498][35023:35028] CHIP:DMG: Product Id = 32794 + [1655374218.456536][35023:35028] CHIP:DMG: Product Id = 32795 + [1655374218.456573][35023:35028] CHIP:DMG: Product Id = 32796 + [1655374218.456611][35023:35028] CHIP:DMG: Product Id = 32797 + [1655374218.456649][35023:35028] CHIP:DMG: Product Id = 32798 + [1655374218.456687][35023:35028] CHIP:DMG: Product Id = 32799 + [1655374218.456724][35023:35028] CHIP:DMG: Product Id = 32800 + [1655374218.456761][35023:35028] CHIP:DMG: Product Id = 32801 + [1655374218.456799][35023:35028] CHIP:DMG: Product Id = 32802 + [1655374218.456836][35023:35028] CHIP:DMG: Product Id = 32803 + [1655374218.456874][35023:35028] CHIP:DMG: Product Id = 32804 + [1655374218.456912][35023:35028] CHIP:DMG: Product Id = 32805 + [1655374218.456949][35023:35028] CHIP:DMG: Product Id = 32806 + [1655374218.456987][35023:35028] CHIP:DMG: Product Id = 32807 + [1655374218.457024][35023:35028] CHIP:DMG: Product Id = 32808 + [1655374218.457061][35023:35028] CHIP:DMG: Product Id = 32809 + [1655374218.457099][35023:35028] CHIP:DMG: Product Id = 32810 + [1655374218.457138][35023:35028] CHIP:DMG: Product Id = 32811 + [1655374218.457175][35023:35028] CHIP:DMG: Product Id = 32812 + [1655374218.457212][35023:35028] CHIP:DMG: Product Id = 32813 + [1655374218.457250][35023:35028] CHIP:DMG: Product Id = 32814 + [1655374218.457288][35023:35028] CHIP:DMG: Product Id = 32815 + [1655374218.457326][35023:35028] CHIP:DMG: Product Id = 32816 + [1655374218.457363][35023:35028] CHIP:DMG: Product Id = 32817 + [1655374218.457401][35023:35028] CHIP:DMG: Product Id = 32818 + [1655374218.457439][35023:35028] CHIP:DMG: Product Id = 32819 + [1655374218.457476][35023:35028] CHIP:DMG: Product Id = 32820 + [1655374218.457514][35023:35028] CHIP:DMG: Product Id = 32821 + [1655374218.457552][35023:35028] CHIP:DMG: Product Id = 32822 + [1655374218.457590][35023:35028] CHIP:DMG: Product Id = 32823 + [1655374218.457627][35023:35028] CHIP:DMG: Product Id = 32824 + [1655374218.457665][35023:35028] CHIP:DMG: Product Id = 32825 + [1655374218.457702][35023:35028] CHIP:DMG: Product Id = 32826 + [1655374218.457740][35023:35028] CHIP:DMG: Product Id = 32827 + [1655374218.457777][35023:35028] CHIP:DMG: Product Id = 32828 + [1655374218.457833][35023:35028] CHIP:DMG: Product Id = 32829 + [1655374218.457874][35023:35028] CHIP:DMG: Product Id = 32830 + [1655374218.457912][35023:35028] CHIP:DMG: Product Id = 32831 + [1655374218.457950][35023:35028] CHIP:DMG: Product Id = 32832 + [1655374218.457987][35023:35028] CHIP:DMG: Product Id = 32833 + [1655374218.458026][35023:35028] CHIP:DMG: Product Id = 32834 + [1655374218.458063][35023:35028] CHIP:DMG: Product Id = 32835 + [1655374218.458101][35023:35028] CHIP:DMG: Product Id = 32836 + [1655374218.458139][35023:35028] CHIP:DMG: Product Id = 32837 + [1655374218.458177][35023:35028] CHIP:DMG: Product Id = 32838 + [1655374218.458215][35023:35028] CHIP:DMG: Product Id = 32839 + [1655374218.458253][35023:35028] CHIP:DMG: Product Id = 32840 + [1655374218.458291][35023:35028] CHIP:DMG: Product Id = 32841 + [1655374218.458328][35023:35028] CHIP:DMG: Product Id = 32842 + [1655374218.458366][35023:35028] CHIP:DMG: Product Id = 32843 + [1655374218.458404][35023:35028] CHIP:DMG: Product Id = 32844 + [1655374218.458441][35023:35028] CHIP:DMG: Product Id = 32845 + [1655374218.458480][35023:35028] CHIP:DMG: Product Id = 32846 + [1655374218.458517][35023:35028] CHIP:DMG: Product Id = 32847 + [1655374218.458555][35023:35028] CHIP:DMG: Product Id = 32848 + [1655374218.458592][35023:35028] CHIP:DMG: Product Id = 32849 + [1655374218.458630][35023:35028] CHIP:DMG: Product Id = 32850 + [1655374218.458667][35023:35028] CHIP:DMG: Product Id = 32851 + [1655374218.458706][35023:35028] CHIP:DMG: Product Id = 32852 + [1655374218.458743][35023:35028] CHIP:DMG: Product Id = 32853 + [1655374218.458781][35023:35028] CHIP:DMG: Product Id = 32854 + [1655374218.458818][35023:35028] CHIP:DMG: Product Id = 32855 + [1655374218.458856][35023:35028] CHIP:DMG: Product Id = 32856 + [1655374218.458893][35023:35028] CHIP:DMG: Product Id = 32857 + [1655374218.458932][35023:35028] CHIP:DMG: Product Id = 32858 + [1655374218.458969][35023:35028] CHIP:DMG: Product Id = 32859 + [1655374218.459007][35023:35028] CHIP:DMG: Product Id = 32860 + [1655374218.459045][35023:35028] CHIP:DMG: Product Id = 32861 + [1655374218.459082][35023:35028] CHIP:DMG: Product Id = 32862 + [1655374218.459120][35023:35028] CHIP:DMG: Product Id = 32863 + [1655374218.459159][35023:35028] CHIP:DMG: Product Id = 32864 + [1655374218.459196][35023:35028] CHIP:DMG: Product Id = 32865 + [1655374218.459234][35023:35028] CHIP:DMG: Product Id = 32866 + [1655374218.459271][35023:35028] CHIP:DMG: Product Id = 32867 + [1655374218.459309][35023:35028] CHIP:DMG: } + [1655374218.459347][35023:35028] CHIP:DMG: Device Type Id = 22 + [1655374218.459390][35023:35028] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655374218.459430][35023:35028] CHIP:DMG: Security Level = 0 + [1655374218.459470][35023:35028] CHIP:DMG: Security Information = 0 + [1655374218.459508][35023:35028] CHIP:DMG: Version Number = 9876 + [1655374218.459546][35023:35028] CHIP:DMG: Certification Type = 0 + [1655374218.459584][35023:35028] CHIP:DMG: } + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } disabled: true - label: "TH1 sends AttestationRequest Command with a random 32 bytes - AttestationNonce to the DUT." + AttestationNonce` to the DUT." verification: | + Verify in TH log + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } disabled: true - label: - "TH1 sends CertificateChainRequest Command to DUT for both PAI and DAC" + "TH1 sends CertificateChainRequest Command with CertificateType field + set to DACCertificate (1) to DUT to obtain DAC" + verification: | + Verify in TH log: + + [1655374217.766326][35023:35028] CHIP:DMG: DAC/PAI (463) = + [1655374217.766373][35023:35028] CHIP:DMG: { + -----BEGIN CERTIFICATE----- + MIIByzCCAXGgAwIBAgIIVq2CIq2UW2QwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP + TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjAyMDUw + MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowPTElMCMGA1UEAwwcTWF0dGVyIERldiBQ + QUkgMHhGRkYxIG5vIFBJRDEUMBIGCisGAQQBgqJ8AgEMBEZGRjEwWTATBgcqhkjO + PQIBBggqhkjOPQMBBwNCAARBmpMVwhc+DIyHbQPM/JRIUmR/f+xeUIL0BZko7KiU + xZQVEwmsYx5MsDOSr2hLC6+35ls7gWLC9Sv5MbjneqqCo2YwZDASBgNVHRMBAf8E + CDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUY1QOR/ZLHDjROISk + YtFsGV2P+zwwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGhcX4wCgYIKoZI + zj0EAwIDSAAwRQIhALLvJ/Sa6bUPuR7qyUxNC9u415KcbLiPrOUpNo0SBUwMAiBl + Xckrhr2QmIKmxiF3uCXX0F7b58Ivn+pxIg5+pwP4kQ== + -----END CERTIFICATE----- + disabled: true + + - label: "TH1 saves DAC certificate" verification: | - Verify that DUT sends CertificateChainResponse command with the Certificate Information to TH1 + See above disabled: true - - label: "TH1 saves DAC and the PAI certificates for future use" + - label: + "TH1 sends CertificateChainRequest Command with CertificateType field + set to PAICertificate (2) to DUT to obtain DAC" verification: | + Verify in TH log: + [1655374218.109922][35023:35028] CHIP:DMG: DAC/PAI (491) = + [1655374218.110041][35023:35028] CHIP:DMG: { + -----BEGIN CERTIFICATE----- + MIIB5zCCAY6gAwIBAgIIac3xDenlTtEwCgYIKoZIzj0EAwIwPTElMCMGA1UEAwwc + TWF0dGVyIERldiBQQUkgMHhGRkYxIG5vIFBJRDEUMBIGCisGAQQBgqJ8AgEMBEZG + RjEwIBcNMjIwMjA1MDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMFMxJTAjBgNVBAMM + HE1hdHRlciBEZXYgREFDIDB4RkZGMS8weDgwMDExFDASBgorBgEEAYKifAIBDARG + RkYxMRQwEgYKKwYBBAGConwCAgwEODAwMTBZMBMGByqGSM49AgEGCCqGSM49AwEH + A0IABEY6xpNCkQoOVYj8b/Vrtj5i7M7LFI99TrA+5VJgFBV2fRalxmP3k+SRIyYL + gpenzX58/HsxaznZjpDSk3dzjoKjYDBeMAwGA1UdEwEB/wQCMAAwDgYDVR0PAQH/ + BAQDAgeAMB0GA1UdDgQWBBSI3eezADgpMs/3NMBGJIEPRBaKbzAfBgNVHSMEGDAW + gBRjVA5H9kscONE4hKRi0WwZXY/7PDAKBggqhkjOPQQDAgNHADBEAiABJ6J7S0Rh + DuL83E0reIVWNmC8D3bxchntagjfsrPBzQIga1ngr0Xz6yqFuRnTVzFSjGAoxBUj + lUXhCOTlTnCXE1M= + -----END CERTIFICATE----- + disabled: true + + - label: "TH1 saves PAI certificate" + verification: | + See above + disabled: true + + - label: + "TH1 Reads the VendorID attribute of the Basic Information cluster and + saves it as basic_info_vendor_id" + verification: | + ./chip-tool basic read vendor-id 1 0 + [1654068802.514300][10990:10995] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0002 DataVersion: 2079473956 + [1654068802.514357][10990:10995] CHIP:TOO: VendorID: 65521 + [1654068802.514447][10990:10995] CHIP:EM: Sending Standalone Ack for MessageCounter:5573281 on exchange 17510i + disabled: true + + - label: + "TH1 Reads the ProductID attribute of the Basic Information cluster + and saves it as basic_info_product_id" + verification: | + ./chip-tool basic read product-id 1 0 + + [1654068987.385768][11050:11055] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0004 DataVersion: 2079473956 + [1654068987.385820][11050:11055] CHIP:TOO: ProductID: 32769 + [1654068987.385908][11050:11055] CHIP:EM: Sending Standalone Ack for MessageCounter:7653435 on exchange 20545i disabled: true - label: "Extract the attestation_elements_message structure fields from the AttestationResponse Command received by TH1 from DUT" verification: | + Verify in TH log + [1655374218.453303][35023:35028] CHIP:DMG: Attestation Elements (585 bytes) = + [1655374218.453366][35023:35028] CHIP:DMG: { + [1655374218.453431][35023:35028] CHIP:DMG: Certification Declaration = + [1655374218.453483][35023:35028] CHIP:DMG: { + [1655374218.455342][35023:35028] CHIP:DMG: Format Version = 1 + [1655374218.455398][35023:35028] CHIP:DMG: Vendor Id = 65521 + [1655374218.455438][35023:35028] CHIP:DMG: Product Ids = + [1655374218.455474][35023:35028] CHIP:DMG: { + [1655374218.455512][35023:35028] CHIP:DMG: Product Id = 32768 + [1655374218.455552][35023:35028] CHIP:DMG: Product Id = 32769 + [1655374218.455590][35023:35028] CHIP:DMG: Product Id = 32770 + [1655374218.455628][35023:35028] CHIP:DMG: Product Id = 32771 + [1655374218.455666][35023:35028] CHIP:DMG: Product Id = 32772 + [1655374218.455704][35023:35028] CHIP:DMG: Product Id = 32773 + [1655374218.455742][35023:35028] CHIP:DMG: Product Id = 32774 + [1655374218.455780][35023:35028] CHIP:DMG: Product Id = 32775 + [1655374218.455818][35023:35028] CHIP:DMG: Product Id = 32776 + [1655374218.455855][35023:35028] CHIP:DMG: Product Id = 32777 + [1655374218.455893][35023:35028] CHIP:DMG: Product Id = 32778 + [1655374218.455931][35023:35028] CHIP:DMG: Product Id = 32779 + [1655374218.455969][35023:35028] CHIP:DMG: Product Id = 32780 + [1655374218.456007][35023:35028] CHIP:DMG: Product Id = 32781 + [1655374218.456045][35023:35028] CHIP:DMG: Product Id = 32782 + [1655374218.456082][35023:35028] CHIP:DMG: Product Id = 32783 + [1655374218.456120][35023:35028] CHIP:DMG: Product Id = 32784 + [1655374218.456158][35023:35028] CHIP:DMG: Product Id = 32785 + [1655374218.456196][35023:35028] CHIP:DMG: Product Id = 32786 + [1655374218.456234][35023:35028] CHIP:DMG: Product Id = 32787 + [1655374218.456271][35023:35028] CHIP:DMG: Product Id = 32788 + [1655374218.456309][35023:35028] CHIP:DMG: Product Id = 32789 + [1655374218.456347][35023:35028] CHIP:DMG: Product Id = 32790 + [1655374218.456385][35023:35028] CHIP:DMG: Product Id = 32791 + [1655374218.456423][35023:35028] CHIP:DMG: Product Id = 32792 + [1655374218.456461][35023:35028] CHIP:DMG: Product Id = 32793 + [1655374218.456498][35023:35028] CHIP:DMG: Product Id = 32794 + [1655374218.456536][35023:35028] CHIP:DMG: Product Id = 32795 + [1655374218.456573][35023:35028] CHIP:DMG: Product Id = 32796 + [1655374218.456611][35023:35028] CHIP:DMG: Product Id = 32797 + [1655374218.456649][35023:35028] CHIP:DMG: Product Id = 32798 + [1655374218.456687][35023:35028] CHIP:DMG: Product Id = 32799 + [1655374218.456724][35023:35028] CHIP:DMG: Product Id = 32800 + [1655374218.456761][35023:35028] CHIP:DMG: Product Id = 32801 + [1655374218.456799][35023:35028] CHIP:DMG: Product Id = 32802 + [1655374218.456836][35023:35028] CHIP:DMG: Product Id = 32803 + [1655374218.456874][35023:35028] CHIP:DMG: Product Id = 32804 + [1655374218.456912][35023:35028] CHIP:DMG: Product Id = 32805 + [1655374218.456949][35023:35028] CHIP:DMG: Product Id = 32806 + [1655374218.456987][35023:35028] CHIP:DMG: Product Id = 32807 + [1655374218.457024][35023:35028] CHIP:DMG: Product Id = 32808 + [1655374218.457061][35023:35028] CHIP:DMG: Product Id = 32809 + [1655374218.457099][35023:35028] CHIP:DMG: Product Id = 32810 + [1655374218.457138][35023:35028] CHIP:DMG: Product Id = 32811 + [1655374218.457175][35023:35028] CHIP:DMG: Product Id = 32812 + [1655374218.457212][35023:35028] CHIP:DMG: Product Id = 32813 + [1655374218.457250][35023:35028] CHIP:DMG: Product Id = 32814 + [1655374218.457288][35023:35028] CHIP:DMG: Product Id = 32815 + [1655374218.457326][35023:35028] CHIP:DMG: Product Id = 32816 + [1655374218.457363][35023:35028] CHIP:DMG: Product Id = 32817 + [1655374218.457401][35023:35028] CHIP:DMG: Product Id = 32818 + [1655374218.457439][35023:35028] CHIP:DMG: Product Id = 32819 + [1655374218.457476][35023:35028] CHIP:DMG: Product Id = 32820 + [1655374218.457514][35023:35028] CHIP:DMG: Product Id = 32821 + [1655374218.457552][35023:35028] CHIP:DMG: Product Id = 32822 + [1655374218.457590][35023:35028] CHIP:DMG: Product Id = 32823 + [1655374218.457627][35023:35028] CHIP:DMG: Product Id = 32824 + [1655374218.457665][35023:35028] CHIP:DMG: Product Id = 32825 + [1655374218.457702][35023:35028] CHIP:DMG: Product Id = 32826 + [1655374218.457740][35023:35028] CHIP:DMG: Product Id = 32827 + [1655374218.457777][35023:35028] CHIP:DMG: Product Id = 32828 + [1655374218.457833][35023:35028] CHIP:DMG: Product Id = 32829 + [1655374218.457874][35023:35028] CHIP:DMG: Product Id = 32830 + [1655374218.457912][35023:35028] CHIP:DMG: Product Id = 32831 + [1655374218.457950][35023:35028] CHIP:DMG: Product Id = 32832 + [1655374218.457987][35023:35028] CHIP:DMG: Product Id = 32833 + [1655374218.458026][35023:35028] CHIP:DMG: Product Id = 32834 + [1655374218.458063][35023:35028] CHIP:DMG: Product Id = 32835 + [1655374218.458101][35023:35028] CHIP:DMG: Product Id = 32836 + [1655374218.458139][35023:35028] CHIP:DMG: Product Id = 32837 + [1655374218.458177][35023:35028] CHIP:DMG: Product Id = 32838 + [1655374218.458215][35023:35028] CHIP:DMG: Product Id = 32839 + [1655374218.458253][35023:35028] CHIP:DMG: Product Id = 32840 + [1655374218.458291][35023:35028] CHIP:DMG: Product Id = 32841 + [1655374218.458328][35023:35028] CHIP:DMG: Product Id = 32842 + [1655374218.458366][35023:35028] CHIP:DMG: Product Id = 32843 + [1655374218.458404][35023:35028] CHIP:DMG: Product Id = 32844 + [1655374218.458441][35023:35028] CHIP:DMG: Product Id = 32845 + [1655374218.458480][35023:35028] CHIP:DMG: Product Id = 32846 + [1655374218.458517][35023:35028] CHIP:DMG: Product Id = 32847 + [1655374218.458555][35023:35028] CHIP:DMG: Product Id = 32848 + [1655374218.458592][35023:35028] CHIP:DMG: Product Id = 32849 + [1655374218.458630][35023:35028] CHIP:DMG: Product Id = 32850 + [1655374218.458667][35023:35028] CHIP:DMG: Product Id = 32851 + [1655374218.458706][35023:35028] CHIP:DMG: Product Id = 32852 + [1655374218.458743][35023:35028] CHIP:DMG: Product Id = 32853 + [1655374218.458781][35023:35028] CHIP:DMG: Product Id = 32854 + [1655374218.458818][35023:35028] CHIP:DMG: Product Id = 32855 + [1655374218.458856][35023:35028] CHIP:DMG: Product Id = 32856 + [1655374218.458893][35023:35028] CHIP:DMG: Product Id = 32857 + [1655374218.458932][35023:35028] CHIP:DMG: Product Id = 32858 + [1655374218.458969][35023:35028] CHIP:DMG: Product Id = 32859 + [1655374218.459007][35023:35028] CHIP:DMG: Product Id = 32860 + [1655374218.459045][35023:35028] CHIP:DMG: Product Id = 32861 + [1655374218.459082][35023:35028] CHIP:DMG: Product Id = 32862 + [1655374218.459120][35023:35028] CHIP:DMG: Product Id = 32863 + [1655374218.459159][35023:35028] CHIP:DMG: Product Id = 32864 + [1655374218.459196][35023:35028] CHIP:DMG: Product Id = 32865 + [1655374218.459234][35023:35028] CHIP:DMG: Product Id = 32866 + [1655374218.459271][35023:35028] CHIP:DMG: Product Id = 32867 + [1655374218.459309][35023:35028] CHIP:DMG: } + [1655374218.459347][35023:35028] CHIP:DMG: Device Type Id = 22 + [1655374218.459390][35023:35028] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655374218.459430][35023:35028] CHIP:DMG: Security Level = 0 + [1655374218.459470][35023:35028] CHIP:DMG: Security Information = 0 + [1655374218.459508][35023:35028] CHIP:DMG: Version Number = 9876 + [1655374218.459546][35023:35028] CHIP:DMG: Certification Type = 0 + [1655374218.459584][35023:35028] CHIP:DMG: } + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } + [1655374218.459732][35023:35028] CHIP:DMG: + [1655374218.459776][35023:35028] CHIP:DMG: + [1655374218.459846][35023:35028] CHIP:DMG: Additional Fields = + [1655374218.459884][35023:35028] CHIP:DMG: { + [1655374218.459924][35023:35028] CHIP:DMG: peer_address = BLE + [1655374218.459960][35023:35028] CHIP:DMG: } + [1655374218.459993][35023:35028] CHIP:DMG: + [1655374218.460045][35023:35028] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:224958145 on exchange 1302i + [1655374218.460090][35023:35028] CHIP:EM: Found matching exchange: 1302i, Delegate: 0xffff74005ab0 + [1655374218.460157][35023:35028] CHIP:DMG: ICR moving to [ResponseRe] + [1655374218.460220][35023:35028] CHIP:DMG: InvokeResponseMessage = + [1655374218.460260][35023:35028] CHIP:DMG: { + [1655374218.460298][35023:35028] CHIP:DMG: suppressResponse = false, + [1655374218.460338][35023:35028] CHIP:DMG: InvokeResponseIBs = + [1655374218.460390][35023:35028] CHIP:DMG: [ + [1655374218.460430][35023:35028] CHIP:DMG: InvokeResponseIB = + [1655374218.460487][35023:35028] CHIP:DMG: { + [1655374218.460530][35023:35028] CHIP:DMG: CommandDataIB = + [1655374218.460580][35023:35028] CHIP:DMG: { + [1655374218.460628][35023:35028] CHIP:DMG: CommandPathIB = + [1655374218.460686][35023:35028] CHIP:DMG: { + [1655374218.460745][35023:35028] CHIP:DMG: EndpointId = 0x0, + [1655374218.460802][35023:35028] CHIP:DMG: ClusterId = 0x3e, + [1655374218.460852][35023:35028] CHIP:DMG: CommandId = 0x1, + [1655374218.460906][35023:35028] CHIP:DMG: }, + [1655374218.460962][35023:35028] CHIP:DMG: + [1655374218.461010][35023:35028] CHIP:DMG: CommandFields = + [1655374218.461068][35023:35028] CHIP:DMG: { + [1655374218.461123][35023:35028] CHIP:DMG: 0x0 = [ + [1655374218.461351][35023:35028] CHIP:DMG: 0x15, 0x31, 0x1, 0x1d, 0x2, 0x30, 0x82, 0x2, 0x19, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0x2, 0xa, 0x30, 0x82, 0x2, 0x6, 0x2, 0x1, 0x3, 0x31, 0xd, 0x30, 0xb, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x30, 0x82, 0x1, 0x71, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x1, 0xa0, 0x82, 0x1, 0x62, 0x4, 0x82, 0x1, 0x5e, 0x15, 0x24, 0x0, 0x1, 0x25, 0x1, 0xf1, 0xff, 0x36, 0x2, 0x5, 0x0, 0x80, 0x5, 0x1, 0x80, 0x5, 0x2, 0x80, 0x5, 0x3, 0x80, 0x5, 0x4, 0x80, 0x5, 0x5, 0x80, 0x5, 0x6, 0x80, 0x5, 0x7, 0x80, 0x5, 0x8, 0x80, 0x5, 0x9, 0x80, 0x5, 0xa, 0x80, 0x5, 0xb, 0x80, 0x5, 0xc, 0x80, 0x5, 0xd, 0x80, 0x5, 0xe, 0x80, 0x5, 0xf, 0x80, 0x5, 0x10, 0x80, 0x5, 0x11, 0x80, 0x5, 0x12, 0x80, 0x5, 0x13, 0x80, 0x5, 0x14, 0x80, 0x5, 0x15, 0x80, 0x5, 0x16, 0x80, 0x5, 0x17, 0x80, 0x5, 0x18, 0x80, 0x5, 0x19, 0x80, 0x5, 0x1a, 0x80, 0x5, 0x1b, 0x80, 0x5, 0x1c, 0x80, 0x5, 0x1d, 0x80, 0x5, 0x1e, 0x80, 0x5, 0x1f, 0x80, 0x5, 0x20, 0x80, 0x5, 0x21, 0x80, 0x5, 0x22, 0x80, 0x5, 0x23, 0x80, 0x5, 0x24, 0x80, 0x5, 0x25, 0x80, 0x5, 0x26, 0x80, 0x5, 0x27, 0x80, 0x5, 0x28, 0x80, 0x5, 0x29, 0x80, 0x5, 0x2a, 0x80, 0x5, 0x2b, 0x80, 0x5, 0x2c, 0x80, 0x5, 0x2d, 0x80, 0x5, 0x2e, 0x80, 0x5, 0x2f, 0x80, 0x5, 0x30, 0x80, 0x5, 0x31, 0x80, 0x5, 0x32, 0x80, 0x5, 0x33, 0x80, 0x5, 0x34, 0x80, 0x5, 0x35, 0x80, 0x5, 0x36, 0x80, 0x5, 0x37, 0x80, 0x5, 0x38, 0x80, 0x5, 0x39, 0x80, 0x5, 0x3a, 0x80, 0x5, 0x3b, 0x80, 0x5, 0x3c, 0x80, 0x5, 0x3d, 0x80, 0x5, 0x3e, 0x80, 0x5, 0x3f, 0x80, 0x5, 0x40, 0x80, 0x5, 0x41, 0x80, 0x5, 0x42, 0x80, 0x5, 0x43, 0x80, 0x5, 0x44, 0x80, 0x5, 0x45, 0x80, 0x5, 0x46, 0x80, 0x5, 0x47, 0x80, 0x5, 0x48, 0x80, 0x5, 0x49, 0x80, 0x5, 0x4a, 0x80, 0x5, 0x + [1655374218.461469][35023:35028] CHIP:DMG: ] + [1655374218.461523][35023:35028] CHIP:DMG: 0x1 = [ + [1655374218.461611][35023:35028] CHIP:DMG: 0xd6, 0x91, 0x3d, 0x0, 0x37, 0xd3, 0x23, 0x11, 0xa9, 0xe6, 0x23, 0xe3, 0xb0, 0x80, 0x27, 0x71, 0xc2, 0xb1, 0xdc, 0xe1, 0xb8, 0x95, 0x7c, 0x88, 0x92, 0xc6, 0x84, 0xe4, 0x21, 0xa2, 0x87, 0x22, 0x6d, 0xeb, 0x42, 0x82, 0x67, 0xe0, 0x9c, 0x17, 0xb1, 0x1c, 0x1, 0xff, 0x8b, 0xff, 0x23, 0x47, 0xc4, 0xe7, 0x6, 0x1d, 0x8f, 0x1e, 0x26, 0x8e, 0xad, 0xbd, 0xc9, 0x9e, 0x23, 0x88, 0xdb, 0xb6, + [1655374218.461681][35023:35028] CHIP:DMG: ] + [1655374218.461733][35023:35028] CHIP:DMG: }, + [1655374218.461783][35023:35028] CHIP:DMG: }, + [1655374218.461855][35023:35028] CHIP:DMG: + [1655374218.461900][35023:35028] CHIP:DMG: }, + [1655374218.461951][35023:35028] CHIP:DMG: + [1655374218.461990][35023:35028] CHIP:DMG: ], + [1655374218.462041][35023:35028] CHIP:DMG: + [1655374218.462080][35023:35028] CHIP:DMG: InteractionModelRevision = 1 + [1655374218.462118][35023:35028] CHIP:DMG: }, + [1655374218.462220][35023:35028] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0001 + [1655374218.462275][35023:35028] CHIP:CTL: Received Attestation Information from the device + [1655374218.462320][35023:35028] CHIP:CTL: Successfully finished commissioning step 'SendAttestationRequest' + [ disabled: true - label: "Read the attestation_elements_message structure fields" @@ -62,12 +437,79 @@ tests: "TH1 sends AttestationRequestCommand with Invalid AttestationNonce (size> 32 bytes) as the field to the DUT." verification: | - Verify that the DUT reports an error + ./chip-tool operationalcredentials attestation-request 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466A16AD43DCEC24C2466 1 0 + + [1655984597.150863][23339:23344] CHIP:DMG: InvokeResponseMessage = + [1655984597.150923][23339:23344] CHIP:DMG: { + [1655984597.150981][23339:23344] CHIP:DMG: suppressResponse = false, + [1655984597.151042][23339:23344] CHIP:DMG: InvokeResponseIBs = + [1655984597.151117][23339:23344] CHIP:DMG: [ + [1655984597.151177][23339:23344] CHIP:DMG: InvokeResponseIB = + [1655984597.151255][23339:23344] CHIP:DMG: { + [1655984597.151318][23339:23344] CHIP:DMG: CommandStatusIB = + [1655984597.151404][23339:23344] CHIP:DMG: { + [1655984597.151475][23339:23344] CHIP:DMG: CommandPathIB = + [1655984597.151561][23339:23344] CHIP:DMG: { + [1655984597.151644][23339:23344] CHIP:DMG: EndpointId = 0x0, + [1655984597.151729][23339:23344] CHIP:DMG: ClusterId = 0x3e, + [1655984597.151812][23339:23344] CHIP:DMG: CommandId = 0x0, + [1655984597.151890][23339:23344] CHIP:DMG: }, + [1655984597.151978][23339:23344] CHIP:DMG: + [1655984597.152050][23339:23344] CHIP:DMG: StatusIB = + [1655984597.152127][23339:23344] CHIP:DMG: { + [1655984597.152216][23339:23344] CHIP:DMG: status = 0x85 (INVALID_COMMAND), + [1655984597.152297][23339:23344] CHIP:DMG: }, + [1655984597.152377][23339:23344] CHIP:DMG: + [1655984597.152449][23339:23344] CHIP:DMG: }, + [1655984597.152527][23339:23344] CHIP:DMG: + [1655984597.152593][23339:23344] CHIP:DMG: }, + [1655984597.152666][23339:23344] CHIP:DMG: + [1655984597.152723][23339:23344] CHIP:DMG: ], + [1655984597.152794][23339:23344] CHIP:DMG: + [1655984597.152852][23339:23344] CHIP:DMG: InteractionModelRevision = 1 + [1655984597.152908][23339:23344] CHIP:DMG: }, + [1655984597.153037][23339:23344] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003E Command=0x0000_0000 Status=0x85 + [1655984597.153112][23339:23344] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) + [1655984597.153256][23339:23344] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: "TH1 sends AttestationRequestCommand with invalid AttestationNonce (size < 32 bytes) as the field to the DUT." verification: | - Verify that the DUT reports an error + ./chip-tool operationalcredentials attestation-request 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A1 1 0 + + + [1655984597.150863][23339:23344] CHIP:DMG: InvokeResponseMessage = + [1655984597.150923][23339:23344] CHIP:DMG: { + [1655984597.150981][23339:23344] CHIP:DMG: suppressResponse = false, + [1655984597.151042][23339:23344] CHIP:DMG: InvokeResponseIBs = + [1655984597.151117][23339:23344] CHIP:DMG: [ + [1655984597.151177][23339:23344] CHIP:DMG: InvokeResponseIB = + [1655984597.151255][23339:23344] CHIP:DMG: { + [1655984597.151318][23339:23344] CHIP:DMG: CommandStatusIB = + [1655984597.151404][23339:23344] CHIP:DMG: { + [1655984597.151475][23339:23344] CHIP:DMG: CommandPathIB = + [1655984597.151561][23339:23344] CHIP:DMG: { + [1655984597.151644][23339:23344] CHIP:DMG: EndpointId = 0x0, + [1655984597.151729][23339:23344] CHIP:DMG: ClusterId = 0x3e, + [1655984597.151812][23339:23344] CHIP:DMG: CommandId = 0x0, + [1655984597.151890][23339:23344] CHIP:DMG: }, + [1655984597.151978][23339:23344] CHIP:DMG: + [1655984597.152050][23339:23344] CHIP:DMG: StatusIB = + [1655984597.152127][23339:23344] CHIP:DMG: { + [1655984597.152216][23339:23344] CHIP:DMG: status = 0x85 (INVALID_COMMAND), + [1655984597.152297][23339:23344] CHIP:DMG: }, + [1655984597.152377][23339:23344] CHIP:DMG: + [1655984597.152449][23339:23344] CHIP:DMG: }, + [1655984597.152527][23339:23344] CHIP:DMG: + [1655984597.152593][23339:23344] CHIP:DMG: }, + [1655984597.152666][23339:23344] CHIP:DMG: + [1655984597.152723][23339:23344] CHIP:DMG: ], + [1655984597.152794][23339:23344] CHIP:DMG: + [1655984597.152852][23339:23344] CHIP:DMG: InteractionModelRevision = 1 + [1655984597.152908][23339:23344] CHIP:DMG: }, + [1655984597.153037][23339:23344] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003E Command=0x0000_0000 Status=0x85 + [1655984597.153112][23339:23344] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) + [1655984597.153256][23339:23344] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DA_1_3.yaml b/src/app/tests/suites/certification/Test_TC_DA_1_3.yaml index 5b8998edb64b45..58b036e53212c6 100644 --- a/src/app/tests/suites/certification/Test_TC_DA_1_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_DA_1_3.yaml @@ -13,7 +13,9 @@ # 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: 16.3. [TC-DA-1.3] Device Attestation Request Validation [DUT Commissioner] +name: + 4.1.3. [TC-DA-1.3] Device Attestation Request Validation [DUT - + Commissioner] config: nodeId: 0x12344321 @@ -21,53 +23,698 @@ config: endpoint: 0 tests: - - label: "DUT generates 32-byte AttestationNonce" + - label: "Start the commissioning process of TH1 on DUT" verification: | - DUT send Attestation request command with attesation nonce to the reference App (lighting app or all-cluster-app) + DUT side: + sudo ./chip-all-clusters-app --wifi + + TH side: + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1 + + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success disabled: true - - label: "Save the AttestationNonce as Nonce1" + - label: "DUT generates 32-byte AttestationNonce" verification: | - + Verifu in TH log + [1655374218.117635][35023:35028] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655374218.117686][35023:35028] CHIP:DMG: ICR moving to [AwaitingDe] + [1655374218.204040][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655374218.252180][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.252405][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.352372][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.352509][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.450622][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.450870][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.452138][35023:35028] CHIP:DMG: << from BLE | 224958145 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 19710 / Exchange = 1302] + [1655374218.452241][35023:35028] CHIP:DMG: Header Flags = + [1655374218.452300][35023:35028] CHIP:DMG: { + [1655374218.452395][35023:35028] CHIP:DMG: } + [1655374218.452449][35023:35028] CHIP:DMG: + [1655374218.452521][35023:35028] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655374218.452579][35023:35028] CHIP:DMG: { + [1655374218.452634][35023:35028] CHIP:DMG: data = 00fe4c00c196680d30c5e98d35a6d844102a8b0067edba80e2adf97e28751f8353657dacb7c9706c2c22add28d18adca15378d16af57f0f4092893cfc5d3e85f6e409f70e39bcb9e0bd3397947e927d20e5bf5173e3def7218d0152cf40e7cb16db615efbd282fd6e84c710bd2c7441228eb5dbbcf0dc76a3eaa0b04655f434d3c8223c7016703b8082c9984c3a91432d12271c87f4d09e90cb6e78d07c81d6359cd5a756f2bace60a7a216896949b536e5583f22db64aeae0279ba2fd279813be383e4324ab63472e3d9877f6c9fa539e577dc50fbcc5a7124a14ea78abdd6ada4ec256a3ee0a242747d636215ffab3c8b4291023eb51b3701939e153912b0f5764479b05e1cf472c350304d1ead872295c80fed3a545530f773e729b6f7bd7d5547de03076a72b8855191beb12d8194477bc9798b6177557cccf3b11b2c1f82cee31d451408359650112394dc2c1592cd2eb1e75881aa340885e65ef9a9905947842574ddcac832d68188b0a3a20fb223258d766692b13a6cde0de34d4f9047046d38ad94caf0a9cc7a786c082d5ae8c62346d69684c6ed5ae958ab68c0685922751ff04d922a838c9d2257a7af6e72af524b459a45ea6311431d30c7de32b3d79581ac119d6e7f63a877b53fda9d69256c5870f2af36f74e08b22e1217a0324b772394a4a596ff237331c623b8d7746077826088dddd2a741f19011cde09f1e897f92ac975fd9a157de0b780f6551b11a50ffe12c781f304dbda9dd75465fb3a8ec52d30f7ddb9179f1b9dfe415ae2d66a53bad67bcf27b3351b8a5cdc9e8b54095c81774007237c8a14a3e2c9cf350616cf5ebf7f6ae5a8c77207924b0e1cddc6c7e77c2a514319947c5988af1dd77325259f496293e53041941d45a1355f56b8036008ab696f7d47d17f9fc4890aa78c2811560b7b4d79a460b7dcd3d9bc3bdd5f72d27bb0060f722aa9c22e7d635895404c832bf2371321d1ababa954482c847fedd0d4676bd188365 + [1655374218.452884][35023:35028] CHIP:DMG: buffer_ptr = 281472627984864 + [1655374218.452941][35023:35028] CHIP:DMG: } + [1655374218.452992][35023:35028] CHIP:DMG: + [1655374218.453303][35023:35028] CHIP:DMG: Attestation Elements (585 bytes) = + [1655374218.453366][35023:35028] CHIP:DMG: { + [1655374218.453431][35023:35028] CHIP:DMG: Certification Declaration = + [1655374218.453483][35023:35028] CHIP:DMG: { + [1655374218.455342][35023:35028] CHIP:DMG: Format Version = 1 + [1655374218.455398][35023:35028] CHIP:DMG: Vendor Id = 65521 + [1655374218.455438][35023:35028] CHIP:DMG: Product Ids = + [1655374218.455474][35023:35028] CHIP:DMG: { + [1655374218.455512][35023:35028] CHIP:DMG: Product Id = 32768 + [1655374218.455552][35023:35028] CHIP:DMG: Product Id = 32769 + [1655374218.455590][35023:35028] CHIP:DMG: Product Id = 32770 + [1655374218.455628][35023:35028] CHIP:DMG: Product Id = 32771 + [1655374218.455666][35023:35028] CHIP:DMG: Product Id = 32772 + [1655374218.455704][35023:35028] CHIP:DMG: Product Id = 32773 + [1655374218.455742][35023:35028] CHIP:DMG: Product Id = 32774 + [1655374218.455780][35023:35028] CHIP:DMG: Product Id = 32775 + [1655374218.455818][35023:35028] CHIP:DMG: Product Id = 32776 + [1655374218.455855][35023:35028] CHIP:DMG: Product Id = 32777 + [1655374218.455893][35023:35028] CHIP:DMG: Product Id = 32778 + [1655374218.455931][35023:35028] CHIP:DMG: Product Id = 32779 + [1655374218.455969][35023:35028] CHIP:DMG: Product Id = 32780 + [1655374218.456007][35023:35028] CHIP:DMG: Product Id = 32781 + [1655374218.456045][35023:35028] CHIP:DMG: Product Id = 32782 + [1655374218.456082][35023:35028] CHIP:DMG: Product Id = 32783 + [1655374218.456120][35023:35028] CHIP:DMG: Product Id = 32784 + [1655374218.456158][35023:35028] CHIP:DMG: Product Id = 32785 + [1655374218.456196][35023:35028] CHIP:DMG: Product Id = 32786 + [1655374218.456234][35023:35028] CHIP:DMG: Product Id = 32787 + [1655374218.456271][35023:35028] CHIP:DMG: Product Id = 32788 + [1655374218.456309][35023:35028] CHIP:DMG: Product Id = 32789 + [1655374218.456347][35023:35028] CHIP:DMG: Product Id = 32790 + [1655374218.456385][35023:35028] CHIP:DMG: Product Id = 32791 + [1655374218.456423][35023:35028] CHIP:DMG: Product Id = 32792 + [1655374218.456461][35023:35028] CHIP:DMG: Product Id = 32793 + [1655374218.456498][35023:35028] CHIP:DMG: Product Id = 32794 + [1655374218.456536][35023:35028] CHIP:DMG: Product Id = 32795 + [1655374218.456573][35023:35028] CHIP:DMG: Product Id = 32796 + [1655374218.456611][35023:35028] CHIP:DMG: Product Id = 32797 + [1655374218.456649][35023:35028] CHIP:DMG: Product Id = 32798 + [1655374218.456687][35023:35028] CHIP:DMG: Product Id = 32799 + [1655374218.456724][35023:35028] CHIP:DMG: Product Id = 32800 + [1655374218.456761][35023:35028] CHIP:DMG: Product Id = 32801 + [1655374218.456799][35023:35028] CHIP:DMG: Product Id = 32802 + [1655374218.456836][35023:35028] CHIP:DMG: Product Id = 32803 + [1655374218.456874][35023:35028] CHIP:DMG: Product Id = 32804 + [1655374218.456912][35023:35028] CHIP:DMG: Product Id = 32805 + [1655374218.456949][35023:35028] CHIP:DMG: Product Id = 32806 + [1655374218.456987][35023:35028] CHIP:DMG: Product Id = 32807 + [1655374218.457024][35023:35028] CHIP:DMG: Product Id = 32808 + [1655374218.457061][35023:35028] CHIP:DMG: Product Id = 32809 + [1655374218.457099][35023:35028] CHIP:DMG: Product Id = 32810 + [1655374218.457138][35023:35028] CHIP:DMG: Product Id = 32811 + [1655374218.457175][35023:35028] CHIP:DMG: Product Id = 32812 + [1655374218.457212][35023:35028] CHIP:DMG: Product Id = 32813 + [1655374218.457250][35023:35028] CHIP:DMG: Product Id = 32814 + [1655374218.457288][35023:35028] CHIP:DMG: Product Id = 32815 + [1655374218.457326][35023:35028] CHIP:DMG: Product Id = 32816 + [1655374218.457363][35023:35028] CHIP:DMG: Product Id = 32817 + [1655374218.457401][35023:35028] CHIP:DMG: Product Id = 32818 + [1655374218.457439][35023:35028] CHIP:DMG: Product Id = 32819 + [1655374218.457476][35023:35028] CHIP:DMG: Product Id = 32820 + [1655374218.457514][35023:35028] CHIP:DMG: Product Id = 32821 + [1655374218.457552][35023:35028] CHIP:DMG: Product Id = 32822 + [1655374218.457590][35023:35028] CHIP:DMG: Product Id = 32823 + [1655374218.457627][35023:35028] CHIP:DMG: Product Id = 32824 + [1655374218.457665][35023:35028] CHIP:DMG: Product Id = 32825 + [1655374218.457702][35023:35028] CHIP:DMG: Product Id = 32826 + [1655374218.457740][35023:35028] CHIP:DMG: Product Id = 32827 + [1655374218.457777][35023:35028] CHIP:DMG: Product Id = 32828 + [1655374218.457833][35023:35028] CHIP:DMG: Product Id = 32829 + [1655374218.457874][35023:35028] CHIP:DMG: Product Id = 32830 + [1655374218.457912][35023:35028] CHIP:DMG: Product Id = 32831 + [1655374218.457950][35023:35028] CHIP:DMG: Product Id = 32832 + [1655374218.457987][35023:35028] CHIP:DMG: Product Id = 32833 + [1655374218.458026][35023:35028] CHIP:DMG: Product Id = 32834 + [1655374218.458063][35023:35028] CHIP:DMG: Product Id = 32835 + [1655374218.458101][35023:35028] CHIP:DMG: Product Id = 32836 + [1655374218.458139][35023:35028] CHIP:DMG: Product Id = 32837 + [1655374218.458177][35023:35028] CHIP:DMG: Product Id = 32838 + [1655374218.458215][35023:35028] CHIP:DMG: Product Id = 32839 + [1655374218.458253][35023:35028] CHIP:DMG: Product Id = 32840 + [1655374218.458291][35023:35028] CHIP:DMG: Product Id = 32841 + [1655374218.458328][35023:35028] CHIP:DMG: Product Id = 32842 + [1655374218.458366][35023:35028] CHIP:DMG: Product Id = 32843 + [1655374218.458404][35023:35028] CHIP:DMG: Product Id = 32844 + [1655374218.458441][35023:35028] CHIP:DMG: Product Id = 32845 + [1655374218.458480][35023:35028] CHIP:DMG: Product Id = 32846 + [1655374218.458517][35023:35028] CHIP:DMG: Product Id = 32847 + [1655374218.458555][35023:35028] CHIP:DMG: Product Id = 32848 + [1655374218.458592][35023:35028] CHIP:DMG: Product Id = 32849 + [1655374218.458630][35023:35028] CHIP:DMG: Product Id = 32850 + [1655374218.458667][35023:35028] CHIP:DMG: Product Id = 32851 + [1655374218.458706][35023:35028] CHIP:DMG: Product Id = 32852 + [1655374218.458743][35023:35028] CHIP:DMG: Product Id = 32853 + [1655374218.458781][35023:35028] CHIP:DMG: Product Id = 32854 + [1655374218.458818][35023:35028] CHIP:DMG: Product Id = 32855 + [1655374218.458856][35023:35028] CHIP:DMG: Product Id = 32856 + [1655374218.458893][35023:35028] CHIP:DMG: Product Id = 32857 + [1655374218.458932][35023:35028] CHIP:DMG: Product Id = 32858 + [1655374218.458969][35023:35028] CHIP:DMG: Product Id = 32859 + [1655374218.459007][35023:35028] CHIP:DMG: Product Id = 32860 + [1655374218.459045][35023:35028] CHIP:DMG: Product Id = 32861 + [1655374218.459082][35023:35028] CHIP:DMG: Product Id = 32862 + [1655374218.459120][35023:35028] CHIP:DMG: Product Id = 32863 + [1655374218.459159][35023:35028] CHIP:DMG: Product Id = 32864 + [1655374218.459196][35023:35028] CHIP:DMG: Product Id = 32865 + [1655374218.459234][35023:35028] CHIP:DMG: Product Id = 32866 + [1655374218.459271][35023:35028] CHIP:DMG: Product Id = 32867 + [1655374218.459309][35023:35028] CHIP:DMG: } + [1655374218.459347][35023:35028] CHIP:DMG: Device Type Id = 22 + [1655374218.459390][35023:35028] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655374218.459430][35023:35028] CHIP:DMG: Security Level = 0 + [1655374218.459470][35023:35028] CHIP:DMG: Security Information = 0 + [1655374218.459508][35023:35028] CHIP:DMG: Version Number = 9876 + [1655374218.459546][35023:35028] CHIP:DMG: Certification Type = 0 + [1655374218.459584][35023:35028] CHIP:DMG: } + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } disabled: true - label: "DUT sends AttestationRequest Command with AttestationNonce as field to the TH1." verification: | - Compare the attesation nonce received in the AttestationResposne is same as the one sent in Attesation Request + Verify in TH log + + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } disabled: true - - label: "DUT generates 32-byte AttestationNonce for second time" + - label: + "TH1 records the AttestationNonce received in AttestationRequest as + Nonce_1" verification: | - + See above disabled: true - - label: "Save the AttestationNonce as Nonce2" + - label: "TH1 responds with a well-formed AttestationResponse Command" verification: | - Verify that the values of Nonce1 and Nonce2 are different + Verify in TH log: + + 'SendDACCertificateRequest' -> 'SendAttestationRequest' + [1655979686.298628][22876:22881] CHIP:CTL: Performing next commissioning step 'SendAttestationRequest' + [1655979686.298679][22876:22881] CHIP:CTL: Sending Attestation Request to the device. + [1655979686.298730][22876:22881] CHIP:CTL: Sending Attestation request to 0xffff9c000b60 device + [1655979686.298850][22876:22881] CHIP:DMG: ICR moving to [AddingComm] + [1655979686.298922][22876:22881] CHIP:DMG: ICR moving to [AddedComma] + [1655979686.299422][22876:22881] CHIP:IN: Prepared secure message 0xffffb22c8958 to 0xFFFFFFFB00000000 (0) of type 0x8 and protocolId (0, 1) on exchange 35315i with MessageCounter:234566666. + [1655979686.299520][22876:22881] CHIP:IN: Sending encrypted msg 0xffffb22c8958 with MessageCounter:234566666 to 0xFFFFFFFB00000000 (0) at monotonic time: 000000000648827A msec + [1655979686.299982][22876:22881] CHIP:DMG: >> to BLE | 234566666 | [Interaction Model (1) / InvokeCommandRequest (0x08) / Session = 62649 / Exchange = 35315] + [1655979686.300073][22876:22881] CHIP:DMG: Header Flags = + [1655979686.300133][22876:22881] CHIP:DMG: { + [1655979686.300216][22876:22881] CHIP:DMG: Exchange (0x01) = + [1655979686.300270][22876:22881] CHIP:DMG: { + [1655979686.300319][22876:22881] CHIP:DMG: Initiator = true + [1655979686.300371][22876:22881] CHIP:DMG: } + [1655979686.300439][22876:22881] CHIP:DMG: } + [1655979686.300492][22876:22881] CHIP:DMG: + [1655979686.300557][22876:22881] CHIP:DMG: Encrypted Payload (94 bytes) = + [1655979686.300610][22876:22881] CHIP:DMG: { + [1655979686.300662][22876:22881] CHIP:DMG: data = 00b9f4000a34fb0d54a953a30ca458bf899535f272656bf0051b3b0b830191d861e602260d9a5143b4159c1d7db8c2aeabea67d3647d200006758c67bdc6b5df5972310a5d5fa7c480062972692e785cb333f9c881525c98d8900a5489c4 + [1655979686.300717][22876:22881] CHIP:DMG: buffer_ptr = 281473299056208 + [1655979686.300768][22876:22881] CHIP:DMG: } + [1655979686.300817][22876:22881] CHIP:DMG: + [1655979686.300969][22876:22881] CHIP:DMG: InvokeRequestMessage = + [1655979686.301032][22876:22881] CHIP:DMG: { + [1655979686.301088][22876:22881] CHIP:DMG: suppressResponse = false, + [1655979686.301151][22876:22881] CHIP:DMG: timedRequest = false, + [1655979686.301247][22876:22881] CHIP:DMG: InvokeRequests = + [1655979686.301323][22876:22881] CHIP:DMG: [ + [1655979686.301382][22876:22881] CHIP:DMG: CommandDataIB = + [1655979686.301455][22876:22881] CHIP:DMG: { + [1655979686.301521][22876:22881] CHIP:DMG: CommandPathIB = + [1655979686.301597][22876:22881] CHIP:DMG: { + [1655979686.301669][22876:22881] CHIP:DMG: EndpointId = 0x0, + [1655979686.301750][22876:22881] CHIP:DMG: ClusterId = 0x3e, + [1655979686.301828][22876:22881] CHIP:DMG: CommandId = 0x0, + [1655979686.301900][22876:22881] CHIP:DMG: }, + [1655979686.301972][22876:22881] CHIP:DMG: + [1655979686.302040][22876:22881] CHIP:DMG: CommandFields = + [1655979686.302115][22876:22881] CHIP:DMG: { + [1655979686.302198][22876:22881] CHIP:DMG: 0x0 = [ + [1655979686.302295][22876:22881] CHIP:DMG: 0xa2, 0x7a, 0xbc, 0xfc, 0xeb, 0x61, 0xa2, 0xf4, 0x3e, 0x76, 0xcb, 0x9, 0x5d, 0x64, 0x7e, 0x13, 0x91, 0x94, 0xe2, 0x16, 0xe3, 0xd6, 0x90, 0x79, 0xbd, 0x8a, 0xf, 0xfd, 0xda, 0x58, 0x38, 0x6b, + [1655979686.302386][22876:22881] CHIP:DMG: ] + [1655979686.302466][22876:22881] CHIP:DMG: }, + [1655979686.302536][22876:22881] CHIP:DMG: }, + [1655979686.302612][22876:22881] CHIP:DMG: + [1655979686.302670][22876:22881] CHIP:DMG: ], + [1655979686.302741][22876:22881] CHIP:DMG: + [1655979686.302800][22876:22881] CHIP:DMG: InteractionModelRevision = 1 + [1655979686.302856][22876:22881] CHIP:DMG: }, + [1655979686.302911][22876:22881] CHIP:DMG: + [1655979686.303153][22876:22881] CHIP:DMG: ICR moving to [CommandSen] + [1655979686.303226][22876:22881] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655979686.303327][22876:22881] CHIP:DMG: ICR moving to [AwaitingDe] + [1655979686.388892][22876:22881] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655979686.437235][22876:22879] CHIP:DL: Indication received, conn = 0xffffa806f3f0 + [1655979686.437904][22876:22881] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655979686.635272][22876:22879] CHIP:DL: Indication received, conn = 0xffffa806f3f0 + [1655979686.635523][22876:22881] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655979686.732083][22876:22879] CHIP:DL: Indication received, conn = 0xffffa806f3f0 + [1655979686.732507][22876:22881] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655979686.733410][22876:22881] CHIP:DMG: << from BLE | 226447061 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 21486 / Exchange = 35315] + [1655979686.733478][22876:22881] CHIP:DMG: Header Flags = + [1655979686.733513][22876:22881] CHIP:DMG: { + [1655979686.733573][22876:22881] CHIP:DMG: } + [1655979686.733606][22876:22881] CHIP:DMG: + [1655979686.733652][22876:22881] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655979686.733685][22876:22881] CHIP:DMG: { + [1655979686.733718][22876:22881] CHIP:DMG: data = 00ee5300d54e7f0d5bf07943fb109abb6059e067ad0c66876bec0d70c165fcfa3d74ede74faeebf96c7ea54887ebba5d24c6498b240037896fb5a730262a6fe8aa049c1431a18ba7f70a20af03af064ae4f9817aa172762051ac880e69b73eba6d2ec3a3c0cbc209e19f650b9b1ba8f43c8087e105759946ae60124a18e85282099b371992664b450bc5bf410463798bf8ef4b4ab468c5732fedc9abda22ea5f598176116287754122aab594d0bd438a3974eb6bf7b0c9289e168a3c6c6ece8b45b83b41c4b700da215eff124ecdda14ebf42d0c6760f7dccfb0a4d889c08f133af4af162a5cfc7601aa4d4c99b0bd421d392ad3e352bbad3b43bea32a1dcd59082278387e5980fcadd9cef0615d4bf7fd3a9aa0329c6471f52df66d047e8bb1140aef05930688e6179aa27d2792ee41921a02c401a2df027799bbd66e7692cb71a854e455b0a4b51a08b983cd5322931605b04fbb10a90aec97e3e4313acd839aa7fb915cfd2a3de3ce65e76f8f06f947d3108543932483f7d2b1fa7c5e79fceea421c7cdda346872372994d2830e0666dc9b6acc71b5071ada4755203943b600a740c109622e8cdb866e22b60538d9f727a7a59fd2417787efcd2f741cd1571b84bf9561101efabf27ad8686231dd70ec427a305fcf6206e2c54e9e33755c529f6a52410f1feb70413f808bed7d46c2813a7877ccd18baf5668b9f7999ebb51c51ad3a8903dbe2c047c139a0b5cb67c1d7a8acd633425d26cb7846db4b8c13e546611af5472dbdf3d6768a3d5fa4c698f49f7e238af74debd7ca19722f679cfd4703201e7e604c95754d7491ca10969d1f7c1c04e1591f6f2d56fcc6ce2f17fec28cc20af9fc7f59a0dfbbd52033c7b5d165cc32974959497d213a94198787f9a17a78593b354357be1ab7bec050c32702496710f548e773dfcb13ce1f8a1b070be7192c45417710d08e407aee8d796900acf04c3b0cdf55847628c2374958346109f8ec8e010ee75617ac + [1655979686.733793][22876:22881] CHIP:DMG: buffer_ptr = 281473299067744 + [1655979686.733824][22876:22881] CHIP:DMG: } + [1655979686.733853][22876:22881] CHIP:DMG: + [1655979686.734050][22876:22881] CHIP:DMG: Attestation Elements (585 bytes) = + [1655979686.734090][22876:22881] CHIP:DMG: { + [1655979686.734122][22876:22881] CHIP:DMG: Certification Declaration = + [1655979686.734153][22876:22881] CHIP:DMG: { + [1655979686.735443][22876:22881] CHIP:DMG: Format Version = 1 + [1655979686.735503][22876:22881] CHIP:DMG: Vendor Id = 65521 + [1655979686.735540][22876:22881] CHIP:DMG: Product Ids = + [1655979686.735572][22876:22881] CHIP:DMG: { + [1655979686.735606][22876:22881] CHIP:DMG: Product Id = 32768 + [1655979686.735642][22876:22881] CHIP:DMG: Product Id = 32769 + [1655979686.735677][22876:22881] CHIP:DMG: Product Id = 32770 + [1655979686.735711][22876:22881] CHIP:DMG: Product Id = 32771 + [1655979686.735746][22876:22881] CHIP:DMG: Product Id = 32772 + [1655979686.735780][22876:22881] CHIP:DMG: Product Id = 32773 + [1655979686.735815][22876:22881] CHIP:DMG: Product Id = 32774 + [1655979686.735850][22876:22881] CHIP:DMG: Product Id = 32775 + [1655979686.735884][22876:22881] CHIP:DMG: Product Id = 32776 + [1655979686.735918][22876:22881] CHIP:DMG: Product Id = 32777 + [1655979686.735953][22876:22881] CHIP:DMG: Product Id = 32778 + [1655979686.735987][22876:22881] CHIP:DMG: Product Id = 32779 + [1655979686.736022][22876:22881] CHIP:DMG: Product Id = 32780 + [1655979686.736056][22876:22881] CHIP:DMG: Product Id = 32781 + [1655979686.736090][22876:22881] CHIP:DMG: Product Id = 32782 + [1655979686.736124][22876:22881] CHIP:DMG: Product Id = 32783 + [1655979686.736158][22876:22881] CHIP:DMG: Product Id = 32784 + [1655979686.736193][22876:22881] CHIP:DMG: Product Id = 32785 + [1655979686.736227][22876:22881] CHIP:DMG: Product Id = 32786 + [1655979686.736262][22876:22881] CHIP:DMG: Product Id = 32787 + [1655979686.736296][22876:22881] CHIP:DMG: Product Id = 32788 + [1655979686.736331][22876:22881] CHIP:DMG: Product Id = 32789 + [1655979686.736365][22876:22881] CHIP:DMG: Product Id = 32790 + [1655979686.736399][22876:22881] CHIP:DMG: Product Id = 32791 + [1655979686.736434][22876:22881] CHIP:DMG: Product Id = 32792 + [1655979686.736468][22876:22881] CHIP:DMG: Product Id = 32793 + [1655979686.736503][22876:22881] CHIP:DMG: Product Id = 32794 + [1655979686.736537][22876:22881] CHIP:DMG: Product Id = 32795 + [1655979686.736571][22876:22881] CHIP:DMG: Product Id = 32796 + [1655979686.736606][22876:22881] CHIP:DMG: Product Id = 32797 + [1655979686.736641][22876:22881] CHIP:DMG: Product Id = 32798 + [1655979686.736675][22876:22881] CHIP:DMG: Product Id = 32799 + [1655979686.736709][22876:22881] CHIP:DMG: Product Id = 32800 + [1655979686.736743][22876:22881] CHIP:DMG: Product Id = 32801 + [1655979686.736778][22876:22881] CHIP:DMG: Product Id = 32802 + [1655979686.736812][22876:22881] CHIP:DMG: Product Id = 32803 + [1655979686.736847][22876:22881] CHIP:DMG: Product Id = 32804 + [1655979686.736881][22876:22881] CHIP:DMG: Product Id = 32805 + [1655979686.736915][22876:22881] CHIP:DMG: Product Id = 32806 + [1655979686.736950][22876:22881] CHIP:DMG: Product Id = 32807 + [1655979686.736984][22876:22881] CHIP:DMG: Product Id = 32808 + [1655979686.737018][22876:22881] CHIP:DMG: Product Id = 32809 + [1655979686.737053][22876:22881] CHIP:DMG: Product Id = 32810 + [1655979686.737087][22876:22881] CHIP:DMG: Product Id = 32811 + [1655979686.737122][22876:22881] CHIP:DMG: Product Id = 32812 + [1655979686.737156][22876:22881] CHIP:DMG: Product Id = 32813 + [1655979686.737215][22876:22881] CHIP:DMG: Product Id = 32814 + [1655979686.737250][22876:22881] CHIP:DMG: Product Id = 32815 + [1655979686.737285][22876:22881] CHIP:DMG: Product Id = 32816 + [1655979686.737319][22876:22881] CHIP:DMG: Product Id = 32817 + [1655979686.737354][22876:22881] CHIP:DMG: Product Id = 32818 + [1655979686.737388][22876:22881] CHIP:DMG: Product Id = 32819 + [1655979686.737423][22876:22881] CHIP:DMG: Product Id = 32820 + [1655979686.737457][22876:22881] CHIP:DMG: Product Id = 32821 + [1655979686.737491][22876:22881] CHIP:DMG: Product Id = 32822 + [1655979686.737525][22876:22881] CHIP:DMG: Product Id = 32823 + [1655979686.737559][22876:22881] CHIP:DMG: Product Id = 32824 + [1655979686.737594][22876:22881] CHIP:DMG: Product Id = 32825 + [1655979686.737628][22876:22881] CHIP:DMG: Product Id = 32826 + [1655979686.737662][22876:22881] CHIP:DMG: Product Id = 32827 + [1655979686.737697][22876:22881] CHIP:DMG: Product Id = 32828 + [1655979686.737731][22876:22881] CHIP:DMG: Product Id = 32829 + [1655979686.737766][22876:22881] CHIP:DMG: Product Id = 32830 + [1655979686.737800][22876:22881] CHIP:DMG: Product Id = 32831 + [1655979686.737835][22876:22881] CHIP:DMG: Product Id = 32832 + [1655979686.737869][22876:22881] CHIP:DMG: Product Id = 32833 + [1655979686.738006][22876:22881] CHIP:DMG: Product Id = 32834 + [1655979686.738044][22876:22881] CHIP:DMG: Product Id = 32835 + [1655979686.738079][22876:22881] CHIP:DMG: Product Id = 32836 + [1655979686.738114][22876:22881] CHIP:DMG: Product Id = 32837 + [1655979686.738149][22876:22881] CHIP:DMG: Product Id = 32838 + [1655979686.738189][22876:22881] CHIP:DMG: Product Id = 32839 + [1655979686.738226][22876:22881] CHIP:DMG: Product Id = 32840 + [1655979686.738261][22876:22881] CHIP:DMG: Product Id = 32841 + [1655979686.738297][22876:22881] CHIP:DMG: Product Id = 32842 + [1655979686.738332][22876:22881] CHIP:DMG: Product Id = 32843 + [1655979686.738367][22876:22881] CHIP:DMG: Product Id = 32844 + [1655979686.738401][22876:22881] CHIP:DMG: Product Id = 32845 + [1655979686.738436][22876:22881] CHIP:DMG: Product Id = 32846 + [1655979686.738470][22876:22881] CHIP:DMG: Product Id = 32847 + [1655979686.738505][22876:22881] CHIP:DMG: Product Id = 32848 + [1655979686.738539][22876:22881] CHIP:DMG: Product Id = 32849 + [1655979686.738574][22876:22881] CHIP:DMG: Product Id = 32850 + [1655979686.738609][22876:22881] CHIP:DMG: Product Id = 32851 + [1655979686.738643][22876:22881] CHIP:DMG: Product Id = 32852 + [1655979686.738678][22876:22881] CHIP:DMG: Product Id = 32853 + [1655979686.738712][22876:22881] CHIP:DMG: Product Id = 32854 + [1655979686.738747][22876:22881] CHIP:DMG: Product Id = 32855 + [1655979686.738781][22876:22881] CHIP:DMG: Product Id = 32856 + [1655979686.738816][22876:22881] CHIP:DMG: Product Id = 32857 + [1655979686.738851][22876:22881] CHIP:DMG: Product Id = 32858 + [1655979686.738885][22876:22881] CHIP:DMG: Product Id = 32859 + [1655979686.738919][22876:22881] CHIP:DMG: Product Id = 32860 + [1655979686.738954][22876:22881] CHIP:DMG: Product Id = 32861 + [1655979686.738990][22876:22881] CHIP:DMG: Product Id = 32862 + [1655979686.739025][22876:22881] CHIP:DMG: Product Id = 32863 + [1655979686.739059][22876:22881] CHIP:DMG: Product Id = 32864 + [1655979686.739094][22876:22881] CHIP:DMG: Product Id = 32865 + [1655979686.739129][22876:22881] CHIP:DMG: Product Id = 32866 + [1655979686.739163][22876:22881] CHIP:DMG: Product Id = 32867 + [1655979686.739198][22876:22881] CHIP:DMG: } + [1655979686.739234][22876:22881] CHIP:DMG: Device Type Id = 22 + [1655979686.739274][22876:22881] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655979686.739312][22876:22881] CHIP:DMG: Security Level = 0 + [1655979686.739339][22876:22881] CHIP:DMG: Security Information = 0 + [1655979686.739363][22876:22881] CHIP:DMG: Version Number = 9876 + [1655979686.739387][22876:22881] CHIP:DMG: Certification Type = 0 + [1655979686.739409][22876:22881] CHIP:DMG: } + [1655979686.739436][22876:22881] CHIP:DMG: Attestation Nonce (32) = A27ABCFCEB61A2F43E76CB095D647E139194E216E3D69079BD8A0FFDDA58386B + [1655979686.739513][22876:22881] CHIP:DMG: Timestamp = 0 + [1655979686.739536][22876:22881] CHIP:DMG: } + [1655979686.739556][22876:22881] CHIP:DMG: + [1655979686.739586][22876:22881] CHIP:DMG: + [1655979686.739642][22876:22881] CHIP:DMG: Additional Fields = + [1655979686.739665][22876:22881] CHIP:DMG: { + [1655979686.739692][22876:22881] CHIP:DMG: peer_address = BLE + [1655979686.739714][22876:22881] CHIP:DMG: } + [1655979686.739734][22876:22881] CHIP:DMG: + [1655979686.739772][22876:22881] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:226447061 on exchange 35315i + [1655979686.739801][22876:22881] CHIP:EM: Found matching exchange: 35315i, Delegate: 0xffff9c00c6b0 + [1655979686.739850][22876:22881] CHIP:DMG: ICR moving to [ResponseRe] + [1655979686.739894][22876:22881] CHIP:DMG: InvokeResponseMessage = + [1655979686.739919][22876:22881] CHIP:DMG: { + [1655979686.739943][22876:22881] CHIP:DMG: suppressResponse = false, + [1655979686.739971][22876:22881] CHIP:DMG: InvokeResponseIBs = + [1655979686.740003][22876:22881] CHIP:DMG: [ + [1655979686.740028][22876:22881] CHIP:DMG: InvokeResponseIB = + [1655979686.740080][22876:22881] CHIP:DMG: { + [1655979686.740111][22876:22881] CHIP:DMG: CommandDataIB = + [1655979686.740156][22876:22881] CHIP:DMG: { + [1655979686.740200][22876:22881] CHIP:DMG: CommandPathIB = + [1655979686.740250][22876:22881] CHIP:DMG: { + [1655979686.740301][22876:22881] CHIP:DMG: EndpointId = 0x0, + [1655979686.740352][22876:22881] CHIP:DMG: ClusterId = 0x3e, + [1655979686.740402][22876:22881] CHIP:DMG: CommandId = 0x1, + [1655979686.740449][22876:22881] CHIP:DMG: }, + [1655979686.740486][22876:22881] CHIP:DMG: + [1655979686.740528][22876:22881] CHIP:DMG: CommandFields = + [1655979686.740563][22876:22881] CHIP:DMG: { + [1655979686.740602][22876:22881] CHIP:DMG: 0x0 = [ + [1655979686.740742][22876:22881] CHIP:DMG: 0x15, 0x31, 0x1, 0x1d, 0x2, 0x30, 0x82, 0x2, 0x19, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0x2, 0xa, 0x30, 0x82, 0x2, 0x6, 0x2, 0x1, 0x3, 0x31, 0xd, 0x30, 0xb, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x30, 0x82, 0x1, 0x71, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x1, 0xa0, 0x82, 0x1, 0x62, 0x4, 0x82, 0x1, 0x5e, 0x15, 0x24, 0x0, 0x1, 0x25, 0x1, 0xf1, 0xff, 0x36, 0x2, 0x5, 0x0, 0x80, 0x5, 0x1, 0x80, 0x5, 0x2, 0x80, 0x5, 0x3, 0x80, 0x5, 0x4, 0x80, 0x5, 0x5, 0x80, 0x5, 0x6, 0x80, 0x5, 0x7, 0x80, 0x5, 0x8, 0x80, 0x5, 0x9, 0x80, 0x5, 0xa, 0x80, 0x5, 0xb, 0x80, 0x5, 0xc, 0x80, 0x5, 0xd, 0x80, 0x5, 0xe, 0x80, 0x5, 0xf, 0x80, 0x5, 0x10, 0x80, 0x5, 0x11, 0x80, 0x5, 0x12, 0x80, 0x5, 0x13, 0x80, 0x5, 0x14, 0x80, 0x5, 0x15, 0x80, 0x5, 0x16, 0x80, 0x5, 0x17, 0x80, 0x5, 0x18, 0x80, 0x5, 0x19, 0x80, 0x5, 0x1a, 0x80, 0x5, 0x1b, 0x80, 0x5, 0x1c, 0x80, 0x5, 0x1d, 0x80, 0x5, 0x1e, 0x80, 0x5, 0x1f, 0x80, 0x5, 0x20, 0x80, 0x5, 0x21, 0x80, 0x5, 0x22, 0x80, 0x5, 0x23, 0x80, 0x5, 0x24, 0x80, 0x5, 0x25, 0x80, 0x5, 0x26, 0x80, 0x5, 0x27, 0x80, 0x5, 0x28, 0x80, 0x5, 0x29, 0x80, 0x5, 0x2a, 0x80, 0x5, 0x2b, 0x80, 0x5, 0x2c, 0x80, 0x5, 0x2d, 0x80, 0x5, 0x2e, 0x80, 0x5, 0x2f, 0x80, 0x5, 0x30, 0x80, 0x5, 0x31, 0x80, 0x5, 0x32, 0x80, 0x5, 0x33, 0x80, 0x5, 0x34, 0x80, 0x5, 0x35, 0x80, 0x5, 0x36, 0x80, 0x5, 0x37, 0x80, 0x5, 0x38, 0x80, 0x5, 0x39, 0x80, 0x5, 0x3a, 0x80, 0x5, 0x3b, 0x80, 0x5, 0x3c, 0x80, 0x5, 0x3d, 0x80, 0x5, 0x3e, 0x80, 0x5, 0x3f, 0x80, 0x5, 0x40, 0x80, 0x5, 0x41, 0x80, 0x5, 0x42, 0x80, 0x5, 0x43, 0x80, 0x5, 0x44, 0x80, 0x5, 0x45, 0x80, 0x5, 0x46, 0x80, 0x5, 0x47, 0x80, 0x5, 0x48, 0x80, 0x5, 0x49, 0x80, 0x5, 0x4a, 0x80, 0x5, 0 + [1655979686.740822][22876:22881] CHIP:DMG: ] + [1655979686.740860][22876:22881] CHIP:DMG: 0x1 = [ + [1655979686.740918][22876:22881] CHIP:DMG: 0x64, 0x5d, 0x6b, 0xc7, 0xcf, 0x0, 0x7d, 0x2b, 0x4f, 0x7d, 0xa5, 0x6b, 0x40, 0x37, 0xe8, 0xc7, 0x1b, 0x7d, 0xd6, 0x39, 0xd5, 0x5, 0xad, 0x12, 0xdb, 0xb5, 0x54, 0x94, 0x4d, 0xd2, 0x2f, 0xc5, 0xd5, 0x9a, 0x66, 0x6d, 0x92, 0xcc, 0x40, 0xc6, 0xbb, 0xe3, 0x24, 0xc9, 0x9e, 0xfc, 0xa5, 0xc8, 0xb, 0xc4, 0xc6, 0x3f, 0xb8, 0xe7, 0x46, 0x6d, 0x2f, 0x2d, 0x24, 0x13, 0x83, 0xf5, 0xaa, 0xec, + [1655979686.740966][22876:22881] CHIP:DMG: ] + [1655979686.741004][22876:22881] CHIP:DMG: }, + [1655979686.741039][22876:22881] CHIP:DMG: }, + [1655979686.741077][22876:22881] CHIP:DMG: + [1655979686.741104][22876:22881] CHIP:DMG: }, + [1655979686.741137][22876:22881] CHIP:DMG: + [1655979686.741174][22876:22881] CHIP:DMG: ], + [1655979686.741206][22876:22881] CHIP:DMG: + [1655979686.741231][22876:22881] CHIP:DMG: InteractionModelRevision = 1 + [1655979686.741254][22876:22881] CHIP:DMG: }, + [1655979686.741316][22876:22881] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0001 + [1655979686.741353][22876:22881] CHIP:CTL: Received Attestation Information from the device + [1655979686.741382][22876:22881] CHIP:CTL: Successfully finished commissioning step 'SendAttestationRequest' + [1655979686.741451][22876:22881] CHIP:CTL: Commissioning stage next step: 'SendAttestationRequest' -> 'AttestationVerification' disabled: true - - label: - "DUT sends AttestationRequest Command with AttestationNonce as field - to the TH1." + - label: "Factory Reset TH1 so that it is commissionable again" verification: | - Compare the attesation nonce received in the AttestationResposne is same as the one sent in Attesation Request + Both on DUT and TH side + sudo rm -rf /tmp/chip_* disabled: true - - label: "DUT generates 32-byte AttestationNonce for third time" + - label: "Start the commissioning process of TH1 on DUT again" verification: | + DUT side: + sudo ./chip-all-clusters-app --wifi + + TH side: + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1 + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success disabled: true - - label: "Save the AttestationNonce as Nonce3" + - label: "DUT generates 32-byte AttestationNonce" verification: | - Verify that the values of Nonce1,Nonce2 and Nonce3 are different + Verify in TH log: + + [1655968443.635813][21387:21392] CHIP:DMG: } + [1655968443.635876][21387:21392] CHIP:DMG: Attestation Nonce (32) = 8A02A4533766C4310201E4E6DE820A51877AF337961BF2D12848268B8F323363 + [1655968443.635933][21387:21392] CHIP:DMG: Timestamp = 0 + [1655968443.635985][21387:21392] CHIP:DMG: } disabled: true - label: "DUT sends AttestationRequest Command with AttestationNonce as field to the TH1." verification: | - Compare the attesation nonce received in the AttestationResposne is same as the one sent in Attesation Request + Verify in TH log : + + [1655968443.238850][21387:21392] CHIP:CTL: Commissioning stage next step: 'SendDACCertificateRequest' -> 'SendAttestationRequest' + [1655968443.238918][21387:21392] CHIP:CTL: Performing next commissioning step 'SendAttestationRequest' + [1655968443.238971][21387:21392] CHIP:CTL: Sending Attestation Request to the device. + [1655968443.239021][21387:21392] CHIP:CTL: Sending Attestation request to 0xffff88000b60 device + [1655968443.239143][21387:21392] CHIP:DMG: ICR moving to [AddingComm] + [1655968443.239218][21387:21392] CHIP:DMG: ICR moving to [AddedComma] + [1655968443.239760][21387:21392] CHIP:IN: Prepared secure message 0xffff9afdc958 to 0xFFFFFFFB00000000 (0) of type 0x8 and protocolId (0, 1) on exchange 11674i with MessageCounter:162800414. + [1655968443.239876][21387:21392] CHIP:IN: Sending encrypted msg 0xffff9afdc958 with MessageCounter:162800414 to 0xFFFFFFFB00000000 (0) at monotonic time: 00000000059CF446 msec + [1655968443.240366][21387:21392] CHIP:DMG: >> to BLE | 162800414 | [Interaction Model (1) / InvokeCommandRequest (0x08) / Session = 52324 / Exchange = 11674] + [1655968443.240462][21387:21392] CHIP:DMG: Header Flags = + [1655968443.240517][21387:21392] CHIP:DMG: { + [1655968443.240601][21387:21392] CHIP:DMG: Exchange (0x01) = + [1655968443.240655][21387:21392] CHIP:DMG: { + [1655968443.240703][21387:21392] CHIP:DMG: Initiator = true + [1655968443.240754][21387:21392] CHIP:DMG: } + [1655968443.240821][21387:21392] CHIP:DMG: } + [1655968443.240877][21387:21392] CHIP:DMG: + [1655968443.240942][21387:21392] CHIP:DMG: Encrypted Payload (94 bytes) = + [1655968443.240996][21387:21392] CHIP:DMG: { + [1655968443.241048][21387:21392] CHIP:DMG: data = 0064cc001e23b409b5afa9bd2bb3de206e818cc5af07da0982488815e5b83f6bd533a4d997416c9f18774dc3aa1b98c9dbb94d8d76188e230bdc8cc5cde8b8606d5e8e7041a700efe9bc4b48a66c9120631ef0553d850f70701829ab81ed + [1655968443.241105][21387:21392] CHIP:DMG: buffer_ptr = 281472963527376 + [1655968443.241156][21387:21392] CHIP:DMG: } + [1655968443.241302][21387:21392] CHIP:DMG: + [1655968443.241469][21387:21392] CHIP:DMG: InvokeRequestMessage = + [1655968443.241535][21387:21392] CHIP:DMG: { + [1655968443.241591][21387:21392] CHIP:DMG: suppressResponse = false, + [1655968443.241654][21387:21392] CHIP:DMG: timedRequest = false, + [1655968443.241713][21387:21392] CHIP:DMG: InvokeRequests = + [1655968443.241786][21387:21392] CHIP:DMG: [ + [1655968443.241849][21387:21392] CHIP:DMG: CommandDataIB = + [1655968443.241981][21387:21392] CHIP:DMG: { + [1655968443.242047][21387:21392] CHIP:DMG: CommandPathIB = + [1655968443.242125][21387:21392] CHIP:DMG: { + [1655968443.242204][21387:21392] CHIP:DMG: EndpointId = 0x0, + [1655968443.242288][21387:21392] CHIP:DMG: ClusterId = 0x3e, + [1655968443.242368][21387:21392] CHIP:DMG: CommandId = 0x0, + [1655968443.242444][21387:21392] CHIP:DMG: }, + [1655968443.242525][21387:21392] CHIP:DMG: + [1655968443.242591][21387:21392] CHIP:DMG: CommandFields = + [1655968443.242667][21387:21392] CHIP:DMG: { + [1655968443.242745][21387:21392] CHIP:DMG: 0x0 = [ + [1655968443.242847][21387:21392] CHIP:DMG: 0x8a, 0x2, 0xa4, 0x53, 0x37, 0x66, 0xc4, 0x31, 0x2, 0x1, 0xe4, 0xe6, 0xde, 0x82, 0xa, 0x51, 0x87, 0x7a, 0xf3, 0x37, 0x96, 0x1b, 0xf2, 0xd1, 0x28, 0x48, 0x26, 0x8b, 0x8f, 0x32, 0x33, 0x63, + [1655968443.242937][21387:21392] CHIP:DMG: ] + [1655968443.243017][21387:21392] CHIP:DMG: }, + [1655968443.243088][21387:21392] CHIP:DMG: }, + [1655968443.243161][21387:21392] CHIP:DMG: + [1655968443.243221][21387:21392] CHIP:DMG: ], + [1655968443.243293][21387:21392] CHIP:DMG: + [1655968443.243354][21387:21392] CHIP:DMG: InteractionModelRevision = 1 + [1655968443.243411][21387:21392] CHIP:DMG: }, + [1655968443.243466][21387:21392] CHIP:DMG: + [1655968443.243733][21387:21392] CHIP:DMG: ICR moving to [CommandSen] + [1655968443.243814][21387:21392] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655968443.243913][21387:21392] CHIP:DMG: ICR moving to [AwaitingDe] + [1655968443.377585][21387:21392] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655968443.425671][21387:21390] CHIP:DL: Indication received, conn = 0xffff900200d0 + [1655968443.425933][21387:21392] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655968443.526449][21387:21390] CHIP:DL: Indication received, conn = 0xffff900200d0 + [1655968443.526705][21387:21392] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655968443.623985][21387:21390] CHIP:DL: Indication received, conn = 0xffff900200d0 + [1655968443.624679][21387:21392] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655968443.626106][21387:21392] CHIP:DMG: << from BLE | 163275440 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 42825 / Exchange = 11674] + [1655968443.626225][21387:21392] CHIP:DMG: Header Flags = + [1655968443.626282][21387:21392] CHIP:DMG: { + [1655968443.626381][21387:21392] CHIP:DMG: } + [1655968443.626434][21387:21392] CHIP:DMG: + [1655968443.626507][21387:21392] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655968443.626561][21387:21392] CHIP:DMG: { + [1655968443.626614][21387:21392] CHIP:DMG: data = 0049a700b062bb0923457d8fefc710b7ad04681eed0dae3bdab2dd3f1a74ed767f5f21220b66a8848209e1d6cf9192cbe38656e0c90075ff926fa241d824328c05b9adb20ef1b0fa26479db4b03daff247c0823c4068a6c0e10c15cdf487354ff2ed897eabb41e9748c993ed4ca0833e4802d609fc228056e244b6e9131f83baeb98636d1b7bea66c49b79a860e62f86d91da04b27513a61e04ac3c1f902886bf877c6a8460c974204cde916ded0177e64d7d1cec19391bb02c60a294ef7f98789a87a55cbe7146163da7fe990ea9a231c597c32250353a525b124272afcccd9f74535f8c9eeed98dbb9b2ef21d0300ec76ccf58d1b162eb081dd8b7373f8a33e8122a2b4ed1f4ea61669443ef7b02acd9f8ff64168b3b61fa77545beaf8e2ded4d99618c528f67c4c421ef4dc58ef2c7eab0d85cfecb5a67ab354dc9e42c83386afc0b294b18e097ce17a1933cf363de9863e594dfbd772c0ca469d15b3ec5b61b5615f5f29ee3440a7338031dcb9ab4bfb60dc8598cccd050aea5b6cc972ef84fd5487b61fb4922c2407111d8250c1d5bebae187fb4e757c58247b295da551723d7670cd347c774842e1f20be2dc14da73888ffac99fc92ca1db1d246e567b94539dcdc44aa339ce928211958bc7254fd5c09fed1b90375ed22f5160adddc77344ddd6649fc3c8c6f1b8904167d369f80e38ccaaa463ddfc9bd61c590bfe35a8a51704828ba599c63ccb26ff9026fd6178ac045c322e3df5a98a17fa6bafeeab5f603a90389fb21a3aaa7558b324b76528882f658d52fc439d103316a1ee6767c0f9441554ac0c9b34176960e72ae74c74f6286339dc0292c1a069ec2f43da81d73c4767eb6629fe1545dd25bab4e034b68b618da401747f798fe1fb166356c3bdbca93394dad6d3607a3f7a1301c386ac7d561d9d6c893391fe1e9887ad58a3625ec1582b0c2a48af2eafb5a32a089e084e47bcaa08cfe4c0d8ecae356fcff8b5d85f2668b7b87a3aba18 + [1655968443.626737][21387:21392] CHIP:DMG: buffer_ptr = 281472963520464 + [1655968443.626788][21387:21392] CHIP:DMG: } + [1655968443.626837][21387:21392] CHIP:DMG: + [1655968443.627153][21387:21392] CHIP:DMG: Attestation Elements (585 bytes) = + [1655968443.627217][21387:21392] CHIP:DMG: { + [1655968443.627269][21387:21392] CHIP:DMG: Certification Declaration = + [1655968443.627320][21387:21392] CHIP:DMG: { + [1655968443.629460][21387:21392] CHIP:DMG: Format Version = 1 + [1655968443.629555][21387:21392] CHIP:DMG: Vendor Id = 65521 + [1655968443.629616][21387:21392] CHIP:DMG: Product Ids = + [1655968443.629670][21387:21392] CHIP:DMG: { + [1655968443.629727][21387:21392] CHIP:DMG: Product Id = 32768 + [1655968443.629785][21387:21392] CHIP:DMG: Product Id = 32769 + [1655968443.629842][21387:21392] CHIP:DMG: Product Id = 32770 + [1655968443.629899][21387:21392] CHIP:DMG: Product Id = 32771 + [1655968443.629955][21387:21392] CHIP:DMG: Product Id = 32772 + [1655968443.630011][21387:21392] CHIP:DMG: Product Id = 32773 + [1655968443.630069][21387:21392] CHIP:DMG: Product Id = 32774 + [1655968443.630125][21387:21392] CHIP:DMG: Product Id = 32775 + [1655968443.630182][21387:21392] CHIP:DMG: Product Id = 32776 + [1655968443.630239][21387:21392] CHIP:DMG: Product Id = 32777 + [1655968443.630287][21387:21392] CHIP:DMG: Product Id = 32778 + [1655968443.630334][21387:21392] CHIP:DMG: Product Id = 32779 + [1655968443.630387][21387:21392] CHIP:DMG: Product Id = 32780 + [1655968443.630443][21387:21392] CHIP:DMG: Product Id = 32781 + [1655968443.630499][21387:21392] CHIP:DMG: Product Id = 32782 + [1655968443.630556][21387:21392] CHIP:DMG: Product Id = 32783 + [1655968443.630612][21387:21392] CHIP:DMG: Product Id = 32784 + [1655968443.630670][21387:21392] CHIP:DMG: Product Id = 32785 + [1655968443.630727][21387:21392] CHIP:DMG: Product Id = 32786 + [1655968443.630783][21387:21392] CHIP:DMG: Product Id = 32787 + [1655968443.630839][21387:21392] CHIP:DMG: Product Id = 32788 + [1655968443.630896][21387:21392] CHIP:DMG: Product Id = 32789 + [1655968443.630952][21387:21392] CHIP:DMG: Product Id = 32790 + [1655968443.631009][21387:21392] CHIP:DMG: Product Id = 32791 + [1655968443.631067][21387:21392] CHIP:DMG: Product Id = 32792 + [1655968443.631129][21387:21392] CHIP:DMG: Product Id = 32793 + [1655968443.631186][21387:21392] CHIP:DMG: Product Id = 32794 + [1655968443.631243][21387:21392] CHIP:DMG: Product Id = 32795 + [1655968443.631298][21387:21392] CHIP:DMG: Product Id = 32796 + [1655968443.631355][21387:21392] CHIP:DMG: Product Id = 32797 + [1655968443.631411][21387:21392] CHIP:DMG: Product Id = 32798 + [1655968443.631467][21387:21392] CHIP:DMG: Product Id = 32799 + [1655968443.631524][21387:21392] CHIP:DMG: Product Id = 32800 + [1655968443.631581][21387:21392] CHIP:DMG: Product Id = 32801 + [1655968443.631637][21387:21392] CHIP:DMG: Product Id = 32802 + [1655968443.631693][21387:21392] CHIP:DMG: Product Id = 32803 + [1655968443.631749][21387:21392] CHIP:DMG: Product Id = 32804 + [1655968443.631806][21387:21392] CHIP:DMG: Product Id = 32805 + [1655968443.631862][21387:21392] CHIP:DMG: Product Id = 32806 + [1655968443.631918][21387:21392] CHIP:DMG: Product Id = 32807 + [1655968443.631974][21387:21392] CHIP:DMG: Product Id = 32808 + [1655968443.632031][21387:21392] CHIP:DMG: Product Id = 32809 + [1655968443.632088][21387:21392] CHIP:DMG: Product Id = 32810 + [1655968443.632146][21387:21392] CHIP:DMG: Product Id = 32811 + [1655968443.632202][21387:21392] CHIP:DMG: Product Id = 32812 + [1655968443.632259][21387:21392] CHIP:DMG: Product Id = 32813 + [1655968443.632315][21387:21392] CHIP:DMG: Product Id = 32814 + [1655968443.632371][21387:21392] CHIP:DMG: Product Id = 32815 + [1655968443.632428][21387:21392] CHIP:DMG: Product Id = 32816 + [1655968443.632485][21387:21392] CHIP:DMG: Product Id = 32817 + [1655968443.632541][21387:21392] CHIP:DMG: Product Id = 32818 + [1655968443.632597][21387:21392] CHIP:DMG: Product Id = 32819 + [1655968443.632653][21387:21392] CHIP:DMG: Product Id = 32820 + [1655968443.632709][21387:21392] CHIP:DMG: Product Id = 32821 + [1655968443.632766][21387:21392] CHIP:DMG: Product Id = 32822 + [1655968443.632822][21387:21392] CHIP:DMG: Product Id = 32823 + [1655968443.632879][21387:21392] CHIP:DMG: Product Id = 32824 + [1655968443.632935][21387:21392] CHIP:DMG: Product Id = 32825 + [1655968443.632991][21387:21392] CHIP:DMG: Product Id = 32826 + [1655968443.633047][21387:21392] CHIP:DMG: Product Id = 32827 + [1655968443.633104][21387:21392] CHIP:DMG: Product Id = 32828 + [1655968443.633188][21387:21392] CHIP:DMG: Product Id = 32829 + [1655968443.633251][21387:21392] CHIP:DMG: Product Id = 32830 + [1655968443.633307][21387:21392] CHIP:DMG: Product Id = 32831 + [1655968443.633364][21387:21392] CHIP:DMG: Product Id = 32832 + [1655968443.633420][21387:21392] CHIP:DMG: Product Id = 32833 + [1655968443.633477][21387:21392] CHIP:DMG: Product Id = 32834 + [1655968443.633533][21387:21392] CHIP:DMG: Product Id = 32835 + [1655968443.633590][21387:21392] CHIP:DMG: Product Id = 32836 + [1655968443.633646][21387:21392] CHIP:DMG: Product Id = 32837 + [1655968443.633702][21387:21392] CHIP:DMG: Product Id = 32838 + [1655968443.633759][21387:21392] CHIP:DMG: Product Id = 32839 + [1655968443.633816][21387:21392] CHIP:DMG: Product Id = 32840 + [1655968443.633873][21387:21392] CHIP:DMG: Product Id = 32841 + [1655968443.633928][21387:21392] CHIP:DMG: Product Id = 32842 + [1655968443.633985][21387:21392] CHIP:DMG: Product Id = 32843 + [1655968443.634041][21387:21392] CHIP:DMG: Product Id = 32844 + [1655968443.634098][21387:21392] CHIP:DMG: Product Id = 32845 + [1655968443.634154][21387:21392] CHIP:DMG: Product Id = 32846 + [1655968443.634211][21387:21392] CHIP:DMG: Product Id = 32847 + [1655968443.634267][21387:21392] CHIP:DMG: Product Id = 32848 + [1655968443.634324][21387:21392] CHIP:DMG: Product Id = 32849 + [1655968443.634381][21387:21392] CHIP:DMG: Product Id = 32850 + [1655968443.634438][21387:21392] CHIP:DMG: Product Id = 32851 + [1655968443.634494][21387:21392] CHIP:DMG: Product Id = 32852 + [1655968443.634551][21387:21392] CHIP:DMG: Product Id = 32853 + [1655968443.634607][21387:21392] CHIP:DMG: Product Id = 32854 + [1655968443.634663][21387:21392] CHIP:DMG: Product Id = 32855 + [1655968443.634719][21387:21392] CHIP:DMG: Product Id = 32856 + [1655968443.634776][21387:21392] CHIP:DMG: Product Id = 32857 + [1655968443.634833][21387:21392] CHIP:DMG: Product Id = 32858 + [1655968443.634889][21387:21392] CHIP:DMG: Product Id = 32859 + [1655968443.634946][21387:21392] CHIP:DMG: Product Id = 32860 + [1655968443.635003][21387:21392] CHIP:DMG: Product Id = 32861 + [1655968443.635059][21387:21392] CHIP:DMG: Product Id = 32862 + [1655968443.635116][21387:21392] CHIP:DMG: Product Id = 32863 + [1655968443.635173][21387:21392] CHIP:DMG: Product Id = 32864 + [1655968443.635230][21387:21392] CHIP:DMG: Product Id = 32865 + [1655968443.635287][21387:21392] CHIP:DMG: Product Id = 32866 + [1655968443.635343][21387:21392] CHIP:DMG: Product Id = 32867 + [1655968443.635399][21387:21392] CHIP:DMG: } + [1655968443.635457][21387:21392] CHIP:DMG: Device Type Id = 22 + [1655968443.635521][21387:21392] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655968443.635582][21387:21392] CHIP:DMG: Security Level = 0 + [1655968443.635641][21387:21392] CHIP:DMG: Security Information = 0 + [1655968443.635699][21387:21392] CHIP:DMG: Version Number = 9876 + [1655968443.635757][21387:21392] CHIP:DMG: Certification Type = 0 + [1655968443.635813][21387:21392] CHIP:DMG: } + [1655968443.635876][21387:21392] CHIP:DMG: Attestation Nonce (32) = 8A02A4533766C4310201E4E6DE820A51877AF337961BF2D12848268B8F323363 + [1655968443.635933][21387:21392] CHIP:DMG: Timestamp = 0 + [1655968443.635985][21387:21392] CHIP:DMG: } + [1655968443.636035][21387:21392] CHIP:DMG: + [1655968443.636102][21387:21392] CHIP:DMG: + [1655968443.636210][21387:21392] CHIP:DMG: Additional Fields = + [1655968443.636267][21387:21392] CHIP:DMG: { + [1655968443.636328][21387:21392] CHIP:DMG: peer_address = BLE + [1655968443.636382][21387:21392] CHIP:DMG: } + [1655968443.636431][21387:21392] CHIP:DMG: + [1655968443.636508][21387:21392] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:163275440 on exchange 11674i + [1655968443.636575][21387:21392] CHIP:EM: Found matching exchange: 11674i, Delegate: 0xffff88005ab0 + [1655968443.636680][21387:21392] CHIP:DMG: ICR moving to [ResponseRe] + [1655968443.636777][21387:21392] CHIP:DMG: InvokeResponseMessage = + [1655968443.636837][21387:21392] CHIP:DMG: { + [1655968443.636895][21387:21392] CHIP:DMG: suppressResponse = false, + [1655968443.636954][21387:21392] CHIP:DMG: InvokeResponseIBs = + [1655968443.637030][21387:21392] CHIP:DMG: [ + [1655968443.637090][21387:21392] CHIP:DMG: InvokeResponseIB = + [1655968443.637204][21387:21392] CHIP:DMG: { + [1655968443.637271][21387:21392] CHIP:DMG: CommandDataIB = + [1655968443.637363][21387:21392] CHIP:DMG: { + [1655968443.637448][21387:21392] CHIP:DMG: CommandPathIB = + [1655968443.637530][21387:21392] CHIP:DMG: { + [1655968443.637624][21387:21392] CHIP:DMG: EndpointId = 0x0, + [1655968443.637721][21387:21392] CHIP:DMG: ClusterId = 0x3e, + [1655968443.637816][21387:21392] CHIP:DMG: CommandId = 0x1, + [1655968443.637905][21387:21392] CHIP:DMG: }, + [1655968443.637990][21387:21392] CHIP:DMG: + [1655968443.638076][21387:21392] CHIP:DMG: CommandFields = + [1655968443.638165][21387:21392] CHIP:DMG: { + [1655968443.638247][21387:21392] CHIP:DMG: 0x0 = [ + [1655968443.638586][21387:21392] CHIP:DMG: 0x15, 0x31, 0x1, 0x1d, 0x2, 0x30, 0x82, 0x2, 0x19, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0x2, 0xa, 0x30, 0x82, 0x2, 0x6, 0x2, 0x1, 0x3, 0x31, 0xd, 0x30, 0xb, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x30, 0x82, 0x1, 0x71, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x1, 0xa0, 0x82, 0x1, 0x62, 0x4, 0x82, 0x1, 0x5e, 0x15, 0x24, 0x0, 0x1, 0x25, 0x1, 0xf1, 0xff, 0x36, 0x2, 0x5, 0x0, 0x80, 0x5, 0x1, 0x80, 0x5, 0x2, 0x80, 0x5, 0x3, 0x80, 0x5, 0x4, 0x80, 0x5, 0x5, 0x80, 0x5, 0x6, 0x80, 0x5, 0x7, 0x80, 0x5, 0x8, 0x80, 0x5, 0x9, 0x80, 0x5, 0xa, 0x80, 0x5, 0xb, 0x80, 0x5, 0xc, 0x80, 0x5, 0xd, 0x80, 0x5, 0xe, 0x80, 0x5, 0xf, 0x80, 0x5, 0x10, 0x80, 0x5, 0x11, 0x80, 0x5, 0x12, 0x80, 0x5, 0x13, 0x80, 0x5, 0x14, 0x80, 0x5, 0x15, 0x80, 0x5, 0x16, 0x80, 0x5, 0x17, 0x80, 0x5, 0x18, 0x80, 0x5, 0x19, 0x80, 0x5, 0x1a, 0x80, 0x5, 0x1b, 0x80, 0x5, 0x1c, 0x80, 0x5, 0x1d, 0x80, 0x5, 0x1e, 0x80, 0x5, 0x1f, 0x80, 0x5, 0x20, 0x80, 0x5, 0x21, 0x80, 0x5, 0x22, 0x80, 0x5, 0x23, 0x80, 0x5, 0x24, 0x80, 0x5, 0x25, 0x80, 0x5, 0x26, 0x80, 0x5, 0x27, 0x80, 0x5, 0x28, 0x80, 0x5, 0x29, 0x80, 0x5, 0x2a, 0x80, 0x5, 0x2b, 0x80, 0x5, 0x2c, 0x80, 0x5, 0x2d, 0x80, 0x5, 0x2e, 0x80, 0x5, 0x2f, 0x80, 0x5, 0x30, 0x80, 0x5, 0x31, 0x80, 0x5, 0x32, 0x80, 0x5, 0x33, 0x80, 0x5, 0x34, 0x80, 0x5, 0x35, 0x80, 0x5, 0x36, 0x80, 0x5, 0x37, 0x80, 0x5, 0x38, 0x80, 0x5, 0x39, 0x80, 0x5, 0x3a, 0x80, 0x5, 0x3b, 0x80, 0x5, 0x3c, 0x80, 0x5, 0x3d, 0x80, 0x5, 0x3e, 0x80, 0x5, 0x3f, 0x80, 0x5, 0x40, 0x80, 0x5, 0x41, 0x80, 0x5, 0x42, 0x80, 0x5, 0x43, 0x80, 0x5, 0x44, 0x80, 0x5, 0x45, 0x80, 0x5, 0x46, 0x80, 0x5, 0x47, 0x80, 0x5, 0x48, 0x80, 0x5, 0x49, 0x80, 0x5, 0x4a, 0x80, 0x5, 0 + [1655968443.638783][21387:21392] CHIP:DMG: ] + [1655968443.638877][21387:21392] CHIP:DMG: 0x1 = [ + [1655968443.639021][21387:21392] CHIP:DMG: 0x9a, 0xd9, 0x9c, 0x10, 0x25, 0x22, 0xe0, 0xe7, 0x83, 0xb3, 0x78, 0x28, 0xb5, 0xa, 0xb4, 0x9b, 0xb7, 0xe6, 0x32, 0x1, 0x26, 0xe7, 0x8b, 0x6, 0x62, 0x28, 0x9c, 0x71, 0xe8, 0xc8, 0x72, 0x1a, 0x45, 0x56, 0x1e, 0xaf, 0x30, 0xd0, 0xdb, 0xb6, 0xda, 0xce, 0x31, 0xcc, 0x20, 0x38, 0x42, 0x2a, 0x2e, 0xd5, 0x6c, 0x5, 0x48, 0x5, 0xab, 0xc5, 0xa6, 0xff, 0x97, 0x3f, 0x1f, 0x9b, 0xd7, 0x27, + [1655968443.639140][21387:21392] CHIP:DMG: ] + [1655968443.639235][21387:21392] CHIP:DMG: }, + [1655968443.639311][21387:21392] CHIP:DMG: }, + [1655968443.639399][21387:21392] CHIP:DMG: + [1655968443.639468][21387:21392] CHIP:DMG: }, + [1655968443.639549][21387:21392] CHIP:DMG: + [1655968443.639608][21387:21392] CHIP:DMG: ], + [1655968443.639683][21387:21392] CHIP:DMG: + [1655968443.639742][21387:21392] CHIP:DMG: InteractionModelRevision = 1 + [1655968443.639799][21387:21392] CHIP:DMG: }, + [1655968443.639943][21387:21392] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0001 + [1655968443.640024][21387:21392] CHIP:CTL: Received Attestation Information from the device + [1655968443.640090][21387:21392] CHIP:CTL: Successfully finished commissioning step 'SendAttestationRequest' + disabled: true + + - label: + "TH1 records the AttestationNonce received in AttestationRequest as + Nonce_2" + verification: | + See above disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DA_1_4.yaml b/src/app/tests/suites/certification/Test_TC_DA_1_4.yaml index 9257eb98c2f509..6a013cca334994 100644 --- a/src/app/tests/suites/certification/Test_TC_DA_1_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DA_1_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: - 17.1.4. [TC-DA-1.4] Device Attestation Request Validation-Error Scenario + 4.1.4. [TC-DA-1.4] Device Attestation Request Validation-Error Scenario [DUT-Commissioner] config: @@ -25,56 +25,345 @@ config: tests: - label: "Start the commissioning process of TH1 on DUT" verification: | + DUT side: + sudo ./chip-all-clusters-app --wifi + TH side: + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1 + + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success disabled: true - label: "DUT generates 32-byte AttestationNonce" verification: | - + Verifu in TH log + [1655374218.117635][35023:35028] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655374218.117686][35023:35028] CHIP:DMG: ICR moving to [AwaitingDe] + [1655374218.204040][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655374218.252180][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.252405][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.352372][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.352509][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.450622][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.450870][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.452138][35023:35028] CHIP:DMG: << from BLE | 224958145 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 19710 / Exchange = 1302] + [1655374218.452241][35023:35028] CHIP:DMG: Header Flags = + [1655374218.452300][35023:35028] CHIP:DMG: { + [1655374218.452395][35023:35028] CHIP:DMG: } + [1655374218.452449][35023:35028] CHIP:DMG: + [1655374218.452521][35023:35028] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655374218.452579][35023:35028] CHIP:DMG: { + [1655374218.452634][35023:35028] CHIP:DMG: data = 00fe4c00c196680d30c5e98d35a6d844102a8b0067edba80e2adf97e28751f8353657dacb7c9706c2c22add28d18adca15378d16af57f0f4092893cfc5d3e85f6e409f70e39bcb9e0bd3397947e927d20e5bf5173e3def7218d0152cf40e7cb16db615efbd282fd6e84c710bd2c7441228eb5dbbcf0dc76a3eaa0b04655f434d3c8223c7016703b8082c9984c3a91432d12271c87f4d09e90cb6e78d07c81d6359cd5a756f2bace60a7a216896949b536e5583f22db64aeae0279ba2fd279813be383e4324ab63472e3d9877f6c9fa539e577dc50fbcc5a7124a14ea78abdd6ada4ec256a3ee0a242747d636215ffab3c8b4291023eb51b3701939e153912b0f5764479b05e1cf472c350304d1ead872295c80fed3a545530f773e729b6f7bd7d5547de03076a72b8855191beb12d8194477bc9798b6177557cccf3b11b2c1f82cee31d451408359650112394dc2c1592cd2eb1e75881aa340885e65ef9a9905947842574ddcac832d68188b0a3a20fb223258d766692b13a6cde0de34d4f9047046d38ad94caf0a9cc7a786c082d5ae8c62346d69684c6ed5ae958ab68c0685922751ff04d922a838c9d2257a7af6e72af524b459a45ea6311431d30c7de32b3d79581ac119d6e7f63a877b53fda9d69256c5870f2af36f74e08b22e1217a0324b772394a4a596ff237331c623b8d7746077826088dddd2a741f19011cde09f1e897f92ac975fd9a157de0b780f6551b11a50ffe12c781f304dbda9dd75465fb3a8ec52d30f7ddb9179f1b9dfe415ae2d66a53bad67bcf27b3351b8a5cdc9e8b54095c81774007237c8a14a3e2c9cf350616cf5ebf7f6ae5a8c77207924b0e1cddc6c7e77c2a514319947c5988af1dd77325259f496293e53041941d45a1355f56b8036008ab696f7d47d17f9fc4890aa78c2811560b7b4d79a460b7dcd3d9bc3bdd5f72d27bb0060f722aa9c22e7d635895404c832bf2371321d1ababa954482c847fedd0d4676bd188365 + [1655374218.452884][35023:35028] CHIP:DMG: buffer_ptr = 281472627984864 + [1655374218.452941][35023:35028] CHIP:DMG: } + [1655374218.452992][35023:35028] CHIP:DMG: + [1655374218.453303][35023:35028] CHIP:DMG: Attestation Elements (585 bytes) = + [1655374218.453366][35023:35028] CHIP:DMG: { + [1655374218.453431][35023:35028] CHIP:DMG: Certification Declaration = + [1655374218.453483][35023:35028] CHIP:DMG: { + [1655374218.455342][35023:35028] CHIP:DMG: Format Version = 1 + [1655374218.455398][35023:35028] CHIP:DMG: Vendor Id = 65521 + [1655374218.455438][35023:35028] CHIP:DMG: Product Ids = + [1655374218.455474][35023:35028] CHIP:DMG: { + [1655374218.455512][35023:35028] CHIP:DMG: Product Id = 32768 + [1655374218.455552][35023:35028] CHIP:DMG: Product Id = 32769 + [1655374218.455590][35023:35028] CHIP:DMG: Product Id = 32770 + [1655374218.455628][35023:35028] CHIP:DMG: Product Id = 32771 + [1655374218.455666][35023:35028] CHIP:DMG: Product Id = 32772 + [1655374218.455704][35023:35028] CHIP:DMG: Product Id = 32773 + [1655374218.455742][35023:35028] CHIP:DMG: Product Id = 32774 + [1655374218.455780][35023:35028] CHIP:DMG: Product Id = 32775 + [1655374218.455818][35023:35028] CHIP:DMG: Product Id = 32776 + [1655374218.455855][35023:35028] CHIP:DMG: Product Id = 32777 + [1655374218.455893][35023:35028] CHIP:DMG: Product Id = 32778 + [1655374218.455931][35023:35028] CHIP:DMG: Product Id = 32779 + [1655374218.455969][35023:35028] CHIP:DMG: Product Id = 32780 + [1655374218.456007][35023:35028] CHIP:DMG: Product Id = 32781 + [1655374218.456045][35023:35028] CHIP:DMG: Product Id = 32782 + [1655374218.456082][35023:35028] CHIP:DMG: Product Id = 32783 + [1655374218.456120][35023:35028] CHIP:DMG: Product Id = 32784 + [1655374218.456158][35023:35028] CHIP:DMG: Product Id = 32785 + [1655374218.456196][35023:35028] CHIP:DMG: Product Id = 32786 + [1655374218.456234][35023:35028] CHIP:DMG: Product Id = 32787 + [1655374218.456271][35023:35028] CHIP:DMG: Product Id = 32788 + [1655374218.456309][35023:35028] CHIP:DMG: Product Id = 32789 + [1655374218.456347][35023:35028] CHIP:DMG: Product Id = 32790 + [1655374218.456385][35023:35028] CHIP:DMG: Product Id = 32791 + [1655374218.456423][35023:35028] CHIP:DMG: Product Id = 32792 + [1655374218.456461][35023:35028] CHIP:DMG: Product Id = 32793 + [1655374218.456498][35023:35028] CHIP:DMG: Product Id = 32794 + [1655374218.456536][35023:35028] CHIP:DMG: Product Id = 32795 + [1655374218.456573][35023:35028] CHIP:DMG: Product Id = 32796 + [1655374218.456611][35023:35028] CHIP:DMG: Product Id = 32797 + [1655374218.456649][35023:35028] CHIP:DMG: Product Id = 32798 + [1655374218.456687][35023:35028] CHIP:DMG: Product Id = 32799 + [1655374218.456724][35023:35028] CHIP:DMG: Product Id = 32800 + [1655374218.456761][35023:35028] CHIP:DMG: Product Id = 32801 + [1655374218.456799][35023:35028] CHIP:DMG: Product Id = 32802 + [1655374218.456836][35023:35028] CHIP:DMG: Product Id = 32803 + [1655374218.456874][35023:35028] CHIP:DMG: Product Id = 32804 + [1655374218.456912][35023:35028] CHIP:DMG: Product Id = 32805 + [1655374218.456949][35023:35028] CHIP:DMG: Product Id = 32806 + [1655374218.456987][35023:35028] CHIP:DMG: Product Id = 32807 + [1655374218.457024][35023:35028] CHIP:DMG: Product Id = 32808 + [1655374218.457061][35023:35028] CHIP:DMG: Product Id = 32809 + [1655374218.457099][35023:35028] CHIP:DMG: Product Id = 32810 + [1655374218.457138][35023:35028] CHIP:DMG: Product Id = 32811 + [1655374218.457175][35023:35028] CHIP:DMG: Product Id = 32812 + [1655374218.457212][35023:35028] CHIP:DMG: Product Id = 32813 + [1655374218.457250][35023:35028] CHIP:DMG: Product Id = 32814 + [1655374218.457288][35023:35028] CHIP:DMG: Product Id = 32815 + [1655374218.457326][35023:35028] CHIP:DMG: Product Id = 32816 + [1655374218.457363][35023:35028] CHIP:DMG: Product Id = 32817 + [1655374218.457401][35023:35028] CHIP:DMG: Product Id = 32818 + [1655374218.457439][35023:35028] CHIP:DMG: Product Id = 32819 + [1655374218.457476][35023:35028] CHIP:DMG: Product Id = 32820 + [1655374218.457514][35023:35028] CHIP:DMG: Product Id = 32821 + [1655374218.457552][35023:35028] CHIP:DMG: Product Id = 32822 + [1655374218.457590][35023:35028] CHIP:DMG: Product Id = 32823 + [1655374218.457627][35023:35028] CHIP:DMG: Product Id = 32824 + [1655374218.457665][35023:35028] CHIP:DMG: Product Id = 32825 + [1655374218.457702][35023:35028] CHIP:DMG: Product Id = 32826 + [1655374218.457740][35023:35028] CHIP:DMG: Product Id = 32827 + [1655374218.457777][35023:35028] CHIP:DMG: Product Id = 32828 + [1655374218.457833][35023:35028] CHIP:DMG: Product Id = 32829 + [1655374218.457874][35023:35028] CHIP:DMG: Product Id = 32830 + [1655374218.457912][35023:35028] CHIP:DMG: Product Id = 32831 + [1655374218.457950][35023:35028] CHIP:DMG: Product Id = 32832 + [1655374218.457987][35023:35028] CHIP:DMG: Product Id = 32833 + [1655374218.458026][35023:35028] CHIP:DMG: Product Id = 32834 + [1655374218.458063][35023:35028] CHIP:DMG: Product Id = 32835 + [1655374218.458101][35023:35028] CHIP:DMG: Product Id = 32836 + [1655374218.458139][35023:35028] CHIP:DMG: Product Id = 32837 + [1655374218.458177][35023:35028] CHIP:DMG: Product Id = 32838 + [1655374218.458215][35023:35028] CHIP:DMG: Product Id = 32839 + [1655374218.458253][35023:35028] CHIP:DMG: Product Id = 32840 + [1655374218.458291][35023:35028] CHIP:DMG: Product Id = 32841 + [1655374218.458328][35023:35028] CHIP:DMG: Product Id = 32842 + [1655374218.458366][35023:35028] CHIP:DMG: Product Id = 32843 + [1655374218.458404][35023:35028] CHIP:DMG: Product Id = 32844 + [1655374218.458441][35023:35028] CHIP:DMG: Product Id = 32845 + [1655374218.458480][35023:35028] CHIP:DMG: Product Id = 32846 + [1655374218.458517][35023:35028] CHIP:DMG: Product Id = 32847 + [1655374218.458555][35023:35028] CHIP:DMG: Product Id = 32848 + [1655374218.458592][35023:35028] CHIP:DMG: Product Id = 32849 + [1655374218.458630][35023:35028] CHIP:DMG: Product Id = 32850 + [1655374218.458667][35023:35028] CHIP:DMG: Product Id = 32851 + [1655374218.458706][35023:35028] CHIP:DMG: Product Id = 32852 + [1655374218.458743][35023:35028] CHIP:DMG: Product Id = 32853 + [1655374218.458781][35023:35028] CHIP:DMG: Product Id = 32854 + [1655374218.458818][35023:35028] CHIP:DMG: Product Id = 32855 + [1655374218.458856][35023:35028] CHIP:DMG: Product Id = 32856 + [1655374218.458893][35023:35028] CHIP:DMG: Product Id = 32857 + [1655374218.458932][35023:35028] CHIP:DMG: Product Id = 32858 + [1655374218.458969][35023:35028] CHIP:DMG: Product Id = 32859 + [1655374218.459007][35023:35028] CHIP:DMG: Product Id = 32860 + [1655374218.459045][35023:35028] CHIP:DMG: Product Id = 32861 + [1655374218.459082][35023:35028] CHIP:DMG: Product Id = 32862 + [1655374218.459120][35023:35028] CHIP:DMG: Product Id = 32863 + [1655374218.459159][35023:35028] CHIP:DMG: Product Id = 32864 + [1655374218.459196][35023:35028] CHIP:DMG: Product Id = 32865 + [1655374218.459234][35023:35028] CHIP:DMG: Product Id = 32866 + [1655374218.459271][35023:35028] CHIP:DMG: Product Id = 32867 + [1655374218.459309][35023:35028] CHIP:DMG: } + [1655374218.459347][35023:35028] CHIP:DMG: Device Type Id = 22 + [1655374218.459390][35023:35028] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655374218.459430][35023:35028] CHIP:DMG: Security Level = 0 + [1655374218.459470][35023:35028] CHIP:DMG: Security Information = 0 + [1655374218.459508][35023:35028] CHIP:DMG: Version Number = 9876 + [1655374218.459546][35023:35028] CHIP:DMG: Certification Type = 0 + [1655374218.459584][35023:35028] CHIP:DMG: } + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } disabled: true - label: "DUT sends AttestationRequest Command with AttestationNonce as field to the TH1." verification: | - + Verifu in TH log + [1655374218.117635][35023:35028] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655374218.117686][35023:35028] CHIP:DMG: ICR moving to [AwaitingDe] + [1655374218.204040][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655374218.252180][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.252405][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.352372][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.352509][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.450622][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.450870][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.452138][35023:35028] CHIP:DMG: << from BLE | 224958145 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 19710 / Exchange = 1302] + [1655374218.452241][35023:35028] CHIP:DMG: Header Flags = + [1655374218.452300][35023:35028] CHIP:DMG: { + [1655374218.452395][35023:35028] CHIP:DMG: } + [1655374218.452449][35023:35028] CHIP:DMG: + [1655374218.452521][35023:35028] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655374218.452579][35023:35028] CHIP:DMG: { + [1655374218.452634][35023:35028] CHIP:DMG: data = 00fe4c00c196680d30c5e98d35a6d844102a8b0067edba80e2adf97e28751f8353657dacb7c9706c2c22add28d18adca15378d16af57f0f4092893cfc5d3e85f6e409f70e39bcb9e0bd3397947e927d20e5bf5173e3def7218d0152cf40e7cb16db615efbd282fd6e84c710bd2c7441228eb5dbbcf0dc76a3eaa0b04655f434d3c8223c7016703b8082c9984c3a91432d12271c87f4d09e90cb6e78d07c81d6359cd5a756f2bace60a7a216896949b536e5583f22db64aeae0279ba2fd279813be383e4324ab63472e3d9877f6c9fa539e577dc50fbcc5a7124a14ea78abdd6ada4ec256a3ee0a242747d636215ffab3c8b4291023eb51b3701939e153912b0f5764479b05e1cf472c350304d1ead872295c80fed3a545530f773e729b6f7bd7d5547de03076a72b8855191beb12d8194477bc9798b6177557cccf3b11b2c1f82cee31d451408359650112394dc2c1592cd2eb1e75881aa340885e65ef9a9905947842574ddcac832d68188b0a3a20fb223258d766692b13a6cde0de34d4f9047046d38ad94caf0a9cc7a786c082d5ae8c62346d69684c6ed5ae958ab68c0685922751ff04d922a838c9d2257a7af6e72af524b459a45ea6311431d30c7de32b3d79581ac119d6e7f63a877b53fda9d69256c5870f2af36f74e08b22e1217a0324b772394a4a596ff237331c623b8d7746077826088dddd2a741f19011cde09f1e897f92ac975fd9a157de0b780f6551b11a50ffe12c781f304dbda9dd75465fb3a8ec52d30f7ddb9179f1b9dfe415ae2d66a53bad67bcf27b3351b8a5cdc9e8b54095c81774007237c8a14a3e2c9cf350616cf5ebf7f6ae5a8c77207924b0e1cddc6c7e77c2a514319947c5988af1dd77325259f496293e53041941d45a1355f56b8036008ab696f7d47d17f9fc4890aa78c2811560b7b4d79a460b7dcd3d9bc3bdd5f72d27bb0060f722aa9c22e7d635895404c832bf2371321d1ababa954482c847fedd0d4676bd188365 + [1655374218.452884][35023:35028] CHIP:DMG: buffer_ptr = 281472627984864 + [1655374218.452941][35023:35028] CHIP:DMG: } + [1655374218.452992][35023:35028] CHIP:DMG: + [1655374218.453303][35023:35028] CHIP:DMG: Attestation Elements (585 bytes) = + [1655374218.453366][35023:35028] CHIP:DMG: { + [1655374218.453431][35023:35028] CHIP:DMG: Certification Declaration = + [1655374218.453483][35023:35028] CHIP:DMG: { + [1655374218.455342][35023:35028] CHIP:DMG: Format Version = 1 + [1655374218.455398][35023:35028] CHIP:DMG: Vendor Id = 65521 + [1655374218.455438][35023:35028] CHIP:DMG: Product Ids = + [1655374218.455474][35023:35028] CHIP:DMG: { + [1655374218.455512][35023:35028] CHIP:DMG: Product Id = 32768 + [1655374218.455552][35023:35028] CHIP:DMG: Product Id = 32769 + [1655374218.455590][35023:35028] CHIP:DMG: Product Id = 32770 + [1655374218.455628][35023:35028] CHIP:DMG: Product Id = 32771 + [1655374218.455666][35023:35028] CHIP:DMG: Product Id = 32772 + [1655374218.455704][35023:35028] CHIP:DMG: Product Id = 32773 + [1655374218.455742][35023:35028] CHIP:DMG: Product Id = 32774 + [1655374218.455780][35023:35028] CHIP:DMG: Product Id = 32775 + [1655374218.455818][35023:35028] CHIP:DMG: Product Id = 32776 + [1655374218.455855][35023:35028] CHIP:DMG: Product Id = 32777 + [1655374218.455893][35023:35028] CHIP:DMG: Product Id = 32778 + [1655374218.455931][35023:35028] CHIP:DMG: Product Id = 32779 + [1655374218.455969][35023:35028] CHIP:DMG: Product Id = 32780 + [1655374218.456007][35023:35028] CHIP:DMG: Product Id = 32781 + [1655374218.456045][35023:35028] CHIP:DMG: Product Id = 32782 + [1655374218.456082][35023:35028] CHIP:DMG: Product Id = 32783 + [1655374218.456120][35023:35028] CHIP:DMG: Product Id = 32784 + [1655374218.456158][35023:35028] CHIP:DMG: Product Id = 32785 + [1655374218.456196][35023:35028] CHIP:DMG: Product Id = 32786 + [1655374218.456234][35023:35028] CHIP:DMG: Product Id = 32787 + [1655374218.456271][35023:35028] CHIP:DMG: Product Id = 32788 + [1655374218.456309][35023:35028] CHIP:DMG: Product Id = 32789 + [1655374218.456347][35023:35028] CHIP:DMG: Product Id = 32790 + [1655374218.456385][35023:35028] CHIP:DMG: Product Id = 32791 + [1655374218.456423][35023:35028] CHIP:DMG: Product Id = 32792 + [1655374218.456461][35023:35028] CHIP:DMG: Product Id = 32793 + [1655374218.456498][35023:35028] CHIP:DMG: Product Id = 32794 + [1655374218.456536][35023:35028] CHIP:DMG: Product Id = 32795 + [1655374218.456573][35023:35028] CHIP:DMG: Product Id = 32796 + [1655374218.456611][35023:35028] CHIP:DMG: Product Id = 32797 + [1655374218.456649][35023:35028] CHIP:DMG: Product Id = 32798 + [1655374218.456687][35023:35028] CHIP:DMG: Product Id = 32799 + [1655374218.456724][35023:35028] CHIP:DMG: Product Id = 32800 + [1655374218.456761][35023:35028] CHIP:DMG: Product Id = 32801 + [1655374218.456799][35023:35028] CHIP:DMG: Product Id = 32802 + [1655374218.456836][35023:35028] CHIP:DMG: Product Id = 32803 + [1655374218.456874][35023:35028] CHIP:DMG: Product Id = 32804 + [1655374218.456912][35023:35028] CHIP:DMG: Product Id = 32805 + [1655374218.456949][35023:35028] CHIP:DMG: Product Id = 32806 + [1655374218.456987][35023:35028] CHIP:DMG: Product Id = 32807 + [1655374218.457024][35023:35028] CHIP:DMG: Product Id = 32808 + [1655374218.457061][35023:35028] CHIP:DMG: Product Id = 32809 + [1655374218.457099][35023:35028] CHIP:DMG: Product Id = 32810 + [1655374218.457138][35023:35028] CHIP:DMG: Product Id = 32811 + [1655374218.457175][35023:35028] CHIP:DMG: Product Id = 32812 + [1655374218.457212][35023:35028] CHIP:DMG: Product Id = 32813 + [1655374218.457250][35023:35028] CHIP:DMG: Product Id = 32814 + [1655374218.457288][35023:35028] CHIP:DMG: Product Id = 32815 + [1655374218.457326][35023:35028] CHIP:DMG: Product Id = 32816 + [1655374218.457363][35023:35028] CHIP:DMG: Product Id = 32817 + [1655374218.457401][35023:35028] CHIP:DMG: Product Id = 32818 + [1655374218.457439][35023:35028] CHIP:DMG: Product Id = 32819 + [1655374218.457476][35023:35028] CHIP:DMG: Product Id = 32820 + [1655374218.457514][35023:35028] CHIP:DMG: Product Id = 32821 + [1655374218.457552][35023:35028] CHIP:DMG: Product Id = 32822 + [1655374218.457590][35023:35028] CHIP:DMG: Product Id = 32823 + [1655374218.457627][35023:35028] CHIP:DMG: Product Id = 32824 + [1655374218.457665][35023:35028] CHIP:DMG: Product Id = 32825 + [1655374218.457702][35023:35028] CHIP:DMG: Product Id = 32826 + [1655374218.457740][35023:35028] CHIP:DMG: Product Id = 32827 + [1655374218.457777][35023:35028] CHIP:DMG: Product Id = 32828 + [1655374218.457833][35023:35028] CHIP:DMG: Product Id = 32829 + [1655374218.457874][35023:35028] CHIP:DMG: Product Id = 32830 + [1655374218.457912][35023:35028] CHIP:DMG: Product Id = 32831 + [1655374218.457950][35023:35028] CHIP:DMG: Product Id = 32832 + [1655374218.457987][35023:35028] CHIP:DMG: Product Id = 32833 + [1655374218.458026][35023:35028] CHIP:DMG: Product Id = 32834 + [1655374218.458063][35023:35028] CHIP:DMG: Product Id = 32835 + [1655374218.458101][35023:35028] CHIP:DMG: Product Id = 32836 + [1655374218.458139][35023:35028] CHIP:DMG: Product Id = 32837 + [1655374218.458177][35023:35028] CHIP:DMG: Product Id = 32838 + [1655374218.458215][35023:35028] CHIP:DMG: Product Id = 32839 + [1655374218.458253][35023:35028] CHIP:DMG: Product Id = 32840 + [1655374218.458291][35023:35028] CHIP:DMG: Product Id = 32841 + [1655374218.458328][35023:35028] CHIP:DMG: Product Id = 32842 + [1655374218.458366][35023:35028] CHIP:DMG: Product Id = 32843 + [1655374218.458404][35023:35028] CHIP:DMG: Product Id = 32844 + [1655374218.458441][35023:35028] CHIP:DMG: Product Id = 32845 + [1655374218.458480][35023:35028] CHIP:DMG: Product Id = 32846 + [1655374218.458517][35023:35028] CHIP:DMG: Product Id = 32847 + [1655374218.458555][35023:35028] CHIP:DMG: Product Id = 32848 + [1655374218.458592][35023:35028] CHIP:DMG: Product Id = 32849 + [1655374218.458630][35023:35028] CHIP:DMG: Product Id = 32850 + [1655374218.458667][35023:35028] CHIP:DMG: Product Id = 32851 + [1655374218.458706][35023:35028] CHIP:DMG: Product Id = 32852 + [1655374218.458743][35023:35028] CHIP:DMG: Product Id = 32853 + [1655374218.458781][35023:35028] CHIP:DMG: Product Id = 32854 + [1655374218.458818][35023:35028] CHIP:DMG: Product Id = 32855 + [1655374218.458856][35023:35028] CHIP:DMG: Product Id = 32856 + [1655374218.458893][35023:35028] CHIP:DMG: Product Id = 32857 + [1655374218.458932][35023:35028] CHIP:DMG: Product Id = 32858 + [1655374218.458969][35023:35028] CHIP:DMG: Product Id = 32859 + [1655374218.459007][35023:35028] CHIP:DMG: Product Id = 32860 + [1655374218.459045][35023:35028] CHIP:DMG: Product Id = 32861 + [1655374218.459082][35023:35028] CHIP:DMG: Product Id = 32862 + [1655374218.459120][35023:35028] CHIP:DMG: Product Id = 32863 + [1655374218.459159][35023:35028] CHIP:DMG: Product Id = 32864 + [1655374218.459196][35023:35028] CHIP:DMG: Product Id = 32865 + [1655374218.459234][35023:35028] CHIP:DMG: Product Id = 32866 + [1655374218.459271][35023:35028] CHIP:DMG: Product Id = 32867 + [1655374218.459309][35023:35028] CHIP:DMG: } + [1655374218.459347][35023:35028] CHIP:DMG: Device Type Id = 22 + [1655374218.459390][35023:35028] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655374218.459430][35023:35028] CHIP:DMG: Security Level = 0 + [1655374218.459470][35023:35028] CHIP:DMG: Security Information = 0 + [1655374218.459508][35023:35028] CHIP:DMG: Version Number = 9876 + [1655374218.459546][35023:35028] CHIP:DMG: Certification Type = 0 + [1655374218.459584][35023:35028] CHIP:DMG: } + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } disabled: true - label: "TH1 responds to the DUT with an invalid AttestationResponse Command - by setting the following error condition: Commissionee is not yet + by setting the following error condition: 1. Commissionee is not yet certified" verification: | - Verify that DUT notifies a warning stating that Commissionee is not a fully trusted device. - Verify that the warning contains the information about the reason for error condition. - If the warning message indicates that Commissioning is allowed then confirm that CSRRequest Command is sent from DUT to TH1 + disabled: true - label: "Factory Reset TH1 so that it is commissionable again" verification: | + "DUT side: + sudo rm -rf /tmp/chip_* + sudo ./chip-all-clusters-app --wifi + + TH side: + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1 + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success" disabled: true - label: "Repeat step 1 to step 7 and for step 5 set different error condition - as below: Commissionees PAA is not in the Commissioners trusted set. - Commissionee provides an invalid DAC and PAI chain as validated by TH - against the RFC5280 certificate Basic path validation algorithm - Commissionee provides DAC with validity period that is not in range of - PAA/PAI" + as below: 1. Commissionees PAA is not in the Commissioners trusted + set. 2. Commissionee provides an invalid DAC and PAI chain as + validated by TH against the RFC5280 certificate Basic path validation + algorithm 3. Commissionee provides DAC with validity period that is + not in range of PAA/PAI" verification: | disabled: true - label: "Repeat step 1 to step 7 and for step 5 set different error condition: - Certification Declaration has only one of the following fields - dac_origin_vendor_id dac_origin_product_id vendor_id field in the + 1. Certification Declaration has only one of the following fields + dac_origin_vendor_id dac_origin_product_id 2. vendor_id field in the Certification Declaration does not match with the VendorID attribute - found in the Basic Information cluster The Vendor ID in the DAC does - not match the vendor_id field in the Certification Declaration. The - Product ID (PID) the DAC is not present in the product_id_array field - in the Certification Declaration" + found in the Basic Information cluster 3. The Vendor ID in the DAC + does not match the vendor_id field in the Certification Declaration. + 4. The Product ID (PID) the DAC is not present in the product_id_array + field in the Certification Declaration" verification: | disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DA_1_5.yaml b/src/app/tests/suites/certification/Test_TC_DA_1_5.yaml index ca76c215c1055e..6556f7cd04c0a8 100644 --- a/src/app/tests/suites/certification/Test_TC_DA_1_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_DA_1_5.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: 17.1.5. [TC-DA-1.5] NOCSR Procedure Validation [DUT - Commissionee] +name: 4.1.5. [TC-DA-1.5] NOCSR Procedure Validation [DUT - Commissionee] config: nodeId: 0x12344321 @@ -23,73 +23,581 @@ config: tests: - label: "TH1 Completes the Attestation procedure" verification: | + Verify in TH log: + [1655374218.114327][35023:35028] CHIP:CTL: Performing next commissioning step 'SendAttestationRequest' + [1655374218.114378][35023:35028] CHIP:CTL: Sending Attestation Request to the device. + [1655374218.114556][35023:35028] CHIP:CTL: Sending Attestation request to 0xffff74000b60 device + [1655374218.114675][35023:35028] CHIP:DMG: ICR moving to [AddingComm] + [1655374218.114746][35023:35028] CHIP:DMG: ICR moving to [AddedComma] + [1655374218.115227][35023:35028] CHIP:IN: Prepared secure message 0xffff7bffc958 to 0xFFFFFFFB00000000 (0) of type 0x8 and protocolId (0, 1) on exchange 1302i with MessageCounter:20936210. + [1655374218.115326][35023:35028] CHIP:IN: Sending encrypted msg 0xffff7bffc958 with MessageCounter:20936210 to 0xFFFFFFFB00000000 (0) at monotonic time: 00000000004F8059 msec + [1655374218.115908][35023:35028] CHIP:DMG: >> to BLE | 20936210 | [Interaction Model (1) / InvokeCommandRequest (0x08) / Session = 43668 / Exchange = 1302] + [1655374218.116008][35023:35028] CHIP:DMG: Header Flags = + [1655374218.116065][35023:35028] CHIP:DMG: { + [1655374218.116149][35023:35028] CHIP:DMG: Exchange (0x01) = + [1655374218.116187][35023:35028] CHIP:DMG: { + [1655374218.116209][35023:35028] CHIP:DMG: Initiator = true + [1655374218.116233][35023:35028] CHIP:DMG: } + [1655374218.116264][35023:35028] CHIP:DMG: } + [1655374218.116288][35023:35028] CHIP:DMG: + [1655374218.116381][35023:35028] CHIP:DMG: Encrypted Payload (94 bytes) = + [1655374218.116408][35023:35028] CHIP:DMG: { + [1655374218.116432][35023:35028] CHIP:DMG: data = 0094aa0012763f01f66833cd7fd4d0b928d486cd8459db3eb0f11f7b48d3145a810b0c2e03ea68c89e4ee9cf28127369ac0eef32376c5303945a2fe8c99d13a49086721cd68804d90415fef75a0b464605f2d0245f293767a4077eb7d5eb + [1655374218.116458][35023:35028] CHIP:DMG: buffer_ptr = 281472627988496 + [1655374218.116482][35023:35028] CHIP:DMG: } + [1655374218.116505][35023:35028] CHIP:DMG: + [1655374218.116585][35023:35028] CHIP:DMG: InvokeRequestMessage = + [1655374218.116614][35023:35028] CHIP:DMG: { + [1655374218.116640][35023:35028] CHIP:DMG: suppressResponse = false, + [1655374218.116669][35023:35028] CHIP:DMG: timedRequest = false, + [1655374218.116697][35023:35028] CHIP:DMG: InvokeRequests = + [1655374218.116732][35023:35028] CHIP:DMG: [ + [1655374218.116759][35023:35028] CHIP:DMG: CommandDataIB = + [1655374218.116790][35023:35028] CHIP:DMG: { + [1655374218.116818][35023:35028] CHIP:DMG: CommandPathIB = + [1655374218.116853][35023:35028] CHIP:DMG: { + [1655374218.116888][35023:35028] CHIP:DMG: EndpointId = 0x0, + [1655374218.116926][35023:35028] CHIP:DMG: ClusterId = 0x3e, + [1655374218.116966][35023:35028] CHIP:DMG: CommandId = 0x0, + [1655374218.117000][35023:35028] CHIP:DMG: }, + [1655374218.117037][35023:35028] CHIP:DMG: + [1655374218.117068][35023:35028] CHIP:DMG: CommandFields = + [1655374218.117103][35023:35028] CHIP:DMG: { + [1655374218.117137][35023:35028] CHIP:DMG: 0x0 = [ + [1655374218.117184][35023:35028] CHIP:DMG: 0x76, 0x2b, 0x6b, 0x9d, 0xa0, 0x8f, 0x7f, 0xc6, 0x3b, 0xb6, 0x93, 0xe3, 0x86, 0x34, 0xec, 0x6f, 0x87, 0xce, 0xff, 0x28, 0xab, 0x15, 0x54, 0xa1, 0x6a, 0xd4, 0x3d, 0xce, 0xc2, 0x4c, 0x24, 0x66, + [1655374218.117223][35023:35028] CHIP:DMG: ] + [1655374218.117257][35023:35028] CHIP:DMG: }, + [1655374218.117290][35023:35028] CHIP:DMG: }, + [1655374218.117323][35023:35028] CHIP:DMG: + [1655374218.117350][35023:35028] CHIP:DMG: ], + [1655374218.117384][35023:35028] CHIP:DMG: + [1655374218.117410][35023:35028] CHIP:DMG: InteractionModelRevision = 1 + [1655374218.117436][35023:35028] CHIP:DMG: }, + [1655374218.117462][35023:35028] CHIP:DMG: + [1655374218.117597][35023:35028] CHIP:DMG: ICR moving to [CommandSen] + [1655374218.117635][35023:35028] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655374218.117686][35023:35028] CHIP:DMG: ICR moving to [AwaitingDe] + [1655374218.204040][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655374218.252180][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.252405][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.352372][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.352509][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.450622][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.450870][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.452138][35023:35028] CHIP:DMG: << from BLE | 224958145 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 19710 / Exchange = 1302] + [1655374218.452241][35023:35028] CHIP:DMG: Header Flags = + [1655374218.452300][35023:35028] CHIP:DMG: { + [1655374218.452395][35023:35028] CHIP:DMG: } + [1655374218.452449][35023:35028] CHIP:DMG: + [1655374218.452521][35023:35028] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655374218.452579][35023:35028] CHIP:DMG: { + [1655374218.452634][35023:35028] CHIP:DMG: data = 00fe4c00c196680d30c5e98d35a6d844102a8b0067edba80e2adf97e28751f8353657dacb7c9706c2c22add28d18adca15378d16af57f0f4092893cfc5d3e85f6e409f70e39bcb9e0bd3397947e927d20e5bf5173e3def7218d0152cf40e7cb16db615efbd282fd6e84c710bd2c7441228eb5dbbcf0dc76a3eaa0b04655f434d3c8223c7016703b8082c9984c3a91432d12271c87f4d09e90cb6e78d07c81d6359cd5a756f2bace60a7a216896949b536e5583f22db64aeae0279ba2fd279813be383e4324ab63472e3d9877f6c9fa539e577dc50fbcc5a7124a14ea78abdd6ada4ec256a3ee0a242747d636215ffab3c8b4291023eb51b3701939e153912b0f5764479b05e1cf472c350304d1ead872295c80fed3a545530f773e729b6f7bd7d5547de03076a72b8855191beb12d8194477bc9798b6177557cccf3b11b2c1f82cee31d451408359650112394dc2c1592cd2eb1e75881aa340885e65ef9a9905947842574ddcac832d68188b0a3a20fb223258d766692b13a6cde0de34d4f9047046d38ad94caf0a9cc7a786c082d5ae8c62346d69684c6ed5ae958ab68c0685922751ff04d922a838c9d2257a7af6e72af524b459a45ea6311431d30c7de32b3d79581ac119d6e7f63a877b53fda9d69256c5870f2af36f74e08b22e1217a0324b772394a4a596ff237331c623b8d7746077826088dddd2a741f19011cde09f1e897f92ac975fd9a157de0b780f6551b11a50ffe12c781f304dbda9dd75465fb3a8ec52d30f7ddb9179f1b9dfe415ae2d66a53bad67bcf27b3351b8a5cdc9e8b54095c81774007237c8a14a3e2c9cf350616cf5ebf7f6ae5a8c77207924b0e1cddc6c7e77c2a514319947c5988af1dd77325259f496293e53041941d45a1355f56b8036008ab696f7d47d17f9fc4890aa78c2811560b7b4d79a460b7dcd3d9bc3bdd5f72d27bb0060f722aa9c22e7d635895404c832bf2371321d1ababa954482c847fedd0d4676bd188365 + [1655374218.452884][35023:35028] CHIP:DMG: buffer_ptr = 281472627984864 + [1655374218.452941][35023:35028] CHIP:DMG: } + [1655374218.452992][35023:35028] CHIP:DMG: + [1655374218.453303][35023:35028] CHIP:DMG: Attestation Elements (585 bytes) = + [1655374218.453366][35023:35028] CHIP:DMG: { + [1655374218.453431][35023:35028] CHIP:DMG: Certification Declaration = + [1655374218.453483][35023:35028] CHIP:DMG: { + [1655374218.455342][35023:35028] CHIP:DMG: Format Version = 1 + [1655374218.455398][35023:35028] CHIP:DMG: Vendor Id = 65521 + [1655374218.455438][35023:35028] CHIP:DMG: Product Ids = + [1655374218.455474][35023:35028] CHIP:DMG: { + [1655374218.455512][35023:35028] CHIP:DMG: Product Id = 32768 + [1655374218.455552][35023:35028] CHIP:DMG: Product Id = 32769 + [1655374218.455590][35023:35028] CHIP:DMG: Product Id = 32770 + [1655374218.455628][35023:35028] CHIP:DMG: Product Id = 32771 + [1655374218.455666][35023:35028] CHIP:DMG: Product Id = 32772 + [1655374218.455704][35023:35028] CHIP:DMG: Product Id = 32773 + [1655374218.455742][35023:35028] CHIP:DMG: Product Id = 32774 + [1655374218.455780][35023:35028] CHIP:DMG: Product Id = 32775 + [1655374218.455818][35023:35028] CHIP:DMG: Product Id = 32776 + [1655374218.455855][35023:35028] CHIP:DMG: Product Id = 32777 + [1655374218.455893][35023:35028] CHIP:DMG: Product Id = 32778 + [1655374218.455931][35023:35028] CHIP:DMG: Product Id = 32779 + [1655374218.455969][35023:35028] CHIP:DMG: Product Id = 32780 + [1655374218.456007][35023:35028] CHIP:DMG: Product Id = 32781 + [1655374218.456045][35023:35028] CHIP:DMG: Product Id = 32782 + [1655374218.456082][35023:35028] CHIP:DMG: Product Id = 32783 + [1655374218.456120][35023:35028] CHIP:DMG: Product Id = 32784 + [1655374218.456158][35023:35028] CHIP:DMG: Product Id = 32785 + [1655374218.456196][35023:35028] CHIP:DMG: Product Id = 32786 + [1655374218.456234][35023:35028] CHIP:DMG: Product Id = 32787 + [1655374218.456271][35023:35028] CHIP:DMG: Product Id = 32788 + [1655374218.456309][35023:35028] CHIP:DMG: Product Id = 32789 + [1655374218.456347][35023:35028] CHIP:DMG: Product Id = 32790 + [1655374218.456385][35023:35028] CHIP:DMG: Product Id = 32791 + [1655374218.456423][35023:35028] CHIP:DMG: Product Id = 32792 + [1655374218.456461][35023:35028] CHIP:DMG: Product Id = 32793 + [1655374218.456498][35023:35028] CHIP:DMG: Product Id = 32794 + [1655374218.456536][35023:35028] CHIP:DMG: Product Id = 32795 + [1655374218.456573][35023:35028] CHIP:DMG: Product Id = 32796 + [1655374218.456611][35023:35028] CHIP:DMG: Product Id = 32797 + [1655374218.456649][35023:35028] CHIP:DMG: Product Id = 32798 + [1655374218.456687][35023:35028] CHIP:DMG: Product Id = 32799 + [1655374218.456724][35023:35028] CHIP:DMG: Product Id = 32800 + [1655374218.456761][35023:35028] CHIP:DMG: Product Id = 32801 + [1655374218.456799][35023:35028] CHIP:DMG: Product Id = 32802 + [1655374218.456836][35023:35028] CHIP:DMG: Product Id = 32803 + [1655374218.456874][35023:35028] CHIP:DMG: Product Id = 32804 + [1655374218.456912][35023:35028] CHIP:DMG: Product Id = 32805 + [1655374218.456949][35023:35028] CHIP:DMG: Product Id = 32806 + [1655374218.456987][35023:35028] CHIP:DMG: Product Id = 32807 + [1655374218.457024][35023:35028] CHIP:DMG: Product Id = 32808 + [1655374218.457061][35023:35028] CHIP:DMG: Product Id = 32809 + [1655374218.457099][35023:35028] CHIP:DMG: Product Id = 32810 + [1655374218.457138][35023:35028] CHIP:DMG: Product Id = 32811 + [1655374218.457175][35023:35028] CHIP:DMG: Product Id = 32812 + [1655374218.457212][35023:35028] CHIP:DMG: Product Id = 32813 + [1655374218.457250][35023:35028] CHIP:DMG: Product Id = 32814 + [1655374218.457288][35023:35028] CHIP:DMG: Product Id = 32815 + [1655374218.457326][35023:35028] CHIP:DMG: Product Id = 32816 + [1655374218.457363][35023:35028] CHIP:DMG: Product Id = 32817 + [1655374218.457401][35023:35028] CHIP:DMG: Product Id = 32818 + [1655374218.457439][35023:35028] CHIP:DMG: Product Id = 32819 + [1655374218.457476][35023:35028] CHIP:DMG: Product Id = 32820 + [1655374218.457514][35023:35028] CHIP:DMG: Product Id = 32821 + [1655374218.457552][35023:35028] CHIP:DMG: Product Id = 32822 + [1655374218.457590][35023:35028] CHIP:DMG: Product Id = 32823 + [1655374218.457627][35023:35028] CHIP:DMG: Product Id = 32824 + [1655374218.457665][35023:35028] CHIP:DMG: Product Id = 32825 + [1655374218.457702][35023:35028] CHIP:DMG: Product Id = 32826 + [1655374218.457740][35023:35028] CHIP:DMG: Product Id = 32827 + [1655374218.457777][35023:35028] CHIP:DMG: Product Id = 32828 + [1655374218.457833][35023:35028] CHIP:DMG: Product Id = 32829 + [1655374218.457874][35023:35028] CHIP:DMG: Product Id = 32830 + [1655374218.457912][35023:35028] CHIP:DMG: Product Id = 32831 + [1655374218.457950][35023:35028] CHIP:DMG: Product Id = 32832 + [1655374218.457987][35023:35028] CHIP:DMG: Product Id = 32833 + [1655374218.458026][35023:35028] CHIP:DMG: Product Id = 32834 + [1655374218.458063][35023:35028] CHIP:DMG: Product Id = 32835 + [1655374218.458101][35023:35028] CHIP:DMG: Product Id = 32836 + [1655374218.458139][35023:35028] CHIP:DMG: Product Id = 32837 + [1655374218.458177][35023:35028] CHIP:DMG: Product Id = 32838 + [1655374218.458215][35023:35028] CHIP:DMG: Product Id = 32839 + [1655374218.458253][35023:35028] CHIP:DMG: Product Id = 32840 + [1655374218.458291][35023:35028] CHIP:DMG: Product Id = 32841 + [1655374218.458328][35023:35028] CHIP:DMG: Product Id = 32842 + [1655374218.458366][35023:35028] CHIP:DMG: Product Id = 32843 + [1655374218.458404][35023:35028] CHIP:DMG: Product Id = 32844 + [1655374218.458441][35023:35028] CHIP:DMG: Product Id = 32845 + [1655374218.458480][35023:35028] CHIP:DMG: Product Id = 32846 + [1655374218.458517][35023:35028] CHIP:DMG: Product Id = 32847 + [1655374218.458555][35023:35028] CHIP:DMG: Product Id = 32848 + [1655374218.458592][35023:35028] CHIP:DMG: Product Id = 32849 + [1655374218.458630][35023:35028] CHIP:DMG: Product Id = 32850 + [1655374218.458667][35023:35028] CHIP:DMG: Product Id = 32851 + [1655374218.458706][35023:35028] CHIP:DMG: Product Id = 32852 + [1655374218.458743][35023:35028] CHIP:DMG: Product Id = 32853 + [1655374218.458781][35023:35028] CHIP:DMG: Product Id = 32854 + [1655374218.458818][35023:35028] CHIP:DMG: Product Id = 32855 + [1655374218.458856][35023:35028] CHIP:DMG: Product Id = 32856 + [1655374218.458893][35023:35028] CHIP:DMG: Product Id = 32857 + [1655374218.458932][35023:35028] CHIP:DMG: Product Id = 32858 + [1655374218.458969][35023:35028] CHIP:DMG: Product Id = 32859 + [1655374218.459007][35023:35028] CHIP:DMG: Product Id = 32860 + [1655374218.459045][35023:35028] CHIP:DMG: Product Id = 32861 + [1655374218.459082][35023:35028] CHIP:DMG: Product Id = 32862 + [1655374218.459120][35023:35028] CHIP:DMG: Product Id = 32863 + [1655374218.459159][35023:35028] CHIP:DMG: Product Id = 32864 + [1655374218.459196][35023:35028] CHIP:DMG: Product Id = 32865 + [1655374218.459234][35023:35028] CHIP:DMG: Product Id = 32866 + [1655374218.459271][35023:35028] CHIP:DMG: Product Id = 32867 + [1655374218.459309][35023:35028] CHIP:DMG: } + [1655374218.459347][35023:35028] CHIP:DMG: Device Type Id = 22 + [1655374218.459390][35023:35028] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655374218.459430][35023:35028] CHIP:DMG: Security Level = 0 + [1655374218.459470][35023:35028] CHIP:DMG: Security Information = 0 + [1655374218.459508][35023:35028] CHIP:DMG: Version Number = 9876 + [1655374218.459546][35023:35028] CHIP:DMG: Certification Type = 0 + [1655374218.459584][35023:35028] CHIP:DMG: } + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } + [1655374218.459732][35023:35028] CHIP:DMG: + [1655374218.459776][35023:35028] CHIP:DMG: + [1655374218.459846][35023:35028] CHIP:DMG: Additional Fields = + [1655374218.459884][35023:35028] CHIP:DMG: { + [1655374218.459924][35023:35028] CHIP:DMG: peer_address = BLE + [1655374218.459960][35023:35028] CHIP:DMG: } + [1655374218.459993][35023:35028] CHIP:DMG: + [1655374218.460045][35023:35028] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:224958145 on exchange 1302i + [1655374218.460090][35023:35028] CHIP:EM: Found matching exchange: 1302i, Delegate: 0xffff74005ab0 + [1655374218.460157][35023:35028] CHIP:DMG: ICR moving to [ResponseRe] + [1655374218.460220][35023:35028] CHIP:DMG: InvokeResponseMessage = + [1655374218.460260][35023:35028] CHIP:DMG: { + [1655374218.460298][35023:35028] CHIP:DMG: suppressResponse = false, + [1655374218.460338][35023:35028] CHIP:DMG: InvokeResponseIBs = + [1655374218.460390][35023:35028] CHIP:DMG: [ + [1655374218.460430][35023:35028] CHIP:DMG: InvokeResponseIB = + [1655374218.460487][35023:35028] CHIP:DMG: { + [1655374218.460530][35023:35028] CHIP:DMG: CommandDataIB = + [1655374218.460580][35023:35028] CHIP:DMG: { + [1655374218.460628][35023:35028] CHIP:DMG: CommandPathIB = + [1655374218.460686][35023:35028] CHIP:DMG: { + [1655374218.460745][35023:35028] CHIP:DMG: EndpointId = 0x0, + [1655374218.460802][35023:35028] CHIP:DMG: ClusterId = 0x3e, + [1655374218.460852][35023:35028] CHIP:DMG: CommandId = 0x1, + [1655374218.460906][35023:35028] CHIP:DMG: }, + [1655374218.460962][35023:35028] CHIP:DMG: + [1655374218.461010][35023:35028] CHIP:DMG: CommandFields = + [1655374218.461068][35023:35028] CHIP:DMG: { + [1655374218.461123][35023:35028] CHIP:DMG: 0x0 = [ + [1655374218.461351][35023:35028] CHIP:DMG: 0x15, 0x31, 0x1, 0x1d, 0x2, 0x30, 0x82, 0x2, 0x19, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0x2, 0xa, 0x30, 0x82, 0x2, 0x6, 0x2, 0x1, 0x3, 0x31, 0xd, 0x30, 0xb, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x30, 0x82, 0x1, 0x71, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x1, 0xa0, 0x82, 0x1, 0x62, 0x4, 0x82, 0x1, 0x5e, 0x15, 0x24, 0x0, 0x1, 0x25, 0x1, 0xf1, 0xff, 0x36, 0x2, 0x5, 0x0, 0x80, 0x5, 0x1, 0x80, 0x5, 0x2, 0x80, 0x5, 0x3, 0x80, 0x5, 0x4, 0x80, 0x5, 0x5, 0x80, 0x5, 0x6, 0x80, 0x5, 0x7, 0x80, 0x5, 0x8, 0x80, 0x5, 0x9, 0x80, 0x5, 0xa, 0x80, 0x5, 0xb, 0x80, 0x5, 0xc, 0x80, 0x5, 0xd, 0x80, 0x5, 0xe, 0x80, 0x5, 0xf, 0x80, 0x5, 0x10, 0x80, 0x5, 0x11, 0x80, 0x5, 0x12, 0x80, 0x5, 0x13, 0x80, 0x5, 0x14, 0x80, 0x5, 0x15, 0x80, 0x5, 0x16, 0x80, 0x5, 0x17, 0x80, 0x5, 0x18, 0x80, 0x5, 0x19, 0x80, 0x5, 0x1a, 0x80, 0x5, 0x1b, 0x80, 0x5, 0x1c, 0x80, 0x5, 0x1d, 0x80, 0x5, 0x1e, 0x80, 0x5, 0x1f, 0x80, 0x5, 0x20, 0x80, 0x5, 0x21, 0x80, 0x5, 0x22, 0x80, 0x5, 0x23, 0x80, 0x5, 0x24, 0x80, 0x5, 0x25, 0x80, 0x5, 0x26, 0x80, 0x5, 0x27, 0x80, 0x5, 0x28, 0x80, 0x5, 0x29, 0x80, 0x5, 0x2a, 0x80, 0x5, 0x2b, 0x80, 0x5, 0x2c, 0x80, 0x5, 0x2d, 0x80, 0x5, 0x2e, 0x80, 0x5, 0x2f, 0x80, 0x5, 0x30, 0x80, 0x5, 0x31, 0x80, 0x5, 0x32, 0x80, 0x5, 0x33, 0x80, 0x5, 0x34, 0x80, 0x5, 0x35, 0x80, 0x5, 0x36, 0x80, 0x5, 0x37, 0x80, 0x5, 0x38, 0x80, 0x5, 0x39, 0x80, 0x5, 0x3a, 0x80, 0x5, 0x3b, 0x80, 0x5, 0x3c, 0x80, 0x5, 0x3d, 0x80, 0x5, 0x3e, 0x80, 0x5, 0x3f, 0x80, 0x5, 0x40, 0x80, 0x5, 0x41, 0x80, 0x5, 0x42, 0x80, 0x5, 0x43, 0x80, 0x5, 0x44, 0x80, 0x5, 0x45, 0x80, 0x5, 0x46, 0x80, 0x5, 0x47, 0x80, 0x5, 0x48, 0x80, 0x5, 0x49, 0x80, 0x5, 0x4a, 0x80, 0x5, 0x + [1655374218.461469][35023:35028] CHIP:DMG: ] + [1655374218.461523][35023:35028] CHIP:DMG: 0x1 = [ + [1655374218.461611][35023:35028] CHIP:DMG: 0xd6, 0x91, 0x3d, 0x0, 0x37, 0xd3, 0x23, 0x11, 0xa9, 0xe6, 0x23, 0xe3, 0xb0, 0x80, 0x27, 0x71, 0xc2, 0xb1, 0xdc, 0xe1, 0xb8, 0x95, 0x7c, 0x88, 0x92, 0xc6, 0x84, 0xe4, 0x21, 0xa2, 0x87, 0x22, 0x6d, 0xeb, 0x42, 0x82, 0x67, 0xe0, 0x9c, 0x17, 0xb1, 0x1c, 0x1, 0xff, 0x8b, 0xff, 0x23, 0x47, 0xc4, 0xe7, 0x6, 0x1d, 0x8f, 0x1e, 0x26, 0x8e, 0xad, 0xbd, 0xc9, 0x9e, 0x23, 0x88, 0xdb, 0xb6, + [1655374218.461681][35023:35028] CHIP:DMG: ] + [1655374218.461733][35023:35028] CHIP:DMG: }, + [1655374218.461783][35023:35028] CHIP:DMG: }, + [1655374218.461855][35023:35028] CHIP:DMG: + [1655374218.461900][35023:35028] CHIP:DMG: }, + [1655374218.461951][35023:35028] CHIP:DMG: + [1655374218.461990][35023:35028] CHIP:DMG: ], + [1655374218.462041][35023:35028] CHIP:DMG: + [1655374218.462080][35023:35028] CHIP:DMG: InteractionModelRevision = 1 + [1655374218.462118][35023:35028] CHIP:DMG: }, + [1655374218.462220][35023:35028] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0001 + [1655374218.462275][35023:35028] CHIP:CTL: Received Attestation Information from the device + [1655374218.462320][35023:35028] CHIP:CTL: Successfully finished commissioning step 'SendAttestationRequest' disabled: true - label: "TH1 generates 32-byte CSRNonce" verification: | + Verify in TH log + [1655374218.694869][35023:35028] CHIP:DMG: NOCSR Elements = + [1655374218.694922][35023:35028] CHIP:DMG: { + [1655374218.695009][35023:35028] CHIP:DMG: CSR (203) = 3081C83070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D03010703420004FD1662E0C1F44C5BD8A284452ED17C631CA88697CBF396EB765397315ED248729BFC7DE464404B1FA34B2DD81714E2484B8E908121BB95DFDA4493D5CDDA797AA000300A06082A8648CE3D0403020348003045022100832718B8679DB2C9A26579F08D930F7DA747F6F23EE2DD11777FBF1191909FD3022073E039F63AEA4C1BF812AE65221CB09203FF1BD382872FB37478C2C4045FD8B8 + [1655374218.695086][35023:35028] CHIP:DMG: CSRNonce (32) = 79964F34E68A97E41DBDFE7888583183535EDC3A185AF99941BDA4C5A65FDA39 + [1655374218.695133][35023:35028] CHIP:DMG: } disabled: true - label: "TH1 sends CSRRequest Command with CSRNonce as field to the DUT." verification: | - Verify that the DUT generates the NOCSR Information using CSRResponse Command + Verify in TH log + + [1655374218.694869][35023:35028] CHIP:DMG: NOCSR Elements = + [1655374218.694922][35023:35028] CHIP:DMG: { + [1655374218.695009][35023:35028] CHIP:DMG: CSR (203) = 3081C83070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D03010703420004FD1662E0C1F44C5BD8A284452ED17C631CA88697CBF396EB765397315ED248729BFC7DE464404B1FA34B2DD81714E2484B8E908121BB95DFDA4493D5CDDA797AA000300A06082A8648CE3D0403020348003045022100832718B8679DB2C9A26579F08D930F7DA747F6F23EE2DD11777FBF1191909FD3022073E039F63AEA4C1BF812AE65221CB09203FF1BD382872FB37478C2C4045FD8B8 + [1655374218.695086][35023:35028] CHIP:DMG: CSRNonce (32) = 79964F34E68A97E41DBDFE7888583183535EDC3A185AF99941BDA4C5A65FDA39 + [1655374218.695133][35023:35028] CHIP:DMG: } disabled: true - label: "Save following information that is sent by the DUT in the CSRResponse Command NOCSRElement Node Operational Key Pair as Key 1" verification: | + Verify in TH log + [1655374218.694869][35023:35028] CHIP:DMG: NOCSR Elements = + [1655374218.694922][35023:35028] CHIP:DMG: { + [1655374218.695009][35023:35028] CHIP:DMG: CSR (203) = 3081C83070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D03010703420004FD1662E0C1F44C5BD8A284452ED17C631CA88697CBF396EB765397315ED248729BFC7DE464404B1FA34B2DD81714E2484B8E908121BB95DFDA4493D5CDDA797AA000300A06082A8648CE3D0403020348003045022100832718B8679DB2C9A26579F08D930F7DA747F6F23EE2DD11777FBF1191909FD3022073E039F63AEA4C1BF812AE65221CB09203FF1BD382872FB37478C2C4045FD8B8 + [1655374218.695086][35023:35028] CHIP:DMG: CSRNonce (32) = 79964F34E68A97E41DBDFE7888583183535EDC3A185AF99941BDA4C5A65FDA39 + [1655374218.695133][35023:35028] CHIP:DMG: } disabled: true - label: "TH1 sends AddTrustedRootCertificate command to DUT to install the Root CA Certificate to the trust store" verification: | - Verify that AddTrustedRootCertificate Command succeeds by sending the status code as SUCCESS + 1. ./chip-tool generalcommissioning arm-fail-safe 500 600 1 0 + + 2. ./chip-tool operationalcredentials add-trusted-root-certificate 1530010100240201370324140018260480228127260580254D3A37062414001824070124080130094104277CAFBA69B2C219DF198735F27E3874019F75812933BC737FF8BA660902FE97D212E925D0B53B0755C52B3CDCAC9B797C2B452ED76D9B5F348A0586043857F3370A3501290118240260300414CD47A91F241CF86E4CE627568ACD47BB3A25C106300514CD47A91F241CF86E4CE627568ACD47BB3A25C10618300B40A937FE4F3921D229051DF5F5D3EEBD52A5012405D15EBA8A7542B9F54D33D406DF0F09247529012 1 0 + + + + + [1655374218.706390][35023:35028] CHIP:DMG: CommandFields = + [1655374218.706431][35023:35028] CHIP:DMG: { + [1655374218.706464][35023:35028] CHIP:DMG: 0x0 = [ + [1655374218.706591][35023:35028] CHIP:DMG: 0x15, 0x30, 0x1, 0x1, 0x0, 0x24, 0x2, 0x1, 0x37, 0x3, 0x24, 0x14, 0x0, 0x18, 0x26, 0x4, 0x80, 0x22, 0x81, 0x27, 0x26, 0x5, 0x80, 0x25, 0x4d, 0x3a, 0x37, 0x6, 0x24, 0x14, 0x0, 0x18, 0x24, 0x7, 0x1, 0x24, 0x8, 0x1, 0x30, 0x9, 0x41, 0x4, 0xab, 0xae, 0x5e, 0xc6, 0x4f, 0xc4, 0x6e, 0x99, 0xc, 0x44, 0x55, 0x39, 0x2, 0x45, 0xf6, 0xe9, 0x9, 0xcb, 0xc3, 0xc3, 0xc, 0xa0, 0x8, 0xb7, 0x36, 0x96, 0x62, 0x56, 0x43, 0x56, 0xba, 0x22, 0x25, 0x38, 0x6f, 0x40, 0x50, 0xf8, 0x7b, 0xd1, 0xd7, 0xe4, 0xd6, 0x5c, 0x12, 0x30, 0x84, 0x91, 0xb3, 0x10, 0x8f, 0x6a, 0x71, 0x8, 0xe1, 0xf0, 0xc3, 0xa0, 0xd2, 0x4, 0x99, 0xe3, 0xfb, 0xf, 0x37, 0xa, 0x35, 0x1, 0x29, 0x1, 0x18, 0x24, 0x2, 0x60, 0x30, 0x4, 0x14, 0x89, 0x4f, 0x8f, 0xdd, 0xf2, 0x13, 0x8d, 0x8e, 0xe0, 0x12, 0x13, 0x72, 0xa2, 0xb4, 0x23, 0x25, 0xef, 0xd6, 0x25, 0x8c, 0x30, 0x5, 0x14, 0x89, 0x4f, 0x8f, 0xdd, 0xf2, 0x13, 0x8d, 0x8e, 0xe0, 0x12, 0x13, 0x72, 0xa2, 0xb4, 0x23, 0x25, 0xef, 0xd6, 0x25, 0x8c, 0x18, 0x30, 0xb, 0x40, 0xd3, 0x8f, 0x56, 0xa2, 0xd9, 0xb4, 0x4a, 0x3a, 0x79, 0x6d, 0xed, 0xd7, 0x1c, 0x7a, 0x3e, 0xd6, 0xb9, 0x8d, 0x80, 0xd6, 0x3d, 0xe2, 0xde, 0xa5, 0xb0, 0x3b, 0xc0, 0xce, 0x1a, 0xe9, 0x26, 0x0, 0x9d, 0x9c, 0x78, 0xe4, 0xf3, 0x78, 0x74, 0x3a, 0xd, 0xfa, 0xc8, 0x1f, 0x27, 0xaa, 0x5e, 0x9b, 0xef, 0x78, 0x48, 0x1e, 0x6a, 0x60, 0x1a, 0x71, 0xd8, 0x67, 0x9, 0x40, 0xb3, 0xe4, 0xd0, 0xc6, 0x18, + + Verify we are getting success response + [1655371172.014771][2459:2464] CHIP:DMG: InvokeResponseMessage = + [1655371172.014797][2459:2464] CHIP:DMG: { + [1655371172.014822][2459:2464] CHIP:DMG: suppressResponse = false, + [1655371172.014854][2459:2464] CHIP:DMG: InvokeResponseIBs = + [1655371172.014889][2459:2464] CHIP:DMG: [ + [1655371172.014914][2459:2464] CHIP:DMG: InvokeResponseIB = + [1655371172.014959][2459:2464] CHIP:DMG: { + [1655371172.014989][2459:2464] CHIP:DMG: CommandStatusIB = + [1655371172.015024][2459:2464] CHIP:DMG: { + [1655371172.015055][2459:2464] CHIP:DMG: CommandPathIB = + [1655371172.015090][2459:2464] CHIP:DMG: { + [1655371172.015125][2459:2464] CHIP:DMG: EndpointId = 0x0, + [1655371172.015161][2459:2464] CHIP:DMG: ClusterId = 0x3e, + [1655371172.015196][2459:2464] CHIP:DMG: CommandId = 0xb, + [1655371172.015229][2459:2464] CHIP:DMG: }, + [1655371172.015266][2459:2464] CHIP:DMG: + [1655371172.015297][2459:2464] CHIP:DMG: StatusIB = + [1655371172.015332][2459:2464] CHIP:DMG: { + [1655371172.015366][2459:2464] CHIP:DMG: status = 0x00 (SUCCESS), + [1655371172.015399][2459:2464] CHIP:DMG: }, + [1655371172.015433][2459:2464] CHIP:DMG: + [1655371172.015464][2459:2464] CHIP:DMG: }, + [1655371172.015498][2459:2464] CHIP:DMG: + [1655371172.015527][2459:2464] CHIP:DMG: }, + [1655371172.015560][2459:2464] CHIP:DMG: + [1655371172.015584][2459:2464] CHIP:DMG: ], + [1655371172.015614][2459:2464] CHIP:DMG: + [1655371172.015639][2459:2464] CHIP:DMG: InteractionModelRevision = 1 + [1655371172.015665][2459:2464] CHIP:DMG: }, + [1655371172.015725][2459:2464] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003E Command=0x0000_000B Status=0x0 + [1655371172.015770][2459:2464] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: "TH1 Sends AddNOC Command to DUT" verification: | - Verify that DUT responds with NOCResponse command with status code OK + https://github.com/project-chip/connectedhomeip/issues/19068 disabled: true - label: "Read the NOCs List from the DUT" verification: | - Verify that Key1 is present in the NOCs list + ./chip-tool operationalcredentials read nocs 1 0 + + [1655470923.441130][13282:13287] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0000 DataVersion: 2667297991 + [1655470923.441223][13282:13287] CHIP:TOO: NOCs: 1 entries + [1655470923.441297][13282:13287] CHIP:TOO: [1]: { + [1655470923.441352][13282:13287] CHIP:TOO: Noc: 1530010101240201370324130118260480228127260580254D3A37062415012411011824070124080130094104D5FA104FF03F9118BDC2A072D50DB3BED32C47F138439FBF05753D02D01AEC10F350CB77EA22844A83FF0FEF6CFA764F5B1FD48E487F3EC82A201D376F56DCC8370A350128011824020136030402040118300414BD61F9405A7A15EFA38F8B6833AB9027876482E1300514B5AED0B2C2CDBB9D4D0124755B56278B081FD4AD18300B40441AA0EE6ACE43EEA2A52321821D8B260AAFFEBD394C2FD11E83008C5AD2DF5EA58FAFA14A3EF7BAFDE190591298311D7DE6A257819D98D0E9FE239A635684B418 + [1655470923.441411][13282:13287] CHIP:TOO: Icac: 1530010100240201370324140018260480228127260580254D3A37062413011824070124080130094104B267483D9981A2C15E7DE8C63298FEB6DC19EAA9AEA41D9D659CD3BBBD25B943B3186716C82B297091D64B1620E8FB2C6FD095F509684E074C5B479E583CE295370A3501290118240260300414B5AED0B2C2CDBB9D4D0124755B56278B081FD4AD3005146EDE812590A5E6E4463798EB06AC3BD5284DFAAE18300B404A48E0B45704A98739C0C656B0F1A4252AEED8E1EBA5FD1032C79A4B26BF8A314EFDD7C835947DEB4B3E9F6D0BF2A561CEE54B45F311773301D4B5CFFF2F76D918 + [1655470923.441453][13282:13287] CHIP:TOO: FabricIndex: 1 + [1655470923.441486][13282:13287] CHIP:TOO: } disabled: true - label: "Factory Reset TH1 so that it is commissionable again" verification: | - + DUT side: + sudo rm -rf /tmp/chip_* disabled: true - label: "Start the commissioning process of TH1 on DUT. Device attestation procedure is completed" verification: | + sudo ./chip-all-clusters-app --wifi + TH side: + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1 + + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success""" disabled: true - label: "TH1 generates 32-byte CSRNonce" verification: | - Verify that the DUT generates the NOCSR Information using CSRResponse Command. + Verify in TH log + + + [1655968443.868940][21387:21392] CHIP:DMG: NOCSR Elements = + [1655968443.869000][21387:21392] CHIP:DMG: { + [1655968443.869077][21387:21392] CHIP:DMG: CSR (204) = 3081C93070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D030107034200041DC0424E5FE9BC13997CE5D29A61C944BFC808923E8656D801A44D25E3DAFC093FB2B175CFF1588CF68090FE2C3172975CA6874E7CF85FBA26C8F46FF0F5F453A000300A06082A8648CE3D04030203490030460221008A1C12FCDF67D97C99ED87AFE5A0F49321DCF6EB42D05AA286359CCFD206C120022100E66C05339B4517D143ADF9D1AB65AD14BC6D2E804AF073C25FDF6569C39E393F + [1655968443.869145][21387:21392] CHIP:DMG: CSRNonce (32) = 6FD841CB599C51208A19018F5C0BC970BA0A9303B07A2F2FB8ED77EF809B90A9 + [1655968443.869265][21387:21392] CHIP:DMG: } + [1655968443.869316][21387:21392] CHIP:DMG: + [1655968443.869367][21387:21392] CHIP:DMG: CSR (204) = + [1655968443.869451][21387:21392] CHIP:DMG: { + -----BEGIN CERTIFICATE REQUEST----- + MIHJMHACAQAwDjEMMAoGA1UECgwDQ1NSMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD + QgAEHcBCTl/pvBOZfOXSmmHJRL/ICJI+hlbYAaRNJePa/Ak/srF1z/FYjPaAkP4s + MXKXXKaHTnz4X7omyPRv8PX0U6AAMAoGCCqGSM49BAMCA0kAMEYCIQCKHBL832fZ + fJnth6/loPSTIdz260LQWqKGNZzP0gbBIAIhAOZsBTObRRfRQ6350atlrRS8bS6A + SvBzwl/fZWnDnjk/ + -----END CERTIFICATE REQUEST----- disabled: true - label: "TH1 sends CSRRequest Command with CSRNonce as field to the DUT." verification: | + Verify in TH log + [1655968443.653325][21387:21392] CHIP:CTL: Sending CSR request to 0xffff88000b60 device + [1655968443.653468][21387:21392] CHIP:DMG: ICR moving to [AddingComm] + [1655968443.653547][21387:21392] CHIP:DMG: ICR moving to [AddedComma] + [1655968443.654120][21387:21392] CHIP:IN: Prepared secure message 0xffff9afdc028 to 0xFFFFFFFB00000000 (0) of type 0x8 and protocolId (0, 1) on exchange 11675i with MessageCounter:162800415. + [1655968443.654238][21387:21392] CHIP:IN: Sending encrypted msg 0xffff9afdc028 with MessageCounter:162800415 to 0xFFFFFFFB00000000 (0) at monotonic time: 00000000059CF5E5 msec + [1655968443.654746][21387:21392] CHIP:DMG: >> to BLE | 162800415 | [Interaction Model (1) / InvokeCommandRequest (0x08) / Session = 52324 / Exchange = 11675] + [1655968443.654843][21387:21392] CHIP:DMG: Header Flags = + [1655968443.654899][21387:21392] CHIP:DMG: { + [1655968443.654984][21387:21392] CHIP:DMG: Exchange (0x01) = + [1655968443.655039][21387:21392] CHIP:DMG: { + [1655968443.655087][21387:21392] CHIP:DMG: Initiator = true + [1655968443.655139][21387:21392] CHIP:DMG: } + [1655968443.655207][21387:21392] CHIP:DMG: } + [1655968443.655260][21387:21392] CHIP:DMG: + [1655968443.655328][21387:21392] CHIP:DMG: Encrypted Payload (94 bytes) = + [1655968443.655382][21387:21392] CHIP:DMG: { + [1655968443.655435][21387:21392] CHIP:DMG: data = 0064cc001f23b4098ca07591c210364800feb2c612bb0e4d2ebab7ad8296c308a560bcbc8617bec763775fe04f8158deec052be5110c79734b9d561a9f0f50bac052c4a9a323e175e359c946b335cefd5e99f8edfdeee3234f2c73e6a3b0 + [1655968443.655492][21387:21392] CHIP:DMG: buffer_ptr = 281472963536976 + [1655968443.655543][21387:21392] CHIP:DMG: } + [1655968443.655592][21387:21392] CHIP:DMG: + [1655968443.655754][21387:21392] CHIP:DMG: InvokeRequestMessage = + [1655968443.655821][21387:21392] CHIP:DMG: { + [1655968443.655878][21387:21392] CHIP:DMG: suppressResponse = false, + [1655968443.655947][21387:21392] CHIP:DMG: timedRequest = false, + [1655968443.656007][21387:21392] CHIP:DMG: InvokeRequests = + [1655968443.656082][21387:21392] CHIP:DMG: [ + [1655968443.656142][21387:21392] CHIP:DMG: CommandDataIB = + [1655968443.656217][21387:21392] CHIP:DMG: { + [1655968443.656288][21387:21392] CHIP:DMG: CommandPathIB = + [1655968443.656375][21387:21392] CHIP:DMG: { + [1655968443.656458][21387:21392] CHIP:DMG: EndpointId = 0x0, + [1655968443.656549][21387:21392] CHIP:DMG: ClusterId = 0x3e, + [1655968443.656639][21387:21392] CHIP:DMG: CommandId = 0x4, + [1655968443.656725][21387:21392] CHIP:DMG: }, + [1655968443.656814][21387:21392] CHIP:DMG: + [1655968443.656886][21387:21392] CHIP:DMG: CommandFields = + [1655968443.656971][21387:21392] CHIP:DMG: { + [1655968443.657106][21387:21392] CHIP:DMG: 0x0 = [ + [1655968443.657246][21387:21392] CHIP:DMG: 0x6f, 0xd8, 0x41, 0xcb, 0x59, 0x9c, 0x51, 0x20, 0x8a, 0x19, 0x1, 0x8f, 0x5c, 0xb, 0xc9, 0x70, 0xba, 0xa, 0x93, 0x3, 0xb0, 0x7a, 0x2f, 0x2f, 0xb8, 0xed, 0x77, 0xef, 0x80, 0x9b, 0x90, 0xa9, + [1655968443.657364][21387:21392] CHIP:DMG: ] + [1655968443.657448][21387:21392] CHIP:DMG: }, + [1655968443.657528][21387:21392] CHIP:DMG: }, + [1655968443.657607][21387:21392] CHIP:DMG: + [1655968443.657666][21387:21392] CHIP:DMG: ], + [1655968443.657738][21387:21392] CHIP:DMG: + [1655968443.657798][21387:21392] CHIP:DMG: InteractionModelRevision = 1 + [1655968443.657855][21387:21392] CHIP:DMG: }, + [1655968443.657910][21387:21392] CHIP:DMG: + [1655968443.658186][21387:21392] CHIP:DMG: ICR moving to [CommandSen] + [1655968443.658271][21387:21392] CHIP:CTL: Sent CSR request, waiting for the CSR + [1655968443.658392][21387:21392] CHIP:DMG: ICR moving to [AwaitingDe] + [1655968443.766979][21387:21392] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655968443.770604][21387:21390] CHIP:DL: Indication received, conn = 0xffff900200d0 + [1655968443.770857][21387:21392] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655968443.866712][21387:21390] CHIP:DL: Indication received, conn = 0xffff900200d0 + [1655968443.866976][21387:21392] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655968443.868071][21387:21392] CHIP:DMG: << from BLE | 163275441 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 42825 / Exchange = 11675] + [1655968443.868171][21387:21392] CHIP:DMG: Header Flags = + [1655968443.868227][21387:21392] CHIP:DMG: { + [1655968443.868322][21387:21392] CHIP:DMG: } + [1655968443.868377][21387:21392] CHIP:DMG: + [1655968443.868444][21387:21392] CHIP:DMG: Encrypted Payload (374 bytes) = + [1655968443.868498][21387:21392] CHIP:DMG: { + [1655968443.868550][21387:21392] CHIP:DMG: data = 0049a700b162bb098738968b1939ee14f928225366b2f4bc5fff780dab81f2424266d6ec5fb570726f9c64f4c64fcc381c2808d65f9713f1b21ca51167d88d161472a02a68a9b058418ac1e9b7aa3e2d6529501ef0f2000cfe93904b1f9942e92c306ba26a6eaf89aedf134eae1c455c18f55686bac675659602c6f9a766adb495975515815f4560bcb2553bc33ecbd6024463121d7553a64cdbb016b8e39f394b05bcd5b1f067ffd7186f40e276b2bc1fa0a7b1059312d5af443b7661e31995eb71c7962899506868ff6c55ca4f2b73e98a5a55037384067795c479eed0f28f98e9863904ecb1093aea2ba2d41e39fdfa4e87c0c3b49996781a32c87d56d56086e2eb046e18837e56651a4b52544fff9a7715d5459edef0071a95ab0ce6da21846632be497f827a2808b25466c9bd0cde20b1f56341d4c28319cee5570d0937f873c7a5cae6702aae36f5046265989d37b8f14e6b3b30c2b6536e1fb80f2eb92466a8c8fe562f77bca17a57ddc8b35138f685b64a16 + [1655968443.868623][21387:21392] CHIP:DMG: buffer_ptr = 281472963520464 + [1655968443.868673][21387:21392] CHIP:DMG: } + [1655968443.868722][21387:21392] CHIP:DMG: + [1655968443.868940][21387:21392] CHIP:DMG: NOCSR Elements = + [1655968443.869000][21387:21392] CHIP:DMG: { + [1655968443.869077][21387:21392] CHIP:DMG: CSR (204) = 3081C93070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D030107034200041DC0424E5FE9BC13997CE5D29A61C944BFC808923E8656D801A44D25E3DAFC093FB2B175CFF1588CF68090FE2C3172975CA6874E7CF85FBA26C8F46FF0F5F453A000300A06082A8648CE3D04030203490030460221008A1C12FCDF67D97C99ED87AFE5A0F49321DCF6EB42D05AA286359CCFD206C120022100E66C05339B4517D143ADF9D1AB65AD14BC6D2E804AF073C25FDF6569C39E393F + [1655968443.869145][21387:21392] CHIP:DMG: CSRNonce (32) = 6FD841CB599C51208A19018F5C0BC970BA0A9303B07A2F2FB8ED77EF809B90A9 + [1655968443.869265][21387:21392] CHIP:DMG: } + [1655968443.869316][21387:21392] CHIP:DMG: + [1655968443.869367][21387:21392] CHIP:DMG: CSR (204) = + [1655968443.869451][21387:21392] CHIP:DMG: { + -----BEGIN CERTIFICATE REQUEST----- + MIHJMHACAQAwDjEMMAoGA1UECgwDQ1NSMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD + QgAEHcBCTl/pvBOZfOXSmmHJRL/ICJI+hlbYAaRNJePa/Ak/srF1z/FYjPaAkP4s + MXKXXKaHTnz4X7omyPRv8PX0U6AAMAoGCCqGSM49BAMCA0kAMEYCIQCKHBL832fZ + fJnth6/loPSTIdz260LQWqKGNZzP0gbBIAIhAOZsBTObRRfRQ6350atlrRS8bS6A + SvBzwl/fZWnDnjk/ + -----END CERTIFICATE REQUEST----- + [1655968443.869588][21387:21392] CHIP:DMG: } + [1655968443.869639][21387:21392] CHIP:DMG: + [1655968443.869704][21387:21392] CHIP:DMG: + [1655968443.869788][21387:21392] CHIP:DMG: Additional Fields = + [1655968443.869842][21387:21392] CHIP:DMG: { + [1655968443.869899][21387:21392] CHIP:DMG: peer_address = BLE + [1655968443.869952][21387:21392] CHIP:DMG: } + [1655968443.870001][21387:21392] CHIP:DMG: + [1655968443.870068][21387:21392] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:163275441 on exchange 11675i + [1655968443.870132][21387:21392] CHIP:EM: Found matching exchange: 11675i, Delegate: 0xffff90047da0 + [1655968443.870221][21387:21392] CHIP:DMG: ICR moving to [ResponseRe] + [1655968443.870312][21387:21392] CHIP:DMG: InvokeResponseMessage = + [1655968443.870371][21387:21392] CHIP:DMG: { + [1655968443.870429][21387:21392] CHIP:DMG: suppressResponse = false, + [1655968443.870488][21387:21392] CHIP:DMG: InvokeResponseIBs = + [1655968443.870564][21387:21392] CHIP:DMG: [ + [1655968443.870623][21387:21392] CHIP:DMG: InvokeResponseIB = + [1655968443.870703][21387:21392] CHIP:DMG: { + [1655968443.870766][21387:21392] CHIP:DMG: CommandDataIB = + [1655968443.870841][21387:21392] CHIP:DMG: { + [1655968443.870911][21387:21392] CHIP:DMG: CommandPathIB = + [1655968443.870998][21387:21392] CHIP:DMG: { + [1655968443.871081][21387:21392] CHIP:DMG: EndpointId = 0x0, + [1655968443.871165][21387:21392] CHIP:DMG: ClusterId = 0x3e, + [1655968443.871248][21387:21392] CHIP:DMG: CommandId = 0x5, + [1655968443.871334][21387:21392] CHIP:DMG: }, + [1655968443.871416][21387:21392] CHIP:DMG: + [1655968443.871489][21387:21392] CHIP:DMG: CommandFields = + [1655968443.871568][21387:21392] CHIP:DMG: { + [1655968443.871646][21387:21392] CHIP:DMG: 0x0 = [ + [1655968443.871916][21387:21392] CHIP:DMG: 0x15, 0x30, 0x1, 0xcc, 0x30, 0x81, 0xc9, 0x30, 0x70, 0x2, 0x1, 0x0, 0x30, 0xe, 0x31, 0xc, 0x30, 0xa, 0x6, 0x3, 0x55, 0x4, 0xa, 0xc, 0x3, 0x43, 0x53, 0x52, 0x30, 0x59, 0x30, 0x13, 0x6, 0x7, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x2, 0x1, 0x6, 0x8, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x3, 0x1, 0x7, 0x3, 0x42, 0x0, 0x4, 0x1d, 0xc0, 0x42, 0x4e, 0x5f, 0xe9, 0xbc, 0x13, 0x99, 0x7c, 0xe5, 0xd2, 0x9a, 0x61, 0xc9, 0x44, 0xbf, 0xc8, 0x8, 0x92, 0x3e, 0x86, 0x56, 0xd8, 0x1, 0xa4, 0x4d, 0x25, 0xe3, 0xda, 0xfc, 0x9, 0x3f, 0xb2, 0xb1, 0x75, 0xcf, 0xf1, 0x58, 0x8c, 0xf6, 0x80, 0x90, 0xfe, 0x2c, 0x31, 0x72, 0x97, 0x5c, 0xa6, 0x87, 0x4e, 0x7c, 0xf8, 0x5f, 0xba, 0x26, 0xc8, 0xf4, 0x6f, 0xf0, 0xf5, 0xf4, 0x53, 0xa0, 0x0, 0x30, 0xa, 0x6, 0x8, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x4, 0x3, 0x2, 0x3, 0x49, 0x0, 0x30, 0x46, 0x2, 0x21, 0x0, 0x8a, 0x1c, 0x12, 0xfc, 0xdf, 0x67, 0xd9, 0x7c, 0x99, 0xed, 0x87, 0xaf, 0xe5, 0xa0, 0xf4, 0x93, 0x21, 0xdc, 0xf6, 0xeb, 0x42, 0xd0, 0x5a, 0xa2, 0x86, 0x35, 0x9c, 0xcf, 0xd2, 0x6, 0xc1, 0x20, 0x2, 0x21, 0x0, 0xe6, 0x6c, 0x5, 0x33, 0x9b, 0x45, 0x17, 0xd1, 0x43, 0xad, 0xf9, 0xd1, 0xab, 0x65, 0xad, 0x14, 0xbc, 0x6d, 0x2e, 0x80, 0x4a, 0xf0, 0x73, 0xc2, 0x5f, 0xdf, 0x65, 0x69, 0xc3, 0x9e, 0x39, 0x3f, 0x30, 0x2, 0x20, 0x6f, 0xd8, 0x41, 0xcb, 0x59, 0x9c, 0x51, 0x20, 0x8a, 0x19, 0x1, 0x8f, 0x5c, 0xb, 0xc9, 0x70, 0xba, 0xa, 0x93, 0x3, 0xb0, 0x7a, 0x2f, 0x2f, 0xb8, 0xed, 0x77, 0xef, 0x80, 0x9b, 0x90, 0xa9, 0x18, + [1655968443.872069][21387:21392] CHIP:DMG: ] + [1655968443.872144][21387:21392] CHIP:DMG: 0x1 = [ + [1655968443.872275][21387:21392] CHIP:DMG: 0x16, 0xd9, 0x90, 0x89, 0xc, 0xf0, 0x56, 0xf3, 0xfe, 0xeb, 0xa1, 0xec, 0x7e, 0xc2, 0xd4, 0x55, 0x17, 0xf9, 0xf2, 0x56, 0x11, 0xdc, 0x98, 0xcb, 0xc8, 0xa2, 0xf5, 0x96, 0x70, 0x11, 0x17, 0x73, 0xe8, 0x36, 0xcf, 0xc, 0x36, 0x2a, 0x3a, 0x23, 0xef, 0xb6, 0x81, 0x3f, 0xb0, 0x81, 0xef, 0x5e, 0x7e, 0xc5, 0x7f, 0x2f, 0xbd, 0xb3, 0xc8, 0x57, 0xa9, 0x11, 0xbd, 0xd1, 0x1a, 0x69, 0x4e, 0x89, + [1655968443.872374][21387:21392] CHIP:DMG: ] + [1655968443.872450][21387:21392] CHIP:DMG: }, + [1655968443.872650][21387:21392] CHIP:DMG: }, + [1655968443.872742][21387:21392] CHIP:DMG: + [1655968443.872810][21387:21392] CHIP:DMG: }, + [1655968443.872885][21387:21392] CHIP:DMG: + [1655968443.872943][21387:21392] CHIP:DMG: ], + [1655968443.873018][21387:21392] CHIP:DMG: + [1655968443.873077][21387:21392] CHIP:DMG: InteractionModelRevision = 1 + [1655968443.873134][21387:21392] CHIP:DMG: }, + [1655968443.873301][21387:21392] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0005 + [1655968443.873382][21387:21392] CHIP:CTL: Received certificate signing request from the device + [1655968443.873446][21387:21392] CHIP:CTL: Successfully finished commissioning step 'SendOpCertSigningRequest' disabled: true - label: "TH1 generates 32-byte CSRNonce" verification: | + Verify in TH log + + [1655968443.868940][21387:21392] CHIP:DMG: NOCSR Elements = + [1655968443.869000][21387:21392] CHIP:DMG: { + [1655968443.869077][21387:21392] CHIP:DMG: CSR (204) = 3081C93070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D030107034200041DC0424E5FE9BC13997CE5D29A61C944BFC808923E8656D801A44D25E3DAFC093FB2B175CFF1588CF68090FE2C3172975CA6874E7CF85FBA26C8F46FF0F5F453A000300A06082A8648CE3D04030203490030460221008A1C12FCDF67D97C99ED87AFE5A0F49321DCF6EB42D05AA286359CCFD206C120022100E66C05339B4517D143ADF9D1AB65AD14BC6D2E804AF073C25FDF6569C39E393F + [1655968443.869145][21387:21392] CHIP:DMG: CSRNonce (32) = 6FD841CB599C51208A19018F5C0BC970BA0A9303B07A2F2FB8ED77EF809B90A9 + [1655968443.869265][21387:21392] CHIP:DMG: } + [1655968443.869316][21387:21392] CHIP:DMG: + [1655968443.869367][21387:21392] CHIP:DMG: CSR (204) = + [1655968443.869451][21387:21392] CHIP:DMG: { + -----BEGIN CERTIFICATE REQUEST----- + MIHJMHACAQAwDjEMMAoGA1UECgwDQ1NSMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD + QgAEHcBCTl/pvBOZfOXSmmHJRL/ICJI+hlbYAaRNJePa/Ak/srF1z/FYjPaAkP4s + MXKXXKaHTnz4X7omyPRv8PX0U6AAMAoGCCqGSM49BAMCA0kAMEYCIQCKHBL832fZ + fJnth6/loPSTIdz260LQWqKGNZzP0gbBIAIhAOZsBTObRRfRQ6350atlrRS8bS6A + SvBzwl/fZWnDnjk/ + -----END CERTIFICATE REQUEST----- disabled: true - label: "Save Node Operational Key Pair sent by the DUT in the CSRResponse Command as Key 2" verification: | - Verify that Key 2 does not match any other existing Node Operational Key Pair on the device + Verify in TH log: + + [1655968443.870429][21387:21392] CHIP:DMG: suppressResponse = false, + [1655968443.870488][21387:21392] CHIP:DMG: InvokeResponseIBs = + [1655968443.870564][21387:21392] CHIP:DMG: [ + [1655968443.870623][21387:21392] CHIP:DMG: InvokeResponseIB = + [1655968443.870703][21387:21392] CHIP:DMG: { + [1655968443.870766][21387:21392] CHIP:DMG: CommandDataIB = + [1655968443.870841][21387:21392] CHIP:DMG: { + [1655968443.870911][21387:21392] CHIP:DMG: CommandPathIB = + [1655968443.870998][21387:21392] CHIP:DMG: { + [1655968443.871081][21387:21392] CHIP:DMG: EndpointId = 0x0, + [1655968443.871165][21387:21392] CHIP:DMG: ClusterId = 0x3e, + [1655968443.871248][21387:21392] CHIP:DMG: CommandId = 0x5, + [1655968443.871334][21387:21392] CHIP:DMG: }, + [1655968443.871416][21387:21392] CHIP:DMG: + [1655968443.871489][21387:21392] CHIP:DMG: CommandFields = + [1655968443.871568][21387:21392] CHIP:DMG: { + [1655968443.871646][21387:21392] CHIP:DMG: 0x0 = [ + [1655968443.871916][21387:21392] CHIP:DMG: 0x15, 0x30, 0x1, 0xcc, 0x30, 0x81, 0xc9, 0x30, 0x70, 0x2, 0x1, 0x0, 0x30, 0xe, 0x31, 0xc, 0x30, 0xa, 0x6, 0x3, 0x55, 0x4, 0xa, 0xc, 0x3, 0x43, 0x53, 0x52, 0x30, 0x59, 0x30, 0x13, 0x6, 0x7, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x2, 0x1, 0x6, 0x8, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x3, 0x1, 0x7, 0x3, 0x42, 0x0, 0x4, 0x1d, 0xc0, 0x42, 0x4e, 0x5f, 0xe9, 0xbc, 0x13, 0x99, 0x7c, 0xe5, 0xd2, 0x9a, 0x61, 0xc9, 0x44, 0xbf, 0xc8, 0x8, 0x92, 0x3e, 0x86, 0x56, 0xd8, 0x1, 0xa4, 0x4d, 0x25, 0xe3, 0xda, 0xfc, 0x9, 0x3f, 0xb2, 0xb1, 0x75, 0xcf, 0xf1, 0x58, 0x8c, 0xf6, 0x80, 0x90, 0xfe, 0x2c, 0x31, 0x72, 0x97, 0x5c, 0xa6, 0x87, 0x4e, 0x7c, 0xf8, 0x5f, 0xba, 0x26, 0xc8, 0xf4, 0x6f, 0xf0, 0xf5, 0xf4, 0x53, 0xa0, 0x0, 0x30, 0xa, 0x6, 0x8, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x4, 0x3, 0x2, 0x3, 0x49, 0x0, 0x30, 0x46, 0x2, 0x21, 0x0, 0x8a, 0x1c, 0x12, 0xfc, 0xdf, 0x67, 0xd9, 0x7c, 0x99, 0xed, 0x87, 0xaf, 0xe5, 0xa0, 0xf4, 0x93, 0x21, 0xdc, 0xf6, 0xeb, 0x42, 0xd0, 0x5a, 0xa2, 0x86, 0x35, 0x9c, 0xcf, 0xd2, 0x6, 0xc1, 0x20, 0x2, 0x21, 0x0, 0xe6, 0x6c, 0x5, 0x33, 0x9b, 0x45, 0x17, 0xd1, 0x43, 0xad, 0xf9, 0xd1, 0xab, 0x65, 0xad, 0x14, 0xbc, 0x6d, 0x2e, 0x80, 0x4a, 0xf0, 0x73, 0xc2, 0x5f, 0xdf, 0x65, 0x69, 0xc3, 0x9e, 0x39, 0x3f, 0x30, 0x2, 0x20, 0x6f, 0xd8, 0x41, 0xcb, 0x59, 0x9c, 0x51, 0x20, 0x8a, 0x19, 0x1, 0x8f, 0x5c, 0xb, 0xc9, 0x70, 0xba, 0xa, 0x93, 0x3, 0xb0, 0x7a, 0x2f, 0x2f, 0xb8, 0xed, 0x77, 0xef, 0x80, 0x9b, 0x90, 0xa9, 0x18, + [1655968443.872069][21387:21392] CHIP:DMG: ] + [1655968443.872144][21387:21392] CHIP:DMG: 0x1 = [ + [1655968443.872275][21387:21392] CHIP:DMG: 0x16, 0xd9, 0x90, 0x89, 0xc, 0xf0, 0x56, 0xf3, 0xfe, 0xeb, 0xa1, 0xec, 0x7e, 0xc2, 0xd4, 0x55, 0x17, 0xf9, 0xf2, 0x56, 0x11, 0xdc, 0x98, 0xcb, 0xc8, 0xa2, 0xf5, 0x96, 0x70, 0x11, 0x17, 0x73, 0xe8, 0x36, 0xcf, 0xc, 0x36, 0x2a, 0x3a, 0x23, 0xef, 0xb6, 0x81, 0x3f, 0xb0, 0x81, 0xef, 0x5e, 0x7e, 0xc5, 0x7f, 0x2f, 0xbd, 0xb3, 0xc8, 0x57, 0xa9, 0x11, 0xbd, 0xd1, 0x1a, 0x69, 0x4e, 0x89, + [1655968443.872374][21387:21392] CHIP:DMG: ] + [1655968443.872450][21387:21392] CHIP:DMG: }, + [1655968443.872650][21387:21392] CHIP:DMG: }, + [1655968443.872742][21387:21392] CHIP:DMG: + [1655968443.872810][21387:21392] CHIP:DMG: }, + [1655968443.872885][21387:21392] CHIP:DMG: + [1655968443.872943][21387:21392] CHIP:DMG: ], + [1655968443.873018][21387:21392] CHIP:DMG: + [1655968443.873077][21387:21392] CHIP:DMG: InteractionModelRevision = 1 + [1655968443.873134][21387:21392] CHIP:DMG: }, disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DA_1_6.yaml b/src/app/tests/suites/certification/Test_TC_DA_1_6.yaml index f46e0019d287f4..e80937b7a28ab4 100644 --- a/src/app/tests/suites/certification/Test_TC_DA_1_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_DA_1_6.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: 17.1.6. [TC-DA-1.6] NOCSR Procedure Validation [DUT - Commissioner] +name: 18.1.6. [TC-DA-1.6] NOCSR Procedure Validation [DUT - Commissioner] config: nodeId: 0x12344321 @@ -23,21 +23,268 @@ config: tests: - label: "DUT completes the attestation procedure" verification: | + Verify in TH log: + [1655374218.114327][35023:35028] CHIP:CTL: Performing next commissioning step 'SendAttestationRequest' + [1655374218.114378][35023:35028] CHIP:CTL: Sending Attestation Request to the device. + [1655374218.114556][35023:35028] CHIP:CTL: Sending Attestation request to 0xffff74000b60 device + [1655374218.114675][35023:35028] CHIP:DMG: ICR moving to [AddingComm] + [1655374218.114746][35023:35028] CHIP:DMG: ICR moving to [AddedComma] + [1655374218.115227][35023:35028] CHIP:IN: Prepared secure message 0xffff7bffc958 to 0xFFFFFFFB00000000 (0) of type 0x8 and protocolId (0, 1) on exchange 1302i with MessageCounter:20936210. + [1655374218.115326][35023:35028] CHIP:IN: Sending encrypted msg 0xffff7bffc958 with MessageCounter:20936210 to 0xFFFFFFFB00000000 (0) at monotonic time: 00000000004F8059 msec + [1655374218.115908][35023:35028] CHIP:DMG: >> to BLE | 20936210 | [Interaction Model (1) / InvokeCommandRequest (0x08) / Session = 43668 / Exchange = 1302] + [1655374218.116008][35023:35028] CHIP:DMG: Header Flags = + [1655374218.116065][35023:35028] CHIP:DMG: { + [1655374218.116149][35023:35028] CHIP:DMG: Exchange (0x01) = + [1655374218.116187][35023:35028] CHIP:DMG: { + [1655374218.116209][35023:35028] CHIP:DMG: Initiator = true + [1655374218.116233][35023:35028] CHIP:DMG: } + [1655374218.116264][35023:35028] CHIP:DMG: } + [1655374218.116288][35023:35028] CHIP:DMG: + [1655374218.116381][35023:35028] CHIP:DMG: Encrypted Payload (94 bytes) = + [1655374218.116408][35023:35028] CHIP:DMG: { + [1655374218.116432][35023:35028] CHIP:DMG: data = 0094aa0012763f01f66833cd7fd4d0b928d486cd8459db3eb0f11f7b48d3145a810b0c2e03ea68c89e4ee9cf28127369ac0eef32376c5303945a2fe8c99d13a49086721cd68804d90415fef75a0b464605f2d0245f293767a4077eb7d5eb + [1655374218.116458][35023:35028] CHIP:DMG: buffer_ptr = 281472627988496 + [1655374218.116482][35023:35028] CHIP:DMG: } + [1655374218.116505][35023:35028] CHIP:DMG: + [1655374218.116585][35023:35028] CHIP:DMG: InvokeRequestMessage = + [1655374218.116614][35023:35028] CHIP:DMG: { + [1655374218.116640][35023:35028] CHIP:DMG: suppressResponse = false, + [1655374218.116669][35023:35028] CHIP:DMG: timedRequest = false, + [1655374218.116697][35023:35028] CHIP:DMG: InvokeRequests = + [1655374218.116732][35023:35028] CHIP:DMG: [ + [1655374218.116759][35023:35028] CHIP:DMG: CommandDataIB = + [1655374218.116790][35023:35028] CHIP:DMG: { + [1655374218.116818][35023:35028] CHIP:DMG: CommandPathIB = + [1655374218.116853][35023:35028] CHIP:DMG: { + [1655374218.116888][35023:35028] CHIP:DMG: EndpointId = 0x0, + [1655374218.116926][35023:35028] CHIP:DMG: ClusterId = 0x3e, + [1655374218.116966][35023:35028] CHIP:DMG: CommandId = 0x0, + [1655374218.117000][35023:35028] CHIP:DMG: }, + [1655374218.117037][35023:35028] CHIP:DMG: + [1655374218.117068][35023:35028] CHIP:DMG: CommandFields = + [1655374218.117103][35023:35028] CHIP:DMG: { + [1655374218.117137][35023:35028] CHIP:DMG: 0x0 = [ + [1655374218.117184][35023:35028] CHIP:DMG: 0x76, 0x2b, 0x6b, 0x9d, 0xa0, 0x8f, 0x7f, 0xc6, 0x3b, 0xb6, 0x93, 0xe3, 0x86, 0x34, 0xec, 0x6f, 0x87, 0xce, 0xff, 0x28, 0xab, 0x15, 0x54, 0xa1, 0x6a, 0xd4, 0x3d, 0xce, 0xc2, 0x4c, 0x24, 0x66, + [1655374218.117223][35023:35028] CHIP:DMG: ] + [1655374218.117257][35023:35028] CHIP:DMG: }, + [1655374218.117290][35023:35028] CHIP:DMG: }, + [1655374218.117323][35023:35028] CHIP:DMG: + [1655374218.117350][35023:35028] CHIP:DMG: ], + [1655374218.117384][35023:35028] CHIP:DMG: + [1655374218.117410][35023:35028] CHIP:DMG: InteractionModelRevision = 1 + [1655374218.117436][35023:35028] CHIP:DMG: }, + [1655374218.117462][35023:35028] CHIP:DMG: + [1655374218.117597][35023:35028] CHIP:DMG: ICR moving to [CommandSen] + [1655374218.117635][35023:35028] CHIP:CTL: Sent Attestation request, waiting for the Attestation Information + [1655374218.117686][35023:35028] CHIP:DMG: ICR moving to [AwaitingDe] + [1655374218.204040][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16387 + [1655374218.252180][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.252405][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.352372][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.352509][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.450622][35023:35026] CHIP:DL: Indication received, conn = 0xffff8003c0c0 + [1655374218.450870][35023:35028] CHIP:DL: HandlePlatformSpecificBLEEvent 16389 + [1655374218.452138][35023:35028] CHIP:DMG: << from BLE | 224958145 | [Interaction Model (1) / InvokeCommandResponse (0x09) / Session = 19710 / Exchange = 1302] + [1655374218.452241][35023:35028] CHIP:DMG: Header Flags = + [1655374218.452300][35023:35028] CHIP:DMG: { + [1655374218.452395][35023:35028] CHIP:DMG: } + [1655374218.452449][35023:35028] CHIP:DMG: + [1655374218.452521][35023:35028] CHIP:DMG: Encrypted Payload (716 bytes) = + [1655374218.452579][35023:35028] CHIP:DMG: { + [1655374218.452634][35023:35028] CHIP:DMG: data = 00fe4c00c196680d30c5e98d35a6d844102a8b0067edba80e2adf97e28751f8353657dacb7c9706c2c22add28d18adca15378d16af57f0f4092893cfc5d3e85f6e409f70e39bcb9e0bd3397947e927d20e5bf5173e3def7218d0152cf40e7cb16db615efbd282fd6e84c710bd2c7441228eb5dbbcf0dc76a3eaa0b04655f434d3c8223c7016703b8082c9984c3a91432d12271c87f4d09e90cb6e78d07c81d6359cd5a756f2bace60a7a216896949b536e5583f22db64aeae0279ba2fd279813be383e4324ab63472e3d9877f6c9fa539e577dc50fbcc5a7124a14ea78abdd6ada4ec256a3ee0a242747d636215ffab3c8b4291023eb51b3701939e153912b0f5764479b05e1cf472c350304d1ead872295c80fed3a545530f773e729b6f7bd7d5547de03076a72b8855191beb12d8194477bc9798b6177557cccf3b11b2c1f82cee31d451408359650112394dc2c1592cd2eb1e75881aa340885e65ef9a9905947842574ddcac832d68188b0a3a20fb223258d766692b13a6cde0de34d4f9047046d38ad94caf0a9cc7a786c082d5ae8c62346d69684c6ed5ae958ab68c0685922751ff04d922a838c9d2257a7af6e72af524b459a45ea6311431d30c7de32b3d79581ac119d6e7f63a877b53fda9d69256c5870f2af36f74e08b22e1217a0324b772394a4a596ff237331c623b8d7746077826088dddd2a741f19011cde09f1e897f92ac975fd9a157de0b780f6551b11a50ffe12c781f304dbda9dd75465fb3a8ec52d30f7ddb9179f1b9dfe415ae2d66a53bad67bcf27b3351b8a5cdc9e8b54095c81774007237c8a14a3e2c9cf350616cf5ebf7f6ae5a8c77207924b0e1cddc6c7e77c2a514319947c5988af1dd77325259f496293e53041941d45a1355f56b8036008ab696f7d47d17f9fc4890aa78c2811560b7b4d79a460b7dcd3d9bc3bdd5f72d27bb0060f722aa9c22e7d635895404c832bf2371321d1ababa954482c847fedd0d4676bd188365 + [1655374218.452884][35023:35028] CHIP:DMG: buffer_ptr = 281472627984864 + [1655374218.452941][35023:35028] CHIP:DMG: } + [1655374218.452992][35023:35028] CHIP:DMG: + [1655374218.453303][35023:35028] CHIP:DMG: Attestation Elements (585 bytes) = + [1655374218.453366][35023:35028] CHIP:DMG: { + [1655374218.453431][35023:35028] CHIP:DMG: Certification Declaration = + [1655374218.453483][35023:35028] CHIP:DMG: { + [1655374218.455342][35023:35028] CHIP:DMG: Format Version = 1 + [1655374218.455398][35023:35028] CHIP:DMG: Vendor Id = 65521 + [1655374218.455438][35023:35028] CHIP:DMG: Product Ids = + [1655374218.455474][35023:35028] CHIP:DMG: { + [1655374218.455512][35023:35028] CHIP:DMG: Product Id = 32768 + [1655374218.455552][35023:35028] CHIP:DMG: Product Id = 32769 + [1655374218.455590][35023:35028] CHIP:DMG: Product Id = 32770 + [1655374218.455628][35023:35028] CHIP:DMG: Product Id = 32771 + [1655374218.455666][35023:35028] CHIP:DMG: Product Id = 32772 + [1655374218.455704][35023:35028] CHIP:DMG: Product Id = 32773 + [1655374218.455742][35023:35028] CHIP:DMG: Product Id = 32774 + [1655374218.455780][35023:35028] CHIP:DMG: Product Id = 32775 + [1655374218.455818][35023:35028] CHIP:DMG: Product Id = 32776 + [1655374218.455855][35023:35028] CHIP:DMG: Product Id = 32777 + [1655374218.455893][35023:35028] CHIP:DMG: Product Id = 32778 + [1655374218.455931][35023:35028] CHIP:DMG: Product Id = 32779 + [1655374218.455969][35023:35028] CHIP:DMG: Product Id = 32780 + [1655374218.456007][35023:35028] CHIP:DMG: Product Id = 32781 + [1655374218.456045][35023:35028] CHIP:DMG: Product Id = 32782 + [1655374218.456082][35023:35028] CHIP:DMG: Product Id = 32783 + [1655374218.456120][35023:35028] CHIP:DMG: Product Id = 32784 + [1655374218.456158][35023:35028] CHIP:DMG: Product Id = 32785 + [1655374218.456196][35023:35028] CHIP:DMG: Product Id = 32786 + [1655374218.456234][35023:35028] CHIP:DMG: Product Id = 32787 + [1655374218.456271][35023:35028] CHIP:DMG: Product Id = 32788 + [1655374218.456309][35023:35028] CHIP:DMG: Product Id = 32789 + [1655374218.456347][35023:35028] CHIP:DMG: Product Id = 32790 + [1655374218.456385][35023:35028] CHIP:DMG: Product Id = 32791 + [1655374218.456423][35023:35028] CHIP:DMG: Product Id = 32792 + [1655374218.456461][35023:35028] CHIP:DMG: Product Id = 32793 + [1655374218.456498][35023:35028] CHIP:DMG: Product Id = 32794 + [1655374218.456536][35023:35028] CHIP:DMG: Product Id = 32795 + [1655374218.456573][35023:35028] CHIP:DMG: Product Id = 32796 + [1655374218.456611][35023:35028] CHIP:DMG: Product Id = 32797 + [1655374218.456649][35023:35028] CHIP:DMG: Product Id = 32798 + [1655374218.456687][35023:35028] CHIP:DMG: Product Id = 32799 + [1655374218.456724][35023:35028] CHIP:DMG: Product Id = 32800 + [1655374218.456761][35023:35028] CHIP:DMG: Product Id = 32801 + [1655374218.456799][35023:35028] CHIP:DMG: Product Id = 32802 + [1655374218.456836][35023:35028] CHIP:DMG: Product Id = 32803 + [1655374218.456874][35023:35028] CHIP:DMG: Product Id = 32804 + [1655374218.456912][35023:35028] CHIP:DMG: Product Id = 32805 + [1655374218.456949][35023:35028] CHIP:DMG: Product Id = 32806 + [1655374218.456987][35023:35028] CHIP:DMG: Product Id = 32807 + [1655374218.457024][35023:35028] CHIP:DMG: Product Id = 32808 + [1655374218.457061][35023:35028] CHIP:DMG: Product Id = 32809 + [1655374218.457099][35023:35028] CHIP:DMG: Product Id = 32810 + [1655374218.457138][35023:35028] CHIP:DMG: Product Id = 32811 + [1655374218.457175][35023:35028] CHIP:DMG: Product Id = 32812 + [1655374218.457212][35023:35028] CHIP:DMG: Product Id = 32813 + [1655374218.457250][35023:35028] CHIP:DMG: Product Id = 32814 + [1655374218.457288][35023:35028] CHIP:DMG: Product Id = 32815 + [1655374218.457326][35023:35028] CHIP:DMG: Product Id = 32816 + [1655374218.457363][35023:35028] CHIP:DMG: Product Id = 32817 + [1655374218.457401][35023:35028] CHIP:DMG: Product Id = 32818 + [1655374218.457439][35023:35028] CHIP:DMG: Product Id = 32819 + [1655374218.457476][35023:35028] CHIP:DMG: Product Id = 32820 + [1655374218.457514][35023:35028] CHIP:DMG: Product Id = 32821 + [1655374218.457552][35023:35028] CHIP:DMG: Product Id = 32822 + [1655374218.457590][35023:35028] CHIP:DMG: Product Id = 32823 + [1655374218.457627][35023:35028] CHIP:DMG: Product Id = 32824 + [1655374218.457665][35023:35028] CHIP:DMG: Product Id = 32825 + [1655374218.457702][35023:35028] CHIP:DMG: Product Id = 32826 + [1655374218.457740][35023:35028] CHIP:DMG: Product Id = 32827 + [1655374218.457777][35023:35028] CHIP:DMG: Product Id = 32828 + [1655374218.457833][35023:35028] CHIP:DMG: Product Id = 32829 + [1655374218.457874][35023:35028] CHIP:DMG: Product Id = 32830 + [1655374218.457912][35023:35028] CHIP:DMG: Product Id = 32831 + [1655374218.457950][35023:35028] CHIP:DMG: Product Id = 32832 + [1655374218.457987][35023:35028] CHIP:DMG: Product Id = 32833 + [1655374218.458026][35023:35028] CHIP:DMG: Product Id = 32834 + [1655374218.458063][35023:35028] CHIP:DMG: Product Id = 32835 + [1655374218.458101][35023:35028] CHIP:DMG: Product Id = 32836 + [1655374218.458139][35023:35028] CHIP:DMG: Product Id = 32837 + [1655374218.458177][35023:35028] CHIP:DMG: Product Id = 32838 + [1655374218.458215][35023:35028] CHIP:DMG: Product Id = 32839 + [1655374218.458253][35023:35028] CHIP:DMG: Product Id = 32840 + [1655374218.458291][35023:35028] CHIP:DMG: Product Id = 32841 + [1655374218.458328][35023:35028] CHIP:DMG: Product Id = 32842 + [1655374218.458366][35023:35028] CHIP:DMG: Product Id = 32843 + [1655374218.458404][35023:35028] CHIP:DMG: Product Id = 32844 + [1655374218.458441][35023:35028] CHIP:DMG: Product Id = 32845 + [1655374218.458480][35023:35028] CHIP:DMG: Product Id = 32846 + [1655374218.458517][35023:35028] CHIP:DMG: Product Id = 32847 + [1655374218.458555][35023:35028] CHIP:DMG: Product Id = 32848 + [1655374218.458592][35023:35028] CHIP:DMG: Product Id = 32849 + [1655374218.458630][35023:35028] CHIP:DMG: Product Id = 32850 + [1655374218.458667][35023:35028] CHIP:DMG: Product Id = 32851 + [1655374218.458706][35023:35028] CHIP:DMG: Product Id = 32852 + [1655374218.458743][35023:35028] CHIP:DMG: Product Id = 32853 + [1655374218.458781][35023:35028] CHIP:DMG: Product Id = 32854 + [1655374218.458818][35023:35028] CHIP:DMG: Product Id = 32855 + [1655374218.458856][35023:35028] CHIP:DMG: Product Id = 32856 + [1655374218.458893][35023:35028] CHIP:DMG: Product Id = 32857 + [1655374218.458932][35023:35028] CHIP:DMG: Product Id = 32858 + [1655374218.458969][35023:35028] CHIP:DMG: Product Id = 32859 + [1655374218.459007][35023:35028] CHIP:DMG: Product Id = 32860 + [1655374218.459045][35023:35028] CHIP:DMG: Product Id = 32861 + [1655374218.459082][35023:35028] CHIP:DMG: Product Id = 32862 + [1655374218.459120][35023:35028] CHIP:DMG: Product Id = 32863 + [1655374218.459159][35023:35028] CHIP:DMG: Product Id = 32864 + [1655374218.459196][35023:35028] CHIP:DMG: Product Id = 32865 + [1655374218.459234][35023:35028] CHIP:DMG: Product Id = 32866 + [1655374218.459271][35023:35028] CHIP:DMG: Product Id = 32867 + [1655374218.459309][35023:35028] CHIP:DMG: } + [1655374218.459347][35023:35028] CHIP:DMG: Device Type Id = 22 + [1655374218.459390][35023:35028] CHIP:DMG: Certificate Id (19) = ZIG20142ZB330003-24 + [1655374218.459430][35023:35028] CHIP:DMG: Security Level = 0 + [1655374218.459470][35023:35028] CHIP:DMG: Security Information = 0 + [1655374218.459508][35023:35028] CHIP:DMG: Version Number = 9876 + [1655374218.459546][35023:35028] CHIP:DMG: Certification Type = 0 + [1655374218.459584][35023:35028] CHIP:DMG: } + [1655374218.459627][35023:35028] CHIP:DMG: Attestation Nonce (32) = 762B6B9DA08F7FC63BB693E38634EC6F87CEFF28AB1554A16AD43DCEC24C2466 + [1655374218.459664][35023:35028] CHIP:DMG: Timestamp = 0 + [1655374218.459699][35023:35028] CHIP:DMG: } + [1655374218.459732][35023:35028] CHIP:DMG: + [1655374218.459776][35023:35028] CHIP:DMG: + [1655374218.459846][35023:35028] CHIP:DMG: Additional Fields = + [1655374218.459884][35023:35028] CHIP:DMG: { + [1655374218.459924][35023:35028] CHIP:DMG: peer_address = BLE + [1655374218.459960][35023:35028] CHIP:DMG: } + [1655374218.459993][35023:35028] CHIP:DMG: + [1655374218.460045][35023:35028] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:224958145 on exchange 1302i + [1655374218.460090][35023:35028] CHIP:EM: Found matching exchange: 1302i, Delegate: 0xffff74005ab0 + [1655374218.460157][35023:35028] CHIP:DMG: ICR moving to [ResponseRe] + [1655374218.460220][35023:35028] CHIP:DMG: InvokeResponseMessage = + [1655374218.460260][35023:35028] CHIP:DMG: { + [1655374218.460298][35023:35028] CHIP:DMG: suppressResponse = false, + [1655374218.460338][35023:35028] CHIP:DMG: InvokeResponseIBs = + [1655374218.460390][35023:35028] CHIP:DMG: [ + [1655374218.460430][35023:35028] CHIP:DMG: InvokeResponseIB = + [1655374218.460487][35023:35028] CHIP:DMG: { + [1655374218.460530][35023:35028] CHIP:DMG: CommandDataIB = + [1655374218.460580][35023:35028] CHIP:DMG: { + [1655374218.460628][35023:35028] CHIP:DMG: CommandPathIB = + [1655374218.460686][35023:35028] CHIP:DMG: { + [1655374218.460745][35023:35028] CHIP:DMG: EndpointId = 0x0, + [1655374218.460802][35023:35028] CHIP:DMG: ClusterId = 0x3e, + [1655374218.460852][35023:35028] CHIP:DMG: CommandId = 0x1, + [1655374218.460906][35023:35028] CHIP:DMG: }, + [1655374218.460962][35023:35028] CHIP:DMG: + [1655374218.461010][35023:35028] CHIP:DMG: CommandFields = + [1655374218.461068][35023:35028] CHIP:DMG: { + [1655374218.461123][35023:35028] CHIP:DMG: 0x0 = [ + [1655374218.461351][35023:35028] CHIP:DMG: 0x15, 0x31, 0x1, 0x1d, 0x2, 0x30, 0x82, 0x2, 0x19, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x2, 0xa0, 0x82, 0x2, 0xa, 0x30, 0x82, 0x2, 0x6, 0x2, 0x1, 0x3, 0x31, 0xd, 0x30, 0xb, 0x6, 0x9, 0x60, 0x86, 0x48, 0x1, 0x65, 0x3, 0x4, 0x2, 0x1, 0x30, 0x82, 0x1, 0x71, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x7, 0x1, 0xa0, 0x82, 0x1, 0x62, 0x4, 0x82, 0x1, 0x5e, 0x15, 0x24, 0x0, 0x1, 0x25, 0x1, 0xf1, 0xff, 0x36, 0x2, 0x5, 0x0, 0x80, 0x5, 0x1, 0x80, 0x5, 0x2, 0x80, 0x5, 0x3, 0x80, 0x5, 0x4, 0x80, 0x5, 0x5, 0x80, 0x5, 0x6, 0x80, 0x5, 0x7, 0x80, 0x5, 0x8, 0x80, 0x5, 0x9, 0x80, 0x5, 0xa, 0x80, 0x5, 0xb, 0x80, 0x5, 0xc, 0x80, 0x5, 0xd, 0x80, 0x5, 0xe, 0x80, 0x5, 0xf, 0x80, 0x5, 0x10, 0x80, 0x5, 0x11, 0x80, 0x5, 0x12, 0x80, 0x5, 0x13, 0x80, 0x5, 0x14, 0x80, 0x5, 0x15, 0x80, 0x5, 0x16, 0x80, 0x5, 0x17, 0x80, 0x5, 0x18, 0x80, 0x5, 0x19, 0x80, 0x5, 0x1a, 0x80, 0x5, 0x1b, 0x80, 0x5, 0x1c, 0x80, 0x5, 0x1d, 0x80, 0x5, 0x1e, 0x80, 0x5, 0x1f, 0x80, 0x5, 0x20, 0x80, 0x5, 0x21, 0x80, 0x5, 0x22, 0x80, 0x5, 0x23, 0x80, 0x5, 0x24, 0x80, 0x5, 0x25, 0x80, 0x5, 0x26, 0x80, 0x5, 0x27, 0x80, 0x5, 0x28, 0x80, 0x5, 0x29, 0x80, 0x5, 0x2a, 0x80, 0x5, 0x2b, 0x80, 0x5, 0x2c, 0x80, 0x5, 0x2d, 0x80, 0x5, 0x2e, 0x80, 0x5, 0x2f, 0x80, 0x5, 0x30, 0x80, 0x5, 0x31, 0x80, 0x5, 0x32, 0x80, 0x5, 0x33, 0x80, 0x5, 0x34, 0x80, 0x5, 0x35, 0x80, 0x5, 0x36, 0x80, 0x5, 0x37, 0x80, 0x5, 0x38, 0x80, 0x5, 0x39, 0x80, 0x5, 0x3a, 0x80, 0x5, 0x3b, 0x80, 0x5, 0x3c, 0x80, 0x5, 0x3d, 0x80, 0x5, 0x3e, 0x80, 0x5, 0x3f, 0x80, 0x5, 0x40, 0x80, 0x5, 0x41, 0x80, 0x5, 0x42, 0x80, 0x5, 0x43, 0x80, 0x5, 0x44, 0x80, 0x5, 0x45, 0x80, 0x5, 0x46, 0x80, 0x5, 0x47, 0x80, 0x5, 0x48, 0x80, 0x5, 0x49, 0x80, 0x5, 0x4a, 0x80, 0x5, 0x + [1655374218.461469][35023:35028] CHIP:DMG: ] + [1655374218.461523][35023:35028] CHIP:DMG: 0x1 = [ + [1655374218.461611][35023:35028] CHIP:DMG: 0xd6, 0x91, 0x3d, 0x0, 0x37, 0xd3, 0x23, 0x11, 0xa9, 0xe6, 0x23, 0xe3, 0xb0, 0x80, 0x27, 0x71, 0xc2, 0xb1, 0xdc, 0xe1, 0xb8, 0x95, 0x7c, 0x88, 0x92, 0xc6, 0x84, 0xe4, 0x21, 0xa2, 0x87, 0x22, 0x6d, 0xeb, 0x42, 0x82, 0x67, 0xe0, 0x9c, 0x17, 0xb1, 0x1c, 0x1, 0xff, 0x8b, 0xff, 0x23, 0x47, 0xc4, 0xe7, 0x6, 0x1d, 0x8f, 0x1e, 0x26, 0x8e, 0xad, 0xbd, 0xc9, 0x9e, 0x23, 0x88, 0xdb, 0xb6, + [1655374218.461681][35023:35028] CHIP:DMG: ] + [1655374218.461733][35023:35028] CHIP:DMG: }, + [1655374218.461783][35023:35028] CHIP:DMG: }, + [1655374218.461855][35023:35028] CHIP:DMG: + [1655374218.461900][35023:35028] CHIP:DMG: }, + [1655374218.461951][35023:35028] CHIP:DMG: + [1655374218.461990][35023:35028] CHIP:DMG: ], + [1655374218.462041][35023:35028] CHIP:DMG: + [1655374218.462080][35023:35028] CHIP:DMG: InteractionModelRevision = 1 + [1655374218.462118][35023:35028] CHIP:DMG: }, + [1655374218.462220][35023:35028] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0001 + [1655374218.462275][35023:35028] CHIP:CTL: Received Attestation Information from the device + [1655374218.462320][35023:35028] CHIP:CTL: Successfully finished commissioning step 'SendAttestationRequest' disabled: true - label: "DUT generates 32-byte CSRNonce and is sent to TH1 through CSRRequest Command" verification: | + Verify in TH log + [1655374218.694869][35023:35028] CHIP:DMG: NOCSR Elements = + [1655374218.694922][35023:35028] CHIP:DMG: { + [1655374218.695009][35023:35028] CHIP:DMG: CSR (203) = 3081C83070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D03010703420004FD1662E0C1F44C5BD8A284452ED17C631CA88697CBF396EB765397315ED248729BFC7DE464404B1FA34B2DD81714E2484B8E908121BB95DFDA4493D5CDDA797AA000300A06082A8648CE3D0403020348003045022100832718B8679DB2C9A26579F08D930F7DA747F6F23EE2DD11777FBF1191909FD3022073E039F63AEA4C1BF812AE65221CB09203FF1BD382872FB37478C2C4045FD8B8 + [1655374218.695086][35023:35028] CHIP:DMG: CSRNonce (32) = 79964F34E68A97E41DBDFE7888583183535EDC3A185AF99941BDA4C5A65FDA39 + [1655374218.695133][35023:35028] CHIP:DMG: } + + + "./chip-tool operationalcredentials csrrequest 79964F34E68A97E41DBDFE7888583183535EDC3A185AF99941BDA4C5A65FDA39 1 0 + " disabled: true - label: "TH1 generates Invalid NOCSR Information and sends the CSRResponse Command. Refer Steps 6.1 to 6.8" verification: | - Verify that DUT reports error + disabled: true - label: "Factory Reset DUT so that it is commissionable again" diff --git a/src/app/tests/suites/certification/Test_TC_DA_1_7.yaml b/src/app/tests/suites/certification/Test_TC_DA_1_7.yaml new file mode 100644 index 00000000000000..da5b1b41bbe5b3 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DA_1_7.yaml @@ -0,0 +1,67 @@ +# 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: 18.1.7. [TC-DA-1.7] Validate CertificateChainRequest [DUT-Commissionee] + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "Start the commissioning process of DUT1 by TH on a first Fabric" + verification: | + DUT side: + sudo ./chip-all-clusters-app --wifi + + TH side: + ./chip-tool pairing ble-wifi 1 zigbeehome matter123 20202021 3841 --trace_decode 1 + + [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success + disabled: true + + - label: + "TH sends CertificateChainRequest Command to DUT1 for both PAI and DAC" + verification: | + "Verify in TH log: + + [1655374217.766326][35023:35028] CHIP:DMG: DAC/PAI (463) = + [1655374217.766373][35023:35028] CHIP:DMG: { + -----BEGIN CERTIFICATE----- + MIIByzCCAXGgAwIBAgIIVq2CIq2UW2QwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP + TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjAyMDUw + MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowPTElMCMGA1UEAwwcTWF0dGVyIERldiBQ + QUkgMHhGRkYxIG5vIFBJRDEUMBIGCisGAQQBgqJ8AgEMBEZGRjEwWTATBgcqhkjO + PQIBBggqhkjOPQMBBwNCAARBmpMVwhc+DIyHbQPM/JRIUmR/f+xeUIL0BZko7KiU + xZQVEwmsYx5MsDOSr2hLC6+35ls7gWLC9Sv5MbjneqqCo2YwZDASBgNVHRMBAf8E + CDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUY1QOR/ZLHDjROISk + YtFsGV2P+zwwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGhcX4wCgYIKoZI + zj0EAwIDSAAwRQIhALLvJ/Sa6bUPuR7qyUxNC9u415KcbLiPrOUpNo0SBUwMAiBl + Xckrhr2QmIKmxiF3uCXX0F7b58Ivn+pxIg5+pwP4kQ== + -----END CERTIFICATE----- + " + disabled: true + + - label: + "TH saves PAI certificates. Extract the Authority Key Identifier from + the PAI certificate" + verification: | + + disabled: true + + - label: "Repeat Step 1 to 4 with DUT2" + verification: | + + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DLOG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DLOG_1_1.yaml index fc2202c77cc3db..1d6640b461f04d 100644 --- a/src/app/tests/suites/certification/Test_TC_DLOG_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DLOG_1_1.yaml @@ -31,11 +31,8 @@ tests: 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) + [1653983972.206171][5186:5191] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFFD DataVersion: 2389393200 + [1653983972.206236][5186:5191] CHIP:TOO: ClusterRevision: 1 disabled: true - label: "TH reads the FeatureMap from DUT" @@ -43,11 +40,8 @@ tests: 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) + [1653983676.882544][5166:5171] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFFC DataVersion: 2389393200 + [1653983676.882637][5166:5171] CHIP:TOO: FeatureMap: 0 disabled: true - label: "TH reads AttributeList from DUT" diff --git a/src/app/tests/suites/certification/Test_TC_DLOG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DLOG_2_1.yaml index c7182d642fe234..ba2bddfcca7d9c 100644 --- a/src/app/tests/suites/certification/Test_TC_DLOG_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DLOG_2_1.yaml @@ -48,6 +48,7 @@ tests: disabled: true - label: "TH Sends BDX SendAccept message" + PICS: DLOG.S.C01.Tx verification: | Not Verifiable disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DLOG_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DLOG_3_1.yaml index b5f0d55fabc6aa..7d7912fa495181 100644 --- a/src/app/tests/suites/certification/Test_TC_DLOG_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DLOG_3_1.yaml @@ -27,6 +27,7 @@ tests: disabled: true - label: "DUT sends RetrieveLogsRequest Command to TH" + PICS: DLOG.C.C00.Tx verification: | ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_LCFG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_LCFG_1_1.yaml index 4ddf845555dbc2..692fe3177e1217 100644 --- a/src/app/tests/suites/certification/Test_TC_LCFG_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LCFG_1_1.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: 101.1.1. [TC-LCFG-1.1] Global Attributes [DUT-Server] +name: 99.1.1. [TC-LCFG-1.1] Global Attributes [DUT-Server] config: nodeId: 0x12344321 @@ -21,177 +21,77 @@ config: endpoint: 0 tests: - - label: "TH reads SupportedLocales attribute from DUT" + - label: "Commission TH to DUT" verification: | - ubuntu@ubuntu:~/apps$ '' ./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 writes 'newsupportedlocales' to SupportedLocales attribute" + - label: "TH reads from the DUT the (0xFFFD) ClusterRevision attribute" verification: | - ubuntu@ubuntu:~/apps$ '' ./chip-tool localizationconfiguration write supported-locales newsupportedlocales 1 0 + ./chip-tool localizationconfiguration read cluster-revision 1 0 - or - '' ./chip-tool any write-by-id 0x002B 1 newsupportedlocales 3 0 + [1649330698.587235][4440:4445] CHIP:DMG: + [1649330698.587269][4440:4445] CHIP:DMG: SuppressResponse = true, + [1649330698.587315][4440:4445] CHIP:DMG: InteractionModelRevision = 1 + [1649330698.587347][4440:4445] CHIP:DMG: } + [1649330698.587556][4440:4445] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_FFFD DataVersion: 419421945 + [1649330698.587643][4440:4445] CHIP:TOO: ClusterRevision: 1 disabled: true - - label: "TH reads SupportedLocales attribute" + - label: "TH reads from the DUT the (0xFFFC) FeatureMap attribute" verification: | - ubuntu@ubuntu:~/apps$ '' ./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 + ./chip-tool localizationconfiguration read feature-map 1 0 + + + [1653462414.221894][29485:29490] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_FFFC DataVersion: 2352052086 + [1653462414.222033][29485:29490] CHIP:TOO: FeatureMap: 0 + [1653462414.222207][29485:29490] CHIP:EM: Sending Standalone Ack for MessageCounter:4940181 on exchange 7821i disabled: true - - label: "TH reads ActiveLocale Attribute from the DUT" + - label: "TH reads from the DUT the (0xFFFB) AttributeList attribute" verification: | - ubuntu@ubuntu:~/apps$ '' ./chip-tool localizationconfiguration read active-locale 1 0 - - [1645772238.226467][3778:3783] CHIP:DMG: ReportDataMessage = - [1645772238.226511][3778:3783] CHIP:DMG: { - [1645772238.226545][3778:3783] CHIP:DMG: AttributeReportIBs = - [1645772238.226596][3778:3783] CHIP:DMG: [ - [1645772238.226635][3778:3783] CHIP:DMG: AttributeReportIB = - [1645772238.226691][3778:3783] CHIP:DMG: { - [1645772238.226735][3778:3783] CHIP:DMG: AttributeDataIB = - [1645772238.226787][3778:3783] CHIP:DMG: { - [1645772238.226839][3778:3783] CHIP:DMG: DataVersion = 0xcf5f714e, - [1645772238.226895][3778:3783] CHIP:DMG: AttributePathIB = - [1645772238.226949][3778:3783] CHIP:DMG: { - [1645772238.227004][3778:3783] CHIP:DMG: Endpoint = 0x0, - [1645772238.227065][3778:3783] CHIP:DMG: Cluster = 0x2b, - [1645772238.227126][3778:3783] CHIP:DMG: Attribute = 0x0000_0001, - [1645772238.227180][3778:3783] CHIP:DMG: } - [1645772238.227238][3778:3783] CHIP:DMG: - [1645772238.227300][3778:3783] CHIP:DMG: Data = "ja-JP", - [1645772238.227357][3778:3783] CHIP:DMG: }, - [1645772238.227413][3778:3783] CHIP:DMG: - [1645772238.227459][3778:3783] CHIP:DMG: }, - [1645772238.227513][3778:3783] CHIP:DMG: - [1645772238.227552][3778:3783] CHIP:DMG: ], - [1645772238.227602][3778:3783] CHIP:DMG: - [1645772238.227642][3778:3783] CHIP:DMG: SuppressResponse = true, - [1645772238.227683][3778:3783] CHIP:DMG: InteractionModelRevision = 1 - [1645772238.227721][3778:3783] CHIP:DMG: } - [1645772238.227930][3778:3783] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_0001DataVersion: 3479138638 - [1645772238.228001][3778:3783] CHIP:TOO: ActiveLocale: ja-JP + ./chip-tool localizationconfiguration read attribute-list 1 0 + + [1653462309.061114][29477:29482] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_FFFB DataVersion: 2352052086 + [1653462309.061199][29477:29482] CHIP:TOO: AttributeList: 7 entries + [1653462309.061233][29477:29482] CHIP:TOO: [1]: 0 + [1653462309.061258][29477:29482] CHIP:TOO: [2]: 1 + [1653462309.061284][29477:29482] CHIP:TOO: [3]: 65528 + [1653462309.061308][29477:29482] CHIP:TOO: [4]: 65529 + [1653462309.061332][29477:29482] CHIP:TOO: [5]: 65531 + [1653462309.061355][29477:29482] CHIP:TOO: [6]: 65532 + [1653462309.061379][29477:29482] CHIP:TOO: [7]: 65533 + [1653462309.061492][29477:29482] CHIP:EM: Sending Standalone Ack for MessageCounter:13553423 on exchange 61180i disabled: true - - label: - "TH writes new string not present in SupportedLocale attribute to - ActiveLocale Attribute." + - label: "TH reads from the DUT the (0xFFFA) EventList attribute" verification: | - ubuntu@ubuntu:~/apps$ '' ./chip-tool localizationconfiguration write active-locale fw-GB 1 0 - - [1645772751.418627][3827:3832] CHIP:DMG: WriteClient moving to [ResponseRe] - [1645772751.418700][3827:3832] CHIP:DMG: WriteResponseMessage = - [1645772751.418743][3827:3832] CHIP:DMG: { - [1645772751.418782][3827:3832] CHIP:DMG: AttributeStatusIBs = - [1645772751.418839][3827:3832] CHIP:DMG: [ - [1645772751.418882][3827:3832] CHIP:DMG: AttributeStatusIB = - [1645772751.418931][3827:3832] CHIP:DMG: { - [1645772751.418977][3827:3832] CHIP:DMG: AttributePathIB = - [1645772751.419039][3827:3832] CHIP:DMG: { - [1645772751.419096][3827:3832] CHIP:DMG: Endpoint = 0x0, - [1645772751.419157][3827:3832] CHIP:DMG: Cluster = 0x2b, - [1645772751.419217][3827:3832] CHIP:DMG: Attribute = 0x0000_0001, - [1645772751.419271][3827:3832] CHIP:DMG: } - [1645772751.419332][3827:3832] CHIP:DMG: - [1645772751.419392][3827:3832] CHIP:DMG: StatusIB = - [1645772751.419447][3827:3832] CHIP:DMG: { - [1645772751.419497][3827:3832] CHIP:DMG: status = 0x87, - [1645772751.419553][3827:3832] CHIP:DMG: }, - [1645772751.419608][3827:3832] CHIP:DMG: - [1645772751.419656][3827:3832] CHIP:DMG: }, - [1645772751.419714][3827:3832] CHIP:DMG: - [1645772751.419756][3827:3832] CHIP:DMG: ], - [1645772751.419809][3827:3832] CHIP:DMG: - [1645772751.419852][3827:3832] CHIP:DMG: InteractionModelRevision = 1 - [1645772751.419893][3827:3832] CHIP:DMG: } - [1645772751.419997][3827:3832] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 + out 0f scope for V1.0 disabled: true - - label: - "TH writes new string present in SupportedLocale attribute to - ActiveLocale Attribute." + - label: "TH reads from the DUT the (0xFFF9) AcceptedCommandList attribute" verification: | - ubuntu@ubuntu:~/apps$ '' ./chip-tool localizationconfiguration write active-locale fr-FR 1 0 - - [1645772570.568391][3806:3811] CHIP:DMG: WriteClient moving to [ResponseRe] - [1645772570.568456][3806:3811] CHIP:DMG: WriteResponseMessage = - [1645772570.568492][3806:3811] CHIP:DMG: { - [1645772570.568525][3806:3811] CHIP:DMG: AttributeStatusIBs = - [1645772570.568569][3806:3811] CHIP:DMG: [ - [1645772570.568605][3806:3811] CHIP:DMG: AttributeStatusIB = - [1645772570.568651][3806:3811] CHIP:DMG: { - [1645772570.568694][3806:3811] CHIP:DMG: AttributePathIB = - [1645772570.568747][3806:3811] CHIP:DMG: { - [1645772570.568794][3806:3811] CHIP:DMG: Endpoint = 0x0, - [1645772570.568851][3806:3811] CHIP:DMG: Cluster = 0x2b, - [1645772570.568906][3806:3811] CHIP:DMG: Attribute = 0x0000_0001, - [1645772570.568958][3806:3811] CHIP:DMG: } - [1645772570.569014][3806:3811] CHIP:DMG: - [1645772570.569064][3806:3811] CHIP:DMG: StatusIB = - [1645772570.569104][3806:3811] CHIP:DMG: { - [1645772570.569147][3806:3811] CHIP:DMG: status = 0x0, - [1645772570.569267][3806:3811] CHIP:DMG: }, - [1645772570.569311][3806:3811] CHIP:DMG: - [1645772570.569347][3806:3811] CHIP:DMG: }, - [1645772570.569387][3806:3811] CHIP:DMG: - [1645772570.569416][3806:3811] CHIP:DMG: ], - [1645772570.569454][3806:3811] CHIP:DMG: - [1645772570.569484][3806:3811] CHIP:DMG: InteractionModelRevision = 1 - [1645772570.569513][3806:3811] CHIP:DMG: } - [1645772570.569589][3806:3811] CHIP:DMG: WriteClient moving to [AwaitingDe] + ./chip-tool localizationconfiguration read accepted-command-list 1 0 + + + [1649331020.031045][4520:4525] CHIP:DMG: + [1649331020.031081][4520:4525] CHIP:DMG: SuppressResponse = true, + [1649331020.031119][4520:4525] CHIP:DMG: InteractionModelRevision = 1 + [1649331020.031153][4520:4525] CHIP:DMG: } + [1649331020.031374][4520:4525] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_FFF9 DataVersion: 419421945 + [1649331020.031470][4520:4525] CHIP:TOO: AcceptedCommandList: 0 entries disabled: true - - label: "TH Reads ActiveLocale." + - label: "TH reads from the DUT the (0xFFF8) GeneratedCommandList attribute" verification: | - ubuntu@ubuntu:~/apps$ '' ./chip-tool localizationconfiguration read active-locale 1 0 - [1645772597.251785][3816:3821] CHIP:DMG: ReportDataMessage = - [1645772597.251837][3816:3821] CHIP:DMG: { - [1645772597.251866][3816:3821] CHIP:DMG: AttributeReportIBs = - [1645772597.251907][3816:3821] CHIP:DMG: [ - [1645772597.251953][3816:3821] CHIP:DMG: AttributeReportIB = - [1645772597.252010][3816:3821] CHIP:DMG: { - [1645772597.252049][3816:3821] CHIP:DMG: AttributeDataIB = - [1645772597.252105][3816:3821] CHIP:DMG: { - [1645772597.252149][3816:3821] CHIP:DMG: DataVersion = 0xcf5f714f, - [1645772597.252237][3816:3821] CHIP:DMG: AttributePathIB = - [1645772597.252294][3816:3821] CHIP:DMG: { - [1645772597.252344][3816:3821] CHIP:DMG: Endpoint = 0x0, - [1645772597.252405][3816:3821] CHIP:DMG: Cluster = 0x2b, - [1645772597.252461][3816:3821] CHIP:DMG: Attribute = 0x0000_0001, - [1645772597.252505][3816:3821] CHIP:DMG: } - [1645772597.252563][3816:3821] CHIP:DMG: - [1645772597.252623][3816:3821] CHIP:DMG: Data = "fr-FR", - [1645772597.252671][3816:3821] CHIP:DMG: }, - [1645772597.252728][3816:3821] CHIP:DMG: - [1645772597.252774][3816:3821] CHIP:DMG: }, - [1645772597.252819][3816:3821] CHIP:DMG: - [1645772597.252862][3816:3821] CHIP:DMG: ], - [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 + ./chip-tool localizationconfiguration read generated-command-list 1 0 + + + [1649330937.798986][4508:4513] CHIP:DMG: + [1649330937.799022][4508:4513] CHIP:DMG: SuppressResponse = true, + [1649330937.799062][4508:4513] CHIP:DMG: InteractionModelRevision = 1 + [1649330937.799096][4508:4513] CHIP:DMG: } + [1649330937.799317][4508:4513] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002B Attribute 0x0000_FFF8 DataVersion: 419421945 + [1649330937.799413][4508:4513] CHIP:TOO: GeneratedCommandList: 0 entries disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_LCFG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_LCFG_2_1.yaml index a2f01aecea8ea0..94c05aca8a8a68 100644 --- a/src/app/tests/suites/certification/Test_TC_LCFG_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LCFG_2_1.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: - 101.2.1. [TC-LCFG-2.1] Localization Configuration Cluster + 99.2.1. [TC-LCFG-2.1] Localization Configuration Cluster Attributes[DUT-Server] config: @@ -24,6 +24,7 @@ config: tests: - label: "TH reads SupportedLocales attribute from DUT" + PICS: LCFG.S.A0001 verification: | ./chip-tool localizationconfiguration read supported-locales 1 0 @@ -39,14 +40,12 @@ tests: [1651129546.170697][174082:174087] CHIP:TOO: [8]: ja-JP disabled: true - - label: "TH writes 'newsupportedlocales' to SupportedLocales attribute" + - label: 'TH writes "xx-XX" 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] + ./chip-tool any write-by-id 0x002B 1 xx-XX 1 0 + [1653996674.832226][7281:7286] CHIP:DMG: WriteClient moving to [AwaitingDe] + [1653996674.832300][7281:7286] CHIP:TOO: Response Failure: IM Error 0x00000588: General error: 0x88 (UNSUPPORTED_WRITE) + [1653996674.832411][7281:7286] CHIP:EM: Sending Standalone Ack for MessageCounter:12567655 on exchange 10797i disabled: true - label: "TH reads SupportedLocales attribute" @@ -65,6 +64,7 @@ tests: disabled: true - label: "TH reads ActiveLocale Attribute from the DUT" + PICS: LCFG.S.A0000 verification: | ./chip-tool localizationconfiguration read active-locale 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_LCFG_3_1.yaml b/src/app/tests/suites/certification/Test_TC_LCFG_3_1.yaml index 0450af15046dae..32bd74b78906d3 100644 --- a/src/app/tests/suites/certification/Test_TC_LCFG_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LCFG_3_1.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: - 101.3.1. [TC-LCFG-3.1] Localization Configuration Cluster + 99.3.1. [TC-LCFG-3.1] Localization Configuration Cluster Attributes[DUT-Client] config: @@ -24,6 +24,7 @@ config: tests: - label: "DUT reads SupportedLocales attribute from TH" + PICS: LCFG.C.A0001 verification: | ./chip-tool localizationconfiguration read supported-locales 1 0 @@ -49,6 +50,7 @@ tests: disabled: true - label: "DUT reads ActiveLocale attribute from the TH" + PICS: LCFG.C.A0000 verification: | ./chip-tool localizationconfiguration read active-locale 1 0 diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml index 2df9346e21fc88..bde14f2e703fa7 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "read the mandatory attribute: OnOff" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: @@ -36,6 +37,7 @@ tests: type: bool - label: "read LT attribute: GlobalSceneControl" + PICS: OO.S.A4000 optional: true command: "readAttribute" attribute: "GlobalSceneControl" @@ -44,6 +46,7 @@ tests: type: bool - label: "read LT attribute: OnTime" + PICS: OO.S.A4001 optional: true command: "readAttribute" attribute: "OnTime" @@ -52,6 +55,7 @@ tests: type: uint16 - label: "read LT attribute: OffWaitTime" + PICS: OO.S.A4002 optional: true command: "readAttribute" attribute: "OffWaitTime" @@ -60,6 +64,7 @@ tests: type: uint16 - label: "read LT attribute: StartUpOnOff" + PICS: OO.S.A4003 optional: true command: "readAttribute" attribute: "StartUpOnOff" diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml index d0835ec9ccfe1e..f1084882672fe8 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml @@ -29,51 +29,62 @@ tests: value: nodeId - label: "Send Off Command" + PICS: OO.S.C00.Rsp command: "Off" - label: "Check on/off attribute value is false after off command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 0 - label: "Send On Command" + PICS: OO.S.C01.Rsp command: "On" - label: "Check on/off attribute value is true after on command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 1 - label: "Send On Command" + PICS: OO.S.C01.Rsp command: "On" - label: "Check on/off attribute value is true after on command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 1 - label: "Send Off Command" + PICS: OO.S.C00.Rsp command: "Off" - label: "Check on/off attribute value is false after off command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 0 - label: "Send Off Command" + PICS: OO.S.C00.Rsp command: "Off" - label: "Check on/off attribute value is false after off command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 0 - label: "Send Toggle Command" + PICS: OO.S.C02.Rsp command: "Toggle" - label: "Wait 1000ms" @@ -85,12 +96,14 @@ tests: value: 1000 - label: "Check on/off attribute value is true after toggle command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 1 - label: "Send Toggle Command" + PICS: OO.S.C02.Rsp command: "Toggle" - label: "Wait 1000ms" @@ -102,6 +115,7 @@ tests: value: 1000 - label: "Check on/off attribute value is false after toggle command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: @@ -110,7 +124,7 @@ tests: - label: "Operate on device to set OnOff attribute manually to on" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && OO.M.ManuallyControlled arguments: values: - name: "message" @@ -129,7 +143,7 @@ tests: - label: "Operate on device to set OnOff attribute manually to off" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && OO.M.ManuallyControlled arguments: values: - name: "message" @@ -146,9 +160,11 @@ tests: value: 0 - label: "Reset Off Command" + PICS: OO.S.C00.Rsp command: "Off" - label: "Check on/off attribute value is false after off command" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml index 6ba8b930095dc7..9abe1b5e2b0e88 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml @@ -30,8 +30,8 @@ tests: value: nodeId - label: "2a: Send On Command" + PICS: OO.S.C01.Rsp command: "On" - PICS: CR_ON - label: "Wait 1000ms" cluster: "DelayCommands" @@ -42,22 +42,22 @@ tests: value: 1000 - label: "2b: Reads OnOff attribute from DUT" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF response: value: 1 - label: "2b:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 1 - label: "3a:Sends OffWithEffect command to DUT" command: "OffWithEffect" - PICS: CR_OFFWITHEFFECT + PICS: OO.S.C40.Rsp arguments: values: - name: "EffectId" @@ -76,20 +76,20 @@ tests: - label: "3b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "3b:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 0 - label: "4a:Sends OnWithRecallGlobalScene command to DUT" command: "OnWithRecallGlobalScene" - PICS: CR_ONWITHRECALL + PICS: OO.S.C41.Rsp - label: "Wait 1000ms" cluster: "DelayCommands" @@ -102,20 +102,20 @@ tests: - label: "4b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "4b:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 1 - label: "5a:Sends OffWithEffect command to DUT" command: "OffWithEffect" - PICS: CR_OFFWITHEFFECT + PICS: OO.S.C40.Rsp arguments: values: - name: "EffectId" @@ -134,20 +134,20 @@ tests: - label: "5b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "5b:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 0 - label: "5c:Send On Command" + PICS: OO.S.C01.Rsp command: "On" - PICS: CR_ON - label: "Wait 1000ms" cluster: "DelayCommands" @@ -160,20 +160,20 @@ tests: - label: "5d:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "5d:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 1 - label: "6a:Sends OffWithEffect command to DUT" command: "OffWithEffect" - PICS: CR_OFFWITHEFFECT + PICS: OO.S.C40.Rsp arguments: values: - name: "EffectId" @@ -192,20 +192,20 @@ tests: - label: "6b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "6b:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 0 - label: "7a:Send On Command" + PICS: OO.S.C01.Rsp command: "On" - PICS: CR_ON - label: "Wait 1000ms" cluster: "DelayCommands" @@ -218,20 +218,20 @@ tests: - label: "7b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "7b:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 1 - label: "7c:Sends OnWithRecallGlobalScene command to DUT" command: "OnWithRecallGlobalScene" - PICS: CR_ONWITHRECALL + PICS: OO.S.C41.Rsp - label: "Wait 1000ms" cluster: "DelayCommands" @@ -244,33 +244,34 @@ tests: - label: "7d:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "7d:Reads GlobalSceneControl attribute from DUT" command: "readAttribute" attribute: "GlobalSceneControl" - PICS: A_GLOBALSCENECONTROL + PICS: OO.S.A4000 response: value: 1 - label: "8:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "8:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: value: 0 - label: "9a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -283,7 +284,7 @@ tests: - label: "9b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: constraints: minValue: 295 @@ -292,13 +293,13 @@ tests: - label: "9b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: value: 300 - label: "10a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -318,7 +319,7 @@ tests: - label: "10b:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -338,7 +339,7 @@ tests: - label: "10c:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -358,7 +359,7 @@ tests: - label: "10d:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -371,14 +372,14 @@ tests: - label: "10e:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "10e:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: constraints: minValue: 295 @@ -387,7 +388,7 @@ tests: - label: "10e:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: value: 300 @@ -401,7 +402,7 @@ tests: - label: "11a:Sends OffWithEffect command to DUT" command: "OffWithEffect" - PICS: CR_OFFWITHEFFECT + PICS: OO.S.C40.Rsp arguments: values: - name: "EffectId" @@ -412,21 +413,21 @@ tests: - label: "11b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "11b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "11b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 295 @@ -442,7 +443,7 @@ tests: - label: "12a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -455,21 +456,21 @@ tests: - label: "12b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "12b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "12b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 195 @@ -484,27 +485,27 @@ tests: value: 10000 - label: "13a:Send On Command" + PICS: OO.S.C01.Rsp command: "On" - PICS: CR_ON - label: "13b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "13b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "13b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constarints: minValue: 0 @@ -520,7 +521,7 @@ tests: - label: "14a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -540,26 +541,26 @@ tests: - label: "14b:Send Off Command" command: "Off" - PICS: CR_OFF + PICS: OO.S.C00.Rsp - label: "14c:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "14c:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "14c:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 295 @@ -576,21 +577,21 @@ tests: - label: "15:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "15:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "15:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 0 @@ -606,7 +607,7 @@ tests: - label: "16a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -619,29 +620,29 @@ tests: - label: "16b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "16b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "16b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 0 maxValue: 10 - label: "17a:Send On Command" + PICS: OO.S.C01.Rsp command: "On" - PICS: CR_ON - label: "Wait 10000ms" cluster: "DelayCommands" @@ -653,7 +654,7 @@ tests: - label: "17b:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -666,21 +667,21 @@ tests: - label: "17c:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "17c:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 300 - label: "17c:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: value: 300 @@ -695,21 +696,21 @@ tests: - label: "17d:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "17d:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "17d:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 0 @@ -725,7 +726,7 @@ tests: - label: "18a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -739,7 +740,7 @@ tests: - label: "18b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: PICS_SKIP_SAMPLE_APP && A_ONOFF + PICS: PICS_SKIP_SAMPLE_APP && OO.S.A0000 response: value: 1 @@ -747,7 +748,7 @@ tests: - label: "18b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: PICS_SKIP_SAMPLE_APP && A_ONTIME + PICS: PICS_SKIP_SAMPLE_APP && OO.S.A4001 response: constraints: minValue: 295 @@ -757,13 +758,13 @@ tests: - label: "18b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: PICS_SKIP_SAMPLE_APP && A_OFFWAITTIME + PICS: PICS_SKIP_SAMPLE_APP && OO.S.A4002 response: value: 300 - label: "19a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -783,7 +784,7 @@ tests: - label: "19b:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -804,14 +805,14 @@ tests: - label: "19c:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "19c:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: constraints: minValue: 195 @@ -820,40 +821,40 @@ tests: - label: "19c:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: value: 300 - label: "20a:Send Off Command" command: "Off" - PICS: CR_OFF + PICS: OO.S.C00.Rsp - label: "20b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "20b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "20b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 295 maxValue: 305 - - label: "21a:Sends OnWithimedOff command to DUT" + - label: "21a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -866,53 +867,52 @@ tests: - label: "21b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "21b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - # Issue 19159 offWaitTime value mismatch: expected 200 but got 300 - label: "21b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && OO.S.A4002 response: constraints: minValue: 195 maxValue: 205 - label: "22a:Send On Command" + PICS: OO.S.C01.Rsp command: "On" - PICS: CR_ON - label: "22b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "22b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "22b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: value: 0 - - label: ":Wait 10000ms" + - label: "Wait 10000ms" cluster: "DelayCommands" command: "WaitForMs" arguments: @@ -922,7 +922,7 @@ tests: - label: "23a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -934,26 +934,26 @@ tests: - label: "23b:Send Off Command" command: "Off" - PICS: CR_OFF + PICS: OO.S.C00.Rsp - label: "23c:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "23c:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "23c:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 295 @@ -970,21 +970,21 @@ tests: - label: "23d:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "23d:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "23d:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 0 @@ -992,7 +992,7 @@ tests: - label: "24a:Sends OnWithTimedOff command to DUT" command: "OnWithTimedOff" - PICS: CR_ONWITHTIMEOFF + PICS: OO.S.C42.Rsp arguments: values: - name: "OnOffControl" @@ -1005,14 +1005,14 @@ tests: - label: "24b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 1 - label: "24b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: constraints: minValue: 295 @@ -1021,7 +1021,7 @@ tests: - label: "24b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: value: 300 @@ -1036,21 +1036,21 @@ tests: - label: "24c:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: A_ONOFF + PICS: OO.S.A0000 response: value: 0 - label: "24c:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: A_ONTIME + PICS: OO.S.A4001 response: value: 0 - label: "24c:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: A_OFFWAITTIME + PICS: OO.S.A4002 response: constraints: minValue: 0 @@ -1058,4 +1058,4 @@ tests: - label: "Send Off Command" command: "Off" - PICS: CR_OFF + PICS: OO.S.C00.Rsp diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_4.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_4.yaml index c580305f7bcd36..8195cdbd45ac61 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_4.yaml @@ -29,9 +29,11 @@ tests: value: nodeId - label: "TH sends On command to DUT" + PICS: OO.S.C01.Rsp command: "On" - label: "TH writes a value of 0 to StartUpOnOff attribute of DUT" + PICS: OO.S.A4003 command: "writeAttribute" attribute: "StartUpOnOff" arguments: @@ -65,12 +67,14 @@ tests: value: nodeId - label: "TH reads the OnOff attribute from the DUT" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 0 - label: "TH writes a value of 1 to StartUpOnOff attribute of DUT" + PICS: OO.S.A4003 command: "writeAttribute" attribute: "StartUpOnOff" arguments: @@ -104,12 +108,14 @@ tests: value: nodeId - label: "TH reads the OnOff attribute from the DUT" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 1 - label: "TH writes a value of 2 to StartUpOnOff attribute of DUT" + PICS: OO.S.A4003 command: "writeAttribute" attribute: "StartUpOnOff" arguments: @@ -143,6 +149,7 @@ tests: value: nodeId - label: "TH reads the OnOff attribute from the DUT" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: @@ -176,12 +183,14 @@ tests: value: nodeId - label: "TH reads the OnOff attribute from the DUT" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 1 - label: "TH writes NULL to StartUpOnOff attribute of DUT" + PICS: OO.S.A4003 command: "writeAttribute" attribute: "StartUpOnOff" arguments: @@ -215,12 +224,14 @@ tests: value: nodeId - label: "TH reads the OnOff attribute from the DUT" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: value: 1 - label: "TH sends Off command to DUT" + PICS: OO.S.C00.Rsp command: "Off" - label: "Reboot target device" @@ -251,6 +262,7 @@ tests: value: nodeId - label: "TH reads the OnOff attribute from the DUT" + PICS: OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: diff --git a/src/app/tests/suites/certification/Test_TC_OO_3_2.yaml b/src/app/tests/suites/certification/Test_TC_OO_3_2.yaml index f8407e1cf13a2b..94da14b81684c2 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_3_2.yaml @@ -22,213 +22,246 @@ config: tests: - label: "DUT issues an Off command to the Test Harness." + PICS: OO.C.C00.Tx verification: | On TestHarnes (all-cluster-app) a received Off command looks like this: - [1646102181.016213][33190:33190] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:1364748 on exchange 16786r - [1646102181.016254][33190:33190] CHIP:EM: Handling via exchange: 16786r, Delegate: 0xaaaace1730c8 - [1646102181.016620][33190:33190] CHIP:DMG: InvokeRequestMessage = - [1646102181.016666][33190:33190] CHIP:DMG: { - [1646102181.016690][33190:33190] CHIP:DMG: suppressResponse = false, - [1646102181.016716][33190:33190] CHIP:DMG: timedRequest = false, - [1646102181.016741][33190:33190] CHIP:DMG: InvokeRequests = - [1646102181.016770][33190:33190] CHIP:DMG: [ - [1646102181.016794][33190:33190] CHIP:DMG: CommandDataIB = - [1646102181.016829][33190:33190] CHIP:DMG: { - [1646102181.016857][33190:33190] CHIP:DMG: CommandPathIB = - [1646102181.016891][33190:33190] CHIP:DMG: { - [1646102181.016924][33190:33190] CHIP:DMG: EndpointId = 0x1, - [1646102181.016956][33190:33190] CHIP:DMG: ClusterId = 0x6, - [1646102181.016989][33190:33190] CHIP:DMG: CommandId = 0x0, - [1646102181.017020][33190:33190] CHIP:DMG: }, - [1646102181.017053][33190:33190] CHIP:DMG: - [1646102181.017080][33190:33190] CHIP:DMG: CommandData = - [1646102181.017113][33190:33190] CHIP:DMG: { - [1646102181.017143][33190:33190] CHIP:DMG: }, - [1646102181.017171][33190:33190] CHIP:DMG: }, - [1646102181.017202][33190:33190] CHIP:DMG: - [1646102181.017227][33190:33190] CHIP:DMG: ], - [1646102181.017256][33190:33190] CHIP:DMG: - [1646102181.017280][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646102181.017303][33190:33190] CHIP:DMG: }, - [1646102181.017357][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o - [1646102181.017399][33190:33190] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0000 + ./chip-tool onoff off 1 1 + + [1650537121.464763][3678:3678] CHIP:DMG: InvokeRequestMessage = + [1650537121.464818][3678:3678] CHIP:DMG: { + [1650537121.464866][3678:3678] CHIP:DMG: suppressResponse = false, + [1650537121.464922][3678:3678] CHIP:DMG: timedRequest = false, + [1650537121.464974][3678:3678] CHIP:DMG: InvokeRequests = + [1650537121.465078][3678:3678] CHIP:DMG: [ + [1650537121.465132][3678:3678] CHIP:DMG: CommandDataIB = + [1650537121.465195][3678:3678] CHIP:DMG: { + [1650537121.465250][3678:3678] CHIP:DMG: CommandPathIB = + [1650537121.465309][3678:3678] CHIP:DMG: { + [1650537121.465370][3678:3678] CHIP:DMG: EndpointId = 0x1, + [1650537121.465440][3678:3678] CHIP:DMG: ClusterId = 0x6, + [1650537121.465501][3678:3678] CHIP:DMG: CommandId = 0x0, + [1650537121.465569][3678:3678] CHIP:DMG: }, + [1650537121.465633][3678:3678] CHIP:DMG: + [1650537121.465687][3678:3678] CHIP:DMG: CommandData = + [1650537121.465744][3678:3678] CHIP:DMG: { + [1650537121.465807][3678:3678] CHIP:DMG: }, + [1650537121.465868][3678:3678] CHIP:DMG: }, + [1650537121.465932][3678:3678] CHIP:DMG: + [1650537121.465982][3678:3678] CHIP:DMG: ], + [1650537121.466043][3678:3678] CHIP:DMG: + [1650537121.466092][3678:3678] CHIP:DMG: InteractionModelRevision = 1 + [1650537121.466141][3678:3678] CHIP:DMG: }, + [1650537121.466254][3678:3678] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1650537121.466322][3678:3678] CHIP:DMG: AccessControl: allowed + [1650537121.466377][3678:3678] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0000 + [1650537121.466434][3678:3678] CHIP:ZCL: On/Off set value: 1 0 + [1650537121.466486][3678:3678] CHIP:ZCL: On/off already set to new value disabled: true - label: "DUT issues an On command to the Test Harness." + PICS: OO.C.C01.Tx verification: | On TestHarnes (all-cluster-app) a received On command looks like this: - [1646102270.625767][33190:33190] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:15922463 on exchange 1577r - [1646102270.625810][33190:33190] CHIP:EM: Handling via exchange: 1577r, Delegate: 0xaaaace1730c8 - [1646102270.626205][33190:33190] CHIP:DMG: InvokeRequestMessage = - [1646102270.626252][33190:33190] CHIP:DMG: { - [1646102270.626278][33190:33190] CHIP:DMG: suppressResponse = false, - [1646102270.626318][33190:33190] CHIP:DMG: timedRequest = false, - [1646102270.626346][33190:33190] CHIP:DMG: InvokeRequests = - [1646102270.626381][33190:33190] CHIP:DMG: [ - [1646102270.626409][33190:33190] CHIP:DMG: CommandDataIB = - [1646102270.626442][33190:33190] CHIP:DMG: { - [1646102270.626470][33190:33190] CHIP:DMG: CommandPathIB = - [1646102270.626508][33190:33190] CHIP:DMG: { - [1646102270.626546][33190:33190] CHIP:DMG: EndpointId = 0x1, - [1646102270.626585][33190:33190] CHIP:DMG: ClusterId = 0x6, - [1646102270.626620][33190:33190] CHIP:DMG: CommandId = 0x1, - [1646102270.626654][33190:33190] CHIP:DMG: }, - [1646102270.626695][33190:33190] CHIP:DMG: - [1646102270.626726][33190:33190] CHIP:DMG: CommandData = - [1646102270.626761][33190:33190] CHIP:DMG: { - [1646102270.626795][33190:33190] CHIP:DMG: }, - [1646102270.626827][33190:33190] CHIP:DMG: }, - [1646102270.626860][33190:33190] CHIP:DMG: - [1646102270.626887][33190:33190] CHIP:DMG: ], - [1646102270.626920][33190:33190] CHIP:DMG: - [1646102270.626946][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646102270.626972][33190:33190] CHIP:DMG: }, - [1646102270.627032][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o - [1646102270.627078][33190:33190] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 + ./chip-tool onoff on 1 1 + + [1650537309.217556][3678:3678] CHIP:DMG: InvokeRequestMessage = + [1650537309.217647][3678:3678] CHIP:DMG: { + [1650537309.217706][3678:3678] CHIP:DMG: suppressResponse = false, + [1650537309.217773][3678:3678] CHIP:DMG: timedRequest = false, + [1650537309.217834][3678:3678] CHIP:DMG: InvokeRequests = + [1650537309.217931][3678:3678] CHIP:DMG: [ + [1650537309.217993][3678:3678] CHIP:DMG: CommandDataIB = + [1650537309.218088][3678:3678] CHIP:DMG: { + [1650537309.218168][3678:3678] CHIP:DMG: CommandPathIB = + [1650537309.218267][3678:3678] CHIP:DMG: { + [1650537309.218374][3678:3678] CHIP:DMG: EndpointId = 0x1, + [1650537309.218458][3678:3678] CHIP:DMG: ClusterId = 0x6, + [1650537309.218566][3678:3678] CHIP:DMG: CommandId = 0x1, + [1650537309.218666][3678:3678] CHIP:DMG: }, + [1650537309.218747][3678:3678] CHIP:DMG: + [1650537309.218839][3678:3678] CHIP:DMG: CommandData = + [1650537309.218928][3678:3678] CHIP:DMG: { + [1650537309.219001][3678:3678] CHIP:DMG: }, + [1650537309.219080][3678:3678] CHIP:DMG: }, + [1650537309.219180][3678:3678] CHIP:DMG: + [1650537309.219240][3678:3678] CHIP:DMG: ], + [1650537309.219334][3678:3678] CHIP:DMG: + [1650537309.219394][3678:3678] CHIP:DMG: InteractionModelRevision = 1 + [1650537309.219474][3678:3678] CHIP:DMG: }, + [1650537309.219624][3678:3678] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1650537309.219724][3678:3678] CHIP:DMG: AccessControl: allowed + [1650537309.219791][3678:3678] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 + [1650537309.219887][3678:3678] CHIP:ZCL: On/Off set value: 1 1 + [1650537309.219951][3678:3678] CHIP:ZCL: Toggle on/off from 0 to 1 disabled: true - label: "DUT issues an Toggle command to the Test Harness." + PICS: OO.C.C02.Tx verification: | On TestHarnes (all-cluster-app) a received Toggle command looks like this: - [1646102299.034377][33190:33190] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:15497853 on exchange 28117r - [1646102299.034429][33190:33190] CHIP:EM: Handling via exchange: 28117r, Delegate: 0xaaaace1730c8 - [1646102299.034872][33190:33190] CHIP:DMG: InvokeRequestMessage = - [1646102299.034923][33190:33190] CHIP:DMG: { - [1646102299.034955][33190:33190] CHIP:DMG: suppressResponse = false, - [1646102299.034990][33190:33190] CHIP:DMG: timedRequest = false, - [1646102299.035023][33190:33190] CHIP:DMG: InvokeRequests = - [1646102299.035062][33190:33190] CHIP:DMG: [ - [1646102299.035094][33190:33190] CHIP:DMG: CommandDataIB = - [1646102299.035131][33190:33190] CHIP:DMG: { - [1646102299.035167][33190:33190] CHIP:DMG: CommandPathIB = - [1646102299.035209][33190:33190] CHIP:DMG: { - [1646102299.035305][33190:33190] CHIP:DMG: EndpointId = 0x1, - [1646102299.035346][33190:33190] CHIP:DMG: ClusterId = 0x6, - [1646102299.035381][33190:33190] CHIP:DMG: CommandId = 0x2, - [1646102299.035422][33190:33190] CHIP:DMG: }, - [1646102299.035465][33190:33190] CHIP:DMG: - [1646102299.035502][33190:33190] CHIP:DMG: CommandData = - [1646102299.035543][33190:33190] CHIP:DMG: { - [1646102299.035585][33190:33190] CHIP:DMG: }, - [1646102299.035623][33190:33190] CHIP:DMG: }, - [1646102299.035665][33190:33190] CHIP:DMG: - [1646102299.035696][33190:33190] CHIP:DMG: ], - [1646102299.035736][33190:33190] CHIP:DMG: - [1646102299.035768][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646102299.035799][33190:33190] CHIP:DMG: }, - [1646102299.035869][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o - [1646102299.035922][33190:33190] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0002 + ./chip-tool onoff toggle 1 1 + + [1650537502.260837][3678:3678] CHIP:DMG: InvokeRequestMessage = + [1650537502.260877][3678:3678] CHIP:DMG: { + [1650537502.260911][3678:3678] CHIP:DMG: suppressResponse = false, + [1650537502.260952][3678:3678] CHIP:DMG: timedRequest = false, + [1650537502.260988][3678:3678] CHIP:DMG: InvokeRequests = + [1650537502.261053][3678:3678] CHIP:DMG: [ + [1650537502.261092][3678:3678] CHIP:DMG: CommandDataIB = + [1650537502.261145][3678:3678] CHIP:DMG: { + [1650537502.261184][3678:3678] CHIP:DMG: CommandPathIB = + [1650537502.261235][3678:3678] CHIP:DMG: { + [1650537502.261287][3678:3678] CHIP:DMG: EndpointId = 0x1, + [1650537502.261341][3678:3678] CHIP:DMG: ClusterId = 0x6, + [1650537502.261390][3678:3678] CHIP:DMG: CommandId = 0x2, + [1650537502.261440][3678:3678] CHIP:DMG: }, + [1650537502.261493][3678:3678] CHIP:DMG: + [1650537502.261535][3678:3678] CHIP:DMG: CommandData = + [1650537502.261585][3678:3678] CHIP:DMG: { + [1650537502.261632][3678:3678] CHIP:DMG: }, + [1650537502.261674][3678:3678] CHIP:DMG: }, + [1650537502.261721][3678:3678] CHIP:DMG: + [1650537502.261756][3678:3678] CHIP:DMG: ], + [1650537502.261800][3678:3678] CHIP:DMG: + [1650537502.261835][3678:3678] CHIP:DMG: InteractionModelRevision = 1 + [1650537502.261870][3678:3678] CHIP:DMG: }, + [1650537502.261955][3678:3678] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1650537502.262005][3678:3678] CHIP:DMG: AccessControl: allowed + [1650537502.262044][3678:3678] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0002 + [1650537502.262086][3678:3678] CHIP:ZCL: On/Off set value: 1 2 + [1650537502.262124][3678:3678] CHIP:ZCL: Toggle on/off from 1 to 0 + [1650537502.262157][3678:3678] CHIP:ZCL: Off Command - OnTime : 0 disabled: true - label: "DUT issues an OffWithEffect command to the Test Harness." + PICS: OO.C.C40.Tx verification: | On TestHarnes (all-cluster-app) a received OffWithEffect command with f.e. 1 for EffectIdentifier and 0 for EffectVariant looks like this: - - [1646101669.038374][33190:33190] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:2036360 on exchange 5461r - [1646101669.038415][33190:33190] CHIP:EM: Handling via exchange: 5461r, Delegate: 0xaaaace1730c8 - [1646101669.038772][33190:33190] CHIP:DMG: InvokeRequestMessage = - [1646101669.038820][33190:33190] CHIP:DMG: { - [1646101669.038847][33190:33190] CHIP:DMG: suppressResponse = false, - [1646101669.038874][33190:33190] CHIP:DMG: timedRequest = false, - [1646101669.038899][33190:33190] CHIP:DMG: InvokeRequests = - [1646101669.038930][33190:33190] CHIP:DMG: [ - [1646101669.038954][33190:33190] CHIP:DMG: CommandDataIB = - [1646101669.038983][33190:33190] CHIP:DMG: { - [1646101669.039010][33190:33190] CHIP:DMG: CommandPathIB = - [1646101669.039041][33190:33190] CHIP:DMG: { - [1646101669.039076][33190:33190] CHIP:DMG: EndpointId = 0x1, - [1646101669.039108][33190:33190] CHIP:DMG: ClusterId = 0x6, - [1646101669.039138][33190:33190] CHIP:DMG: CommandId = 0x40, - [1646101669.039167][33190:33190] CHIP:DMG: }, - [1646101669.039200][33190:33190] CHIP:DMG: - [1646101669.039256][33190:33190] CHIP:DMG: CommandData = - [1646101669.039289][33190:33190] CHIP:DMG: { - [1646101669.039321][33190:33190] CHIP:DMG: 0x0 = 1, - [1646101669.039353][33190:33190] CHIP:DMG: 0x1 = 0, - [1646101669.039384][33190:33190] CHIP:DMG: }, - [1646101669.039414][33190:33190] CHIP:DMG: }, - [1646101669.039446][33190:33190] CHIP:DMG: - [1646101669.039470][33190:33190] CHIP:DMG: ], - [1646101669.039500][33190:33190] CHIP:DMG: - [1646101669.039523][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646101669.039546][33190:33190] CHIP:DMG: }, - [1646101669.039603][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o - [1646101669.039644][33190:33190] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0040 - [1646101669.039684][33190:33190] CHIP:ZCL: On/Off set value: 1 0 - [1646101669.039707][33190:33190] CHIP:ZCL: On/off already set to new value + ./chip-tool onoff off-with-effect 1 2 1 1 + [1650538107.639049][3678:3678] CHIP:DMG: InvokeRequestMessage = + [1650538107.639115][3678:3678] CHIP:DMG: { + [1650538107.639154][3678:3678] CHIP:DMG: suppressResponse = false, + [1650538107.639198][3678:3678] CHIP:DMG: timedRequest = false, + [1650538107.639257][3678:3678] CHIP:DMG: InvokeRequests = + [1650538107.639310][3678:3678] CHIP:DMG: [ + [1650538107.639364][3678:3678] CHIP:DMG: CommandDataIB = + [1650538107.639415][3678:3678] CHIP:DMG: { + [1650538107.639471][3678:3678] CHIP:DMG: CommandPathIB = + [1650538107.639529][3678:3678] CHIP:DMG: { + [1650538107.639602][3678:3678] CHIP:DMG: EndpointId = 0x1, + [1650538107.639675][3678:3678] CHIP:DMG: ClusterId = 0x6, + [1650538107.639734][3678:3678] CHIP:DMG: CommandId = 0x40, + [1650538107.639799][3678:3678] CHIP:DMG: }, + [1650538107.639867][3678:3678] CHIP:DMG: + [1650538107.639914][3678:3678] CHIP:DMG: CommandData = + [1650538107.639984][3678:3678] CHIP:DMG: { + [1650538107.640054][3678:3678] CHIP:DMG: 0x0 = 1, + [1650538107.640113][3678:3678] CHIP:DMG: 0x1 = 0, + [1650538107.640186][3678:3678] CHIP:DMG: }, + [1650538107.640247][3678:3678] CHIP:DMG: }, + [1650538107.640301][3678:3678] CHIP:DMG: + [1650538107.640355][3678:3678] CHIP:DMG: ], + [1650538107.640420][3678:3678] CHIP:DMG: + [1650538107.640461][3678:3678] CHIP:DMG: InteractionModelRevision = 1 + [1650538107.640513][3678:3678] CHIP:DMG: }, + [1650538107.640625][3678:3678] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1650538107.640681][3678:3678] CHIP:DMG: AccessControl: allowed + [1650538107.640738][3678:3678] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0040 + [1650538107.640853][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0005 update version to ab19f0ce + [1650538107.640924][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0005 update version to ab19f0cf + [1650538107.640983][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0005 update version to ab19f0d0 + [1650538107.641025][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0006 update version to a5d11994 + [1650538107.641087][3678:3678] CHIP:ZCL: On/Off set value: 1 0 + [1650538107.641128][3678:3678] CHIP:ZCL: Toggle on/off from 1 to 0 + [1650538107.641164][3678:3678] CHIP:ZCL: Off Command - OnTime : 0 + [1650538107.641215][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0006 update version to a5d11995 disabled: true - label: "DUT issues an OnWithRecallGlobalScene command to the Test Harness." + PICS: OO.C.C41.Tx verification: | On TestHarnes (all-cluster-app) a received OnWithRecallGlobalScene command looks like this: - [1646102326.055526][33190:33190] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:15476331 on exchange 1832r - [1646102326.055565][33190:33190] CHIP:EM: Handling via exchange: 1832r, Delegate: 0xaaaace1730c8 - [1646102326.055921][33190:33190] CHIP:DMG: InvokeRequestMessage = - [1646102326.055966][33190:33190] CHIP:DMG: { - [1646102326.055989][33190:33190] CHIP:DMG: suppressResponse = false, - [1646102326.056022][33190:33190] CHIP:DMG: timedRequest = false, - [1646102326.056046][33190:33190] CHIP:DMG: InvokeRequests = - [1646102326.056077][33190:33190] CHIP:DMG: [ - [1646102326.056171][33190:33190] CHIP:DMG: CommandDataIB = - [1646102326.056205][33190:33190] CHIP:DMG: { - [1646102326.056232][33190:33190] CHIP:DMG: CommandPathIB = - [1646102326.056261][33190:33190] CHIP:DMG: { - [1646102326.056292][33190:33190] CHIP:DMG: EndpointId = 0x1, - [1646102326.056328][33190:33190] CHIP:DMG: ClusterId = 0x6, - [1646102326.056362][33190:33190] CHIP:DMG: CommandId = 0x41, - [1646102326.056389][33190:33190] CHIP:DMG: }, - [1646102326.056420][33190:33190] CHIP:DMG: - [1646102326.056451][33190:33190] CHIP:DMG: CommandData = - [1646102326.056481][33190:33190] CHIP:DMG: { - [1646102326.056515][33190:33190] CHIP:DMG: }, - [1646102326.056542][33190:33190] CHIP:DMG: }, - [1646102326.056573][33190:33190] CHIP:DMG: - [1646102326.056596][33190:33190] CHIP:DMG: ], - [1646102326.056661][33190:33190] CHIP:DMG: - [1646102326.056685][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646102326.056708][33190:33190] CHIP:DMG: }, - [1646102326.056763][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o - [1646102326.056804][33190:33190] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0041 + ./chip-tool onoff on-with-recall-global-scene 1 1 + + [1650537790.690122][3678:3678] CHIP:DMG: InvokeRequestMessage = + [1650537790.690188][3678:3678] CHIP:DMG: { + [1650537790.690244][3678:3678] CHIP:DMG: suppressResponse = false, + [1650537790.690311][3678:3678] CHIP:DMG: timedRequest = false, + [1650537790.690371][3678:3678] CHIP:DMG: InvokeRequests = + [1650537790.690446][3678:3678] CHIP:DMG: [ + [1650537790.690507][3678:3678] CHIP:DMG: CommandDataIB = + [1650537790.690582][3678:3678] CHIP:DMG: { + [1650537790.690645][3678:3678] CHIP:DMG: CommandPathIB = + [1650537790.690720][3678:3678] CHIP:DMG: { + [1650537790.690805][3678:3678] CHIP:DMG: EndpointId = 0x1, + [1650537790.690889][3678:3678] CHIP:DMG: ClusterId = 0x6, + [1650537790.690969][3678:3678] CHIP:DMG: CommandId = 0x41, + [1650537790.691047][3678:3678] CHIP:DMG: }, + [1650537790.691127][3678:3678] CHIP:DMG: + [1650537790.691196][3678:3678] CHIP:DMG: CommandData = + [1650537790.691272][3678:3678] CHIP:DMG: { + [1650537790.691347][3678:3678] CHIP:DMG: }, + [1650537790.691419][3678:3678] CHIP:DMG: }, + [1650537790.691492][3678:3678] CHIP:DMG: + [1650537790.691539][3678:3678] CHIP:DMG: ], + [1650537790.691583][3678:3678] CHIP:DMG: + [1650537790.691618][3678:3678] CHIP:DMG: InteractionModelRevision = 1 + [1650537790.691654][3678:3678] CHIP:DMG: }, + [1650537790.691738][3678:3678] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1650537790.691789][3678:3678] CHIP:DMG: AccessControl: allowed + [1650537790.701316][3678:3678] CHIP:ZCL: On/Off set value: 1 1 + [1650537790.701348][3678:3678] CHIP:ZCL: Toggle on/off from 0 to 1 + [1650537790.701382][3678:3678] CHIP:ZCL: On Command - OffWaitTime : 0 + [1650537790.701414][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0006 update version to a5d11991 + [1650537790.701452][3678:3678] CHIP:ZCL: On/Toggle Command - Stop Timer + [1650537790.701485][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0006 update version to a5d11992 disabled: true - label: "DUT issues an OnWithTimedOff command to the Test Harness." + PICS: OO.C.C42.Tx verification: | On TestHarnes (all-cluster-app) a received OnWithTimedOff command with f.e. 0 for OnOffControl, 120 for OnTime and 5 for OffWaitTime looks like this: - [1646101954.445121][33190:33190] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:1056488 on exchange 1252r - [1646101954.445162][33190:33190] CHIP:EM: Handling via exchange: 1252r, Delegate: 0xaaaace1730c8 - [1646101954.445536][33190:33190] CHIP:DMG: InvokeRequestMessage = - [1646101954.445582][33190:33190] CHIP:DMG: { - [1646101954.445604][33190:33190] CHIP:DMG: suppressResponse = false, - [1646101954.445630][33190:33190] CHIP:DMG: timedRequest = false, - [1646101954.445654][33190:33190] CHIP:DMG: InvokeRequests = - [1646101954.445686][33190:33190] CHIP:DMG: [ - [1646101954.445709][33190:33190] CHIP:DMG: CommandDataIB = - [1646101954.445743][33190:33190] CHIP:DMG: { - [1646101954.445768][33190:33190] CHIP:DMG: CommandPathIB = - [1646101954.445798][33190:33190] CHIP:DMG: { - [1646101954.445831][33190:33190] CHIP:DMG: EndpointId = 0x1, - [1646101954.445863][33190:33190] CHIP:DMG: ClusterId = 0x6, - [1646101954.445894][33190:33190] CHIP:DMG: CommandId = 0x42, - [1646101954.445924][33190:33190] CHIP:DMG: }, - [1646101954.445956][33190:33190] CHIP:DMG: - [1646101954.445983][33190:33190] CHIP:DMG: CommandData = - [1646101954.446016][33190:33190] CHIP:DMG: { - [1646101954.446048][33190:33190] CHIP:DMG: 0x0 = 0, - [1646101954.446080][33190:33190] CHIP:DMG: 0x1 = 120, - [1646101954.446115][33190:33190] CHIP:DMG: 0x2 = 5, - [1646101954.446146][33190:33190] CHIP:DMG: }, - [1646101954.446174][33190:33190] CHIP:DMG: }, - [1646101954.446206][33190:33190] CHIP:DMG: - [1646101954.446229][33190:33190] CHIP:DMG: ], - [1646101954.446259][33190:33190] CHIP:DMG: - [1646101954.446282][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646101954.446304][33190:33190] CHIP:DMG: }, - [1646101954.446361][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o - [1646101954.446403][33190:33190] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0042 + ./chip-tool onoff on-with-timed-off 0 120 5 1 1 + + [1650538315.673606][3678:3678] CHIP:DMG: InvokeRequestMessage = + [1650538315.673697][3678:3678] CHIP:DMG: { + [1650538315.673755][3678:3678] CHIP:DMG: suppressResponse = false, + [1650538315.673821][3678:3678] CHIP:DMG: timedRequest = false, + [1650538315.673882][3678:3678] CHIP:DMG: InvokeRequests = + [1650538315.673983][3678:3678] CHIP:DMG: [ + [1650538315.674047][3678:3678] CHIP:DMG: CommandDataIB = + [1650538315.674143][3678:3678] CHIP:DMG: { + [1650538315.674210][3678:3678] CHIP:DMG: CommandPathIB = + [1650538315.674309][3678:3678] CHIP:DMG: { + [1650538315.674387][3678:3678] CHIP:DMG: EndpointId = 0x1, + [1650538315.674491][3678:3678] CHIP:DMG: ClusterId = 0x6, + [1650538315.674598][3678:3678] CHIP:DMG: CommandId = 0x42, + [1650538315.674678][3678:3678] CHIP:DMG: }, + [1650538315.674781][3678:3678] CHIP:DMG: + [1650538315.674851][3678:3678] CHIP:DMG: CommandData = + [1650538315.674941][3678:3678] CHIP:DMG: { + [1650538315.674991][3678:3678] CHIP:DMG: 0x0 = 0, + [1650538315.675034][3678:3678] CHIP:DMG: 0x1 = 120, + [1650538315.675099][3678:3678] CHIP:DMG: 0x2 = 5, + [1650538315.675159][3678:3678] CHIP:DMG: }, + [1650538315.675204][3678:3678] CHIP:DMG: }, + [1650538315.675246][3678:3678] CHIP:DMG: + [1650538315.675289][3678:3678] CHIP:DMG: ], + [1650538315.675327][3678:3678] CHIP:DMG: + [1650538315.675368][3678:3678] CHIP:DMG: InteractionModelRevision = 1 + [1650538315.675398][3678:3678] CHIP:DMG: }, + [1650538315.675497][3678:3678] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0006 e=1 p=o + [1650538315.675541][3678:3678] CHIP:DMG: AccessControl: allowed + [1650538315.675584][3678:3678] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0042 + [1650538315.675646][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0006 update version to a5d11998 + [1650538315.675701][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0006 update version to a5d11999 + [1650538315.675732][3678:3678] CHIP:ZCL: On/Off set value: 1 1 + [1650538315.675759][3678:3678] CHIP:ZCL: Toggle on/off from 0 to 1 + [1650538315.675800][3678:3678] CHIP:DMG: Endpoint 1, Cluster 0x0000_0006 update version to a5d1199a disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PSCFG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_PSCFG_2_1.yaml index 8ea7c3cab95432..eb18fe9d4fb60f 100644 --- a/src/app/tests/suites/certification/Test_TC_PSCFG_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PSCFG_2_1.yaml @@ -27,35 +27,12 @@ tests: disabled: true - label: "TH reads the Sources attribute from the DUT" + PICS: PSCFG.S.A0000 verification: | ./chip-tool powersourceconfiguration read sources 1 0 The response should look like this: - - [1650273002.440249][8875:8880] CHIP:DMG: AttributeReportIB = - [1650273002.440310][8875:8880] CHIP:DMG: { - [1650273002.440353][8875:8880] CHIP:DMG: AttributeDataIB = - [1650273002.440413][8875:8880] CHIP:DMG: { - [1650273002.440472][8875:8880] CHIP:DMG: DataVersion = 0x1b83f378, - [1650273002.440519][8875:8880] CHIP:DMG: AttributePathIB = - [1650273002.440578][8875:8880] CHIP:DMG: { - [1650273002.440641][8875:8880] CHIP:DMG: Endpoint = 0x0, - [1650273002.440694][8875:8880] CHIP:DMG: Cluster = 0x2e, - [1650273002.440767][8875:8880] CHIP:DMG: Attribute = 0x0000_0000, - [1650273002.440830][8875:8880] CHIP:DMG: ListIndex = Null, - [1650273002.440897][8875:8880] CHIP:DMG: } - [1650273002.440971][8875:8880] CHIP:DMG: - [1650273002.441023][8875:8880] CHIP:DMG: Data = 1, - [1650273002.441083][8875:8880] CHIP:DMG: }, - [1650273002.441144][8875:8880] CHIP:DMG: - [1650273002.441196][8875:8880] CHIP:DMG: }, - [1650273002.441251][8875:8880] CHIP:DMG: - [1650273002.441295][8875:8880] CHIP:DMG: ], - [1650273002.441354][8875:8880] CHIP:DMG: - [1650273002.441398][8875:8880] CHIP:DMG: SuppressResponse = true, - [1650273002.441449][8875:8880] CHIP:DMG: InteractionModelRevision = 1 - [1650273002.441492][8875:8880] CHIP:DMG: } [1650273002.441884][8875:8880] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_0000 DataVersion: 461632376 [1653564197.717105][36217:36222] CHIP:TOO: Sources: 3 entries [1653564197.717154][36217:36222] CHIP:TOO: [1]: 2 diff --git a/src/app/tests/suites/certification/Test_TC_PSCFG_2_2.yaml b/src/app/tests/suites/certification/Test_TC_PSCFG_2_2.yaml index 359093913a798a..34b7266e9b7707 100644 --- a/src/app/tests/suites/certification/Test_TC_PSCFG_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_PSCFG_2_2.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: 63.2.2. [TC-PSCFG-2.2] Primary functionality with server as DUT +name: 64.2.2. [TC-PSCFG-2.2] Primary functionality with server as DUT config: nodeId: 0x12344321 @@ -27,20 +27,30 @@ tests: disabled: true - label: "TH reads the Sources attribute from the DUT" + PICS: PSCFG.S.A0000 verification: | ./chip-tool powersourceconfiguration read sources 1 0 [...] - [1646157640.271321][44339:44344] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_0000DataVersion: 502821112 - [1646157640.271401][44339:44344] CHIP:TOO: Sources: 1 entries - [1646157640.271466][44339:44344] CHIP:TOO: [1]: 1 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_0000DataVersion: 502821112 + CHIP:TOO: Sources: 3 entries + CHIP:TOO: [1]: 2 + CHIP:TOO: [2]: 1 + CHIP:TOO: [3]: 0 disabled: true - - label: "./chip-tool powersource read order 1 1" + - label: "For each enpoint number (eNr) in this list do" + verification: | + + disabled: true + + - label: + "TH reads the Order attribute from Power Source Cluster at + Enpoint[eNr] of the DUT" verification: | ./chip-tool powersource read order 1 1 [...] - [1646157759.345628][44355:44360] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_002F Attribute 0x0000_0001DataVersion: 1844928386 - [1646157759.345704][44355:44360] CHIP:TOO: Order: 0 + [1653564242.694964][36231:36236] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_002F Attribute 0x0000_0001 DataVersion: 4212858705 + [1653564242.695038][36231:36236] CHIP:TOO: Order: 2 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml b/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml index ddd1e3c4b2ea8a..778b46dabb4072 100644 --- a/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads constraints of attribute: MeasuredValue" + PICS: RH.S.A0000 command: "readAttribute" attribute: "measured value" response: @@ -38,6 +39,7 @@ tests: maxValue: 10000 - label: "Reads constraints of attribute: MinMeasuredValue" + PICS: RH.S.A0001 command: "readAttribute" attribute: "min measured value" response: @@ -56,6 +58,7 @@ tests: maxValue: 10000 - label: "Reads constraints of attribute: Tolerance" + PICS: RH.S.A0003 optional: true command: "readAttribute" attribute: "tolerance" diff --git a/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml b/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml index 465a6705e65bde..0e73c4587852a7 100644 --- a/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "Reads constraints of attribute: MinMeasuredValue" + PICS: RH.S.A0001 command: "readAttribute" attribute: "min measured value" response: @@ -50,7 +51,7 @@ tests: - label: "Reads MeasuredValue attribute from DUT" command: "readAttribute" attribute: "measured value" - PICS: A_RELATIVEHUMIDITY + PICS: RH.S.A0000 response: saveAs: ValueBeforeChange constraints: @@ -61,7 +62,7 @@ tests: - label: "Operate on device to change the relative humidity significantly" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && RH.M.ManuallyControlled arguments: values: - name: "message" @@ -72,7 +73,7 @@ tests: - label: "Read the mandatory attribute: MeasuredValue" command: "readAttribute" attribute: "measured value" - PICS: A_RELATIVEHUMIDITY + PICS: RH.S.A0000 response: constraints: type: uint16 diff --git a/src/app/tests/suites/certification/Test_TC_RH_3_1.yaml b/src/app/tests/suites/certification/Test_TC_RH_3_1.yaml index a512ee075ed3df..9cfc684645278e 100644 --- a/src/app/tests/suites/certification/Test_TC_RH_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_RH_3_1.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: 9.3.1. [TC-RH-3.1] Attributes with client as DUT +name: 9.3.1. [TC-RH-3.1] Attributes with Client as DUT config: nodeId: 0x12344321 @@ -22,53 +22,222 @@ config: tests: - label: - "DUT reads all supported mandatory attributes from TH once at a time - in a manufacturer specific order" + "DUT reads all supported mandatory attributes from TH one at a time in + a manufacturer specific order" verification: | On TestHarnes (all-cluster-app) a received read of MeasuredValue (id 0) looks like this: - [1646098758.912225][33190:33190] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:15745149 on exchange 3055r - [1646098758.912345][33190:33190] CHIP:EM: Handling via exchange: 3055r, Delegate: 0xaaaace1730c8 - [1646098758.912702][33190:33190] CHIP:IM: Received Read request - [1646098758.912785][33190:33190] CHIP:DMG: ReadRequestMessage = - [1646098758.912821][33190:33190] CHIP:DMG: { - [1646098758.912847][33190:33190] CHIP:DMG: AttributePathIBs = - [1646098758.912879][33190:33190] CHIP:DMG: [ - [1646098758.912909][33190:33190] CHIP:DMG: AttributePathIB = - [1646098758.912949][33190:33190] CHIP:DMG: { - [1646098758.912985][33190:33190] CHIP:DMG: Endpoint = 0x1, - [1646098758.913021][33190:33190] CHIP:DMG: Cluster = 0x405, - [1646098758.913060][33190:33190] CHIP:DMG: Attribute = 0x0000_0000, - [1646098758.913099][33190:33190] CHIP:DMG: } - [1646098758.913134][33190:33190] CHIP:DMG: - [1646098758.913167][33190:33190] CHIP:DMG: ], - [1646098758.913201][33190:33190] CHIP:DMG: - [1646098758.913233][33190:33190] CHIP:DMG: isFabricFiltered = false, - [1646098758.913264][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646098758.913292][33190:33190] CHIP:DMG: }, - [1646098758.913367][33190:33190] CHIP:DMG: IM RH moving to [GeneratingReports] - [1646098758.913768][33190:33190] CHIP:DMG: Cluster 405, Attribute 0 is dirty - [1646098758.913817][33190:33190] CHIP:DMG: Reading attribute: Cluster=0x0000_0405 Endpoint=1 AttributeId=0x0000_0000 (expanded=0) - [1646098758.913854][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0405 e=1 p=v + ./chip-tool relativehumiditymeasurement read measured-value 1 1 + + [1651147639.252032][2336:2336] CHIP:IM: Received Read request + [1651147639.252086][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651147639.252136][2336:2336] CHIP:DMG: { + [1651147639.252159][2336:2336] CHIP:DMG: AttributePathIBs = + [1651147639.252185][2336:2336] CHIP:DMG: [ + [1651147639.252209][2336:2336] CHIP:DMG: AttributePathIB = + [1651147639.252278][2336:2336] CHIP:DMG: { + [1651147639.252313][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651147639.252346][2336:2336] CHIP:DMG: Cluster = 0x405, + [1651147639.252408][2336:2336] CHIP:DMG: Attribute = 0x0000_0000, + [1651147639.252437][2336:2336] CHIP:DMG: } + [1651147639.252494][2336:2336] CHIP:DMG: + [1651147639.252521][2336:2336] CHIP:DMG: ], + [1651147639.252576][2336:2336] CHIP:DMG: + [1651147639.252602][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651147639.252627][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651147639.252651][2336:2336] CHIP:DMG: }, + [1651147639.252772][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651147639.252925][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + + ./chip-tool relativehumiditymeasurement read min-measured-value 1 1 + + 1651147834.075387][2336:2336] CHIP:IM: Received Read request + [1651147834.075454][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651147834.075481][2336:2336] CHIP:DMG: { + [1651147834.075502][2336:2336] CHIP:DMG: AttributePathIBs = + [1651147834.075528][2336:2336] CHIP:DMG: [ + [1651147834.075552][2336:2336] CHIP:DMG: AttributePathIB = + [1651147834.075579][2336:2336] CHIP:DMG: { + [1651147834.075625][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651147834.075662][2336:2336] CHIP:DMG: Cluster = 0x405, + [1651147834.075694][2336:2336] CHIP:DMG: Attribute = 0x0000_0001, + [1651147834.075734][2336:2336] CHIP:DMG: } + [1651147834.075763][2336:2336] CHIP:DMG: + [1651147834.075796][2336:2336] CHIP:DMG: ], + [1651147834.075825][2336:2336] CHIP:DMG: + [1651147834.075863][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651147834.075888][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651147834.075920][2336:2336] CHIP:DMG: }, + [1651147834.076001][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651147834.076111][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + + ./chip-tool relativehumiditymeasurement read max-measured-value 1 1 + + [1651147902.966904][2336:2336] CHIP:IM: Received Read request + [1651147902.966980][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651147902.967012][2336:2336] CHIP:DMG: { + [1651147902.967033][2336:2336] CHIP:DMG: AttributePathIBs = + [1651147902.967061][2336:2336] CHIP:DMG: [ + [1651147902.967088][2336:2336] CHIP:DMG: AttributePathIB = + [1651147902.967177][2336:2336] CHIP:DMG: { + [1651147902.967233][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651147902.967280][2336:2336] CHIP:DMG: Cluster = 0x405, + [1651147902.967317][2336:2336] CHIP:DMG: Attribute = 0x0000_0002, + [1651147902.967360][2336:2336] CHIP:DMG: } + [1651147902.967397][2336:2336] CHIP:DMG: + [1651147902.967436][2336:2336] CHIP:DMG: ], + [1651147902.967479][2336:2336] CHIP:DMG: + [1651147902.967510][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651147902.967549][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651147902.967577][2336:2336] CHIP:DMG: }, + [1651147902.967669][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651147902.967790][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + [1651147902.967823][2336:2336] CHIP:DMG: Cluster 405, Attribute 2 is dirty disabled: true - label: - "DUT reads all supported optional attributes from TH once at a time in + "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order" verification: | - see above + ./chip-tool relativehumiditymeasurement read tolerance 1 1 + + + [1651148035.585189][2336:2336] CHIP:IM: Received Read request + [1651148035.585247][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651148035.585276][2336:2336] CHIP:DMG: { + [1651148035.585301][2336:2336] CHIP:DMG: AttributePathIBs = + [1651148035.585330][2336:2336] CHIP:DMG: [ + [1651148035.585358][2336:2336] CHIP:DMG: AttributePathIB = + [1651148035.585396][2336:2336] CHIP:DMG: { + [1651148035.585431][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651148035.585470][2336:2336] CHIP:DMG: Cluster = 0x405, + [1651148035.585507][2336:2336] CHIP:DMG: Attribute = 0x0000_0003, + [1651148035.585541][2336:2336] CHIP:DMG: } + [1651148035.585577][2336:2336] CHIP:DMG: + [1651148035.585610][2336:2336] CHIP:DMG: ], + [1651148035.585642][2336:2336] CHIP:DMG: + [1651148035.585672][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651148035.585701][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651148035.585727][2336:2336] CHIP:DMG: }, + [1651148035.585807][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651148035.585899][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 disabled: true - label: "DUT writes a suitable value to all supported mandatory attributes on - the TH once at a time in a manufacturer specific order" + the TH one at a time in a manufacturer specific order" verification: | no writable attributes disabled: true - label: "DUT writes a suitable value to all supported optional attributes on - the TH once at a time in a manufacturer specific order" + the TH one at a time in a manufacturer specific order" + verification: | + no writable attributes + disabled: true + + - label: + "Configure TH such that it implements mandatory and none of the + optional attributes of the server-side of the cluster, and that it + also reflects this in global attributes such as FeatureMap and + AttributeList. Commission DUT to TH again" + verification: | + ./chip-tool relativehumiditymeasurement read attribute-list 1 1 + + [1654247077216] [91776:4010112] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0405 Attribute 0x0000_FFFB DataVersion: 1294674518 + [1654247077217] [91776:4010112] CHIP: [TOO] AttributeList: 8 entries + [1654247077217] [91776:4010112] CHIP: [TOO] [1]: 0 + [1654247077217] [91776:4010112] CHIP: [TOO] [2]: 1 + [1654247077217] [91776:4010112] CHIP: [TOO] [3]: 2 + [1654247077217] [91776:4010112] CHIP: [TOO] [4]: 65528 + [1654247077217] [91776:4010112] CHIP: [TOO] [5]: 65529 + [1654247077217] [91776:4010112] CHIP: [TOO] [6]: 65531 + [1654247077217] [91776:4010112] CHIP: [TOO] [7]: 65532 + [1654247077217] [91776:4010112] CHIP: [TOO] [8]: 65533 + + + "On TestHarnes (all-cluster-app) a received read of MeasuredValue (id 0) looks like this: + + ./chip-tool relativehumiditymeasurement read measured-value 1 1 + + [1651147639.252032][2336:2336] CHIP:IM: Received Read request + [1651147639.252086][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651147639.252136][2336:2336] CHIP:DMG: { + [1651147639.252159][2336:2336] CHIP:DMG: AttributePathIBs = + [1651147639.252185][2336:2336] CHIP:DMG: [ + [1651147639.252209][2336:2336] CHIP:DMG: AttributePathIB = + [1651147639.252278][2336:2336] CHIP:DMG: { + [1651147639.252313][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651147639.252346][2336:2336] CHIP:DMG: Cluster = 0x405, + [1651147639.252408][2336:2336] CHIP:DMG: Attribute = 0x0000_0000, + [1651147639.252437][2336:2336] CHIP:DMG: } + [1651147639.252494][2336:2336] CHIP:DMG: + [1651147639.252521][2336:2336] CHIP:DMG: ], + [1651147639.252576][2336:2336] CHIP:DMG: + [1651147639.252602][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651147639.252627][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651147639.252651][2336:2336] CHIP:DMG: }, + [1651147639.252772][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651147639.252925][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + + ./chip-tool relativehumiditymeasurement read min-measured-value 1 1 + + 1651147834.075387][2336:2336] CHIP:IM: Received Read request + [1651147834.075454][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651147834.075481][2336:2336] CHIP:DMG: { + [1651147834.075502][2336:2336] CHIP:DMG: AttributePathIBs = + [1651147834.075528][2336:2336] CHIP:DMG: [ + [1651147834.075552][2336:2336] CHIP:DMG: AttributePathIB = + [1651147834.075579][2336:2336] CHIP:DMG: { + [1651147834.075625][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651147834.075662][2336:2336] CHIP:DMG: Cluster = 0x405, + [1651147834.075694][2336:2336] CHIP:DMG: Attribute = 0x0000_0001, + [1651147834.075734][2336:2336] CHIP:DMG: } + [1651147834.075763][2336:2336] CHIP:DMG: + [1651147834.075796][2336:2336] CHIP:DMG: ], + [1651147834.075825][2336:2336] CHIP:DMG: + [1651147834.075863][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651147834.075888][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651147834.075920][2336:2336] CHIP:DMG: }, + [1651147834.076001][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651147834.076111][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + + ./chip-tool relativehumiditymeasurement read max-measured-value 1 1 + + [1651147902.966904][2336:2336] CHIP:IM: Received Read request + [1651147902.966980][2336:2336] CHIP:DMG: ReadRequestMessage = + [1651147902.967012][2336:2336] CHIP:DMG: { + [1651147902.967033][2336:2336] CHIP:DMG: AttributePathIBs = + [1651147902.967061][2336:2336] CHIP:DMG: [ + [1651147902.967088][2336:2336] CHIP:DMG: AttributePathIB = + [1651147902.967177][2336:2336] CHIP:DMG: { + [1651147902.967233][2336:2336] CHIP:DMG: Endpoint = 0x1, + [1651147902.967280][2336:2336] CHIP:DMG: Cluster = 0x405, + [1651147902.967317][2336:2336] CHIP:DMG: Attribute = 0x0000_0002, + [1651147902.967360][2336:2336] CHIP:DMG: } + [1651147902.967397][2336:2336] CHIP:DMG: + [1651147902.967436][2336:2336] CHIP:DMG: ], + [1651147902.967479][2336:2336] CHIP:DMG: + [1651147902.967510][2336:2336] CHIP:DMG: isFabricFiltered = true, + [1651147902.967549][2336:2336] CHIP:DMG: InteractionModelRevision = 1 + [1651147902.967577][2336:2336] CHIP:DMG: }, + [1651147902.967669][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] + [1651147902.967790][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 + [1651147902.967823][2336:2336] CHIP:DMG: Cluster 405, Attribute 2 is dirty" + disabled: true + + - label: + "DUT reads all supported optional attributes from TH one at a time in + a manufacturer specific order" + verification: | + ./chip-tool relativehumiditymeasurement read tolerance 1 1 + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) + disabled: true + + - label: + "DUT writes a suitable value to all supported optional attributes on + the TH one at a time in a manufacturer specific order" verification: | no writable attributes disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml index 0505319f0e37ff..959a46e19b8c22 100644 --- a/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "read the mandatory attribute: MeasuredValue" + PICS: TM.S.A0000 command: "readAttribute" attribute: "MeasuredValue" response: @@ -36,6 +37,7 @@ tests: type: int16 - label: "read the mandatory attribute: MinMeasuredValue" + PICS: TM.S.A0001 command: "readAttribute" attribute: "MinMeasuredValue" response: @@ -45,6 +47,7 @@ tests: maxValue: 32766 - label: "read the mandatory attribute: MaxMeasuredValue" + PICS: TM.S.A0002 command: "readAttribute" attribute: "MaxMeasuredValue" response: @@ -54,6 +57,7 @@ tests: maxValue: 32767 - label: "read the optional attribute: Tolerance" + PICS: TM.S.A0003 optional: true command: "readAttribute" attribute: "Tolerance" diff --git a/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml index 6e8aa869bd3b7d..2599501dfa862e 100644 --- a/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml @@ -29,6 +29,7 @@ tests: value: nodeId - label: "read the mandatory attribute: MinMeasuredValue" + PICS: TM.S.A0001 command: "readAttribute" attribute: "MinMeasuredValue" response: @@ -38,6 +39,7 @@ tests: maxValue: 32766 - label: "read the mandatory attribute: MaxMeasuredValue" + PICS: TM.S.A0002 command: "readAttribute" attribute: "MaxMeasuredValue" response: @@ -47,9 +49,9 @@ tests: maxValue: 32767 - label: "Reads MeasuredValue attribute from DUT" + PICS: TM.S.A0000 command: "readAttribute" attribute: "MeasuredValue" - PICS: A_TEMPERATURE response: saveAs: valueBeforeChange constraints: @@ -58,7 +60,7 @@ tests: - label: "Operate on device to change the temperature significantly" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && TM.M.ManuallyControlled arguments: values: - name: "message" @@ -69,7 +71,7 @@ tests: - label: "Read the mandatory attribute: MeasuredValue" command: "readAttribute" attribute: "MeasuredValue" - PICS: A_TEMPERATURE + PICS: TM.S.A0000 response: constraints: type: uint16 diff --git a/src/app/tests/suites/certification/Test_TC_TM_3_1.yaml b/src/app/tests/suites/certification/Test_TC_TM_3_1.yaml index 3dfdd6426a7270..e4a359bf22b7fd 100644 --- a/src/app/tests/suites/certification/Test_TC_TM_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TM_3_1.yaml @@ -22,59 +22,192 @@ config: tests: - label: - "DUT reads all supported mandatory attributes from TH once at a time - in a manufacturer specific order" + "DUT reads all supported mandatory attributes from TH one at a time in + a manufacturer specific order" verification: | - chip-tool temperaturemeasurement read measured-value 12345 1 + ./chip-tool temperaturemeasurement read measured-value 12345 1 verify that you see something like this: - [1643288740.653361][12907:12912] CHIP:DMG: } - [1643288740.653441][12907:12912] CHIP:DMG: - [1643288740.653497][12907:12912] CHIP:DMG: Data = 2420, - [1643288740.653546][12907:12912] CHIP:DMG: }, - chip-tool temperaturemeasurement read min-measured-value 12345 1 + ./chip-tool temperaturemeasurement read measured-value 1 1 + 1650880412.037722][15013:15013] CHIP:DMG: ReadRequestMessage = + [1650880412.037749][15013:15013] CHIP:DMG: { + [1650880412.037772][15013:15013] CHIP:DMG: AttributePathIBs = + [1650880412.037799][15013:15013] CHIP:DMG: [ + [1650880412.037823][15013:15013] CHIP:DMG: AttributePathIB = + [1650880412.037876][15013:15013] CHIP:DMG: { + [1650880412.037908][15013:15013] CHIP:DMG: Endpoint = 0x1, + [1650880412.037938][15013:15013] CHIP:DMG: Cluster = 0x402, + [1650880412.037984][15013:15013] CHIP:DMG: Attribute = 0x0000_0000, + [1650880412.038023][15013:15013] CHIP:DMG: } + [1650880412.038055][15013:15013] CHIP:DMG: + [1650880412.038081][15013:15013] CHIP:DMG: ], + [1650880412.038110][15013:15013] CHIP:DMG: + [1650880412.038137][15013:15013] CHIP:DMG: isFabricFiltered = true, + [1650880412.038162][15013:15013] CHIP:DMG: InteractionModelRevision = 1 + [1650880412.038186][15013:15013] CHIP:DMG: }, + [1650880412.038259][15013:15013] CHIP:DMG: IM RH moving to [Generatin - verify that you see something like this: - [1643288902.528399][12918:12923] CHIP:DMG: } - [1643288902.528491][12918:12923] CHIP:DMG: - [1643288902.528577][12918:12923] CHIP:DMG: Data = -4000, - [1643288902.528663][12918:12923] CHIP:DMG: }, - chip-tool temperaturemeasurement read max-measured-value 12345 1 + ./chip-tool temperaturemeasurement read max-measured-value 1 1 + [1650880462.518114][15013:15013] CHIP:DMG: ReadRequestMessage = + [1650880462.518149][15013:15013] CHIP:DMG: { + [1650880462.518176][15013:15013] CHIP:DMG: AttributePathIBs = + [1650880462.518209][15013:15013] CHIP:DMG: [ + [1650880462.518239][15013:15013] CHIP:DMG: AttributePathIB = + [1650880462.518283][15013:15013] CHIP:DMG: { + [1650880462.518321][15013:15013] CHIP:DMG: Endpoint = 0x1, + [1650880462.518365][15013:15013] CHIP:DMG: Cluster = 0x402, + [1650880462.518405][15013:15013] CHIP:DMG: Attribute = 0x0000_0002, + [1650880462.518446][15013:15013] CHIP:DMG: } + [1650880462.518483][15013:15013] CHIP:DMG: + [1650880462.518557][15013:15013] CHIP:DMG: ], + [1650880462.518596][15013:15013] CHIP:DMG: + [1650880462.518630][15013:15013] CHIP:DMG: isFabricFiltered = true, + [1650880462.518662][15013:15013] CHIP:DMG: InteractionModelRevision = 1 + [1650880462.518690][15013:15013] CHIP:DMG: }, - verify that you see something like this: - [1643289012.569725][12931:12936] CHIP:DMG: } - [1643289012.569805][12931:12936] CHIP:DMG: - [1643289012.569883][12931:12936] CHIP:DMG: Data = 8500, - [1643289012.569957][12931:12936] CHIP:DMG: }, + ./chip-tool temperaturemeasurement read min-measured-value 1 1 + + [1650880507.409653][15013:15013] CHIP:DMG: ReadRequestMessage = + [1650880507.409703][15013:15013] CHIP:DMG: { + [1650880507.409727][15013:15013] CHIP:DMG: AttributePathIBs = + [1650880507.409753][15013:15013] CHIP:DMG: [ + [1650880507.409778][15013:15013] CHIP:DMG: AttributePathIB = + [1650880507.409809][15013:15013] CHIP:DMG: { + [1650880507.409839][15013:15013] CHIP:DMG: Endpoint = 0x1, + [1650880507.409874][15013:15013] CHIP:DMG: Cluster = 0x402, + [1650880507.409907][15013:15013] CHIP:DMG: Attribute = 0x0000_0001, + [1650880507.409936][15013:15013] CHIP:DMG: } + [1650880507.409966][15013:15013] CHIP:DMG: + [1650880507.409992][15013:15013] CHIP:DMG: ], + [1650880507.410021][15013:15013] CHIP:DMG: + [1650880507.410048][15013:15013] CHIP:DMG: isFabricFiltered = true, + [1650880507.410073][15013:15013] CHIP:DMG: InteractionModelRevision = 1 + [1650880507.410097][15013:15013] CHIP:DMG: }, disabled: true - label: - "DUT reads all supported optional attributes from TH once at a time in + "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order" verification: | - chip-tool temperaturemeasurement read max-measured-value 12345 1 + ./chip-tool temperaturemeasurement read tolerance 1 1 + + [1650880329.471153][2598:2603] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0402 Attribute 0x0000_0003 DataVersion: 2108803513 + [1650880329.471243][2598:2603] CHIP:TOO: Tolerance: 0 + disabled: true + + - label: + "DUT writes a suitable value to all supported mandatory attributes on + the TH one at a time in a manufacturer specific order" + verification: | + There is no writable mandatory attibute for this cluster + disabled: true + + - label: + "DUT writes a suitable value to all supported optional attributes on + the TH one at a time in a manufacturer specific order" + verification: | + There is no writable mandatory attibute for this cluster + disabled: true + + - label: + "Configure TH such that it implements mandatory and none of the + optional attributes of the server-side of the cluster, and that it + also reflects this in global attributes such as FeatureMap and + AttributeList. Commission DUT to TH again" + verification: | + To verify all below steps use all-clusters-minimal-app + + ./chip-tool temperaturemeasurement read attribute-list 1 1 + [1654246677976] [91729:4008220] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0402 Attribute 0x0000_FFFB DataVersion: 1141330314 + [1654246677977] [91729:4008220] CHIP: [TOO] AttributeList: 8 entries + [1654246677977] [91729:4008220] CHIP: [TOO] [1]: 0 + [1654246677977] [91729:4008220] CHIP: [TOO] [2]: 1 + [1654246677977] [91729:4008220] CHIP: [TOO] [3]: 2 + [1654246677977] [91729:4008220] CHIP: [TOO] [4]: 65528 + [1654246677977] [91729:4008220] CHIP: [TOO] [5]: 65529 + [1654246677977] [91729:4008220] CHIP: [TOO] [6]: 65531 + [1654246677977] [91729:4008220] CHIP: [TOO] [7]: 65532 + [1654246677977] [91729:4008220] CHIP: [TOO] [8]: 65533 + + + "./chip-tool temperaturemeasurement read measured-value 12345 1 verify that you see something like this: - [1643289012.569725][12931:12936] CHIP:DMG: } - [1643289012.569805][12931:12936] CHIP:DMG: - [1643289012.569883][12931:12936] CHIP:DMG: Data = 120, - [1643289012.569957][12931:12936] CHIP:DMG: }, + ./chip-tool temperaturemeasurement read measured-value 1 1 + 1650880412.037722][15013:15013] CHIP:DMG: ReadRequestMessage = + [1650880412.037749][15013:15013] CHIP:DMG: { + [1650880412.037772][15013:15013] CHIP:DMG: AttributePathIBs = + [1650880412.037799][15013:15013] CHIP:DMG: [ + [1650880412.037823][15013:15013] CHIP:DMG: AttributePathIB = + [1650880412.037876][15013:15013] CHIP:DMG: { + [1650880412.037908][15013:15013] CHIP:DMG: Endpoint = 0x1, + [1650880412.037938][15013:15013] CHIP:DMG: Cluster = 0x402, + [1650880412.037984][15013:15013] CHIP:DMG: Attribute = 0x0000_0000, + [1650880412.038023][15013:15013] CHIP:DMG: } + [1650880412.038055][15013:15013] CHIP:DMG: + [1650880412.038081][15013:15013] CHIP:DMG: ], + [1650880412.038110][15013:15013] CHIP:DMG: + [1650880412.038137][15013:15013] CHIP:DMG: isFabricFiltered = true, + [1650880412.038162][15013:15013] CHIP:DMG: InteractionModelRevision = 1 + [1650880412.038186][15013:15013] CHIP:DMG: }, + [1650880412.038259][15013:15013] CHIP:DMG: IM RH moving to [Generatin + + + ./chip-tool temperaturemeasurement read max-measured-value 1 1 + [1650880462.518114][15013:15013] CHIP:DMG: ReadRequestMessage = + [1650880462.518149][15013:15013] CHIP:DMG: { + [1650880462.518176][15013:15013] CHIP:DMG: AttributePathIBs = + [1650880462.518209][15013:15013] CHIP:DMG: [ + [1650880462.518239][15013:15013] CHIP:DMG: AttributePathIB = + [1650880462.518283][15013:15013] CHIP:DMG: { + [1650880462.518321][15013:15013] CHIP:DMG: Endpoint = 0x1, + [1650880462.518365][15013:15013] CHIP:DMG: Cluster = 0x402, + [1650880462.518405][15013:15013] CHIP:DMG: Attribute = 0x0000_0002, + [1650880462.518446][15013:15013] CHIP:DMG: } + [1650880462.518483][15013:15013] CHIP:DMG: + [1650880462.518557][15013:15013] CHIP:DMG: ], + [1650880462.518596][15013:15013] CHIP:DMG: + [1650880462.518630][15013:15013] CHIP:DMG: isFabricFiltered = true, + [1650880462.518662][15013:15013] CHIP:DMG: InteractionModelRevision = 1 + [1650880462.518690][15013:15013] CHIP:DMG: }, + + + ./chip-tool temperaturemeasurement read min-measured-value 1 1 + + [1650880507.409653][15013:15013] CHIP:DMG: ReadRequestMessage = + [1650880507.409703][15013:15013] CHIP:DMG: { + [1650880507.409727][15013:15013] CHIP:DMG: AttributePathIBs = + [1650880507.409753][15013:15013] CHIP:DMG: [ + [1650880507.409778][15013:15013] CHIP:DMG: AttributePathIB = + [1650880507.409809][15013:15013] CHIP:DMG: { + [1650880507.409839][15013:15013] CHIP:DMG: Endpoint = 0x1, + [1650880507.409874][15013:15013] CHIP:DMG: Cluster = 0x402, + [1650880507.409907][15013:15013] CHIP:DMG: Attribute = 0x0000_0001, + [1650880507.409936][15013:15013] CHIP:DMG: } + [1650880507.409966][15013:15013] CHIP:DMG: + [1650880507.409992][15013:15013] CHIP:DMG: ], + [1650880507.410021][15013:15013] CHIP:DMG: + [1650880507.410048][15013:15013] CHIP:DMG: isFabricFiltered = true, + [1650880507.410073][15013:15013] CHIP:DMG: InteractionModelRevision = 1 + [1650880507.410097][15013:15013] CHIP:DMG: }," disabled: true - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH once at a time in a manufacturer specific order" + "DUT reads all supported optional attributes from TH one at a time in + a manufacturer specific order" verification: | - no writable attributes + ./chip-tool temperaturemeasurement read tolerance 1 1 + + General error: 0x86 (UNSUPPORTED_ATTRIBUTE) disabled: true - label: "DUT writes a suitable value to all supported optional attributes on - the TH once at a time in a manufacturer specific order" + the TH one at a time in a manufacturer specific order" verification: | - no writable attributes + There is no writable mandatory attibute for this cluster disabled: true diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values index 551c949375d95d..85d9a56a4fc5d5 100644 --- a/src/app/tests/suites/certification/ci-pics-values +++ b/src/app/tests/suites/certification/ci-pics-values @@ -12,13 +12,21 @@ MANUAL_OPERATE=1 MANUAL_OUTOFSERVICE=1 MANUAL_ALARM=1 MANUAL_FAULT=1 -A_RELATIVEHUMIDITY=1 -A_RELATIVEHUMIDITY_MIN=1 -A_RELATIVEHUMIDITY_MAX=1 -A_RELATIVEHUMIDITY_TOLERANCE=1 -MANUAL_RELATIVEHUMIDITY_CHANGE=1 -A_TEMPERATURE=1 -MANUAL_TEMPERATURE_CHANGE=1 + +# Relative Humidity cluster +RH.S.A0000=1 +RH.S.A0001=1 +RH.S.A0002=1 +RH.S.A0003=1 +RH.M.ManuallyControlled=1 + +# Thermostat User Configuration cluster +TM.S.A0000=1 +TM.S.A0001=1 +TM.S.A0002=1 +TM.S.A0003=1 +TM.M.ManuallyControlled=1 + DGSW.S.E00=1 DGSW.S.A0001=1 DGSW.S.A0002=1 @@ -33,15 +41,6 @@ A_MINCOOLSETPOINTLIMIT=1 A_MAXCOOLSETPOINTLIMIT=1 A_CONTROLSEQUENCEOFOPERATION=1 CR_SetpointRaiseLower=1 -A_ONOFF=1 -A_GLOBALSCENECONTROL=1 -A_ONTIME=1 -A_OFFWAITTIME=1 -CR_OFF=1 -CR_ON=1 -CR_OFFWITHEFFECT=1 -CR_ONWITHRECALL=1 -CR_ONWITHTIMEOFF=1 VENDOR_SUBTYPE=1 DEVTYPE_SUBTYPE=1 CRI_COMM_DISCOVERY_KEY=1 @@ -774,3 +773,61 @@ DGWIFI.S.E00=1 DGWIFI.S.E01=1 DGWIFI.S.E02=1 DGWIFI.S.C00=1 +#On/Off Cluster +OO.S.A0000=1 +OO.S.A4000=1 +OO.S.A4001=1 +OO.S.A4002=1 +OO.S.A4003=1 +OO.S.C00.Rsp=1 +OO.S.C01.Rsp=1 +OO.S.C02.Rsp=1 +OO.S.C40.Rsp=1 +OO.S.C41.Rsp=1 +OO.S.C42.Rsp=1 +OO.M.ManuallyControlled=1 +OO.C.C00.Tx=1 +OO.C.C01.Tx=1 +OO.C.C02.Tx=1 +OO.C.C40.Tx=1 +OO.C.C41.Tx=1 +OO.C.C42.Tx=1 + +#Actions Cluster +ACT.S.A0000=1 +ACT.S.A0001=1 +ACT.S.A0002=1 +ACT.S.M.FillActionList=1 +ACT.S.M.FillEndpointLists=1 +ACT.C.C00.Tx=0 +ACT.C.C01.Tx=0 +ACT.C.C02.Tx=0 +ACT.C.C03.Tx=0 +ACT.C.C04.Tx=0 +ACT.C.C05.Tx=0 +ACT.C.C06.Tx=0 +ACT.C.C07.Tx=0 +ACT.C.C08.Tx=0 +ACT.C.C09.Tx=0 +ACT.C.C0a.Tx=0 +ACT.C.C0b.Tx=0 + +#Boolean State Cluster +BOOL.S.A0000=1 +BOOL.M.ManuallyControlled=1 +BOOL.S.E00=1 + +#Diagnostics Logs Cluster +DLOG.S.C00.Rsp=1 +DLOG.S.C01.Tx=1 +DLOG.C.C01.Rsp=1 +DLOG.C.C00.Tx=1 + +#Localization Configuration Cluster +LCFG.S.A0000=1 +LCFG.S.A0001=1 +LCFG.C.A0000=1 +LCFG.C.A0001=1 + +#Power Source Configuration Cluster +PSCFG.S.A0000=1 diff --git a/src/app/tests/suites/tests.js b/src/app/tests/suites/tests.js index 43864778419602..5e7b8c085ed49c 100644 --- a/src/app/tests/suites/tests.js +++ b/src/app/tests/suites/tests.js @@ -99,6 +99,7 @@ function getManualTests() { "Test_TC_DA_1_4", "Test_TC_DA_1_5", "Test_TC_DA_1_6", + "Test_TC_DA_1_7", ]; const DeviceManagement = [ @@ -393,7 +394,12 @@ function getManualTests() { "Test_TC_DIAG_TH_NW_3_5", ]; - const Actions = ["Test_TC_ACT_2_1", "Test_TC_ACT_2_2", "Test_TC_ACT_3_1"]; + const Actions = [ + "Test_TC_ACT_2_1", + "Test_TC_ACT_2_2", + "Test_TC_ACT_3_1", + "Test_TC_ACT_3_2", + ]; const TimeFormatLocalization = [ "Test_TC_TFL_1_1", diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 2b4e10e74d4783..b55a52630c9f1a 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -298,6 +298,7 @@ class ManualTestList : public Command printf("Test_TC_DA_1_4\n"); printf("Test_TC_DA_1_5\n"); printf("Test_TC_DA_1_6\n"); + printf("Test_TC_DA_1_7\n"); printf("Test_TC_BINFO_1_1\n"); printf("Test_TC_OPCREDS_1_2\n"); printf("Test_TC_CNET_1_3\n"); @@ -528,6 +529,7 @@ class ManualTestList : public Command printf("Test_TC_ACT_2_1\n"); printf("Test_TC_ACT_2_2\n"); printf("Test_TC_ACT_3_1\n"); + printf("Test_TC_ACT_3_2\n"); printf("Test_TC_TFL_1_1\n"); printf("Test_TC_TFL_1_2\n"); printf("Test_TC_TFL_2_1\n"); @@ -2090,6 +2092,7 @@ class Test_TC_BOOL_2_1Suite : public TestCommand } case 1: { LogStep(1, "Read mandatory non-global attribute: StateValue"); + VerifyOrDo(!ShouldSkip("BOOL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), BooleanState::Id, BooleanState::Attributes::StateValue::Id, true, chip::NullOptional); } @@ -22192,25 +22195,30 @@ class Test_TC_OO_2_1Suite : public TestCommand } case 1: { LogStep(1, "read the mandatory attribute: OnOff"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 2: { LogStep(2, "read LT attribute: GlobalSceneControl"); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 3: { LogStep(3, "read LT attribute: OnTime"); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 4: { LogStep(4, "read LT attribute: OffWaitTime"); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 5: { LogStep(5, "read LT attribute: StartUpOnOff"); + VerifyOrDo(!ShouldSkip("OO.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::StartUpOnOff::Id, true, chip::NullOptional); } @@ -22403,6 +22411,7 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 1: { LogStep(1, "Send Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -22411,10 +22420,12 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 2: { LogStep(2, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 3: { LogStep(3, "Send On Command"); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -22423,10 +22434,12 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 4: { LogStep(4, "Check on/off attribute value is true after on command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 5: { LogStep(5, "Send On Command"); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -22435,10 +22448,12 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 6: { LogStep(6, "Check on/off attribute value is true after on command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 7: { LogStep(7, "Send Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -22447,10 +22462,12 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 8: { LogStep(8, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 9: { LogStep(9, "Send Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -22459,10 +22476,12 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 10: { LogStep(10, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 11: { LogStep(11, "Send Toggle Command"); + VerifyOrDo(!ShouldSkip("OO.S.C02.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Toggle::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Toggle::Id, value, chip::NullOptional @@ -22478,10 +22497,12 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 13: { LogStep(13, "Check on/off attribute value is true after toggle command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 14: { LogStep(14, "Send Toggle Command"); + VerifyOrDo(!ShouldSkip("OO.S.C02.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Toggle::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Toggle::Id, value, chip::NullOptional @@ -22497,11 +22518,12 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 16: { LogStep(16, "Check on/off attribute value is false after toggle command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 17: { LogStep(17, "Operate on device to set OnOff attribute manually to on"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && OO.M.ManuallyControlled"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -22516,7 +22538,7 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 19: { LogStep(19, "Operate on device to set OnOff attribute manually to off"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && OO.M.ManuallyControlled"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -22531,6 +22553,7 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 21: { LogStep(21, "Reset Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -22539,6 +22562,7 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 22: { LogStep(22, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } } @@ -22748,6 +22772,7 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 1: { LogStep(1, "TH sends On command to DUT"); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -22756,6 +22781,7 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 2: { LogStep(2, "TH writes a value of 0 to StartUpOnOff attribute of DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -22790,10 +22816,12 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 6: { LogStep(6, "TH reads the OnOff attribute from the DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 7: { LogStep(7, "TH writes a value of 1 to StartUpOnOff attribute of DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -22828,10 +22856,12 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 11: { LogStep(11, "TH reads the OnOff attribute from the DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 12: { LogStep(12, "TH writes a value of 2 to StartUpOnOff attribute of DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); @@ -22866,6 +22896,7 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 16: { LogStep(16, "TH reads the OnOff attribute from the DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 17: { @@ -22895,10 +22926,12 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 20: { LogStep(20, "TH reads the OnOff attribute from the DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 21: { LogStep(21, "TH writes NULL to StartUpOnOff attribute of DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNull(); @@ -22932,10 +22965,12 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 25: { LogStep(25, "TH reads the OnOff attribute from the DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 26: { LogStep(26, "TH sends Off command to DUT"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -22969,6 +23004,7 @@ class Test_TC_OO_2_4Suite : public TestCommand } case 30: { LogStep(30, "TH reads the OnOff attribute from the DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } } @@ -25783,11 +25819,13 @@ class Test_TC_RH_2_1Suite : public TestCommand } case 1: { LogStep(1, "Reads constraints of attribute: MeasuredValue"); + VerifyOrDo(!ShouldSkip("RH.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), RelativeHumidityMeasurement::Id, RelativeHumidityMeasurement::Attributes::MeasuredValue::Id, true, chip::NullOptional); } case 2: { LogStep(2, "Reads constraints of attribute: MinMeasuredValue"); + VerifyOrDo(!ShouldSkip("RH.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), RelativeHumidityMeasurement::Id, RelativeHumidityMeasurement::Attributes::MinMeasuredValue::Id, true, chip::NullOptional); } @@ -25798,6 +25836,7 @@ class Test_TC_RH_2_1Suite : public TestCommand } case 4: { LogStep(4, "Reads constraints of attribute: Tolerance"); + VerifyOrDo(!ShouldSkip("RH.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), RelativeHumidityMeasurement::Id, RelativeHumidityMeasurement::Attributes::Tolerance::Id, true, chip::NullOptional); } @@ -27061,21 +27100,25 @@ class Test_TC_TM_2_1Suite : public TestCommand } case 1: { LogStep(1, "read the mandatory attribute: MeasuredValue"); + VerifyOrDo(!ShouldSkip("TM.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::MeasuredValue::Id, true, chip::NullOptional); } case 2: { LogStep(2, "read the mandatory attribute: MinMeasuredValue"); + VerifyOrDo(!ShouldSkip("TM.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::MinMeasuredValue::Id, true, chip::NullOptional); } case 3: { LogStep(3, "read the mandatory attribute: MaxMeasuredValue"); + VerifyOrDo(!ShouldSkip("TM.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::MaxMeasuredValue::Id, true, chip::NullOptional); } case 4: { LogStep(4, "read the optional attribute: Tolerance"); + VerifyOrDo(!ShouldSkip("TM.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::Tolerance::Id, true, chip::NullOptional); } @@ -67307,6 +67350,62 @@ class Test_TC_DA_1_6Suite : public TestCommand } }; +class Test_TC_DA_1_7Suite : public TestCommand +{ +public: + Test_TC_DA_1_7Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DA_1_7", 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_7Suite() {} + + 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_BINFO_1_1Suite : public TestCommand { public: @@ -83468,7 +83567,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 1: { LogStep(1, "2a: Send On Command"); - VerifyOrDo(!ShouldSkip("CR_ON"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -83484,18 +83583,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 3: { LogStep(3, "2b: Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 4: { LogStep(4, "2b:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 5: { LogStep(5, "3a:Sends OffWithEffect command to DUT"); - VerifyOrDo(!ShouldSkip("CR_OFFWITHEFFECT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OffWithEffect::Type value; value.effectId = static_cast(0); @@ -83514,18 +83613,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 7: { LogStep(7, "3b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 8: { LogStep(8, "3b:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 9: { LogStep(9, "4a:Sends OnWithRecallGlobalScene command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHRECALL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C41.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::OnWithRecallGlobalScene::Id, value, @@ -83542,18 +83641,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 11: { LogStep(11, "4b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 12: { LogStep(12, "4b:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 13: { LogStep(13, "5a:Sends OffWithEffect command to DUT"); - VerifyOrDo(!ShouldSkip("CR_OFFWITHEFFECT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OffWithEffect::Type value; value.effectId = static_cast(0); @@ -83572,18 +83671,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 15: { LogStep(15, "5b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 16: { LogStep(16, "5b:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 17: { LogStep(17, "5c:Send On Command"); - VerifyOrDo(!ShouldSkip("CR_ON"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -83599,18 +83698,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 19: { LogStep(19, "5d:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 20: { LogStep(20, "5d:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 21: { LogStep(21, "6a:Sends OffWithEffect command to DUT"); - VerifyOrDo(!ShouldSkip("CR_OFFWITHEFFECT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OffWithEffect::Type value; value.effectId = static_cast(1); @@ -83629,18 +83728,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 23: { LogStep(23, "6b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 24: { LogStep(24, "6b:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 25: { LogStep(25, "7a:Send On Command"); - VerifyOrDo(!ShouldSkip("CR_ON"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -83656,18 +83755,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 27: { LogStep(27, "7b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 28: { LogStep(28, "7b:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 29: { LogStep(29, "7c:Sends OnWithRecallGlobalScene command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHRECALL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C41.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::OnWithRecallGlobalScene::Id, value, @@ -83684,29 +83783,30 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 31: { LogStep(31, "7d:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 32: { LogStep(32, "7d:Reads GlobalSceneControl attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_GLOBALSCENECONTROL"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::GlobalSceneControl::Id, true, chip::NullOptional); } case 33: { LogStep(33, "8:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 34: { LogStep(34, "8:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 35: { LogStep(35, "9a:Sends OnWithTimedOff command to DUT"); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -83719,19 +83819,19 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 36: { LogStep(36, "9b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 37: { LogStep(37, "9b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 38: { LogStep(38, "10a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -83751,7 +83851,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 40: { LogStep(40, "10b:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -83771,7 +83871,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 42: { LogStep(42, "10c:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -83791,7 +83891,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 44: { LogStep(44, "10d:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -83804,18 +83904,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 45: { LogStep(45, "10e:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 46: { LogStep(46, "10e:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 47: { LogStep(47, "10e:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -83828,7 +83928,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 49: { LogStep(49, "11a:Sends OffWithEffect command to DUT"); - VerifyOrDo(!ShouldSkip("CR_OFFWITHEFFECT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OffWithEffect::Type value; value.effectId = static_cast(0); @@ -83840,18 +83940,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 50: { LogStep(50, "11b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 51: { LogStep(51, "11b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 52: { LogStep(52, "11b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -83864,7 +83964,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 54: { LogStep(54, "12a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -83877,18 +83977,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 55: { LogStep(55, "12b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 56: { LogStep(56, "12b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 57: { LogStep(57, "12b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -83901,7 +84001,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 59: { LogStep(59, "13a:Send On Command"); - VerifyOrDo(!ShouldSkip("CR_ON"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -83910,18 +84010,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 60: { LogStep(60, "13b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 61: { LogStep(61, "13b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 62: { LogStep(62, "13b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -83934,7 +84034,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 64: { LogStep(64, "14a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -83954,7 +84054,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 66: { LogStep(66, "14b:Send Off Command"); - VerifyOrDo(!ShouldSkip("CR_OFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -83963,18 +84063,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 67: { LogStep(67, "14c:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 68: { LogStep(68, "14c:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 69: { LogStep(69, "14c:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -83987,18 +84087,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 71: { LogStep(71, "15:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 72: { LogStep(72, "15:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 73: { LogStep(73, "15:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -84011,7 +84111,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 75: { LogStep(75, "16a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -84024,24 +84124,24 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 76: { LogStep(76, "16b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 77: { LogStep(77, "16b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 78: { LogStep(78, "16b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 79: { LogStep(79, "17a:Send On Command"); - VerifyOrDo(!ShouldSkip("CR_ON"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -84057,7 +84157,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 81: { LogStep(81, "17b:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -84070,18 +84170,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 82: { LogStep(82, "17c:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 83: { LogStep(83, "17c:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 84: { LogStep(84, "17c:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -84094,18 +84194,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 86: { LogStep(86, "17d:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 87: { LogStep(87, "17d:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 88: { LogStep(88, "17d:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -84118,7 +84218,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 90: { LogStep(90, "18a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -84131,24 +84231,24 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 91: { LogStep(91, "18b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 92: { LogStep(92, "18b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 93: { LogStep(93, "18b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 94: { LogStep(94, "19a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(0U); @@ -84168,7 +84268,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 96: { LogStep(96, "19b:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(1U); @@ -84188,24 +84288,24 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 98: { LogStep(98, "19c:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 99: { LogStep(99, "19c:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 100: { LogStep(100, "19c:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 101: { LogStep(101, "20a:Send Off Command"); - VerifyOrDo(!ShouldSkip("CR_OFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -84214,24 +84314,24 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 102: { LogStep(102, "20b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 103: { LogStep(103, "20b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 104: { LogStep(104, "20b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 105: { - LogStep(105, "21a:Sends OnWithimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + LogStep(105, "21a:Sends OnWithTimedOff command to DUT"); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(0U); @@ -84244,24 +84344,24 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 106: { LogStep(106, "21b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 107: { LogStep(107, "21b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 108: { LogStep(108, "21b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 109: { LogStep(109, "22a:Send On Command"); - VerifyOrDo(!ShouldSkip("CR_ON"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional @@ -84270,23 +84370,23 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 110: { LogStep(110, "22b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 111: { LogStep(111, "22b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 112: { LogStep(112, "22b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 113: { - LogStep(113, ":Wait 10000ms"); + LogStep(113, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; @@ -84294,7 +84394,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 114: { LogStep(114, "23a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(0U); @@ -84307,7 +84407,7 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 115: { LogStep(115, "23b:Send Off Command"); - VerifyOrDo(!ShouldSkip("CR_OFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -84316,18 +84416,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 116: { LogStep(116, "23c:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 117: { LogStep(117, "23c:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 118: { LogStep(118, "23c:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -84340,24 +84440,24 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 120: { LogStep(120, "23d:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 121: { LogStep(121, "23d:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 122: { LogStep(122, "23d:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 123: { LogStep(123, "24a:Sends OnWithTimedOff command to DUT"); - VerifyOrDo(!ShouldSkip("CR_ONWITHTIMEOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; value.onOffControl = static_cast>(0U); @@ -84370,18 +84470,18 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 124: { LogStep(124, "24b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 125: { LogStep(125, "24b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 126: { LogStep(126, "24b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } @@ -84394,24 +84494,24 @@ class Test_TC_OO_2_3Suite : public TestCommand } case 128: { LogStep(128, "24c:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONOFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 129: { LogStep(129, "24c:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_ONTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } case 130: { LogStep(130, "24c:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_OFFWAITTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } case 131: { LogStep(131, "Send Off Command"); - VerifyOrDo(!ShouldSkip("CR_OFF"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional @@ -84645,6 +84745,7 @@ class Test_TC_RH_2_2Suite : public TestCommand } case 1: { LogStep(1, "Reads constraints of attribute: MinMeasuredValue"); + VerifyOrDo(!ShouldSkip("RH.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), RelativeHumidityMeasurement::Id, RelativeHumidityMeasurement::Attributes::MinMeasuredValue::Id, true, chip::NullOptional); } @@ -84656,13 +84757,13 @@ class Test_TC_RH_2_2Suite : public TestCommand } case 3: { LogStep(3, "Reads MeasuredValue attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_RELATIVEHUMIDITY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("RH.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), RelativeHumidityMeasurement::Id, RelativeHumidityMeasurement::Attributes::MeasuredValue::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Operate on device to change the relative humidity significantly"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && RH.M.ManuallyControlled"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -84672,7 +84773,7 @@ class Test_TC_RH_2_2Suite : public TestCommand } case 5: { LogStep(5, "Read the mandatory attribute: MeasuredValue"); - VerifyOrDo(!ShouldSkip("A_RELATIVEHUMIDITY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("RH.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), RelativeHumidityMeasurement::Id, RelativeHumidityMeasurement::Attributes::MeasuredValue::Id, true, chip::NullOptional); } @@ -85069,23 +85170,25 @@ class Test_TC_TM_2_2Suite : public TestCommand } case 1: { LogStep(1, "read the mandatory attribute: MinMeasuredValue"); + VerifyOrDo(!ShouldSkip("TM.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::MinMeasuredValue::Id, true, chip::NullOptional); } case 2: { LogStep(2, "read the mandatory attribute: MaxMeasuredValue"); + VerifyOrDo(!ShouldSkip("TM.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::MaxMeasuredValue::Id, true, chip::NullOptional); } case 3: { LogStep(3, "Reads MeasuredValue attribute from DUT"); - VerifyOrDo(!ShouldSkip("A_TEMPERATURE"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("TM.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::MeasuredValue::Id, true, chip::NullOptional); } case 4: { LogStep(4, "Operate on device to change the temperature significantly"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && TM.M.ManuallyControlled"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -85095,7 +85198,7 @@ class Test_TC_TM_2_2Suite : public TestCommand } case 5: { LogStep(5, "Read the mandatory attribute: MeasuredValue"); - VerifyOrDo(!ShouldSkip("A_TEMPERATURE"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("TM.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TemperatureMeasurement::Id, TemperatureMeasurement::Attributes::MeasuredValue::Id, true, chip::NullOptional); } @@ -85895,6 +85998,62 @@ class Test_TC_ACT_3_1Suite : public TestCommand } }; +class Test_TC_ACT_3_2Suite : public TestCommand +{ +public: + Test_TC_ACT_3_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_ACT_3_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_ACT_3_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_TFL_1_1Suite : public TestCommand { public: @@ -87334,6 +87493,7 @@ 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), @@ -87564,6 +87724,7 @@ 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), diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index b2a264b17b6ebf..66a05f926187f7 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -2315,6 +2315,10 @@ class Test_TC_BOOL_2_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Read mandatory non-global attribute: StateValue\n"); + if (ShouldSkip("BOOL.S.A0000")) { + NextTest(); + return; + } err = TestReadMandatoryNonGlobalAttributeStateValue_1(); break; } @@ -36129,22 +36133,42 @@ class Test_TC_OO_2_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : read the mandatory attribute: OnOff\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestReadTheMandatoryAttributeOnOff_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : read LT attribute: GlobalSceneControl\n"); + if (ShouldSkip("OO.S.A4000")) { + NextTest(); + return; + } err = TestReadLtAttributeGlobalSceneControl_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : read LT attribute: OnTime\n"); + if (ShouldSkip("OO.S.A4001")) { + NextTest(); + return; + } err = TestReadLtAttributeOnTime_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : read LT attribute: OffWaitTime\n"); + if (ShouldSkip("OO.S.A4002")) { + NextTest(); + return; + } err = TestReadLtAttributeOffWaitTime_4(); break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : read LT attribute: StartUpOnOff\n"); + if (ShouldSkip("OO.S.A4003")) { + NextTest(); + return; + } err = TestReadLtAttributeStartUpOnOff_5(); break; } @@ -36362,46 +36386,90 @@ class Test_TC_OO_2_2 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Send Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } err = TestSendOffCommand_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : Send On Command\n"); + if (ShouldSkip("OO.S.C01.Rsp")) { + NextTest(); + return; + } err = TestSendOnCommand_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is true after on command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_4(); break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Send On Command\n"); + if (ShouldSkip("OO.S.C01.Rsp")) { + NextTest(); + return; + } err = TestSendOnCommand_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is true after on command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_6(); break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Send Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } err = TestSendOffCommand_7(); break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Send Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } err = TestSendOffCommand_9(); break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10(); break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : Send Toggle Command\n"); + if (ShouldSkip("OO.S.C02.Rsp")) { + NextTest(); + return; + } err = TestSendToggleCommand_11(); break; case 12: @@ -36410,10 +36478,18 @@ class Test_TC_OO_2_2 : public TestCommandBridge { break; case 13: ChipLogProgress(chipTool, " ***** Test Step 13 : Check on/off attribute value is true after toggle command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_13(); break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : Send Toggle Command\n"); + if (ShouldSkip("OO.S.C02.Rsp")) { + NextTest(); + return; + } err = TestSendToggleCommand_14(); break; case 15: @@ -36422,11 +36498,15 @@ class Test_TC_OO_2_2 : public TestCommandBridge { break; case 16: ChipLogProgress(chipTool, " ***** Test Step 16 : Check on/off attribute value is false after toggle command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_16(); break; case 17: ChipLogProgress(chipTool, " ***** Test Step 17 : Operate on device to set OnOff attribute manually to on\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && OO.M.ManuallyControlled")) { NextTest(); return; } @@ -36442,7 +36522,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { break; case 19: ChipLogProgress(chipTool, " ***** Test Step 19 : Operate on device to set OnOff attribute manually to off\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && OO.M.ManuallyControlled")) { NextTest(); return; } @@ -36458,10 +36538,18 @@ class Test_TC_OO_2_2 : public TestCommandBridge { break; case 21: ChipLogProgress(chipTool, " ***** Test Step 21 : Reset Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } err = TestResetOffCommand_21(); break; case 22: ChipLogProgress(chipTool, " ***** Test Step 22 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_22(); break; } @@ -37004,10 +37092,18 @@ class Test_TC_OO_2_4 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : TH sends On command to DUT\n"); + if (ShouldSkip("OO.S.C01.Rsp")) { + NextTest(); + return; + } err = TestThSendsOnCommandToDut_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : TH writes a value of 0 to StartUpOnOff attribute of DUT\n"); + if (ShouldSkip("OO.S.A4003")) { + NextTest(); + return; + } err = TestThWritesAValueOf0ToStartUpOnOffAttributeOfDut_2(); break; case 3: @@ -37032,10 +37128,18 @@ class Test_TC_OO_2_4 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : TH reads the OnOff attribute from the DUT\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestThReadsTheOnOffAttributeFromTheDut_6(); break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : TH writes a value of 1 to StartUpOnOff attribute of DUT\n"); + if (ShouldSkip("OO.S.A4003")) { + NextTest(); + return; + } err = TestThWritesAValueOf1ToStartUpOnOffAttributeOfDut_7(); break; case 8: @@ -37060,10 +37164,18 @@ class Test_TC_OO_2_4 : public TestCommandBridge { break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : TH reads the OnOff attribute from the DUT\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestThReadsTheOnOffAttributeFromTheDut_11(); break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : TH writes a value of 2 to StartUpOnOff attribute of DUT\n"); + if (ShouldSkip("OO.S.A4003")) { + NextTest(); + return; + } err = TestThWritesAValueOf2ToStartUpOnOffAttributeOfDut_12(); break; case 13: @@ -37088,6 +37200,10 @@ class Test_TC_OO_2_4 : public TestCommandBridge { break; case 16: ChipLogProgress(chipTool, " ***** Test Step 16 : TH reads the OnOff attribute from the DUT\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestThReadsTheOnOffAttributeFromTheDut_16(); break; case 17: @@ -37112,10 +37228,18 @@ class Test_TC_OO_2_4 : public TestCommandBridge { break; case 20: ChipLogProgress(chipTool, " ***** Test Step 20 : TH reads the OnOff attribute from the DUT\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestThReadsTheOnOffAttributeFromTheDut_20(); break; case 21: ChipLogProgress(chipTool, " ***** Test Step 21 : TH writes NULL to StartUpOnOff attribute of DUT\n"); + if (ShouldSkip("OO.S.A4003")) { + NextTest(); + return; + } err = TestThWritesNullToStartUpOnOffAttributeOfDut_21(); break; case 22: @@ -37140,10 +37264,18 @@ class Test_TC_OO_2_4 : public TestCommandBridge { break; case 25: ChipLogProgress(chipTool, " ***** Test Step 25 : TH reads the OnOff attribute from the DUT\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestThReadsTheOnOffAttributeFromTheDut_25(); break; case 26: ChipLogProgress(chipTool, " ***** Test Step 26 : TH sends Off command to DUT\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } err = TestThSendsOffCommandToDut_26(); break; case 27: @@ -37168,6 +37300,10 @@ class Test_TC_OO_2_4 : public TestCommandBridge { break; case 30: ChipLogProgress(chipTool, " ***** Test Step 30 : TH reads the OnOff attribute from the DUT\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } err = TestThReadsTheOnOffAttributeFromTheDut_30(); break; } @@ -42843,10 +42979,18 @@ class Test_TC_RH_2_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : Reads constraints of attribute: MeasuredValue\n"); + if (ShouldSkip("RH.S.A0000")) { + NextTest(); + return; + } err = TestReadsConstraintsOfAttributeMeasuredValue_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Reads constraints of attribute: MinMeasuredValue\n"); + if (ShouldSkip("RH.S.A0001")) { + NextTest(); + return; + } err = TestReadsConstraintsOfAttributeMinMeasuredValue_2(); break; case 3: @@ -42855,6 +42999,10 @@ class Test_TC_RH_2_1 : public TestCommandBridge { break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : Reads constraints of attribute: Tolerance\n"); + if (ShouldSkip("RH.S.A0003")) { + NextTest(); + return; + } err = TestReadsConstraintsOfAttributeTolerance_4(); break; } @@ -43514,18 +43662,34 @@ class Test_TC_TM_2_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : read the mandatory attribute: MeasuredValue\n"); + if (ShouldSkip("TM.S.A0000")) { + NextTest(); + return; + } err = TestReadTheMandatoryAttributeMeasuredValue_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : read the mandatory attribute: MinMeasuredValue\n"); + if (ShouldSkip("TM.S.A0001")) { + NextTest(); + return; + } err = TestReadTheMandatoryAttributeMinMeasuredValue_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : read the mandatory attribute: MaxMeasuredValue\n"); + if (ShouldSkip("TM.S.A0002")) { + NextTest(); + return; + } err = TestReadTheMandatoryAttributeMaxMeasuredValue_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : read the optional attribute: Tolerance\n"); + if (ShouldSkip("TM.S.A0003")) { + NextTest(); + return; + } err = TestReadTheOptionalAttributeTolerance_4(); break; } From ef588e12dddccec37713722c98e3d339daa50fa1 Mon Sep 17 00:00:00 2001 From: Michael Sandstedt Date: Thu, 7 Jul 2022 07:16:20 -0500 Subject: [PATCH 13/15] Cleanup Linux platform source includes (#20362) * Make bluez source include conditional on chip_enable_ble Linux platform is unconditionally including bluez source files. But this only makes sense if ble is enabled. Configure includes to be conditional on this. * Make WiFi commissioning driver source include conditional on chip_enable_wifi Linux platform is unconditionally including the WiFI commissioning driver source files. But this only makes sense if wifi is enabled. Configure includes to be conditional on this. * Move Network Commissioning driver source includes into app projects Network commissioning source is unconditionally included in the Linux platform. But this only makes sense for commissionable apps that actually use this code. This commit moves these source includes to the apps and also fixes a build error that is arising from blindly assigning size_t to a uint8_t. * per Damian-Nordic, revert networkIDLen to uint8_t But, use static_cast to fix build warning * per Damian-Nordic, introduce chip_enable_network_commissioning This allows general and ethernet network commissioning source to be conditionally included in platform configuration. * Revert NetworkCommissioningDriver changes --- src/platform/Linux/BUILD.gn | 29 ++++++++++++------- .../NetworkCommissioningEthernetDriver.cpp | 2 +- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/platform/Linux/BUILD.gn b/src/platform/Linux/BUILD.gn index bfcbcd9be73703..5a66ab0ccc335d 100644 --- a/src/platform/Linux/BUILD.gn +++ b/src/platform/Linux/BUILD.gn @@ -70,28 +70,32 @@ static_library("Linux") { "Logging.cpp", "NetworkCommissioningDriver.h", "NetworkCommissioningEthernetDriver.cpp", - "NetworkCommissioningWiFiDriver.cpp", "PlatformManagerImpl.cpp", "PlatformManagerImpl.h", "PosixConfig.cpp", "PosixConfig.h", "SystemPlatformConfig.h", "SystemTimeSupport.cpp", - "bluez/AdapterIterator.cpp", - "bluez/AdapterIterator.h", - "bluez/ChipDeviceScanner.cpp", - "bluez/ChipDeviceScanner.h", - "bluez/Helper.cpp", - "bluez/Helper.h", - "bluez/MainLoop.cpp", - "bluez/MainLoop.h", - "bluez/Types.h", ] if (chip_enable_openthread) { sources += [ "NetworkCommissioningThreadDriver.cpp" ] } + if (chip_enable_ble) { + sources += [ + "bluez/AdapterIterator.cpp", + "bluez/AdapterIterator.h", + "bluez/ChipDeviceScanner.cpp", + "bluez/ChipDeviceScanner.h", + "bluez/Helper.cpp", + "bluez/Helper.h", + "bluez/MainLoop.cpp", + "bluez/MainLoop.h", + "bluez/Types.h", + ] + } + deps = [ "${chip_root}/src/setup_payload" ] public_deps = [ @@ -135,7 +139,10 @@ static_library("Linux") { } if (chip_enable_wifi) { - sources += [ "GlibTypeDeleter.h" ] + sources += [ + "GlibTypeDeleter.h", + "NetworkCommissioningWiFiDriver.cpp", + ] public_deps += [ "dbus/wpa" ] } diff --git a/src/platform/Linux/NetworkCommissioningEthernetDriver.cpp b/src/platform/Linux/NetworkCommissioningEthernetDriver.cpp index 00c619c3605be3..10d056708a980d 100644 --- a/src/platform/Linux/NetworkCommissioningEthernetDriver.cpp +++ b/src/platform/Linux/NetworkCommissioningEthernetDriver.cpp @@ -34,7 +34,7 @@ NetworkIterator * LinuxEthernetDriver::GetNetworks() { auto ret = new EthernetNetworkIterator(); ConnectivityUtils::GetEthInterfaceName(SafePointerCast(ret->interfaceName), sizeof(ret->interfaceName)); - ret->interfaceNameLen = strnlen(SafePointerCast(ret->interfaceName), sizeof(ret->interfaceName)); + ret->interfaceNameLen = static_cast(strnlen(SafePointerCast(ret->interfaceName), sizeof(ret->interfaceName))); return ret; } From 72953167212146a6506b4e8dc611521ac251c852 Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Thu, 7 Jul 2022 05:52:51 -0700 Subject: [PATCH 14/15] [privacy] Add KDF for PrivacyKey with test (#20405) * [privacy] Add PrivacyKey KDF. * [privacy] Add test for DeriveGroupPrivacyKey. --- src/crypto/CHIPCryptoPAL.cpp | 25 ++++++++++++++++++ src/crypto/CHIPCryptoPAL.h | 9 +++++++ src/crypto/tests/CHIPCryptoPALTest.cpp | 36 ++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/src/crypto/CHIPCryptoPAL.cpp b/src/crypto/CHIPCryptoPAL.cpp index f70a4ae5b86d93..eb0bb489f11797 100644 --- a/src/crypto/CHIPCryptoPAL.cpp +++ b/src/crypto/CHIPCryptoPAL.cpp @@ -805,6 +805,31 @@ CHIP_ERROR DeriveGroupSessionId(const ByteSpan & operational_key, uint16_t & ses return CHIP_NO_ERROR; } +/* Operational Group Key Group, PrivacyKey Info: "PrivacyKey" */ +static const uint8_t kGroupPrivacyInfo[] = { 'P', 'r', 'i', 'v', 'a', 'c', 'y', 'K', 'e', 'y' }; + +/* + PrivacyKey = + Crypto_KDF + ( + InputKey = EncryptionKey, + Salt = [], + Info = "PrivacyKey", + Length = CRYPTO_SYMMETRIC_KEY_LENGTH_BITS + ) +*/ +CHIP_ERROR DeriveGroupPrivacyKey(const ByteSpan & encryption_key, MutableByteSpan & out_key) +{ + VerifyOrReturnError(Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES == encryption_key.size(), CHIP_ERROR_INVALID_ARGUMENT); + VerifyOrReturnError(Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES <= out_key.size(), CHIP_ERROR_INVALID_ARGUMENT); + + const ByteSpan null_span = ByteSpan(nullptr, 0); + + Crypto::HKDF_sha crypto; + return crypto.HKDF_SHA256(encryption_key.data(), encryption_key.size(), null_span.data(), null_span.size(), kGroupPrivacyInfo, + sizeof(kGroupPrivacyInfo), out_key.data(), Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES); +} + CHIP_ERROR ExtractVIDPIDFromAttributeString(DNAttrType attrType, const ByteSpan & attr, AttestationCertVidPid & vidpidFromMatterAttr, AttestationCertVidPid & vidpidFromCNAttr) { diff --git a/src/crypto/CHIPCryptoPAL.h b/src/crypto/CHIPCryptoPAL.h index 077b668de55532..48646af8560313 100644 --- a/src/crypto/CHIPCryptoPAL.h +++ b/src/crypto/CHIPCryptoPAL.h @@ -1577,5 +1577,14 @@ CHIP_ERROR DeriveGroupOperationalKey(const ByteSpan & epoch_key, const ByteSpan **/ CHIP_ERROR DeriveGroupSessionId(const ByteSpan & operational_key, uint16_t & session_id); +/** + * @brief Derives the Privacy Group Key using the Key Derivation Function (KDF) from the given epoch key. + * @param[in] epoch_key The epoch key. Must be CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES bytes length. + * @param[out] out_key Symmetric key used as the privacy key during message processing for group communication. + The buffer size must be at least CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES bytes length. + * @return Returns a CHIP_NO_ERROR on succcess, or CHIP_ERROR_INTERNAL if the provided key is invalid. + **/ +CHIP_ERROR DeriveGroupPrivacyKey(const ByteSpan & epoch_key, MutableByteSpan & out_key); + } // namespace Crypto } // namespace chip diff --git a/src/crypto/tests/CHIPCryptoPALTest.cpp b/src/crypto/tests/CHIPCryptoPALTest.cpp index aef0d3d77c4d7f..bb2cb9870ae436 100644 --- a/src/crypto/tests/CHIPCryptoPALTest.cpp +++ b/src/crypto/tests/CHIPCryptoPALTest.cpp @@ -2260,6 +2260,16 @@ const uint8_t kGroupOperationalKey3[Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYT const uint16_t kGroupSessionId1 = 0x6c80; const uint16_t kGroupSessionId2 = 0x0c48; +static const uint8_t kGroupPrivacyKey1[Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES] = { 0xb8, 0x27, 0x9f, 0x89, 0x62, 0x1e, + 0xd3, 0x27, 0xa9, 0xc3, 0x9f, 0x6a, + 0x27, 0x24, 0x73, 0x58 }; +static const uint8_t kGroupPrivacyKey2[Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES] = { 0xf7, 0x25, 0x70, 0xc3, 0xc0, 0x89, + 0xa0, 0xfe, 0x28, 0x75, 0x83, 0x57, + 0xaf, 0xff, 0xb8, 0xd2 }; +static const uint8_t kGroupPrivacyKey3[Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES] = { 0x01, 0xf8, 0xd1, 0x92, 0x71, 0x26, + 0xf1, 0x94, 0x08, 0x25, 0x72, 0xd4, + 0x9b, 0x1f, 0xdc, 0x73 }; + static void TestGroup_OperationalKeyDerivation(nlTestSuite * inSuite, void * inContext) { uint8_t key_buffer[Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES] = { 0 }; @@ -2305,6 +2315,31 @@ static void TestGroup_SessionIdDerivation(nlTestSuite * inSuite, void * inContex NL_TEST_ASSERT(inSuite, kGroupSessionId2 == session_id); } +static void TestGroup_PrivacyKeyDerivation(nlTestSuite * inSuite, void * inContext) +{ + uint8_t key_buffer[Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES] = { 0 }; + ByteSpan encryption_key; + MutableByteSpan privacy_key(key_buffer, sizeof(key_buffer)); + + // Invalid Epoch Key + NL_TEST_ASSERT(inSuite, CHIP_ERROR_INVALID_ARGUMENT == DeriveGroupPrivacyKey(ByteSpan(), privacy_key)); + + // Epoch Key 1 + encryption_key = ByteSpan(kGroupOperationalKey1, sizeof(kGroupOperationalKey1)); + NL_TEST_ASSERT(inSuite, CHIP_NO_ERROR == DeriveGroupPrivacyKey(encryption_key, privacy_key)); + NL_TEST_ASSERT(inSuite, 0 == memcmp(privacy_key.data(), kGroupPrivacyKey1, sizeof(kGroupPrivacyKey1))); + + // Epoch Key 2 + encryption_key = ByteSpan(kGroupOperationalKey2, sizeof(kGroupOperationalKey2)); + NL_TEST_ASSERT(inSuite, CHIP_NO_ERROR == DeriveGroupPrivacyKey(encryption_key, privacy_key)); + NL_TEST_ASSERT(inSuite, 0 == memcmp(privacy_key.data(), kGroupPrivacyKey2, sizeof(kGroupPrivacyKey2))); + + // Epoch Key 3 (example from spec) + encryption_key = ByteSpan(kGroupOperationalKey3, sizeof(kGroupOperationalKey3)); + NL_TEST_ASSERT(inSuite, CHIP_NO_ERROR == DeriveGroupPrivacyKey(encryption_key, privacy_key)); + NL_TEST_ASSERT(inSuite, 0 == memcmp(privacy_key.data(), kGroupPrivacyKey3, sizeof(kGroupPrivacyKey3))); +} + /** * Test Suite. It lists all the test functions. */ @@ -2370,6 +2405,7 @@ static const nlTest sTests[] = { NL_TEST_DEF("Test Vendor ID and Product ID Extraction from x509 Attestation Certificate", TestVIDPID_x509Extraction), NL_TEST_DEF("Test Group Operation Key Derivation", TestGroup_OperationalKeyDerivation), NL_TEST_DEF("Test Group Session ID Derivation", TestGroup_SessionIdDerivation), + NL_TEST_DEF("Test Group Privacy Key Derivation", TestGroup_PrivacyKeyDerivation), NL_TEST_SENTINEL() }; From e974dc62a9f4d6b094599aadd43f5cd2fde15f6d Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Thu, 7 Jul 2022 08:53:58 -0400 Subject: [PATCH 15/15] Update python requirements (#20328) via pip-compile requirements.txt -o constraints.txt Note that mbed-tools is not installable currently. --- scripts/constraints.txt | 114 ++++++++++++++++++++-------------- scripts/requirements.mbed.txt | 7 ++- scripts/requirements.txt | 1 + 3 files changed, 73 insertions(+), 49 deletions(-) diff --git a/scripts/constraints.txt b/scripts/constraints.txt index 37921989b47417..e0d1d1323d4f36 100644 --- a/scripts/constraints.txt +++ b/scripts/constraints.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # pip-compile --output-file=constraints.txt requirements.txt @@ -14,10 +14,12 @@ appdirs==1.4.4 appnope==0.1.2 # via -r requirements.txt attrs==21.2.0 - # via pytest + # via + # jsonschema + # pytest backcall==0.2.0 # via ipython -beautifulsoup4==4.10.0 +beautifulsoup4==4.11.1 # via mbed-os-tools bitstring==3.1.7 # via -r requirements.esp32.txt @@ -33,23 +35,31 @@ cffi==1.14.5 # via cryptography chardet==4.0.0 # via requests -click==7.1.2 +click==8.1.3 # via # -r requirements.esp32.txt # -r requirements.txt # flask - # mbed-tools + # idf-component-manager # pip-tools colorama==0.4.4 # via + # -r requirements.txt + # idf-component-manager # mbed-os-tools # west coloredlogs==15.0.1 # via -r requirements.txt construct==2.10.54 # via -r requirements.esp32.txt +contextlib2==21.6.0 + # via + # idf-component-manager + # schema cryptography==3.4.7 - # via -r requirements.esp32.txt + # via + # -r requirements.esp32.txt + # -r requirements.txt cxxfilt==0.2.2 # via -r requirements.txt dbus-python==1.2.16 ; sys_platform == "linux" @@ -64,22 +74,23 @@ ecdsa==0.17.0 # via -r requirements.esp32.txt fastcore==1.3.26 # via ghapi -fasteners==0.16.3 +fasteners==0.17.3 # via mbed-os-tools filelock==3.0.12 # via virtualenv -flask-compress==1.10.0 - # via gdbgui -flask-socketio==2.9.6 - # via gdbgui flask==0.12.5 # via # flask-compress # flask-socketio # gdbgui +flask-compress==1.10.0 + # via gdbgui +flask-socketio==2.9.6 + # via gdbgui future==0.18.2 # via # -r requirements.esp32.txt + # idf-component-manager # mbed-os-tools # mobly gdbgui==0.13.2.0 @@ -88,14 +99,16 @@ gevent==1.5.0 # via gdbgui ghapi==0.1.19 # via -r requirements.txt -gitdb==4.0.7 +gitdb==4.0.9 # via gitpython -gitpython==3.1.14 - # via mbed-tools +gitpython==3.1.27 ; platform_machine != "aarch64" and sys_platform == "linux" + # via -r requirements.mbed.txt greenlet==1.1.0 # via gevent humanfriendly==9.2 # via coloredlogs +idf-component-manager==1.1.4 + # via -r requirements.esp32.txt idna==2.10 # via requests iniconfig==1.1.1 @@ -104,31 +117,31 @@ intelhex==2.3.0 # via # -r requirements.txt # mbed-os-tools -ipython-genutils==0.2.0 - # via traitlets ipython==7.24.1 # via -r requirements.txt +ipython-genutils==0.2.0 + # via traitlets itsdangerous==2.0.1 # via flask jedi==0.18.0 # via ipython jinja2==3.0.1 - # via - # flask - # mbed-tools + # via flask jsonschema==4.4.0 # via -r requirements.txt junit-xml==1.9 # via mbed-os-tools kconfiglib==13.7.1 # via -r requirements.esp32.txt +lark==1.1.2 + # via -r requirements.txt lockfile==0.12.2 # via # -r requirements.txt # mbed-os-tools -mako==1.1.4 +mako==1.2.1 # via pdoc3 -markdown==3.3.4 +markdown==3.3.7 # via pdoc3 markupsafe==2.0.1 # via @@ -138,13 +151,11 @@ matplotlib-inline==0.1.2 # via ipython mbed-ls==1.8.11 ; platform_machine != "aarch64" and sys_platform == "linux" # via -r requirements.mbed.txt -mbed-os-tools==1.8.11 +mbed-os-tools==1.8.13 # via mbed-ls -mbed-tools==7.49.1 ; platform_machine != "aarch64" and sys_platform == "linux" - # via -r requirements.mbed.txt mobly==1.10.1 # via -r requirements.txt -numpy>=1.22 +numpy==1.23.0 # via pandas packaging==20.9 # via @@ -156,8 +167,8 @@ pandas==1.4.3 ; platform_machine != "aarch64" and platform_machine != "arm64" # via -r requirements.txt parso==0.8.2 # via jedi -pdoc3==0.9.2 - # via mbed-tools +pdoc3==0.10.0 ; platform_machine != "aarch64" and sys_platform == "linux" + # via -r requirements.mbed.txt pep517==0.10.0 # via pip-tools pexpect==4.8.0 @@ -174,7 +185,7 @@ portpicker==1.4.0 # via # -r requirements.txt # mobly -prettytable==2.2.1 +prettytable==2.5.0 # via # mbed-ls # mbed-os-tools @@ -185,11 +196,10 @@ protobuf==3.17.3 psutil==5.8.0 # via # -r requirements.txt - # mbed-tools # mobly ptyprocess==0.7.0 # via pexpect -py==1.10.0 +py==1.11.0 # via pytest pycparser==2.20 # via cffi @@ -209,11 +219,12 @@ pyparsing==2.3.1 # via # -r requirements.esp32.txt # packaging +pyrsistent==0.18.1 + # via jsonschema pyserial==3.5 # via # -r requirements.esp32.txt # mbed-os-tools - # mbed-tools # mobly pytest==6.2.5 ; platform_machine != "aarch64" and sys_platform == "linux" # via -r requirements.mbed.txt @@ -221,8 +232,8 @@ python-dateutil==2.8.1 # via # pandas # pykwalify -python-dotenv==0.17.1 - # via mbed-tools +python-dotenv==0.20.0 ; platform_machine != "aarch64" and sys_platform == "linux" + # via -r requirements.mbed.txt python-engineio==3.14.2 # via python-socketio python-socketio==4.6.1 @@ -231,10 +242,11 @@ python-socketio==4.6.1 # flask-socketio pytz==2021.1 # via pandas -pyudev==0.22.0 - # via mbed-tools +pyudev==0.23.2 ; platform_machine != "aarch64" and sys_platform == "linux" + # via -r requirements.mbed.txt pyyaml==5.4.1 # via + # idf-component-manager # mobly # west reedsolo==1.5.4 @@ -242,17 +254,20 @@ reedsolo==1.5.4 requests==2.25.1 # via # -r requirements.txt + # idf-component-manager # mbed-os-tools - # mbed-tools -ruamel.yaml.clib==0.2.2 - # via ruamel.yaml -ruamel.yaml==0.17.9 + # requests-toolbelt +requests-toolbelt==0.9.1 + # via idf-component-manager +ruamel-yaml==0.17.9 # via pykwalify +schema==0.7.5 + # via idf-component-manager six==1.16.0 # via # anytree # ecdsa - # fasteners + # idf-component-manager # junit-xml # mbed-os-tools # protobuf @@ -261,26 +276,30 @@ six==1.16.0 # python-socketio # pyudev # virtualenv -smmap==4.0.0 +smmap==5.0.0 # via gitdb -soupsieve==2.2.1 +soupsieve==2.3.2.post1 # via beautifulsoup4 -tabulate==0.8.9 - # via mbed-tools +stringcase==1.2.0 + # via -r requirements.txt +tabulate==0.8.10 + # via -r requirements.txt timeout-decorator==0.5.0 # via mobly toml==0.10.2 # via # pep517 # pytest +tornado==6.1 + # via -r requirements.txt tqdm==4.61.1 - # via mbed-tools + # via idf-component-manager traitlets==5.0.5 # via # ipython # matplotlib-inline -typing-extensions==3.10.0.0 - # via mbed-tools +typing-extensions==4.3.0 ; platform_machine != "aarch64" and sys_platform == "linux" + # via -r requirements.mbed.txt urllib3==1.26.5 # via requests virtualenv==20.4.7 @@ -297,7 +316,6 @@ west==0.12.0 # via -r requirements.txt wheel==0.36.2 # via -r requirements.txt -tornado==6.1 # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/scripts/requirements.mbed.txt b/scripts/requirements.mbed.txt index 557c64af524fed..ba352d47418d90 100644 --- a/scripts/requirements.mbed.txt +++ b/scripts/requirements.mbed.txt @@ -1,3 +1,8 @@ -mbed-tools>=7.49.1 ; platform_machine != 'aarch64' and sys_platform == 'linux' +#mbed-tools>=7.49.1 ; platform_machine != 'aarch64' and sys_platform == 'linux' pytest==6.2.5 ; platform_machine != 'aarch64' and sys_platform == 'linux' mbed-ls==1.8.11 ; platform_machine != 'aarch64' and sys_platform == 'linux' +pdoc3 ; platform_machine != 'aarch64' and sys_platform == 'linux' +gitpython ; platform_machine != 'aarch64' and sys_platform == 'linux' +python-dotenv ; platform_machine != 'aarch64' and sys_platform == 'linux' +pyudev ; platform_machine != 'aarch64' and sys_platform == 'linux' +typing-extensions ; platform_machine != 'aarch64' and sys_platform == 'linux' diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 8dddef9c01fe63..abbc8778cfb725 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -46,6 +46,7 @@ anytree cxxfilt ghapi pandas ; platform_machine != 'aarch64' and platform_machine != 'arm64' +tabulate # scripts/build click