From ec0f38aa48d7d0786b19438cfcbcf9167ecdefd0 Mon Sep 17 00:00:00 2001 From: PSONALl <77670766+PSONALl@users.noreply.github.com> Date: Fri, 25 Mar 2022 20:20:37 +0530 Subject: [PATCH 01/23] Fix default value of cluster revision, IdentifyTime attribute on identify cluster (#16375) --- .../all-clusters-common/all-clusters-app.zap | 14 +-- .../bridge-app/bridge-common/bridge-app.zap | 6 +- .../door-lock-common/door-lock-app.zap | 10 +- .../light-switch-common/light-switch-app.zap | 8 +- .../lighting-common/lighting-app.zap | 10 +- examples/lock-app/lock-common/lock-app.zap | 8 +- .../ota-provider-common/ota-provider-app.zap | 6 +- .../ota-requestor-app.zap | 6 +- examples/pump-app/pump-common/pump-app.zap | 4 +- .../pump-controller-app.zap | 6 +- .../esp32/main/temperature-measurement.zap | 10 +- .../thermostat-common/thermostat.zap | 8 +- examples/tv-app/tv-common/tv-app.zap | 4 +- .../tv-casting-common/tv-casting-app.zap | 14 +-- examples/window-app/common/window-app.zap | 14 +-- .../zcl/data-model/chip/identify-cluster.xml | 2 +- .../zap-generated/endpoint_config.h | 106 ++++++++---------- .../zap-generated/endpoint_config.h | 15 ++- .../zap-generated/endpoint_config.h | 18 ++- .../app1/zap-generated/endpoint_config.h | 14 +-- .../app2/zap-generated/endpoint_config.h | 14 +-- .../pump-app/zap-generated/endpoint_config.h | 26 ++--- .../zap-generated/endpoint_config.h | 14 +-- .../zap-generated/endpoint_config.h | 40 +++---- .../zap-generated/endpoint_config.h | 16 +-- .../zap-generated/endpoint_config.h | 16 +-- 26 files changed, 182 insertions(+), 227 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap index 491c2d88690c48..bdc0a01219ef5f 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap @@ -79,7 +79,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -144,7 +144,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -7418,7 +7418,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -7483,7 +7483,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -17992,7 +17992,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -18042,7 +18042,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -21431,4 +21431,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/bridge-app/bridge-common/bridge-app.zap b/examples/bridge-app/bridge-common/bridge-app.zap index 517cf00ab3acba..a6060cb1c9a789 100644 --- a/examples/bridge-app/bridge-common/bridge-app.zap +++ b/examples/bridge-app/bridge-common/bridge-app.zap @@ -3549,7 +3549,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -3599,7 +3599,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -5074,4 +5074,4 @@ "deviceIdentifier": 257 } ] -} \ No newline at end of file +} diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.zap b/examples/door-lock-app/door-lock-common/door-lock-app.zap index cd51d248ada7cd..9fd07731b4c4c7 100644 --- a/examples/door-lock-app/door-lock-common/door-lock-app.zap +++ b/examples/door-lock-app/door-lock-common/door-lock-app.zap @@ -220,7 +220,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -270,7 +270,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4762,7 +4762,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4812,7 +4812,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -7180,4 +7180,4 @@ "deviceIdentifier": 10 } ] -} \ No newline at end of file +} diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.zap b/examples/light-switch-app/light-switch-common/light-switch-app.zap index ef795607c423cb..4a7d659892cb04 100644 --- a/examples/light-switch-app/light-switch-common/light-switch-app.zap +++ b/examples/light-switch-app/light-switch-common/light-switch-app.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4822,7 +4822,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4917,7 +4917,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, diff --git a/examples/lighting-app/lighting-common/lighting-app.zap b/examples/lighting-app/lighting-common/lighting-app.zap index 45cead288789fa..530debef202b66 100644 --- a/examples/lighting-app/lighting-common/lighting-app.zap +++ b/examples/lighting-app/lighting-common/lighting-app.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4808,7 +4808,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4873,7 +4873,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -6985,4 +6985,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/lock-app/lock-common/lock-app.zap b/examples/lock-app/lock-common/lock-app.zap index c5c8df700c8c2f..adc0ea0f6eb3f6 100755 --- a/examples/lock-app/lock-common/lock-app.zap +++ b/examples/lock-app/lock-common/lock-app.zap @@ -220,7 +220,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -270,7 +270,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -5039,7 +5039,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -5089,7 +5089,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap b/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap index 3d4d7c73b47f4b..81ace3a845a0fd 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4251,4 +4251,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap index 1c35f2922a749a..2ff0ee42d8041e 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4440,4 +4440,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/pump-app/pump-common/pump-app.zap b/examples/pump-app/pump-common/pump-app.zap index 4647e4220e0749..00c6c87f9c176c 100644 --- a/examples/pump-app/pump-common/pump-app.zap +++ b/examples/pump-app/pump-common/pump-app.zap @@ -188,7 +188,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -7250,4 +7250,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap b/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap index de5beacc151976..121e5fdfa9f62b 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap @@ -79,7 +79,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -144,7 +144,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -5969,4 +5969,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.zap b/examples/temperature-measurement-app/esp32/main/temperature-measurement.zap index e13ad0feb27ea6..2e6e81deefe7e6 100644 --- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.zap +++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.zap @@ -153,7 +153,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -203,7 +203,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -3038,7 +3038,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -3088,7 +3088,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -3907,4 +3907,4 @@ "deviceIdentifier": 770 } ] -} \ No newline at end of file +} diff --git a/examples/thermostat/thermostat-common/thermostat.zap b/examples/thermostat/thermostat-common/thermostat.zap index c9069ef821d3f2..85cd387fe1facd 100644 --- a/examples/thermostat/thermostat-common/thermostat.zap +++ b/examples/thermostat/thermostat-common/thermostat.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -6991,7 +6991,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -7056,7 +7056,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, diff --git a/examples/tv-app/tv-common/tv-app.zap b/examples/tv-app/tv-common/tv-app.zap index f2d77a7fb96859..78c17cc01564b1 100644 --- a/examples/tv-app/tv-common/tv-app.zap +++ b/examples/tv-app/tv-common/tv-app.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap index a801a8854cdf01..38c326a974d7fe 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -6807,7 +6807,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -6857,7 +6857,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -13644,7 +13644,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -13694,7 +13694,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -16670,4 +16670,4 @@ } ], "log": [] -} \ No newline at end of file +} diff --git a/examples/window-app/common/window-app.zap b/examples/window-app/common/window-app.zap index 46ab46f390f479..1df7e2dc65bae4 100644 --- a/examples/window-app/common/window-app.zap +++ b/examples/window-app/common/window-app.zap @@ -71,7 +71,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -121,7 +121,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4420,7 +4420,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -4485,7 +4485,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -6861,7 +6861,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -6911,7 +6911,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "2", + "defaultValue": "4", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -8176,4 +8176,4 @@ "deviceIdentifier": 514 } ] -} \ No newline at end of file +} diff --git a/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml index 0dbb1aaaa5c512..2c6cdad2c9e2a1 100644 --- a/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml @@ -51,7 +51,7 @@ limitations under the License. true true - identify time + identify time identify type diff --git a/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h b/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h index 02e60deaa833c9..8600d7fd70eb4a 100644 --- a/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h +++ b/zzz_generated/all-clusters-app/zap-generated/endpoint_config.h @@ -958,18 +958,12 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 42 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 40 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ - /* Endpoint: 0, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ - /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ - \ - /* Endpoint: 1, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ + /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ + { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ \ /* Endpoint: 1, Cluster: On/Off (server) */ \ { (uint16_t) 0xFF, (uint16_t) 0x0, (uint16_t) 0x2 }, /* StartUpOnOff */ \ @@ -1041,10 +1035,9 @@ { \ \ /* Endpoint: 0, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 0, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -1128,7 +1121,7 @@ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { 0x00000000, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* HourFormat */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* HourFormat */ \ { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0) }, /* ActiveCalendarType */ \ { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ @@ -1331,10 +1324,9 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -1355,14 +1347,14 @@ { 0x00004002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* OffWaitTime */ \ { 0x00004003, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* StartUpOnOff */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* StartUpOnOff */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(355) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: On/off Switch Configuration (server) */ \ { 0x00000000, ZAP_TYPE(ENUM8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* switch type */ \ { 0x00000010, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* switch actions */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* switch actions */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Level Control (server) */ \ @@ -1374,7 +1366,7 @@ { 0x00000005, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* min frequency */ \ { 0x00000006, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* max frequency */ \ { 0x0000000F, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(5) }, /* options */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* options */ \ { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0x0000) }, /* on off transition time */ \ { 0x00000011, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ @@ -1393,7 +1385,7 @@ \ /* Endpoint: 1, Cluster: Binary Input (Basic) (server) */ \ { 0x00000051, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(6) }, /* out of service */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* out of service */ \ { 0x00000055, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* present value */ \ { 0x0000006F, ZAP_TYPE(BITMAP8), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* status flags */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* ClusterRevision */ \ @@ -1487,9 +1479,9 @@ { 0x00000021, ZAP_TYPE(CHAR_STRING), 4, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_LONG_DEFAULTS_INDEX(398) }, /* Language */ \ { 0x00000023, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_LONG_DEFAULTS_INDEX(401) }, /* AutoRelockTime */ \ { 0x00000024, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(7) }, /* SoundVolume */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(5) }, /* SoundVolume */ \ { 0x00000025, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(8) }, /* OperatingMode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(6) }, /* OperatingMode */ \ { 0x00000026, ZAP_TYPE(BITMAP16), 2, 0, ZAP_SIMPLE_DEFAULT(0xFFF6) }, /* SupportedOperatingModes */ \ { 0x00000027, ZAP_TYPE(BITMAP16), 2, 0, ZAP_SIMPLE_DEFAULT(0) }, /* DefaultConfigurationRegister */ \ { 0x00000029, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), \ @@ -1498,9 +1490,9 @@ { 0x0000002B, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0x00) }, /* EnablePrivacyModeButton */ \ { 0x00000030, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(9) }, /* WrongCodeEntryLimit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(7) }, /* WrongCodeEntryLimit */ \ { 0x00000031, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(10) }, /* UserCodeTemporaryDisableTime */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(8) }, /* UserCodeTemporaryDisableTime */ \ { 0x00000033, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0) }, /* RequirePINforRemoteOperation */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(405) }, /* FeatureMap */ \ @@ -1537,7 +1529,7 @@ ZAP_SIMPLE_DEFAULT(0xFFFF) }, /* InstalledClosedLimitTilt */ \ { 0x00000017, ZAP_TYPE(BITMAP8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(11) }, /* Mode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(9) }, /* Mode */ \ { 0x0000001A, ZAP_TYPE(BITMAP16), 2, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* SafetyStatus */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(409) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(5) }, /* ClusterRevision */ \ @@ -1574,9 +1566,9 @@ { 0x00000017, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ ZAP_LONG_DEFAULTS_INDEX(419) }, /* LifetimeEnergyConsumed */ \ { 0x00000020, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(12) }, /* OperationMode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(10) }, /* OperationMode */ \ { 0x00000021, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(13) }, /* ControlMode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(11) }, /* ControlMode */ \ { 0x00000022, ZAP_TYPE(BITMAP16), 2, 0, ZAP_EMPTY_DEFAULT() }, /* AlarmMask */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(423) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* ClusterRevision */ \ @@ -1592,19 +1584,19 @@ { 0x00000012, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0x07D0) }, /* occupied heating setpoint */ \ { 0x00000015, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(14) }, /* min heat setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(12) }, /* min heat setpoint limit */ \ { 0x00000016, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(15) }, /* max heat setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(13) }, /* max heat setpoint limit */ \ { 0x00000017, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(16) }, /* min cool setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(14) }, /* min cool setpoint limit */ \ { 0x00000018, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(17) }, /* max cool setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(15) }, /* max cool setpoint limit */ \ { 0x00000019, ZAP_TYPE(INT8S), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(18) }, /* min setpoint dead band */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(16) }, /* min setpoint dead band */ \ { 0x0000001B, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(19) }, /* control sequence of operation */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(17) }, /* control sequence of operation */ \ { 0x0000001C, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(20) }, /* system mode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(18) }, /* system mode */ \ { 0x00000020, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0) }, /* start of week */ \ { 0x00000021, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(7) }, /* number of weekly transitions */ \ { 0x00000022, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(4) }, /* number of daily transitions */ \ @@ -1613,11 +1605,11 @@ \ /* Endpoint: 1, Cluster: Thermostat User Interface Configuration (server) */ \ { 0x00000000, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(21) }, /* temperature display mode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(19) }, /* temperature display mode */ \ { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(22) }, /* keypad lockout */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(20) }, /* keypad lockout */ \ { 0x00000002, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(23) }, /* schedule programming visibility */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(21) }, /* schedule programming visibility */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Color Control (server) */ \ @@ -1652,23 +1644,23 @@ { 0x00000029, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* primary 6 y */ \ { 0x0000002A, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* primary 6 intensity */ \ { 0x00000030, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(24) }, /* white point x */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(22) }, /* white point x */ \ { 0x00000031, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(25) }, /* white point y */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(23) }, /* white point y */ \ { 0x00000032, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(26) }, /* color point r x */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(24) }, /* color point r x */ \ { 0x00000033, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(27) }, /* color point r y */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(25) }, /* color point r y */ \ { 0x00000034, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* color point r intensity */ \ { 0x00000036, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(28) }, /* color point g x */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(26) }, /* color point g x */ \ { 0x00000037, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(29) }, /* color point g y */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(27) }, /* color point g y */ \ { 0x00000038, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* color point g intensity */ \ { 0x0000003A, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(30) }, /* color point b x */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(28) }, /* color point b x */ \ { 0x0000003B, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(31) }, /* color point b y */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(29) }, /* color point b y */ \ { 0x0000003C, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* color point b intensity */ \ { 0x00004000, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* enhanced current hue */ \ { 0x00004001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x01) }, /* enhanced color mode */ \ @@ -1682,7 +1674,7 @@ { 0x0000400C, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xFEFF) }, /* color temp physical max */ \ { 0x0000400D, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* couple color temp to level min-mireds */ \ { 0x00004010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(32) }, /* start up color temperature mireds */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(30) }, /* start up color temperature mireds */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(3) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Illuminance Measurement (server) */ \ @@ -1843,13 +1835,13 @@ { 0x00000025, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_EMPTY_DEFAULT() }, /* struct_attr */ \ { 0x00000026, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(33) }, /* range_restricted_int8u */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(31) }, /* range_restricted_int8u */ \ { 0x00000027, ZAP_TYPE(INT8S), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(34) }, /* range_restricted_int8s */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(32) }, /* range_restricted_int8s */ \ { 0x00000028, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(35) }, /* range_restricted_int16u */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(33) }, /* range_restricted_int16u */ \ { 0x00000029, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(36) }, /* range_restricted_int16s */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(34) }, /* range_restricted_int16s */ \ { 0x0000002A, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_EMPTY_DEFAULT() }, /* list_long_octet_string */ \ { 0x0000002B, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ @@ -1921,16 +1913,16 @@ ZAP_EMPTY_DEFAULT() }, /* nullable_struct */ \ { 0x00008026, ZAP_TYPE(INT8U), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(37) }, /* nullable_range_restricted_int8u */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(35) }, /* nullable_range_restricted_int8u */ \ { 0x00008027, ZAP_TYPE(INT8S), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(38) }, /* nullable_range_restricted_int8s */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(36) }, /* nullable_range_restricted_int8s */ \ { 0x00008028, ZAP_TYPE(INT16U), 2, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(39) }, /* nullable_range_restricted_int16u */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(37) }, /* nullable_range_restricted_int16u */ \ { 0x00008029, ZAP_TYPE(INT16S), 2, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(40) }, /* nullable_range_restricted_int16s */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(38) }, /* nullable_range_restricted_int16s */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Electrical Measurement (server) */ \ @@ -1958,7 +1950,7 @@ { 0x00004002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0) }, /* OffWaitTime */ \ { 0x00004003, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(41) }, /* StartUpOnOff */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(39) }, /* StartUpOnOff */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(679) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ diff --git a/zzz_generated/light-switch-app/zap-generated/endpoint_config.h b/zzz_generated/light-switch-app/zap-generated/endpoint_config.h index 71491647ed0b92..f07581f834d99a 100644 --- a/zzz_generated/light-switch-app/zap-generated/endpoint_config.h +++ b/zzz_generated/light-switch-app/zap-generated/endpoint_config.h @@ -500,14 +500,14 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 2 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 1 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ - \ - /* Endpoint: 1, Cluster: Identify (server) */ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE } /* identify time */ \ + { \ + (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 \ + } /* HourFormat */ \ } #define ZAP_ATTRIBUTE_MASK(mask) ATTRIBUTE_MASK_##mask @@ -779,10 +779,9 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ diff --git a/zzz_generated/lighting-app/zap-generated/endpoint_config.h b/zzz_generated/lighting-app/zap-generated/endpoint_config.h index 739f48e59929ff..c430e4ee562b5b 100644 --- a/zzz_generated/lighting-app/zap-generated/endpoint_config.h +++ b/zzz_generated/lighting-app/zap-generated/endpoint_config.h @@ -530,16 +530,13 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 5 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 4 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ \ - /* Endpoint: 1, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ /* Endpoint: 1, Cluster: On/Off (server) */ \ { (uint16_t) 0xFF, (uint16_t) 0x0, (uint16_t) 0x2 }, /* StartUpOnOff */ \ \ @@ -822,10 +819,9 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -839,7 +835,7 @@ { 0x00004003, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* StartUpOnOff */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* StartUpOnOff */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(351) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ @@ -852,7 +848,7 @@ { 0x00000005, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* min frequency */ \ { 0x00000006, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* max frequency */ \ { 0x0000000F, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* options */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* options */ \ { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0x0000) }, /* on off transition time */ \ { 0x00000011, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ @@ -899,7 +895,7 @@ { 0x0000400C, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0xFEFF) }, /* color temp physical max */ \ { 0x0000400D, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* couple color temp to level min-mireds */ \ { 0x00004010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* start up color temperature mireds */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* start up color temperature mireds */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(3) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Occupancy Sensing (server) */ \ diff --git a/zzz_generated/placeholder/app1/zap-generated/endpoint_config.h b/zzz_generated/placeholder/app1/zap-generated/endpoint_config.h index f828fa6405832b..152f9057310b05 100644 --- a/zzz_generated/placeholder/app1/zap-generated/endpoint_config.h +++ b/zzz_generated/placeholder/app1/zap-generated/endpoint_config.h @@ -214,7 +214,7 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 16 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 15 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ @@ -242,9 +242,6 @@ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x5 }, /* keypad lockout */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* schedule programming visibility */ \ \ - /* Endpoint: 1, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ /* Endpoint: 1, Cluster: Color Control (server) */ \ { \ (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFEFF \ @@ -526,10 +523,9 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(14) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -600,7 +596,7 @@ ZAP_SIMPLE_DEFAULT(0x00) }, /* color control options */ \ { 0x0000400D, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* couple color temp to level min-mireds */ \ { 0x00004010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(15) }, /* start up color temperature mireds */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(14) }, /* start up color temperature mireds */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(3) }, /* ClusterRevision */ \ } diff --git a/zzz_generated/placeholder/app2/zap-generated/endpoint_config.h b/zzz_generated/placeholder/app2/zap-generated/endpoint_config.h index f828fa6405832b..152f9057310b05 100644 --- a/zzz_generated/placeholder/app2/zap-generated/endpoint_config.h +++ b/zzz_generated/placeholder/app2/zap-generated/endpoint_config.h @@ -214,7 +214,7 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 16 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 15 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ @@ -242,9 +242,6 @@ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x5 }, /* keypad lockout */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* schedule programming visibility */ \ \ - /* Endpoint: 1, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ /* Endpoint: 1, Cluster: Color Control (server) */ \ { \ (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFEFF \ @@ -526,10 +523,9 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(14) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -600,7 +596,7 @@ ZAP_SIMPLE_DEFAULT(0x00) }, /* color control options */ \ { 0x0000400D, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* couple color temp to level min-mireds */ \ { 0x00004010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(15) }, /* start up color temperature mireds */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(14) }, /* start up color temperature mireds */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(3) }, /* ClusterRevision */ \ } diff --git a/zzz_generated/pump-app/zap-generated/endpoint_config.h b/zzz_generated/pump-app/zap-generated/endpoint_config.h index 73b6d22a8185cf..744959e32971fb 100644 --- a/zzz_generated/pump-app/zap-generated/endpoint_config.h +++ b/zzz_generated/pump-app/zap-generated/endpoint_config.h @@ -444,15 +444,12 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 6 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 5 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ - /* Endpoint: 0, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ - /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ + /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ + { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ \ /* Endpoint: 1, Cluster: On/Off (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x2 }, /* StartUpOnOff */ \ @@ -474,10 +471,9 @@ { \ \ /* Endpoint: 0, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 0, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -562,7 +558,7 @@ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { 0x00000000, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* HourFormat */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* HourFormat */ \ { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0) }, /* ActiveCalendarType */ \ { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ @@ -732,7 +728,7 @@ { 0x00004002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0) }, /* OffWaitTime */ \ { 0x00004003, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* StartUpOnOff */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* StartUpOnOff */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Level Control (server) */ \ @@ -744,7 +740,7 @@ { 0x00000005, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* min frequency */ \ { 0x00000006, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* max frequency */ \ { 0x0000000F, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* options */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* options */ \ { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0x0000) }, /* on off transition time */ \ { 0x00000011, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ @@ -791,9 +787,9 @@ { 0x00000017, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ ZAP_LONG_DEFAULTS_INDEX(265) }, /* LifetimeEnergyConsumed */ \ { 0x00000020, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* OperationMode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* OperationMode */ \ { 0x00000021, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(5) }, /* ControlMode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* ControlMode */ \ { 0x00000022, ZAP_TYPE(BITMAP16), 2, 0, ZAP_EMPTY_DEFAULT() }, /* AlarmMask */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(269) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* ClusterRevision */ \ diff --git a/zzz_generated/pump-controller-app/zap-generated/endpoint_config.h b/zzz_generated/pump-controller-app/zap-generated/endpoint_config.h index 7c54a1b30e62d8..89537624d86589 100644 --- a/zzz_generated/pump-controller-app/zap-generated/endpoint_config.h +++ b/zzz_generated/pump-controller-app/zap-generated/endpoint_config.h @@ -416,13 +416,10 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 2 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 1 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ - /* Endpoint: 0, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { \ (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 \ @@ -436,10 +433,9 @@ { \ \ /* Endpoint: 0, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 0, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -516,7 +512,7 @@ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { 0x00000000, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* HourFormat */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* HourFormat */ \ { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0) }, /* ActiveCalendarType */ \ { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ diff --git a/zzz_generated/thermostat/zap-generated/endpoint_config.h b/zzz_generated/thermostat/zap-generated/endpoint_config.h index 659b90386ab7f6..46042b6e30fabf 100644 --- a/zzz_generated/thermostat/zap-generated/endpoint_config.h +++ b/zzz_generated/thermostat/zap-generated/endpoint_config.h @@ -530,18 +530,12 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 10 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 8 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ - /* Endpoint: 0, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ - /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ - \ - /* Endpoint: 1, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ + /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ + { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ \ /* Endpoint: 1, Cluster: Thermostat (server) */ \ { (uint16_t) 0x2BC, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* min heat setpoint limit */ \ @@ -562,9 +556,8 @@ { \ \ /* Endpoint: 0, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* identify time */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 0, Cluster: Descriptor (server) */ \ { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ @@ -639,7 +632,7 @@ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { 0x00000000, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* HourFormat */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* HourFormat */ \ { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0) }, /* ActiveCalendarType */ \ { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ @@ -828,10 +821,9 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -898,19 +890,19 @@ { 0x00000012, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0x07D0) }, /* occupied heating setpoint */ \ { 0x00000015, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* min heat setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* min heat setpoint limit */ \ { 0x00000016, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* max heat setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* max heat setpoint limit */ \ { 0x00000017, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(5) }, /* min cool setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* min cool setpoint limit */ \ { 0x00000018, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(6) }, /* max cool setpoint limit */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* max cool setpoint limit */ \ { 0x00000019, ZAP_TYPE(INT8S), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(7) }, /* min setpoint dead band */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(5) }, /* min setpoint dead band */ \ { 0x0000001B, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(8) }, /* control sequence of operation */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(6) }, /* control sequence of operation */ \ { 0x0000001C, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(9) }, /* system mode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(7) }, /* system mode */ \ { 0x00000020, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0) }, /* start of week */ \ { 0x00000021, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(7) }, /* number of weekly transitions */ \ { 0x00000022, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(4) }, /* number of daily transitions */ \ diff --git a/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h b/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h index 97107b31ebaa81..aaa64221b9cc46 100644 --- a/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h +++ b/zzz_generated/tv-casting-app/zap-generated/endpoint_config.h @@ -580,16 +580,13 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 5 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 4 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ \ - /* Endpoint: 1, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ /* Endpoint: 1, Cluster: On/Off (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x2 }, /* StartUpOnOff */ \ \ @@ -870,9 +867,8 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* identify time */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Groups (server) */ \ { 0x00000000, ZAP_TYPE(BITMAP8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* name support */ \ @@ -893,7 +889,7 @@ { 0x00004002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* OffWaitTime */ \ { 0x00004003, ZAP_TYPE(ENUM8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* StartUpOnOff */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* StartUpOnOff */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(355) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ @@ -906,7 +902,7 @@ { 0x00000005, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* min frequency */ \ { 0x00000006, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* max frequency */ \ { 0x0000000F, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* options */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* options */ \ { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ ZAP_SIMPLE_DEFAULT(0x0000) }, /* on off transition time */ \ { 0x00000011, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ @@ -924,7 +920,7 @@ \ /* Endpoint: 1, Cluster: Binary Input (Basic) (server) */ \ { 0x00000051, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(4) }, /* out of service */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* out of service */ \ { 0x00000055, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* present value */ \ { 0x0000006F, ZAP_TYPE(BITMAP8), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* status flags */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* ClusterRevision */ \ diff --git a/zzz_generated/window-app/zap-generated/endpoint_config.h b/zzz_generated/window-app/zap-generated/endpoint_config.h index e59fca3d217ab6..231a5671183419 100644 --- a/zzz_generated/window-app/zap-generated/endpoint_config.h +++ b/zzz_generated/window-app/zap-generated/endpoint_config.h @@ -552,16 +552,13 @@ } // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 4 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 3 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ \ - /* Endpoint: 1, Cluster: Identify (server) */ \ - { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0xFE }, /* identify time */ \ - \ /* Endpoint: 1, Cluster: Window Covering (server) */ \ { (uint16_t) 0x14, (uint16_t) 0x0, (uint16_t) 0xF }, /* Mode */ \ \ @@ -830,10 +827,9 @@ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Identify (server) */ \ - { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* identify time */ \ - { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ - { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ + { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0000) }, /* identify time */ \ + { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ + { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Descriptor (server) */ \ { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ @@ -873,7 +869,7 @@ ZAP_SIMPLE_DEFAULT(0xFFFF) }, /* InstalledClosedLimitTilt */ \ { 0x00000017, ZAP_TYPE(BITMAP8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* Mode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* Mode */ \ { 0x0000001A, ZAP_TYPE(BITMAP16), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* SafetyStatus */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(363) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(5) }, /* ClusterRevision */ \ @@ -916,7 +912,7 @@ ZAP_SIMPLE_DEFAULT(0xFFFF) }, /* InstalledClosedLimitTilt */ \ { 0x00000017, ZAP_TYPE(BITMAP8), 1, \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ - ZAP_MIN_MAX_DEFAULTS_INDEX(3) }, /* Mode */ \ + ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* Mode */ \ { 0x0000001A, ZAP_TYPE(BITMAP16), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* SafetyStatus */ \ { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(367) }, /* FeatureMap */ \ { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(5) }, /* ClusterRevision */ \ From 8d53c4de0fbb8518d4bcc9f079490677b1d38159 Mon Sep 17 00:00:00 2001 From: kowsisoundhar12 <57476670+kowsisoundhar12@users.noreply.github.com> Date: Fri, 25 Mar 2022 20:22:01 +0530 Subject: [PATCH 02/23] Updated Manual Scripts (#16384) * Added Updated Manual Scripts * Added updated manual Scripts * 1.Fixing syntax errors in autogen manual test scripts * Adding auto generated code. * Restyled by whitespace * Restyled by prettier-yaml * 1.Fixed format issues in IDM manual test case. * 1. Regenerating files after rebase * 1. Updated atrribute name in manual test case Co-authored-by: Vikram Bhat Co-authored-by: Restyled.io --- examples/chip-tool/templates/tests/tests.js | 1 - .../suites/certification/Test_TC_BDX_1_2.yaml | 24 +- .../suites/certification/Test_TC_BDX_2_1.yaml | 75 +- .../suites/certification/Test_TC_BDX_2_2.yaml | 50 +- .../suites/certification/Test_TC_BDX_2_3.yaml | 12 +- .../certification/Test_TC_BRAC_2_1.yaml | 78 +- .../certification/Test_TC_BRAC_2_2.yaml | 107 +- .../suites/certification/Test_TC_BR_1.yaml | 236 ++--- .../suites/certification/Test_TC_BR_2.yaml | 244 ++--- .../suites/certification/Test_TC_BR_3.yaml | 21 +- .../suites/certification/Test_TC_DD_1_10.yaml | 40 +- .../suites/certification/Test_TC_DD_2_2.yaml | 81 +- .../suites/certification/Test_TC_DD_3_1.yaml | 320 +++--- .../suites/certification/Test_TC_DD_3_10.yaml | 40 +- .../suites/certification/Test_TC_DD_3_11.yaml | 238 ++--- .../suites/certification/Test_TC_DD_3_12.yaml | 374 +++---- .../suites/certification/Test_TC_DD_3_13.yaml | 277 +++--- .../suites/certification/Test_TC_DD_3_2.yaml | 316 +++--- .../suites/certification/Test_TC_DD_3_5.yaml | 313 +++--- .../suites/certification/Test_TC_DD_3_6.yaml | 313 +++--- .../suites/certification/Test_TC_DD_3_9.yaml | 41 +- .../certification/Test_TC_DESC_1_1.yaml | 138 +-- .../certification/Test_TC_DIAG_LOG_1_1.yaml | 187 ++-- .../certification/Test_TC_DIAG_LOG_1_2.yaml | 64 +- .../certification/Test_TC_DIAG_LOG_1_3.yaml | 130 +-- .../suites/certification/Test_TC_DM_1_4.yaml | 12 +- .../suites/certification/Test_TC_DM_2_4.yaml | 17 +- .../suites/certification/Test_TC_DM_3_2.yaml | 26 +- .../suites/certification/Test_TC_DM_3_4.yaml | 6 +- .../certification/Test_TC_ETHDIAG_1_2.yaml | 545 +++++------ .../suites/certification/Test_TC_FLW_3_1.yaml | 15 +- .../suites/certification/Test_TC_GC_1_2.yaml | 100 +- .../suites/certification/Test_TC_GC_1_3.yaml | 90 +- .../certification/Test_TC_GENDIAG_1_1.yaml | 802 +++++++-------- .../certification/Test_TC_GENDIAG_1_2.yaml | 804 +++++++-------- .../certification/Test_TC_GENDIAG_2_1.yaml | 15 +- .../suites/certification/Test_TC_IDM_1_1.yaml | 28 +- .../suites/certification/Test_TC_IDM_1_2.yaml | 377 ++++---- .../suites/certification/Test_TC_IDM_2_1.yaml | 157 +-- .../suites/certification/Test_TC_IDM_6_1.yaml | 88 +- .../suites/certification/Test_TC_IDM_6_2.yaml | 153 ++- .../suites/certification/Test_TC_IDM_6_3.yaml | 7 +- .../suites/certification/Test_TC_IDM_6_4.yaml | 33 +- .../suites/certification/Test_TC_ILL_2_2.yaml | 18 +- .../suites/certification/Test_TC_I_2_2.yaml | 490 +++++----- .../suites/certification/Test_TC_MC_10_2.yaml | 88 +- .../suites/certification/Test_TC_MC_10_3.yaml | 206 ++-- .../suites/certification/Test_TC_MC_10_4.yaml | 8 +- .../suites/certification/Test_TC_MC_10_5.yaml | 55 ++ .../suites/certification/Test_TC_MC_10_6.yaml | 17 +- .../suites/certification/Test_TC_MC_3_12.yaml | 106 +- .../suites/certification/Test_TC_MC_3_13.yaml | 136 +-- .../suites/certification/Test_TC_MC_4_1.yaml | 66 +- .../suites/certification/Test_TC_MC_8_2.yaml | 404 ++++---- .../suites/certification/Test_TC_MC_9_2.yaml | 455 ++++----- .../suites/certification/Test_TC_MF_1_1.yaml | 876 +++++++++-------- .../suites/certification/Test_TC_MF_1_10.yaml | 71 +- .../suites/certification/Test_TC_MF_1_11.yaml | 83 +- .../suites/certification/Test_TC_MF_1_12.yaml | 76 +- .../suites/certification/Test_TC_MF_1_13.yaml | 451 +++++---- .../suites/certification/Test_TC_MF_1_14.yaml | 600 ++++++------ .../suites/certification/Test_TC_MF_1_15.yaml | 580 ++++++----- .../suites/certification/Test_TC_MF_1_16.yaml | 557 +++++------ .../suites/certification/Test_TC_MF_1_17.yaml | 241 ++--- .../suites/certification/Test_TC_MF_1_18.yaml | 262 ++--- .../suites/certification/Test_TC_MF_1_19.yaml | 616 ++++++------ .../suites/certification/Test_TC_MF_1_2.yaml | 760 ++++++++------- .../suites/certification/Test_TC_MF_1_20.yaml | 611 ++++++------ .../suites/certification/Test_TC_MF_1_21.yaml | 75 +- .../suites/certification/Test_TC_MF_1_22.yaml | 85 +- .../suites/certification/Test_TC_MF_1_23.yaml | 80 +- .../suites/certification/Test_TC_MF_1_24.yaml | 90 +- .../suites/certification/Test_TC_MF_1_25.yaml | 32 +- .../suites/certification/Test_TC_MF_1_26.yaml | 97 +- .../suites/certification/Test_TC_MF_1_27.yaml | 34 +- .../suites/certification/Test_TC_MF_1_28.yaml | 34 +- .../suites/certification/Test_TC_MF_1_5.yaml | 321 +++--- .../suites/certification/Test_TC_MF_1_6.yaml | 325 ++++--- .../suites/certification/Test_TC_MF_1_7.yaml | 362 +++---- .../suites/certification/Test_TC_MF_1_8.yaml | 332 ++++--- .../suites/certification/Test_TC_MF_1_9.yaml | 52 +- .../suites/certification/Test_TC_MOD_1_2.yaml | 227 +++-- .../suites/certification/Test_TC_MOD_2_1.yaml | 192 ++-- .../suites/certification/Test_TC_MOD_2_2.yaml | 159 ++- .../suites/certification/Test_TC_MOD_3_1.yaml | 336 ++++--- .../suites/certification/Test_TC_MOD_3_2.yaml | 233 +++-- .../suites/certification/Test_TC_MOD_3_3.yaml | 388 ++++---- .../suites/certification/Test_TC_OCC_2_3.yaml | 22 +- .../suites/certification/Test_TC_OCC_2_4.yaml | 60 +- .../suites/certification/Test_TC_OCC_3_1.yaml | 24 +- .../suites/certification/Test_TC_OO_2_4.yaml | 118 ++- .../suites/certification/Test_TC_PRS_2_2.yaml | 15 +- .../suites/certification/Test_TC_PRS_2_3.yaml | 37 +- .../certification/Test_TC_PSCFG_1_1.yaml | 102 +- .../certification/Test_TC_PSCFG_2_1.yaml | 88 +- .../suites/certification/Test_TC_PS_2_2.yaml | 71 +- .../suites/certification/Test_TC_SU_1_1.yaml | 24 +- .../suites/certification/Test_TC_SU_2_1.yaml | 31 +- .../suites/certification/Test_TC_SU_2_2.yaml | 57 +- .../suites/certification/Test_TC_SU_2_3.yaml | 11 +- .../suites/certification/Test_TC_SU_2_4.yaml | 12 +- .../suites/certification/Test_TC_SU_2_5.yaml | 28 +- .../suites/certification/Test_TC_SU_2_6.yaml | 12 +- .../suites/certification/Test_TC_SU_2_7.yaml | 92 +- .../suites/certification/Test_TC_SU_3_1.yaml | 32 +- .../suites/certification/Test_TC_SU_3_2.yaml | 79 +- .../suites/certification/Test_TC_SU_3_3.yaml | 68 +- .../suites/certification/Test_TC_SU_3_4.yaml | 11 +- .../suites/certification/Test_TC_SU_4_1.yaml | 229 +++-- .../suites/certification/Test_TC_SU_4_2.yaml | 12 +- .../certification/Test_TC_SWDIAG_1_2.yaml | 306 +++--- .../certification/Test_TC_WIFIDIAG_1_2.yaml | 913 ++++++++---------- .../certification/Test_TC_WIFIDIAG_2_1.yaml | 15 +- .../certification/Test_TC_WNCV_6_1.yaml | 186 ++-- .../chip-tool/zap-generated/test/Commands.h | 491 +--------- 115 files changed, 10681 insertions(+), 10747 deletions(-) diff --git a/examples/chip-tool/templates/tests/tests.js b/examples/chip-tool/templates/tests/tests.js index 12d68973fef460..b7e490f1862554 100644 --- a/examples/chip-tool/templates/tests/tests.js +++ b/examples/chip-tool/templates/tests/tests.js @@ -147,7 +147,6 @@ function getManualTests() const MultipleFabrics = [ 'Test_TC_MF_1_1', 'Test_TC_MF_1_2', - 'Test_TC_MF_1_3', 'Test_TC_MF_1_4', 'Test_TC_MF_1_5', 'Test_TC_MF_1_6', diff --git a/src/app/tests/suites/certification/Test_TC_BDX_1_2.yaml b/src/app/tests/suites/certification/Test_TC_BDX_1_2.yaml index 5dd64f33812eba..ba574c631ba95a 100644 --- a/src/app/tests/suites/certification/Test_TC_BDX_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_BDX_1_2.yaml @@ -21,16 +21,16 @@ config: tests: - label: "DUT sends a ReceiveInit message to TH" - verification: - "1. Verify that the OTA Reference Provider App logs show ReceiveInit - message from DUT [1636410921473] [59203:62969336] CHIP: [ATM] Handling - received BDX Message [1636410921473] [59203:62969336] CHIP: [ATM] - ReceiveInit [1636410921473] [59203:62969336] CHIP: [ATM] Proposed - Transfer Control: 0x20 [1636410921473] [59203:62969336] CHIP: [ATM] - Range Control: 0x0 [1636410921473] [59203:62969336] CHIP: [ATM] - Proposed Max Block Size: 1024 [1636410921473] [59203:62969336] CHIP: - [ATM] Start Offset: 0x0000000000000000 [1636410921473] - [59203:62969336] CHIP: [ATM] Proposed Max Length: 0x0000000000000000 - [1636410921473] [59203:62969336] CHIP: [ATM] File Designator Length: 8 - [1636410921473] [59203:62969336] CHIP: [ATM] File Designator: test.txt" + verification: | + 1. Verify that the OTA Reference Provider App logs show ReceiveInit message from DUT + + [1636410921473] [59203:62969336] CHIP: [ATM] Handling received BDX Message + [1636410921473] [59203:62969336] CHIP: [ATM] ReceiveInit + [1636410921473] [59203:62969336] CHIP: [ATM] Proposed Transfer Control: 0x20 + [1636410921473] [59203:62969336] CHIP: [ATM] Range Control: 0x0 + [1636410921473] [59203:62969336] CHIP: [ATM] Proposed Max Block Size: 1024 + [1636410921473] [59203:62969336] CHIP: [ATM] Start Offset: 0x0000000000000000 + [1636410921473] [59203:62969336] CHIP: [ATM] Proposed Max Length: 0x0000000000000000 + [1636410921473] [59203:62969336] CHIP: [ATM] File Designator Length: 8 + [1636410921473] [59203:62969336] CHIP: [ATM] File Designator: test.txt disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_2_1.yaml b/src/app/tests/suites/certification/Test_TC_BDX_2_1.yaml index 29393df544584f..4d76093091d79f 100644 --- a/src/app/tests/suites/certification/Test_TC_BDX_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BDX_2_1.yaml @@ -24,47 +24,56 @@ tests: "DUT sends a SendInit message to TH + TH sends a SendAccept message back to DUT + DUT sends a Block message to TH + TH sends a BlockAck message back to DUT" - verification: - "1. Verify that the OTA Reference Requester App logs show Block - message from DUT [1636410923701] [59208:62970584] CHIP: [ATM] Handling - received BDX Message [1636410923701] [59208:62970584] CHIP: [ATM] - Block [1636410923701] [59208:62970584] CHIP: [ATM] Block Counter: 0 - [1636410923701] [59208:62970584] CHIP: [ATM] Data Length: 1024 Compare - with [1636410922200] [59208:62970584] CHIP: [ATM] Handling received - BDX Message [1636410922200] [59208:62970584] CHIP: [ATM] ReceiveAccept - [1636410922200] [59208:62970584] CHIP: [ATM] Transfer Control: 0x20 - [1636410922200] [59208:62970584] CHIP: [ATM] Range Control: 0x0 - [1636410922200] [59208:62970584] CHIP: [ATM] Max Block Size: 1024 - [1636410922200] [59208:62970584] CHIP: [ATM] Length: - 0x0000000000000000" + verification: | + 1. Verify that the OTA Reference Requester App logs show Block message from DUT + + [1636410923701] [59208:62970584] CHIP: [ATM] Handling received BDX Message + [1636410923701] [59208:62970584] CHIP: [ATM] Block + [1636410923701] [59208:62970584] CHIP: [ATM] Block Counter: 0 + [1636410923701] [59208:62970584] CHIP: [ATM] Data Length: 1024 + + Compare with + + [1636410922200] [59208:62970584] CHIP: [ATM] Handling received BDX Message + [1636410922200] [59208:62970584] CHIP: [ATM] ReceiveAccept + [1636410922200] [59208:62970584] CHIP: [ATM] Transfer Control: 0x20 + [1636410922200] [59208:62970584] CHIP: [ATM] Range Control: 0x0 + [1636410922200] [59208:62970584] CHIP: [ATM] Max Block Size: 1024 + [1636410922200] [59208:62970584] CHIP: [ATM] Length: 0x0000000000000000 disabled: true - label: "DUT sends a Block message to TH + TH sends a BlockAck message back to DUT" - verification: - "1. Verify from the OTA Reference Requester App logs that the Blocks - are sent in ascending and sequential block counter order. - [1636410925203] [59208:62970585] CHIP: [ATM] Block [1636410925203] - [59208:62970585] CHIP: [ATM] Block Counter: 1 [1636410926704] - [59208:62970584] CHIP: [ATM] Block [1636410926704] [59208:62970584] - CHIP: [ATM] Block Counter: 2 and so on" + verification: | + 1. Verify from the OTA Reference Requester App logs that the Blocks are sent in ascending and sequential block counter order. + + [1636410925203] [59208:62970585] CHIP: [ATM] Block + [1636410925203] [59208:62970585] CHIP: [ATM] Block Counter: 1 + + [1636410926704] [59208:62970584] CHIP: [ATM] Block + [1636410926704] [59208:62970584] CHIP: [ATM] Block Counter: 2 + + and so on disabled: true - label: "DUT sends a BlockEOF message to TH + TH sends a BlockAckEOF message back to DUT" - verification: - "1. Verify that the OTA Reference Requester App logs show BlockEOF - message from DUT [1636410935710] [59208:62970585] CHIP: [ATM] Handling - received BDX Message [1636410935710] [59208:62970585] CHIP: [ATM] - BlockEOF [1636410935710] [59208:62970585] CHIP: [ATM] Block Counter: 8 - [1636410935710] [59208:62970585] CHIP: [ATM] Data Length: 147 Compare - with [1636410922200] [59208:62970584] CHIP: [ATM] Handling received - BDX Message [1636410922200] [59208:62970584] CHIP: [ATM] ReceiveAccept - [1636410922200] [59208:62970584] CHIP: [ATM] Transfer Control: 0x20 - [1636410922200] [59208:62970584] CHIP: [ATM] Range Control: 0x0 - [1636410922200] [59208:62970584] CHIP: [ATM] Max Block Size: 1024 - [1636410922200] [59208:62970584] CHIP: [ATM] Length: - 0x0000000000000000" + verification: | + 1. Verify that the OTA Reference Requester App logs show BlockEOF message from DUT + + [1636410935710] [59208:62970585] CHIP: [ATM] Handling received BDX Message + [1636410935710] [59208:62970585] CHIP: [ATM] BlockEOF + [1636410935710] [59208:62970585] CHIP: [ATM] Block Counter: 8 + [1636410935710] [59208:62970585] CHIP: [ATM] Data Length: 147 + + Compare with + + [1636410922200] [59208:62970584] CHIP: [ATM] Handling received BDX Message + [1636410922200] [59208:62970584] CHIP: [ATM] ReceiveAccept + [1636410922200] [59208:62970584] CHIP: [ATM] Transfer Control: 0x20 + [1636410922200] [59208:62970584] CHIP: [ATM] Range Control: 0x0 + [1636410922200] [59208:62970584] CHIP: [ATM] Max Block Size: 1024 + [1636410922200] [59208:62970584] CHIP: [ATM] Length: 0x0000000000000000 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_2_2.yaml b/src/app/tests/suites/certification/Test_TC_BDX_2_2.yaml index 87a5e639d0783c..7861715ccf4183 100644 --- a/src/app/tests/suites/certification/Test_TC_BDX_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_BDX_2_2.yaml @@ -24,37 +24,43 @@ tests: "IF (PICS_DT_Receiver_Driver) TH sends a SendInit message to DUT + DUT sends a SendAccept message back to TH + DUT sends a BlockQuery message to TH + TH sends a Block message back to DUT" - verification: - "1. Verify that the OTA Reference Provider App logs show BlockQuery - message from DUT [1636410922974] [59203:62969336] CHIP: [ATM] Handling - received BDX Message [1636410922974] [59203:62969336] CHIP: [ATM] - BlockQuery [1636410922974] [59203:62969336] CHIP: [ATM] Block Counter: - 0" + verification: | + 1. Verify that the OTA Reference Provider App logs show BlockQuery message from DUT + + [1636410922974] [59203:62969336] CHIP: [ATM] Handling received BDX Message + [1636410922974] [59203:62969336] CHIP: [ATM] BlockQuery + [1636410922974] [59203:62969336] CHIP: [ATM] Block Counter: 0 disabled: true - label: "IF (PICS_DT_Receiver_Driver) DUT sends a BlockQuery message to TH + TH sends a Block message back to DUT" - verification: - "1. Verify from the OTA Reference Provider App logs that the - BlockQuery messages are sent in ascending and sequential block counter - order. [1636410924476] [59203:62969337] CHIP: [ATM] BlockQuery - [1636410924476] [59203:62969337] CHIP: [ATM] Block Counter: 1 + verification: | + 1. Verify from the OTA Reference Provider App logs that the BlockQuery messages are sent in ascending and sequential block counter order. + + [1636410924476] [59203:62969337] CHIP: [ATM] BlockQuery + [1636410924476] [59203:62969337] CHIP: [ATM] Block Counter: 1 + [1636410925977] [59203:62969337] CHIP: [ATM] BlockQuery - [1636410925977] [59203:62969337] CHIP: [ATM] Block Counter: 2 and so - on" + [1636410925977] [59203:62969337] CHIP: [ATM] Block Counter: 2 + + and so on disabled: true - label: "TH sends a BlockEOF message to DUT + DUT sends a BlockAckEOF message back to TH" - verification: - "1. Verify that the OTA Reference App logs show BlockAckEOF message - from DUT [1636410936486] [59203:62969336] CHIP: [ATM] Handling - received BDX Message [1636410936486] [59203:62969336] CHIP: [ATM] - BlockAckEOF [1636410936486] [59203:62969336] CHIP: [ATM] Block - Counter: 8 Compare with [1636410935209] [59203:62969337] CHIP: [ATM] - Sending BDX Message [1636410935209] [59203:62969337] CHIP: [ATM] - BlockEOF [1636410935209] [59203:62969337] CHIP: [ATM] Block Counter: 8 - [1636410935209] [59203:62969337] CHIP: [ATM] Data Length: 147" + verification: | + 1. Verify that the OTA Reference App logs show BlockAckEOF message from DUT + + [1636410936486] [59203:62969336] CHIP: [ATM] Handling received BDX Message + [1636410936486] [59203:62969336] CHIP: [ATM] BlockAckEOF + [1636410936486] [59203:62969336] CHIP: [ATM] Block Counter: 8 + + Compare with + + [1636410935209] [59203:62969337] CHIP: [ATM] Sending BDX Message + [1636410935209] [59203:62969337] CHIP: [ATM] BlockEOF + [1636410935209] [59203:62969337] CHIP: [ATM] Block Counter: 8 + [1636410935209] [59203:62969337] CHIP: [ATM] Data Length: 147 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml b/src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml index fcc830c558f0af..99254903e3ac69 100644 --- a/src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_BDX_2_3.yaml @@ -24,10 +24,10 @@ tests: "IF (PICS_DT_Receiver_Driver) TH sends a SendInit message to DUT + DUT sends a SendAccept message back to TH + DUT sends a BlockQuery message to TH + TH sends a Block message back to DUT" - verification: - "1. Verify that the OTA Reference Provider App logs show BlockQuery - message from DUT [1636410922974] [59203:62969336] CHIP: [ATM] Handling - received BDX Message [1636410922974] [59203:62969336] CHIP: [ATM] - BlockQuery [1636410922974] [59203:62969336] CHIP: [ATM] Block Counter: - 0" + verification: | + 1. Verify that the OTA Reference Provider App logs show BlockQuery message from DUT + + [1636410922974] [59203:62969336] CHIP: [ATM] Handling received BDX Message + [1636410922974] [59203:62969336] CHIP: [ATM] BlockQuery + [1636410922974] [59203:62969336] CHIP: [ATM] Block Counter: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BRAC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_BRAC_2_1.yaml index 03f57adf9e6f7b..8825321868243c 100644 --- a/src/app/tests/suites/certification/Test_TC_BRAC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BRAC_2_1.yaml @@ -21,7 +21,8 @@ config: tests: - label: "Commission DUT to TH (can be skipped if done in a preceding test)" - verification: "" + verification: | + disabled: true - label: @@ -29,8 +30,8 @@ tests: endpoints that can be exposed using the Bridged Actions server cluster (NOTE if this is not provided, it is assumed the DUT automagically creates these)" - verification: - "no Matter messages, result will be used in steps 4a and beyond" + verification: | + no Matter messages, result will be used in steps 4a and beyond disabled: true - label: @@ -38,125 +39,138 @@ tests: actions that can be exposed using the Bridged Actions server cluster (NOTE if this is not provided, it is assumed the DUT automagically creates these)" - verification: - "no Matter messages, result will be used in steps 5a and beyond" + verification: | + no Matter messages, result will be used in steps 5a and beyond disabled: true - label: "Read PartsList attribute of Descriptor cluster on all endpoints of the DUT" - verification: - "Read PartsList attribute of Descriptor cluster on all endpoints of - the DUT (start with EP 0 and recursively handle all the EP found in - the PartsList)" + verification: | + Read PartsList attribute of Descriptor cluster on all endpoints of the DUT (start with EP 0 and recursively handle all the EP found in the PartsList) disabled: true - label: "Compile a list of all endpoints on the server" - verification: "internal TH: create list of all EP on this server" + verification: | + internal TH: create list of all EP on this server disabled: true - label: "Read EndpointLists attribute of Bridged Actions server and validate the EndpointListStructs using the following steps" - verification: "Read EndpointLists attribute" + verification: | + Read EndpointLists attribute disabled: true - label: "For each EndpointListStruct, verify that the endpoints in the Endpoints field are in the list of endpoints of the DUT" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each EndpointListStruct, verify that the Name is present" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each EndpointListStruct, verify that the Type is present and valid" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "Verify that the EndPointListIDs of all EndpointListStruct are unique (no duplicates)" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each EndpointListStruct, verify Name and Type against the name/type of each group of endpoints provided by the manufacturers means" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "Read ActionList attribute of Bridged Actions server and validate the ActionStructs using the following steps" - verification: "Read ActionList attribute" + verification: | + Read ActionList attribute disabled: true - label: "For each ActionStruct, verify the Name is present" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each ActionStruct, verify the Type is present and valid" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each ActionStruct, verify the EndpointListID is present in one of the EndpointListStructs (see step 4a)" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each ActionStruct, verify the SupportedCommands field is present and valid (at least one bit is set)" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each ActionStruct, verify the State field is present and valid" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "Verify that the ActionIDs of all ActionStructs are unique (no duplicates)" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "For each ActionStruct, verify Name, Type and State against the name/type/state info for the action provided by the manufacturers means" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "Read SetupURL attribute" - verification: "Read SetupURL attribute" + verification: | + Read SetupURL attribute disabled: true - label: "Verify that its syntax follows the syntax as specified in RFC 3986, max. 512 ASCII characters" - verification: "no Matter messages, but TH internal checking" + verification: | + no Matter messages, but TH internal checking disabled: true - label: "Verify SetupURL points to a site providing information about the actions" - verification: - "no Matter messages, but TH internal checking + accessing the URL on - the internet" + verification: | + no Matter messages, but TH internal checking + accessing the URL on the internet disabled: true - label: "Verify SetupURL appended by '?/a=' and the decimal numeric value of one of the exposed ActionIDs (see step 5a) points to a site providing information about the action" - verification: - "no Matter messages, but TH internal checking + accessing the URL on - the internet" + verification: | + no Matter messages, but TH internal checking + accessing the URL on the internet disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BRAC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_BRAC_2_2.yaml index f01bcc5530b125..eac23359c666fb 100644 --- a/src/app/tests/suites/certification/Test_TC_BRAC_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_BRAC_2_2.yaml @@ -21,148 +21,163 @@ config: tests: - label: "Commission DUT to TH (can be skipped if done in a preceding test)" - verification: "" + verification: | + disabled: true - label: "Using the manufacturer provided means, create multiple groups with each multiple bridged devices (endpoints)" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read EndpointLists attribute" - verification: "Read EndpointLists attribute" + verification: | + Read EndpointLists attribute disabled: true - label: "Using the manufacturer provided means, update the name of one of the groups" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read EndpointLists attribute again" - verification: "Read EndpointLists attribute" + verification: | + Read EndpointLists attribute disabled: true - label: "compare result of step 2d to what was read in step 2b" - verification: - "TH internal checking of changes to EndpointLists attribute matching - what was changed in 2c" + verification: | + TH internal checking of changes to EndpointLists attribute matching what was changed in 2c disabled: true - label: "Using the manufacturer provided means, move one of the bridged devices (one endpoint) from one group to another group" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read EndpointLists attribute again" - verification: "Read EndpointLists attribute" + verification: | + Read EndpointLists attribute disabled: true - label: "compare result of step 2g to what was read in step 2e" - verification: - "TH internal checking of changes to EndpointLists attribute matching - what was changed in 2f" + verification: | + TH internal checking of changes to EndpointLists attribute matching what was changed in 2f disabled: true - label: "Using the manufacturer provided means, remove one of the groups" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read EndpointLists attribute again" - verification: "Read EndpointLists attribute" + verification: | + Read EndpointLists attribute disabled: true - label: "compare result of step 2j to what was read in step 2h" - verification: - "TH internal checking of changes to EndpointLists attribute matching - what was changed in 2i" + verification: | + TH internal checking of changes to EndpointLists attribute matching what was changed in 2i disabled: true - label: "Using the manufacturer provided means, create a new group, which includes one of the bridged devices also present in another group" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read EndpointLists attribute again" - verification: "Read EndpointLists attribute" + verification: | + Read EndpointLists attribute disabled: true - label: "compare result of step 2m to what was read in step 2k" - verification: - "TH internal checking of changes to EndpointLists attribute matching - what was changed in 2l" + verification: | + TH internal checking of changes to EndpointLists attribute matching what was changed in 2l disabled: true - label: "Using the manufacturer provided means, create multiple actions" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read ActionList attribute" - verification: "Read ActionList attribute" + verification: | + Read ActionList attribute disabled: true - label: "Using the manufacturer provided means, update the name of one of the actions" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read ActionList attribute again" - verification: "Read ActionList attribute" + verification: | + Read ActionList attribute disabled: true - label: "compare result of step 3d to what was read in step 3b" - verification: - "TH internal checking of changes to ActionList attribute matching what - was changed in 3c" + verification: | + TH internal checking of changes to ActionList attribute matching what was changed in 3c disabled: true - label: "Using the manufacturer provided means, remove one of the exposed actions" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read ActionList attribute again" - verification: "Read ActionList attribute" + verification: | + Read ActionList attribute disabled: true - label: "compare result of step 3g to what was read in step 3e" - verification: - "TH internal checking of changes to ActionList attribute matching what - was changed in 3f" + verification: | + TH internal checking of changes to ActionList attribute matching what was changed in 3f disabled: true - label: "Using the manufacturer provided means, add a new exposed action" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read ActionList attribute again" - verification: "Read ActionList attribute" + verification: | + Read ActionList attribute disabled: true - label: "compare result of step 3j to what was read in step 3h" - verification: - "TH internal checking of changes to ActionList attribute matching what - was changed in 3i" + 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)" - verification: "no Matter messages" + verification: | + no Matter messages disabled: true - label: "Read ActionList attribute" - verification: "Read ActionList attribute" + verification: | + Read ActionList attribute disabled: true - label: "subscribe to StateChanged and ActionFailed events" - verification: "subscribe to events" + verification: | + subscribe to events disabled: true - label: @@ -170,9 +185,11 @@ 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" - verification: "sequence of Matter messages as described" + verification: | + sequence of Matter messages as described disabled: true - label: "repeat 4d for the other SupportedCommands of each ActionStruct" - verification: "sequence of Matter messages as described" + verification: | + sequence of Matter messages as described disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BR_1.yaml b/src/app/tests/suites/certification/Test_TC_BR_1.yaml index 306fa02164cdc1..99d775e5bec6d9 100644 --- a/src/app/tests/suites/certification/Test_TC_BR_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BR_1.yaml @@ -22,53 +22,53 @@ config: tests: - label: "Read attribute DeviceTypeList of the Descriptor cluster on endpoint 0" - verification: - "./chip-tool descriptor read device-list 1 1 - C[1646119893.830333][3487:3492] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_001D Attribute 0x0000_0000 DataVersion: 4007324196 - [1646119893.830428][3487:3492] CHIP:TOO: device list: 1 entries - [1646119893.830500][3487:3492] CHIP:TOO: [1]: { - [1646119893.830531][3487:3492] CHIP:TOO: Type: 256 - [1646119893.830558][3487:3492] CHIP:TOO: Revision: 1 - [1646119893.830586][3487:3492] CHIP:TOO: }" + verification: | + ./chip-tool descriptor read device-list 1 1 + + C[1646119893.830333][3487:3492] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0000DataVersion: 4007324196 + [1646119893.830428][3487:3492] CHIP:TOO: device list: 1 entries + [1646119893.830500][3487:3492] CHIP:TOO: [1]: { + [1646119893.830531][3487:3492] CHIP:TOO: Type: 256 + [1646119893.830558][3487:3492] CHIP:TOO: Revision: 1 + [1646119893.830586][3487:3492] CHIP:TOO: } disabled: true - label: "Read attribute PartsList of the Descriptor cluster on endpoint 0" - verification: - "./chip-tool descriptor read parts-list 1 1 CHIP:DMG: ReportData = + verification: | + ./chip-tool descriptor read parts-list 1 1 + + CHIP:DMG: ReportData = [1635663946.174100][3392:3397] CHIP:DMG: { - [1635663946.174131][3392:3397] CHIP:DMG: AttributeDataList = - [1635663946.174169][3392:3397] CHIP:DMG: [ - [1635663946.174205][3392:3397] CHIP:DMG: AttributeDataElement = - [1635663946.174249][3392:3397] CHIP:DMG: { - [1635663946.174288][3392:3397] CHIP:DMG: AttributePath = - [1635663946.174329][3392:3397] CHIP:DMG: { - [1635663946.174366][3392:3397] CHIP:DMG: NodeId = 0x1, - [1635663946.174409][3392:3397] CHIP:DMG: EndpointId = 0x0, - [1635663946.174449][3392:3397] CHIP:DMG: ClusterId = 0x1d, - [1635663946.174493][3392:3397] CHIP:DMG: FieldTag = 0x0000_0003, - [1635663946.174535][3392:3397] CHIP:DMG: } + [1635663946.174131][3392:3397] CHIP:DMG: AttributeDataList = + [1635663946.174169][3392:3397] CHIP:DMG: [ + [1635663946.174205][3392:3397] CHIP:DMG: AttributeDataElement = + [1635663946.174249][3392:3397] CHIP:DMG: { + [1635663946.174288][3392:3397] CHIP:DMG: AttributePath = + [1635663946.174329][3392:3397] CHIP:DMG: { + [1635663946.174366][3392:3397] CHIP:DMG: NodeId = 0x1, + [1635663946.174409][3392:3397] CHIP:DMG: EndpointId = 0x0, + [1635663946.174449][3392:3397] CHIP:DMG: ClusterId = 0x1d, + [1635663946.174493][3392:3397] CHIP:DMG: FieldTag = 0x0000_0003, + [1635663946.174535][3392:3397] CHIP:DMG: } [1635663946.174584][3392:3397] CHIP:DMG: - [1635663946.174633][3392:3397] CHIP:DMG: Data = [ - [1635663946.174681][3392:3397] CHIP:DMG: 1, 2, - [1635663946.174733][3392:3397] CHIP:DMG: ], - [1635663946.174778][3392:3397] CHIP:DMG: DataElementVersion = 0x0, - [1635663946.174822][3392:3397] CHIP:DMG: }, + [1635663946.174633][3392:3397] CHIP:DMG: Data = [ + [1635663946.174681][3392:3397] CHIP:DMG: 1, 2, + [1635663946.174733][3392:3397] CHIP:DMG: ], + [1635663946.174778][3392:3397] CHIP:DMG: DataElementVersion = 0x0, + [1635663946.174822][3392:3397] CHIP:DMG: }, [1635663946.174866][3392:3397] CHIP:DMG: - [1635663946.174896][3392:3397] CHIP:DMG: ], + [1635663946.174896][3392:3397] CHIP:DMG: ], [1635663946.174940][3392:3397] CHIP:DMG: [1635663946.174972][3392:3397] CHIP:DMG: } [1635663946.175079][3392:3397] CHIP:ZCL: ReadAttributesResponse: - [1635663946.175112][3392:3397] CHIP:ZCL: ClusterId: 0x0000_001D - [1635663946.175145][3392:3397] CHIP:ZCL: attributeId: 0x0000_0003 - [1635663946.175176][3392:3397] CHIP:ZCL: status: Success (0x0000) - [1635663946.175207][3392:3397] CHIP:ZCL: attribute TLV Type: 0x16 - [1635663946.175245][3392:3397] CHIP:TOO: - OnDescriptorPartsListListAttributeResponse: 2 entries + [1635663946.175112][3392:3397] CHIP:ZCL: ClusterId: 0x0000_001D + [1635663946.175145][3392:3397] CHIP:ZCL: attributeId: 0x0000_0003 + [1635663946.175176][3392:3397] CHIP:ZCL: status: Success (0x0000) + [1635663946.175207][3392:3397] CHIP:ZCL: attribute TLV Type: 0x16 + [1635663946.175245][3392:3397] CHIP:TOO: OnDescriptorPartsListListAttributeResponse: 2 entries [1635663946.175280][3392:3397] CHIP:TOO: ENDPOINT_NO[1]: 1 [1635663946.175312][3392:3397] CHIP:TOO: ENDPOINT_NO[2]: 2 - [1635663946.175400][3392:3397] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 27126i" + [1635663946.175400][3392:3397] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 27126i disabled: true - label: @@ -76,14 +76,15 @@ tests: DeviceTypeList attribute in the Descriptor cluster on such endpoint, and select those endpoints which have (at least) a device type of Bridged Node in their DeviceTypeList" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "For each of the endpoints for the bridged devices found in step 2b, perform the tests for Bridged Device Basic Information cluster" - verification: - "ref to test plan for Bridged Device Basic Information cluster" + verification: | + ref to test plan for Bridged Device Basic Information cluster disabled: true - label: @@ -92,136 +93,145 @@ tests: for this Power Source Configuration cluster plus the tests for the Power Source clusters at the endpoint(s) which this Power Source Configuration cluster refers to" - verification: - "ref to test plan for Power Source Configuration and Power Source - clusters" + verification: | + ref to test plan for Power Source Configuration and Power Source clusters disabled: true - label: "For each of the endpoints found in step 2b, from the DeviceTypeList attributute in their Descriptor cluster, derive the (application) device type(s) of the bridged device" - verification: - "./chip-tool descriptor read device-list 1 2 CHIP:DMG: ReportData = + verification: | + ./chip-tool descriptor read device-list 1 2 + + CHIP:DMG: ReportData = [1635664190.971564][3410:3415] CHIP:DMG: { - [1635664190.971611][3410:3415] CHIP:DMG: AttributeDataList = - [1635664190.971650][3410:3415] CHIP:DMG: [ - [1635664190.971748][3410:3415] CHIP:DMG: AttributeDataElement = - [1635664190.971809][3410:3415] CHIP:DMG: { - [1635664190.971895][3410:3415] CHIP:DMG: AttributePath = - [1635664190.971959][3410:3415] CHIP:DMG: { - [1635664190.972007][3410:3415] CHIP:DMG: NodeId = 0x1, - [1635664190.972108][3410:3415] CHIP:DMG: EndpointId = 0x1, - [1635664190.972177][3410:3415] CHIP:DMG: ClusterId = 0x1d, - [1635664190.972269][3410:3415] CHIP:DMG: FieldTag = 0x0000_0000, - [1635664190.972328][3410:3415] CHIP:DMG: } + [1635664190.971611][3410:3415] CHIP:DMG: AttributeDataList = + [1635664190.971650][3410:3415] CHIP:DMG: [ + [1635664190.971748][3410:3415] CHIP:DMG: AttributeDataElement = + [1635664190.971809][3410:3415] CHIP:DMG: { + [1635664190.971895][3410:3415] CHIP:DMG: AttributePath = + [1635664190.971959][3410:3415] CHIP:DMG: { + [1635664190.972007][3410:3415] CHIP:DMG: NodeId = 0x1, + [1635664190.972108][3410:3415] CHIP:DMG: EndpointId = 0x1, + [1635664190.972177][3410:3415] CHIP:DMG: ClusterId = 0x1d, + [1635664190.972269][3410:3415] CHIP:DMG: FieldTag = 0x0000_0000, + [1635664190.972328][3410:3415] CHIP:DMG: } [1635664190.972380][3410:3415] CHIP:DMG: - [1635664190.972469][3410:3415] CHIP:DMG: Data = [ + [1635664190.972469][3410:3415] CHIP:DMG: Data = [ [1635664190.972533][3410:3415] CHIP:DMG: - [1635664190.972593][3410:3415] CHIP:DMG: { - [1635664190.972721][3410:3415] CHIP:DMG: 0x0 = 0, - [1635664190.972828][3410:3415] CHIP:DMG: 0x1 = 1, - [1635664190.972900][3410:3415] CHIP:DMG: }, - [1635664190.972954][3410:3415] CHIP:DMG: ], - [1635664190.973046][3410:3415] CHIP:DMG: DataElementVersion = 0x0, - [1635664190.973104][3410:3415] CHIP:DMG: }, + [1635664190.972593][3410:3415] CHIP:DMG: { + [1635664190.972721][3410:3415] CHIP:DMG: 0x0 = 0, + [1635664190.972828][3410:3415] CHIP:DMG: 0x1 = 1, + [1635664190.972900][3410:3415] CHIP:DMG: }, + [1635664190.972954][3410:3415] CHIP:DMG: ], + [1635664190.973046][3410:3415] CHIP:DMG: DataElementVersion = 0x0, + [1635664190.973104][3410:3415] CHIP:DMG: }, [1635664190.973200][3410:3415] CHIP:DMG: - [1635664190.973250][3410:3415] CHIP:DMG: ], + [1635664190.973250][3410:3415] CHIP:DMG: ], [1635664190.973296][3410:3415] CHIP:DMG: [1635664190.973340][3410:3415] CHIP:DMG: } [1635664190.973513][3410:3415] CHIP:ZCL: ReadAttributesResponse: - [1635664190.973591][3410:3415] CHIP:ZCL: ClusterId: 0x0000_001D - [1635664190.973626][3410:3415] CHIP:ZCL: attributeId: 0x0000_0000 - [1635664190.973658][3410:3415] CHIP:ZCL: status: Success (0x0000) - [1635664190.973723][3410:3415] CHIP:ZCL: attribute TLV Type: 0x16 - [1635664190.973778][3410:3415] CHIP:TOO: - OnDescriptorDeviceListListAttributeResponse: 1 entries + [1635664190.973591][3410:3415] CHIP:ZCL: ClusterId: 0x0000_001D + [1635664190.973626][3410:3415] CHIP:ZCL: attributeId: 0x0000_0000 + [1635664190.973658][3410:3415] CHIP:ZCL: status: Success (0x0000) + [1635664190.973723][3410:3415] CHIP:ZCL: attribute TLV Type: 0x16 + [1635664190.973778][3410:3415] CHIP:TOO: OnDescriptorDeviceListListAttributeResponse: 1 entries [1635664190.973855][3410:3415] CHIP:TOO: DeviceType[1]: - [1635664190.973889][3410:3415] CHIP:TOO: type: 0 - [1635664190.973964][3410:3415] CHIP:TOO: revision: 1 - [1635664190.974074][3410:3415] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 1814i ./chip-tool descriptor read - device-list 1 2 CHIP:DMG: ReportData = [1635664306.625866][3418:3423] - CHIP:DMG: { [1635664306.625898][3418:3423] CHIP:DMG: AttributeDataList - = [1635664306.625936][3418:3423] CHIP:DMG: [ - [1635664306.625972][3418:3423] CHIP:DMG: AttributeDataElement = - [1635664306.626018][3418:3423] CHIP:DMG: { - [1635664306.626056][3418:3423] CHIP:DMG: AttributePath = - [1635664306.626101][3418:3423] CHIP:DMG: { - [1635664306.626147][3418:3423] CHIP:DMG: NodeId = 0x1, - [1635664306.626197][3418:3423] CHIP:DMG: EndpointId = 0x2, - [1635664306.626247][3418:3423] CHIP:DMG: ClusterId = 0x1d, - [1635664306.626293][3418:3423] CHIP:DMG: FieldTag = 0x0000_0000, - [1635664306.626342][3418:3423] CHIP:DMG: } + [1635664190.973889][3410:3415] CHIP:TOO: type: 0 + [1635664190.973964][3410:3415] CHIP:TOO: revision: 1 + [1635664190.974074][3410:3415] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 1814i + + ./chip-tool descriptor read device-list 1 2 + + CHIP:DMG: ReportData = + [1635664306.625866][3418:3423] CHIP:DMG: { + [1635664306.625898][3418:3423] CHIP:DMG: AttributeDataList = + [1635664306.625936][3418:3423] CHIP:DMG: [ + [1635664306.625972][3418:3423] CHIP:DMG: AttributeDataElement = + [1635664306.626018][3418:3423] CHIP:DMG: { + [1635664306.626056][3418:3423] CHIP:DMG: AttributePath = + [1635664306.626101][3418:3423] CHIP:DMG: { + [1635664306.626147][3418:3423] CHIP:DMG: NodeId = 0x1, + [1635664306.626197][3418:3423] CHIP:DMG: EndpointId = 0x2, + [1635664306.626247][3418:3423] CHIP:DMG: ClusterId = 0x1d, + [1635664306.626293][3418:3423] CHIP:DMG: FieldTag = 0x0000_0000, + [1635664306.626342][3418:3423] CHIP:DMG: } [1635664306.626392][3418:3423] CHIP:DMG: - [1635664306.626430][3418:3423] CHIP:DMG: Data = [ + [1635664306.626430][3418:3423] CHIP:DMG: Data = [ [1635664306.626471][3418:3423] CHIP:DMG: - [1635664306.626522][3418:3423] CHIP:DMG: { - [1635664306.626572][3418:3423] CHIP:DMG: 0x0 = 0, - [1635664306.626624][3418:3423] CHIP:DMG: 0x1 = 1, - [1635664306.626670][3418:3423] CHIP:DMG: }, - [1635664306.626720][3418:3423] CHIP:DMG: ], - [1635664306.626762][3418:3423] CHIP:DMG: DataElementVersion = 0x0, - [1635664306.626809][3418:3423] CHIP:DMG: }, + [1635664306.626522][3418:3423] CHIP:DMG: { + [1635664306.626572][3418:3423] CHIP:DMG: 0x0 = 0, + [1635664306.626624][3418:3423] CHIP:DMG: 0x1 = 1, + [1635664306.626670][3418:3423] CHIP:DMG: }, + [1635664306.626720][3418:3423] CHIP:DMG: ], + [1635664306.626762][3418:3423] CHIP:DMG: DataElementVersion = 0x0, + [1635664306.626809][3418:3423] CHIP:DMG: }, [1635664306.626856][3418:3423] CHIP:DMG: - [1635664306.626891][3418:3423] CHIP:DMG: ], + [1635664306.626891][3418:3423] CHIP:DMG: ], [1635664306.626935][3418:3423] CHIP:DMG: [1635664306.626965][3418:3423] CHIP:DMG: } [1635664306.627075][3418:3423] CHIP:ZCL: ReadAttributesResponse: - [1635664306.627108][3418:3423] CHIP:ZCL: ClusterId: 0x0000_001D - [1635664306.627143][3418:3423] CHIP:ZCL: attributeId: 0x0000_0000 - [1635664306.627170][3418:3423] CHIP:ZCL: status: Success (0x0000) - [1635664306.627201][3418:3423] CHIP:ZCL: attribute TLV Type: 0x16 - [1635664306.627237][3418:3423] CHIP:TOO: - OnDescriptorDeviceListListAttributeResponse: 1 entries + [1635664306.627108][3418:3423] CHIP:ZCL: ClusterId: 0x0000_001D + [1635664306.627143][3418:3423] CHIP:ZCL: attributeId: 0x0000_0000 + [1635664306.627170][3418:3423] CHIP:ZCL: status: Success (0x0000) + [1635664306.627201][3418:3423] CHIP:ZCL: attribute TLV Type: 0x16 + [1635664306.627237][3418:3423] CHIP:TOO: OnDescriptorDeviceListListAttributeResponse: 1 entries [1635664306.627301][3418:3423] CHIP:TOO: DeviceType[1]: - [1635664306.627335][3418:3423] CHIP:TOO: type: 0 - [1635664306.627366][3418:3423] CHIP:TOO: revision: 1 - [1635664306.627460][3418:3423] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 40894i" + [1635664306.627335][3418:3423] CHIP:TOO: type: 0 + [1635664306.627366][3418:3423] CHIP:TOO: revision: 1 + [1635664306.627460][3418:3423] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 40894i disabled: true - label: "From the list acquired in step 5, choose one of the bridged devices which is an actuator (e.g. light, window covering)" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the state of this bridged device (through Matter), e.g. on/off, brightness" - verification: "read actuator state" + verification: | + read actuator state disabled: true - label: "Change the state of this bridged device (through Matter), e.g. change its brightness" - verification: "update actuator state (e.g. command)" + verification: | + update actuator state (e.g. command) disabled: true - label: "Read the state of this bridged device (through Matter), as in 6b" - verification: "read actuator state" + verification: | + read actuator state disabled: true - label: "From the list acquired in step 5, choose one of the bridged devices which is a sensor (e.g. occupancy sensor, contact sensor, temperature sensor)" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the state of this bridged device (through Matter), e.g. occupancy status, contact status, current temperature" - verification: "read sensor state" + verification: | + read sensor state disabled: true - label: "Change the state of this sensor (e.g. cover the occupancy sensor, open the contact sensor, heat the temperature sensor)" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the state of this bridged device again, as in 7b" - verification: "read sensor state" + verification: | + read sensor state disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BR_2.yaml b/src/app/tests/suites/certification/Test_TC_BR_2.yaml index 97574085348a40..d82ef6e98c6bca 100644 --- a/src/app/tests/suites/certification/Test_TC_BR_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_BR_2.yaml @@ -20,201 +20,207 @@ config: endpoint: 0 tests: - - label: - "- Read Descriptor cluster of endpoint 0- Read Descriptor cluster of - all endpoints listed in the PartsList attribute in the Descriptor - cluster of endpoint 0" - verification: - "./chip-tool descriptor read parts-list 1 0 CHIP:DMG: ReportData = + - label: "- Read Descriptor cluster of endpoint 0- Read Descriptor cluster + of all endpoints listed\ + in the PartsList attribute in the Descriptor cluster of endpoint 0" + verification: | + ./chip-tool descriptor read parts-list 1 0 + + CHIP:DMG: ReportData = [1635666145.010326][3692:3697] CHIP:DMG: { - [1635666145.010374][3692:3697] CHIP:DMG: AttributeDataList = - [1635666145.010414][3692:3697] CHIP:DMG: [ - [1635666145.010463][3692:3697] CHIP:DMG: AttributeDataElement = - [1635666145.010585][3692:3697] CHIP:DMG: { - [1635666145.010665][3692:3697] CHIP:DMG: AttributePath = - [1635666145.010726][3692:3697] CHIP:DMG: { - [1635666145.010816][3692:3697] CHIP:DMG: NodeId = 0x1, - [1635666145.010905][3692:3697] CHIP:DMG: EndpointId = 0x0, - [1635666145.010998][3692:3697] CHIP:DMG: ClusterId = 0x1d, - [1635666145.011054][3692:3697] CHIP:DMG: FieldTag = 0x0000_0003, - [1635666145.011144][3692:3697] CHIP:DMG: } + [1635666145.010374][3692:3697] CHIP:DMG: AttributeDataList = + [1635666145.010414][3692:3697] CHIP:DMG: [ + [1635666145.010463][3692:3697] CHIP:DMG: AttributeDataElement = + [1635666145.010585][3692:3697] CHIP:DMG: { + [1635666145.010665][3692:3697] CHIP:DMG: AttributePath = + [1635666145.010726][3692:3697] CHIP:DMG: { + [1635666145.010816][3692:3697] CHIP:DMG: NodeId = 0x1, + [1635666145.010905][3692:3697] CHIP:DMG: EndpointId = 0x0, + [1635666145.010998][3692:3697] CHIP:DMG: ClusterId = 0x1d, + [1635666145.011054][3692:3697] CHIP:DMG: FieldTag = 0x0000_0003, + [1635666145.011144][3692:3697] CHIP:DMG: } [1635666145.011284][3692:3697] CHIP:DMG: - [1635666145.011334][3692:3697] CHIP:DMG: Data = [ - [1635666145.011474][3692:3697] CHIP:DMG: 1, 2, - [1635666145.011572][3692:3697] CHIP:DMG: ], - [1635666145.011663][3692:3697] CHIP:DMG: DataElementVersion = 0x0, - [1635666145.011710][3692:3697] CHIP:DMG: }, + [1635666145.011334][3692:3697] CHIP:DMG: Data = [ + [1635666145.011474][3692:3697] CHIP:DMG: 1, 2, + [1635666145.011572][3692:3697] CHIP:DMG: ], + [1635666145.011663][3692:3697] CHIP:DMG: DataElementVersion = 0x0, + [1635666145.011710][3692:3697] CHIP:DMG: }, [1635666145.011803][3692:3697] CHIP:DMG: - [1635666145.011889][3692:3697] CHIP:DMG: ], + [1635666145.011889][3692:3697] CHIP:DMG: ], [1635666145.011980][3692:3697] CHIP:DMG: [1635666145.012060][3692:3697] CHIP:DMG: } [1635666145.012259][3692:3697] CHIP:ZCL: ReadAttributesResponse: - [1635666145.012336][3692:3697] CHIP:ZCL: ClusterId: 0x0000_001D - [1635666145.012406][3692:3697] CHIP:ZCL: attributeId: 0x0000_0003 - [1635666145.012439][3692:3697] CHIP:ZCL: status: Success (0x0000) - [1635666145.012470][3692:3697] CHIP:ZCL: attribute TLV Type: 0x16 - [1635666145.012523][3692:3697] CHIP:TOO: - OnDescriptorPartsListListAttributeResponse: 2 entries + [1635666145.012336][3692:3697] CHIP:ZCL: ClusterId: 0x0000_001D + [1635666145.012406][3692:3697] CHIP:ZCL: attributeId: 0x0000_0003 + [1635666145.012439][3692:3697] CHIP:ZCL: status: Success (0x0000) + [1635666145.012470][3692:3697] CHIP:ZCL: attribute TLV Type: 0x16 + [1635666145.012523][3692:3697] CHIP:TOO: OnDescriptorPartsListListAttributeResponse: 2 entries [1635666145.012600][3692:3697] CHIP:TOO: ENDPOINT_NO[1]: 1 [1635666145.012639][3692:3697] CHIP:TOO: ENDPOINT_NO[2]: 2 - [1635666145.012850][3692:3697] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 48783i" + [1635666145.012850][3692:3697] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 48783i disabled: true - label: "Add a bridged device (using a method indicated by the manufacturer)" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the PartsList attribute in the Descriptor cluster on endpoint 0" - verification: - "./chip-tool descriptor read parts-list 1 0 CHIP:DMG: ReportData = + verification: | + ./chip-tool descriptor read parts-list 1 0 + + CHIP:DMG: ReportData = [1635666145.010326][3692:3697] CHIP:DMG: { - [1635666145.010374][3692:3697] CHIP:DMG: AttributeDataList = - [1635666145.010414][3692:3697] CHIP:DMG: [ - [1635666145.010463][3692:3697] CHIP:DMG: AttributeDataElement = - [1635666145.010585][3692:3697] CHIP:DMG: { - [1635666145.010665][3692:3697] CHIP:DMG: AttributePath = - [1635666145.010726][3692:3697] CHIP:DMG: { - [1635666145.010816][3692:3697] CHIP:DMG: NodeId = 0x1, - [1635666145.010905][3692:3697] CHIP:DMG: EndpointId = 0x0, - [1635666145.010998][3692:3697] CHIP:DMG: ClusterId = 0x1d, - [1635666145.011054][3692:3697] CHIP:DMG: FieldTag = 0x0000_0003, - [1635666145.011144][3692:3697] CHIP:DMG: } + [1635666145.010374][3692:3697] CHIP:DMG: AttributeDataList = + [1635666145.010414][3692:3697] CHIP:DMG: [ + [1635666145.010463][3692:3697] CHIP:DMG: AttributeDataElement = + [1635666145.010585][3692:3697] CHIP:DMG: { + [1635666145.010665][3692:3697] CHIP:DMG: AttributePath = + [1635666145.010726][3692:3697] CHIP:DMG: { + [1635666145.010816][3692:3697] CHIP:DMG: NodeId = 0x1, + [1635666145.010905][3692:3697] CHIP:DMG: EndpointId = 0x0, + [1635666145.010998][3692:3697] CHIP:DMG: ClusterId = 0x1d, + [1635666145.011054][3692:3697] CHIP:DMG: FieldTag = 0x0000_0003, + [1635666145.011144][3692:3697] CHIP:DMG: } [1635666145.011284][3692:3697] CHIP:DMG: - [1635666145.011334][3692:3697] CHIP:DMG: Data = [ - [1635666145.011474][3692:3697] CHIP:DMG: 1, 2, - [1635666145.011572][3692:3697] CHIP:DMG: ], - [1635666145.011663][3692:3697] CHIP:DMG: DataElementVersion = 0x0, - [1635666145.011710][3692:3697] CHIP:DMG: }, + [1635666145.011334][3692:3697] CHIP:DMG: Data = [ + [1635666145.011474][3692:3697] CHIP:DMG: 1, 2, + [1635666145.011572][3692:3697] CHIP:DMG: ], + [1635666145.011663][3692:3697] CHIP:DMG: DataElementVersion = 0x0, + [1635666145.011710][3692:3697] CHIP:DMG: }, [1635666145.011803][3692:3697] CHIP:DMG: - [1635666145.011889][3692:3697] CHIP:DMG: ], + [1635666145.011889][3692:3697] CHIP:DMG: ], [1635666145.011980][3692:3697] CHIP:DMG: [1635666145.012060][3692:3697] CHIP:DMG: } [1635666145.012259][3692:3697] CHIP:ZCL: ReadAttributesResponse: - [1635666145.012336][3692:3697] CHIP:ZCL: ClusterId: 0x0000_001D - [1635666145.012406][3692:3697] CHIP:ZCL: attributeId: 0x0000_0003 - [1635666145.012439][3692:3697] CHIP:ZCL: status: Success (0x0000) - [1635666145.012470][3692:3697] CHIP:ZCL: attribute TLV Type: 0x16 - [1635666145.012523][3692:3697] CHIP:TOO: - OnDescriptorPartsListListAttributeResponse: 2 entries + [1635666145.012336][3692:3697] CHIP:ZCL: ClusterId: 0x0000_001D + [1635666145.012406][3692:3697] CHIP:ZCL: attributeId: 0x0000_0003 + [1635666145.012439][3692:3697] CHIP:ZCL: status: Success (0x0000) + [1635666145.012470][3692:3697] CHIP:ZCL: attribute TLV Type: 0x16 + [1635666145.012523][3692:3697] CHIP:TOO: OnDescriptorPartsListListAttributeResponse: 2 entries [1635666145.012600][3692:3697] CHIP:TOO: ENDPOINT_NO[1]: 1 [1635666145.012639][3692:3697] CHIP:TOO: ENDPOINT_NO[2]: 2 - [1635666145.012850][3692:3697] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 48783i" + [1635666145.012850][3692:3697] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 48783i disabled: true - label: "Read Descriptor cluster of all other endpoints listed in the PartsList attribute in the Descriptor cluster of endpoint 0" - verification: "read EP . Descriptor . Partslist" + verification: | + read EP . Descriptor . Partslist disabled: true - label: "Perform step 6 (for an actuator) resp. step 7 (for a sensor) of TC-BR-1 for the bridged device added in step 2" - verification: "" + verification: | + disabled: true - label: "Remove one of the bridged devices (but not the one which was added in step 2) (using a method indicated by the manufacturer)" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the PartsList attribute in the Descriptor cluster on endpoint 0" - verification: - "./chip-tool descriptor read parts-list 1 0 CHIP:DMG: ReportData = + verification: | + ./chip-tool descriptor read parts-list 1 0 + + CHIP:DMG: ReportData = [1635668330.265352][3951:3956] CHIP:DMG: { - [1635668330.265385][3951:3956] CHIP:DMG: AttributeDataList = - [1635668330.265424][3951:3956] CHIP:DMG: [ - [1635668330.265460][3951:3956] CHIP:DMG: AttributeDataElement = - [1635668330.265512][3951:3956] CHIP:DMG: { - [1635668330.265551][3951:3956] CHIP:DMG: AttributePath = - [1635668330.265596][3951:3956] CHIP:DMG: { - [1635668330.265644][3951:3956] CHIP:DMG: NodeId = 0x1, - [1635668330.265699][3951:3956] CHIP:DMG: EndpointId = 0x0, - [1635668330.265754][3951:3956] CHIP:DMG: ClusterId = 0x1d, - [1635668330.265808][3951:3956] CHIP:DMG: FieldTag = 0x0000_0003, - [1635668330.265854][3951:3956] CHIP:DMG: } + [1635668330.265385][3951:3956] CHIP:DMG: AttributeDataList = + [1635668330.265424][3951:3956] CHIP:DMG: [ + [1635668330.265460][3951:3956] CHIP:DMG: AttributeDataElement = + [1635668330.265512][3951:3956] CHIP:DMG: { + [1635668330.265551][3951:3956] CHIP:DMG: AttributePath = + [1635668330.265596][3951:3956] CHIP:DMG: { + [1635668330.265644][3951:3956] CHIP:DMG: NodeId = 0x1, + [1635668330.265699][3951:3956] CHIP:DMG: EndpointId = 0x0, + [1635668330.265754][3951:3956] CHIP:DMG: ClusterId = 0x1d, + [1635668330.265808][3951:3956] CHIP:DMG: FieldTag = 0x0000_0003, + [1635668330.265854][3951:3956] CHIP:DMG: } [1635668330.265903][3951:3956] CHIP:DMG: - [1635668330.265953][3951:3956] CHIP:DMG: Data = [ - [1635668330.266003][3951:3956] CHIP:DMG: 1, 2, - [1635668330.266052][3951:3956] CHIP:DMG: ], - [1635668330.266099][3951:3956] CHIP:DMG: DataElementVersion = 0x0, - [1635668330.266142][3951:3956] CHIP:DMG: }, + [1635668330.265953][3951:3956] CHIP:DMG: Data = [ + [1635668330.266003][3951:3956] CHIP:DMG: 1, 2, + [1635668330.266052][3951:3956] CHIP:DMG: ], + [1635668330.266099][3951:3956] CHIP:DMG: DataElementVersion = 0x0, + [1635668330.266142][3951:3956] CHIP:DMG: }, [1635668330.266192][3951:3956] CHIP:DMG: - [1635668330.266229][3951:3956] CHIP:DMG: ], + [1635668330.266229][3951:3956] CHIP:DMG: ], [1635668330.266272][3951:3956] CHIP:DMG: [1635668330.266306][3951:3956] CHIP:DMG: } [1635668330.266412][3951:3956] CHIP:ZCL: ReadAttributesResponse: - [1635668330.266446][3951:3956] CHIP:ZCL: ClusterId: 0x0000_001D - [1635668330.266481][3951:3956] CHIP:ZCL: attributeId: 0x0000_0003 - [1635668330.266514][3951:3956] CHIP:ZCL: status: Success (0x0000) - [1635668330.266546][3951:3956] CHIP:ZCL: attribute TLV Type: 0x16 - [1635668330.266586][3951:3956] CHIP:TOO: - OnDescriptorPartsListListAttributeResponse: 2 entries + [1635668330.266446][3951:3956] CHIP:ZCL: ClusterId: 0x0000_001D + [1635668330.266481][3951:3956] CHIP:ZCL: attributeId: 0x0000_0003 + [1635668330.266514][3951:3956] CHIP:ZCL: status: Success (0x0000) + [1635668330.266546][3951:3956] CHIP:ZCL: attribute TLV Type: 0x16 + [1635668330.266586][3951:3956] CHIP:TOO: OnDescriptorPartsListListAttributeResponse: 2 entries [1635668330.266622][3951:3956] CHIP:TOO: ENDPOINT_NO[1]: 1 [1635668330.266656][3951:3956] CHIP:TOO: ENDPOINT_NO[2]: 2 - [1635668330.266741][3951:3956] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 35287i" + [1635668330.266741][3951:3956] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 35287i disabled: true - label: "Read Descriptor cluster of all other endpoints listed in the PartsList attribute in the Descriptor cluster of endpoint 0" - verification: "read EP . Descriptor . Partslist" + verification: | + read EP . Descriptor . Partslist disabled: true - label: "Re-add the bridged device which was removed in the previous step (using a method indicated by the manufacturer)" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the PartsList attribute in the Descriptor cluster on endpoint 0" - verification: - "./chip-tool descriptor read parts-list 1 0 CHIP:DMG: ReportData = + verification: | + ./chip-tool descriptor read parts-list 1 0 + + CHIP:DMG: ReportData = [1635668360.031302][3959:3964] CHIP:DMG: { - [1635668360.031334][3959:3964] CHIP:DMG: AttributeDataList = - [1635668360.031373][3959:3964] CHIP:DMG: [ - [1635668360.031408][3959:3964] CHIP:DMG: AttributeDataElement = - [1635668360.031458][3959:3964] CHIP:DMG: { - [1635668360.031497][3959:3964] CHIP:DMG: AttributePath = - [1635668360.031541][3959:3964] CHIP:DMG: { - [1635668360.031587][3959:3964] CHIP:DMG: NodeId = 0x1, - [1635668360.031638][3959:3964] CHIP:DMG: EndpointId = 0x0, - [1635668360.031687][3959:3964] CHIP:DMG: ClusterId = 0x1d, - [1635668360.031742][3959:3964] CHIP:DMG: FieldTag = 0x0000_0003, - [1635668360.031789][3959:3964] CHIP:DMG: } + [1635668360.031334][3959:3964] CHIP:DMG: AttributeDataList = + [1635668360.031373][3959:3964] CHIP:DMG: [ + [1635668360.031408][3959:3964] CHIP:DMG: AttributeDataElement = + [1635668360.031458][3959:3964] CHIP:DMG: { + [1635668360.031497][3959:3964] CHIP:DMG: AttributePath = + [1635668360.031541][3959:3964] CHIP:DMG: { + [1635668360.031587][3959:3964] CHIP:DMG: NodeId = 0x1, + [1635668360.031638][3959:3964] CHIP:DMG: EndpointId = 0x0, + [1635668360.031687][3959:3964] CHIP:DMG: ClusterId = 0x1d, + [1635668360.031742][3959:3964] CHIP:DMG: FieldTag = 0x0000_0003, + [1635668360.031789][3959:3964] CHIP:DMG: } [1635668360.031839][3959:3964] CHIP:DMG: - [1635668360.031887][3959:3964] CHIP:DMG: Data = [ - [1635668360.031937][3959:3964] CHIP:DMG: 1, 2, - [1635668360.031987][3959:3964] CHIP:DMG: ], - [1635668360.032032][3959:3964] CHIP:DMG: DataElementVersion = 0x0, - [1635668360.032075][3959:3964] CHIP:DMG: }, + [1635668360.031887][3959:3964] CHIP:DMG: Data = [ + [1635668360.031937][3959:3964] CHIP:DMG: 1, 2, + [1635668360.031987][3959:3964] CHIP:DMG: ], + [1635668360.032032][3959:3964] CHIP:DMG: DataElementVersion = 0x0, + [1635668360.032075][3959:3964] CHIP:DMG: }, [1635668360.032123][3959:3964] CHIP:DMG: - [1635668360.032159][3959:3964] CHIP:DMG: ], + [1635668360.032159][3959:3964] CHIP:DMG: ], [1635668360.032203][3959:3964] CHIP:DMG: [1635668360.032236][3959:3964] CHIP:DMG: } [1635668360.032342][3959:3964] CHIP:ZCL: ReadAttributesResponse: - [1635668360.032375][3959:3964] CHIP:ZCL: ClusterId: 0x0000_001D - [1635668360.032408][3959:3964] CHIP:ZCL: attributeId: 0x0000_0003 - [1635668360.032439][3959:3964] CHIP:ZCL: status: Success (0x0000) - [1635668360.032469][3959:3964] CHIP:ZCL: attribute TLV Type: 0x16 - [1635668360.032508][3959:3964] CHIP:TOO: - OnDescriptorPartsListListAttributeResponse: 2 entries + [1635668360.032375][3959:3964] CHIP:ZCL: ClusterId: 0x0000_001D + [1635668360.032408][3959:3964] CHIP:ZCL: attributeId: 0x0000_0003 + [1635668360.032439][3959:3964] CHIP:ZCL: status: Success (0x0000) + [1635668360.032469][3959:3964] CHIP:ZCL: attribute TLV Type: 0x16 + [1635668360.032508][3959:3964] CHIP:TOO: OnDescriptorPartsListListAttributeResponse: 2 entries [1635668360.032542][3959:3964] CHIP:TOO: ENDPOINT_NO[1]: 1 [1635668360.032575][3959:3964] CHIP:TOO: ENDPOINT_NO[2]: 2 - [1635668360.032686][3959:3964] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 8102i" + [1635668360.032686][3959:3964] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 8102i disabled: true - label: "Read Descriptor cluster of all other endpoints listed in the PartsList attribute in the Descriptor cluster of endpoint 0" - verification: "read EP . Descriptor . Partslist" + verification: | + read EP . Descriptor . Partslist disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BR_3.yaml b/src/app/tests/suites/certification/Test_TC_BR_3.yaml index cb250388fb2dd2..525ec001136acb 100644 --- a/src/app/tests/suites/certification/Test_TC_BR_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_BR_3.yaml @@ -23,19 +23,22 @@ tests: - label: "Get the name of a bridged device: Read the NodeLabel attribute of the Bridged Device Basic Information cluster on the applicable endpoint" - verification: "read EP n . Bridged Device Basic Information . NodeLabel" + verification: | + read EP n . Bridged Device Basic Information . NodeLabel disabled: true - label: "Using manufacturer provided means (i.e. NOT using Matter protocol), update the name of this bridged device" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the NodeLabel attribute of the Bridged Device Basic Information cluster on the same endpoint as in 1a" - verification: "read EP n . Bridged Device Basic Information . NodeLabel" + verification: | + read EP n . Bridged Device Basic Information . NodeLabel disabled: true - label: @@ -43,19 +46,23 @@ tests: non-Matter interface (example: bridge manufacturer provides an app which can change the state of the bridged devices, e.g. change a lights brightness)" - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the state (e.g. on/off, brightness) of that bridged device" - verification: "read device state" + verification: | + read device state disabled: true - label: "Change the state (e.g. on/off, brightness) of that bridged device with this 'other' interface." - verification: "no Matter messages for this step" + verification: | + no Matter messages for this step disabled: true - label: "Read the state of that bridged device again (as in 2b)" - verification: "read device state" + verification: | + read device state disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_1_10.yaml b/src/app/tests/suites/certification/Test_TC_DD_1_10.yaml index 25f6e6943beebf..2498c8d41437a9 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_1_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_1_10.yaml @@ -23,27 +23,27 @@ config: tests: - label: "Power up the Device and put the Device in pairing mode" - verification: - "sudo ./chip-all-clusters-app [1646286638.375844][11651:11651] - CHIP:DL: Device Configuration: [1646286638.375960][11651:11651] - CHIP:DL: Serial Number: TEST_SN [1646286638.376016][11651:11651] - CHIP:DL: Vendor Id: 65521 (0xFFF1) [1646286638.376066][11651:11651] - CHIP:DL: Product Id: 32769 (0x8001) [1646286638.376153][11651:11651] - CHIP:DL: Hardware Version: 0 [1646286638.377458][11651:11651] CHIP:DL: - Setup Pin Code: 20202021 [1646286638.377541][11651:11651] CHIP:DL: - Setup Discriminator: 3840 (0xF00) [1646286638.377611][11651:11651] - CHIP:DL: Manufacturing Date: (not set) - [1646286638.377664][11651:11651] CHIP:DL: Device Type: 65535 (0xFFFF) - [1646286638.377771][11651:11651] CHIP:SVR: SetupQRCode: - [MT:-24J042C00KA0648G00] [1646286638.377865][11651:11651] CHIP:SVR: - Copy/paste the below URL in a browser to see the QR Code: - [1646286638.377915][11651:11651] CHIP:SVR: - https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 - [1646286638.377986][11651:11651] CHIP:SVR: Manual pairing code: - [34970112332] [1646286638.378089][11651:11651] CHIP:SVR: Long manual - pairing code: [749701123365521327694]" + verification: | + sudo ./chip-all-clusters-app + + + [1646286638.375844][11651:11651] CHIP:DL: Device Configuration: + [1646286638.375960][11651:11651] CHIP:DL: Serial Number: TEST_SN + [1646286638.376016][11651:11651] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1646286638.376066][11651:11651] CHIP:DL: Product Id: 32769 (0x8001) + [1646286638.376153][11651:11651] CHIP:DL: Hardware Version: 0 + [1646286638.377458][11651:11651] CHIP:DL: Setup Pin Code: 20202021 + [1646286638.377541][11651:11651] CHIP:DL: Setup Discriminator: 3840 (0xF00) + [1646286638.377611][11651:11651] CHIP:DL: Manufacturing Date: (not set) + [1646286638.377664][11651:11651] CHIP:DL: Device Type: 65535 (0xFFFF) + [1646286638.377771][11651:11651] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1646286638.377865][11651:11651] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1646286638.377915][11651:11651] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1646286638.377986][11651:11651] CHIP:SVR: Manual pairing code: [34970112332] + [1646286638.378089][11651:11651] CHIP:SVR: Long manual pairing code: [749701123365521327694] disabled: true - label: "Bring the DUT close to the NFC code on the Device" - verification: "Vendor specific field testcase" + verification: | + Vendor specific field testcase 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 79b54ceb754577..f66a30d0887951 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 @@ -25,79 +25,78 @@ tests: - label: "If (PICS_BLE) TH starts matter announcement procedure using BLE transport" - verification: - "1. User should manually verify that the TH is sending BLE - advertisements." + verification: | + 1. User should manually verify that the TH is sending BLE advertisements. disabled: true - label: "If (PICS_BLE) DUT starts BLE scan across all three advertising channels with a sufficient dwell time, interval, and overall duration of scan" - verification: - "1. Using the DUT's means of discovering BLE advertisements, scan for - the TH that is sending them out from step 1a" + verification: | + 1. Using the DUT's means of discovering BLE advertisements, scan for the TH that is sending them out from step 1a disabled: true - label: "If (PICS_BLE) DUT starts scan in background using BLE transport" - verification: - "1. Using the DUT's means of discovering BLE advertisements, start - scan before TH begins sending BLE advertisements" + verification: | + 1. Using the DUT's means of discovering BLE advertisements, start scan before TH begins sending BLE advertisements disabled: true - label: "If (PICS_BLE) TH starts matter announcement using BLE transport" - verification: - "1. User should manually verify that the TH is sending BLE - advertisements." + verification: | + 1. User should manually verify that the TH is sending BLE advertisements. disabled: true - label: "If (PICS_WIFI) TH starts SoftAP and begin matter announcement procedure" - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow or SoftAP as part of its commissioning flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow or SoftAP as part of its commissioning flow disabled: true - label: "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)" - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow or SoftAP as part of its commissioning flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow or SoftAP as part of its commissioning flow disabled: true - label: "If (PICS_WIFI) DUT scans using Wi-Fi in background" - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow or SoftAP as part of its commissioning flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow or SoftAP as part of its commissioning flow disabled: true - label: "If (PICS_WIFI) TH starts SoftAP and begin matter announcement procedure" - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow or SoftAP as part of its commissioning flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow or SoftAP as part of its commissioning flow disabled: true - label: "If (PICS_ETH) DUT performs service discovery using DNS-SD" - verification: - "1. Verify DUT controller is able to scan and find the TH device over - ethernet 16-MacBook-Pro:connectedhomeip liam$ - ./examples/chip-tool/out/debug/chip-tool discover commissionables ... - [1641926409480] [25793:1104778] CHIP: [DL] Mdns: OnGetAddrInfo - hostname:16-MacBook-Pro.local. [1641926409480] [25793:1104778] CHIP: - [DIS] Device Name: Test Bulb [1641926409480] [25793:1104778] CHIP: - [DIS] Vendor ID: 9050 [1641926409480] [25793:1104778] CHIP: [DIS] - Product ID: 65279 [1641926409480] [25793:1104778] CHIP: [DIS] Device - Type: 257 [1641926409480] [25793:1104778] CHIP: [DIS] Long - Discriminator: 3840 [1641926409480] [25793:1104778] CHIP: [DIS] - Pairing Hint: 33 [1641926409480] [25793:1104778] CHIP: [DIS] Hostname: - 16-MacBook-Pro.l [1641926409480] [25793:1104778] CHIP: [DIS] Instance - Name: 19B74882F1637F71 [1641926409480] [25793:1104778] CHIP: [DIS] IP - Address #1: fe80::103a:8edd:4b33:46a [1641926409480] [25793:1104778] - CHIP: [DIS] Port: 5540 [1641926409480] [25793:1104778] CHIP: [DIS] - Commissioning Mode: 1" + verification: | + 1. Verify DUT controller is able to scan and find the TH device over ethernet + 16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool discover commissionables + ... + [1641926409480] [25793:1104778] CHIP: [DL] Mdns: OnGetAddrInfo hostname:16-MacBook-Pro.local. + [1641926409480] [25793:1104778] CHIP: [DIS] Device Name: Test Bulb + [1641926409480] [25793:1104778] CHIP: [DIS] Vendor ID: 9050 + [1641926409480] [25793:1104778] CHIP: [DIS] Product ID: 65279 + [1641926409480] [25793:1104778] CHIP: [DIS] Device Type: 257 + [1641926409480] [25793:1104778] CHIP: [DIS] Long Discriminator: 3840 + [1641926409480] [25793:1104778] CHIP: [DIS] Pairing Hint: 33 + [1641926409480] [25793:1104778] CHIP: [DIS] Hostname: 16-MacBook-Pro.l + [1641926409480] [25793:1104778] CHIP: [DIS] Instance Name: 19B74882F1637F71 + [1641926409480] [25793:1104778] CHIP: [DIS] IP Address #1: fe80::103a:8edd:4b33:46a + [1641926409480] [25793:1104778] CHIP: [DIS] Port: 5540 + [1641926409480] [25793:1104778] CHIP: [DIS] Commissioning Mode: 1 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 ad84ab3f70bbcc..5b55d032945e77 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 @@ -23,197 +23,273 @@ tests: - label: "Commissioner and Commissionee discover each other and connect via the discovery mode applicable for the DUT." - verification: - "On DUT: sudo ./chip-all-clusters-app On Controller: ./chip-tool - discover commissionables 1. Connect the device to Ethernet 2. Disover - the device using CHIP Tool . ./chip-tool discover commissionables 3. - connect -ip , 4. - Once device is provisioned, read 'Product Name' attribute from the - Basic cluster. Example:./chip-tool basic read product-name 1 0 - Reference : below Full log for the above commands (click on this cell - if you like to see complete log) controller > ./chip-tool discover - commissionables Waiting for device responses... CHIP:CTL: Generating - ICAC CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== - CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> CHIP:DL: AUDIT: * buf1: - 3BE3E264C0A0A053248E93609D22044A CHIP:DL: AUDIT: * buf2: - E69C8767AD6B60907AD3633E774F38EB CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: - 0x16315893 CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END - ==== CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/reboot-count = 23 (0x17) 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:IN: UDP::Init bind&listen port=5541 CHIP:IN: - UDP::Init bound to port=5541 CHIP:IN: UDP::Init bind&listen port=5541 - CHIP:IN: UDP::Init bound to port=5541 CHIP:IN: TransportMgr - initialized CHIP:DIS: Init fabric pairing table with server storage + verification: | + On DUT: sudo ./chip-all-clusters-app + + + On Controller: ./chip-tool discover commissionables + + 1. Connect the device to Ethernet + 2. Disover the device using CHIP Tool . ./chip-tool discover commissionables + 3. connect -ip , + 4. Once device is provisioned, read 'Product Name' attribute from the Basic cluster. Example:./chip-tool basic read product-name 1 0 + + Reference : below Full log for the above commands (click on this cell if you like to see complete log) + + + controller > ./chip-tool discover commissionables + Waiting for device responses... + CHIP:CTL: Generating ICAC + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== + CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> + CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> + CHIP:DL: AUDIT: * buf1: 3BE3E264C0A0A053248E93609D22044A + CHIP:DL: AUDIT: * buf2: E69C8767AD6B60907AD3633E774F38EB + CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: 0x16315893 + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== + CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/reboot-count = 23 (0x17) + 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:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: TransportMgr initialized + CHIP:DIS: Init fabric pairing table with server storage CHIP:DL: writing settings to file (/tmp/chip_counters.ini-zgCtZd) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) CHIP:CTL: System - State Initialized... CHIP:DL: MDNS failed to join multicast group on - veth5731933 for address type IPv4: ../th CHIP:DL: MDNS failed to join - multicast group on vethbf7bfa6 for address type IPv4: ../th CHIP:DL: - MDNS failed to join multicast group on vethcf434e5 for address type - IPv4: ../th CHIP:ZCL: Using ZAP configuration... CHIP:DIS: Verifying - the received credentials CHIP:IN: Generating compressed fabric ID - using uncompressed fabric ID 0x0000000000000000 CHIP:IN: 0x04, 0x66, - 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, - 0x6e, 0x65, 0x46, 0xdc, CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, - 0xd1, 0xb7, CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, - CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, CHIP:IN: - 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, CHIP:IN: 0x0e, 0x9b, - 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, - 0x4f, 0x05, 0x14, 0x99, CHIP:IN: 0x22, CHIP:IN: Generated compressed - fabric ID CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, - CHIP:DIS: Added new fabric at index: 1, Initialized: 1 CHIP:DIS: - Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: - 0x000000000001B669 CHIP:CTL: Joined the fabric at index 1. Compressed - fabric ID is: 0x4A531E5206ED06DA CHIP:DL: CHIP task running CHIP:DIS: - Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA - CHIP:DIS: Port: 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: - Vendor ID: 9050 CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning - Mode 1 CHIP:DIS: Device Type 0 CHIP:DIS: Device Name CHIP:DIS: - Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing - Instruction CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 - controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 - 192.168.1.12 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 ,," + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) + CHIP:CTL: System State Initialized... + CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../th + CHIP:ZCL: Using ZAP configuration... + CHIP:DIS: Verifying the received credentials + CHIP:IN: Generating compressed fabric ID using uncompressed fabric ID 0x0000000000000000 + CHIP:IN: 0x04, 0x66, 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, + CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, 0x6e, 0x65, 0x46, 0xdc, + CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, 0xd1, 0xb7, + CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, + CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, + CHIP:IN: 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, + CHIP:IN: 0x0e, 0x9b, 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, + CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, 0x4f, 0x05, 0x14, 0x99, + CHIP:IN: 0x22, + CHIP:IN: Generated compressed fabric ID + CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, + CHIP:DIS: Added new fabric at index: 1, Initialized: 1 + CHIP:DIS: Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: 0x000000000001B669 + CHIP:CTL: Joined the fabric at index 1. Compressed fabric ID is: 0x4A531E5206ED06DA + CHIP:DL: CHIP task running + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + + + controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 192.168.1.12 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 + + ,, disabled: true - label: "Establish encryption keys with Password Authenticated Session Establishment on the commissioning channel" - verification: - "Verify that the responder receives the PBKDFParamRequest message" + verification: | + Verify that the responder receives the PBKDFParamRequest message disabled: true - label: "Commissioner arms Fail-safe timer on the Commissionee using ArmFailSafe command" - verification: "Verify you get Received ArmFailSafe response on TH" + verification: | + Verify you get Received ArmFailSafe response on TH disabled: true - label: "Commissioner SHALL configure at the Commissionee UTC time, timezone, DST offset, and regulatory information at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner establishes the authenticity of the Commissionee as a certified CHIP device." - verification: "" + verification: | + disabled: true - label: "Commissioner configures Fabric information using SetFabric command." - verification: "" + verification: | + disabled: true - label: "Commissioner requests operational CSR from Commissionee with OperationalCSRRequest command" - verification: "" + verification: | + disabled: true - label: "Commissioner generates or otherwise obtains an Operational Certificate containing Operational ID in response OperationalCSRRequest command using ecosystem-specific means" - verification: "" + verification: | + disabled: true - label: "Commissioner configures operational credentials" - verification: "" + verification: | + disabled: true - label: "Commissioner configures ACL." - verification: "" + verification: | + disabled: true - label: "Commissioner configures the operational network at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner triggers the Commissionee to connect to the operational network" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee discover each other on the operational network using operational discovery" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee establish encryption keys with CASE" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee perform commissioning complete message exchange using CommissioningComplete command and CommissioningCompleteResponse command" - verification: "" + verification: | + disabled: true - label: "Same steps as 1.a-1.o. Force Fail any step between 1.a and 1.j." - verification: "" + verification: | + disabled: true - label: "Same steps as 1.a. Force Fail any step between 1.k and 1.o" - verification: "" + verification: | + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_10.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_10.yaml index b946a4c39aa562..72563f5155ed46 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_10.yaml @@ -23,37 +23,39 @@ tests: - label: "DUT receives Onboarding Payload from the TH with Custom Flow bits set to value 2" - verification: - "1. Parse the TH Onboarding Payload using the DUT commissioner Example - using chip-too as a DUTl: 16-MacBook-Pro:connectedhomeip liam$ - ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload - MT:YNJV7NMF00KA0648G00 [1641844121253] [18592:788760] CHIP: [SPL] - Parsing base38Representation: MT:YNJV7NMF00KA0648G00 [1641844121254] - [18592:788760] CHIP: [SPL] CommissioningFlow: 2 [1641844121254] - [18592:788760] CHIP: [SPL] VendorID: 9050 [1641844121254] - [18592:788760] CHIP: [SPL] Version: 0 [1641844121254] [18592:788760] - CHIP: [SPL] ProductID: 65279 [1641844121254] [18592:788760] CHIP: - [SPL] Discriminator: 3840 [1641844121254] [18592:788760] CHIP: [SPL] - SetUpPINCode: 20202021 [1641844121254] [18592:788760] CHIP: [SPL] - RendezvousInformation: 2 2. Verify that the Commissioning Flow is set - to 2 (Custom Flow)" + verification: | + 1. Parse the TH Onboarding Payload using the DUT commissioner + + Example using chip-too as a DUTl: + 16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload MT:YNJV7NMF00KA0648G00 + [1641844121253] [18592:788760] CHIP: [SPL] Parsing base38Representation: MT:YNJV7NMF00KA0648G00 + [1641844121254] [18592:788760] CHIP: [SPL] CommissioningFlow: 2 + [1641844121254] [18592:788760] CHIP: [SPL] VendorID: 9050 + [1641844121254] [18592:788760] CHIP: [SPL] Version: 0 + [1641844121254] [18592:788760] CHIP: [SPL] ProductID: 65279 + [1641844121254] [18592:788760] CHIP: [SPL] Discriminator: 3840 + [1641844121254] [18592:788760] CHIP: [SPL] SetUpPINCode: 20202021 + [1641844121254] [18592:788760] CHIP: [SPL] RendezvousInformation: 2 + + 2. Verify that the Commissioning Flow is set to 2 (Custom Flow) disabled: true - label: "DUT fetches commissioning data from DCL using VID and PID from Onboarding Payload" - verification: "1. Observe the DCL on the DUT from the TH" + verification: | + 1. Observe the DCL on the DUT from the TH disabled: true - label: "Using the instructions located at the CommissioningCustomFlowURL from the DCL, DUT guides the user in next steps to prepare the commissionee (TH) for commisssioning" - verification: - "1. Follow instructions for commissioning using the URL contained in - the DCL" + verification: | + 1. Follow instructions for commissioning using the URL contained in the DCL disabled: true - label: "DUT commissions TH" - verification: "1. Verify commissioning was successful" + verification: | + 1. Verify commissioning was successful disabled: true 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 fd4feb0004932a..7f8c7b20de772a 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 @@ -23,112 +23,115 @@ tests: - label: "Version: Use a QR code from a commissionee that has their QR code Version bit string set to 000" - verification: - "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 - -cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-25 23:28:06 matter-te-6 - chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-25 - 23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:-24J042C00KA0648G00]" + verification: | + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 0 -dc 2 -dv 3840 -ps 20202021 + 2022-02-25 23:28:06 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-25 23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J042C00KA0648G00] disabled: true - label: "Scan the QR code from the previous step using the DUT. Follow any manufacturer-specific steps needed for the Commissioner/Commissionee to complete the commissioning process." - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1645836234938] - [9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0 - Cluster=0x0000_0030 Command=0x0000_0005 [1645836234938] - [9239:26087760] CHIP: [CTL] Received CommissioningComplete response + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J042C00KA0648G00 + + ... + + [1645836234938] [9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1645836234938] [9239:26087760] CHIP: [CTL] Received CommissioningComplete response [1645836234938] [9239:26087760] CHIP: [CTL] Rendezvous cleanup - [1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning - completed with success Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... - [1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for - MessageCounter:9602810 on exchange: 9753r - [1645836235.102654][8174:8174] CHIP:IN: Prepared secure message - 0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId - (0, 1) on exchange 9753r with MessageCounter:12855769. - [1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg - 0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1) - at monotonic time: 25637371 msec [1645836235.102836][8174:8174] - CHIP:DMG: ICR moving to [CommandSen] [1645836235.102863][8174:8174] - CHIP:DMG: ICR moving to [AwaitingDe] [1645836235.102906][8174:8174] - CHIP:DL: HandlePlatformSpecificBLEEvent 32784 - [1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed - successfully" + [1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning completed with success + + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... + + [1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for MessageCounter:9602810 on exchange: 9753r + [1645836235.102654][8174:8174] CHIP:IN: Prepared secure message 0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId (0, 1) on exchange 9753r with MessageCounter:12855769. + [1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg 0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1) at monotonic time: 25637371 msec + [1645836235.102836][8174:8174] CHIP:DMG: ICR moving to [CommandSen] + [1645836235.102863][8174:8174] CHIP:DMG: ICR moving to [AwaitingDe] + [1645836235.102906][8174:8174] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed successfully disabled: true - label: "If (PICS_DT_THREAD), Standard Commissioning Flow: Use a QR code from a commissionee that has their Custom Flow bit set to 0 and supports BLE for its Discovery Capability." - verification: - "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 - -cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-25 23:28:06 matter-te-6 - chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-25 - 23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:-24J042C00KA0648G00]" + verification: | + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 0 -dc 2 -dv 3840 -ps 20202021 + 2022-02-25 23:28:06 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-25 23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J042C00KA0648G00] disabled: true - label: "If (PICS_DT_THREAD), Scan the QR code from the previous step using the DUT. Follow any steps needed for the Commissioner/Commissionee to complete the commissioning process using BLE" - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1645836234938] - [9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0 - Cluster=0x0000_0030 Command=0x0000_0005 [1645836234938] - [9239:26087760] CHIP: [CTL] Received CommissioningComplete response + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J042C00KA0648G00 + + ... + + [1645836234938] [9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1645836234938] [9239:26087760] CHIP: [CTL] Received CommissioningComplete response [1645836234938] [9239:26087760] CHIP: [CTL] Rendezvous cleanup - [1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning - completed with success Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... - [1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for - MessageCounter:9602810 on exchange: 9753r - [1645836235.102654][8174:8174] CHIP:IN: Prepared secure message - 0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId - (0, 1) on exchange 9753r with MessageCounter:12855769. - [1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg - 0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1) - at monotonic time: 25637371 msec [1645836235.102836][8174:8174] - CHIP:DMG: ICR moving to [CommandSen] [1645836235.102863][8174:8174] - CHIP:DMG: ICR moving to [AwaitingDe] [1645836235.102906][8174:8174] - CHIP:DL: HandlePlatformSpecificBLEEvent 32784 - [1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed - successfully" + [1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning completed with success + + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... + + [1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for MessageCounter:9602810 on exchange: 9753r + [1645836235.102654][8174:8174] CHIP:IN: Prepared secure message 0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId (0, 1) on exchange 9753r with MessageCounter:12855769. + [1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg 0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1) at monotonic time: 25637371 msec + [1645836235.102836][8174:8174] CHIP:DMG: ICR moving to [CommandSen] + [1645836235.102863][8174:8174] CHIP:DMG: ICR moving to [AwaitingDe] + [1645836235.102906][8174:8174] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed successfully disabled: true - label: "Standard Commissioning Flow: Use a QR code from a commissionee that has their Custom Flow bit set to 0 and supports IP Network for its Discovery Capability." - verification: - "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 - -cf 0 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:07:29 matter-te-6 - chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-26 - 03:07:29 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:-24J0AFN00KA0648G00]" + verification: | + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 0 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:07:29 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:07:29 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J0AFN00KA0648G00] disabled: true - label: "Scan the QR code from the previous step using the DUT. Follow any steps needed for the Commissioner/Commissionee to complete the commissioning process using IP Network" - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1646261423084] - [53218:29382487] CHIP: [CTL] Received CommissioningComplete response + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J042C00KA0648G00 + + ... + + [1646261423084] [53218:29382487] CHIP: [CTL] Received CommissioningComplete response [1646261423084] [53218:29382487] CHIP: [CTL] Rendezvous cleanup - [1646261423084] [53218:29382487] CHIP: [TOO] Device commissioning - completed with success Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... + [1646261423084] [53218:29382487] CHIP: [TOO] Device commissioning completed with success + + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... + [1646261423.249620][28366:28366] CHIP:DMG: ICR moving to [AwaitingDe] - [1646261423.249687][28366:28366] CHIP:DL: - HandlePlatformSpecificBLEEvent 32784 [1646261423.249738][28366:28366] - CHIP:SVR: Commissioning completed successfully" + [1646261423.249687][28366:28366] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1646261423.249738][28366:28366] CHIP:SVR: Commissioning completed successfully disabled: true - label: @@ -136,22 +139,24 @@ tests: that has their Custom Flow bit set to 1 and supports BLE for its Discovery Capability. Place the commissionee into commissioning mode according to the devices specified instructions in its pairing hint." - verification: - "BLOCKED chip-all-clusters-app does not currently support User-Intent - commissioning flow chip-device-ctrl > setup-payload generate -vr 0 -vi - 65521 -pi 32769 -cf 1 -dc 2 -dv 3840 -ps 20202021 2022-02-26 03:17:50 - matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] - 2022-02-26 03:17:50 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:-24J00ID00KA0648G00]" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support User-Intent commissioning flow + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 1 -dc 2 -dv 3840 -ps 20202021 + 2022-02-26 03:17:50 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:17:50 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J00ID00KA0648G00] disabled: true - label: "Scan the QR code from the previous step using the DUT. Follow any steps needed for the Commissioner/Commissionee to complete the commissioning process using BLE" - verification: - "BLOCKED chip-all-clusters-app does not currently support User-Intent - commissioning flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support User-Intent commissioning flow disabled: true - label: @@ -160,22 +165,24 @@ tests: its Discovery Capability. Place the commissionee into Commissioning Mode according to the devices specified instructions in its pairing hint." - verification: - "BLOCKED chip-all-clusters-app does not currently support User-Intent - commissioning flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support User-Intent commissioning flow disabled: true - label: "Scan the QR code from the previous step using the DUT. Follow any manufacturer-specific steps needed for the Commissioner/Commissionee to complete the commissioning process using IP Network" - verification: - "BLOCKED chip-all-clusters-app does not currently support User-Intent - commissioning flow chip-device-ctrl > setup-payload generate -vr 0 -vi - 65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:19:10 - matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] - 2022-02-26 03:19:10 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:-24J06VO00KA0648G00]" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support User-Intent commissioning flow + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:19:10 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:19:10 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J06VO00KA0648G00] disabled: true - label: @@ -184,13 +191,15 @@ tests: for its Discovery Capability. Place the commissionee into commissioning mode according to the devices specified instructions in the given URL." - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow chip-device-ctrl > setup-payload generate -vr 0 -vi - 65521 -pi 32769 -cf 2 -dc 2 -dv 3840 -ps 20202021 2022-02-26 03:20:27 - matter-te-6 chip.SPL[22108] INFO Manual pairing code: - [749701123365521327694] 2022-02-26 03:20:27 matter-te-6 - chip.SPL[22108] INFO SetupQRCode: [MT:-24J0YXE00KA0648G00]" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow + + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 2 -dc 2 -dv 3840 -ps 20202021 + 2022-02-26 03:20:27 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [749701123365521327694] + 2022-02-26 03:20:27 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J0YXE00KA0648G00] disabled: true - label: @@ -198,9 +207,10 @@ tests: the DUT. Follow any manufacturer-specific steps needed for the Commissioner/Commissionee to complete the commissioning process using BLE" - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow disabled: true - label: @@ -209,13 +219,16 @@ tests: Network for its Discovery Capability. Place the commissionee into commissioning mode according to the devices specified instructions in the given URL." - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow chip-device-ctrl > setup-payload generate -vr 0 -vi - 65521 -pi 32769 -cf 2 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:22:27 - matter-te-6 chip.SPL[22108] INFO Manual pairing code: - [749701123365521327694] 2022-02-26 03:22:27 matter-te-6 - chip.SPL[22108] INFO SetupQRCode: [MT:-24J029Q00KA0648G00]" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow + + + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 2 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:22:27 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [749701123365521327694] + 2022-02-26 03:22:27 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J029Q00KA0648G00] disabled: true - label: @@ -223,7 +236,8 @@ tests: the DUT. Follow any manufacturer-specific steps needed for the Commissioner/Commissionee to complete the commissioning process using IP Network" - verification: - "BLOCKED chip-all-clusters-app does not currently support Custom - Commissioning Flow" + verification: | + BLOCKED + + chip-all-clusters-app does not currently support Custom Commissioning Flow 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 c39e3bce4572f5..2aba847d45948a 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 @@ -23,45 +23,46 @@ config: tests: - label: "Locate and scan the Commissionees QR code using DUT" - verification: - "Device TH: ./out/all-clusters-app/chip-all-clusters-app + verification: | + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ...[1645845935.798806][8925:8925] CHIP:DL: Device Configuration: - [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN - [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) - [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 - [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 - [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 - (0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: - (not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 - (0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: - [MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR: - Copy/paste the below URL in a browser to see the QR Code: - [1645845935.799164][8925:8925] CHIP:SVR: - https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 - [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: - [34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual - pairing code: [749701123365521327694]" + [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN + [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) + [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 + [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 + [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 (0xF00) + [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: (not set) + [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 (0xFFFF) + [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1645845935.799135][8925:8925] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1645845935.799164][8925:8925] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: [34970112332] + [1645845935.799236][8925:8925] CHIP:SVR: Long manual pairing code: [749701123365521327694] disabled: true - label: "Version String: Using the QR code from Step 1, generate a new QR code but substituting out the current Version String with an invalid - Version String (i.e. '001' or any non-zero 3-bit value)" - verification: - "chip-device-ctrl > setup-payload generate -vr 001 -vi 65521 -pi 32769 - -cf 0 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:40:59 matter-te-6 - chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-26 - 03:40:59 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:.24J0AFN00KA0648G00]" + Version String (i.e. ''001'' or any non-zero 3-bit value)" + verification: | + chip-device-ctrl > setup-payload generate -vr 001 -vi 65521 -pi 32769 -cf 0 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:40:59 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:40:59 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:.24J0AFN00KA0648G00] disabled: true - label: "Scan the QR code, generated in the previous step, using the DUT" - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing qrcode 1234 MT:.24J0AFN00KA0648G00 ... Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:.24J0AFN00KA0648G00 + ... + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: @@ -69,23 +70,25 @@ tests: substituting out the current VID/PID with an invalid VID/PID (i.e. add 1 to each of the VID and PID values so that they are different from the valid 16-bit values)" - verification: - "chip-device-ctrl > setup-payload generate -vr 0 -vi 65522 -pi 32770 - -cf 1 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:42:39 matter-te-6 - chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-26 - 03:42:39 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:86PS06VO00KA0648G00]" + verification: | + chip-device-ctrl > setup-payload generate -vr 0 -vi 65522 -pi 32770 -cf 1 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:42:39 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:42:39 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:86PS06VO00KA0648G00] disabled: true - label: "Scan the QR code, generated in the previous step, using the DUT" - verification: - "chip-tool does not prevent commissioning because of invalid VID/PID - values. This is handled after the commissioning process. This test - step is not valid and is addressed in PR#893 DUT Commissioner: sudo - ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 - MT:86PS06VO00KA0648G00 ... Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + chip-tool does not prevent commissioning because of invalid VID/PID values. This is handled after the commissioning process. + This test step is not valid and is addressed in PR#893 + + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:86PS06VO00KA0648G00 + ... + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: @@ -93,27 +96,33 @@ tests: generate a new QR code using all the same Onboarding Payload components except for the Custom Flow bit, set it to 0: Standard Commissioning Flow" - verification: - "BLOCKED chip-all-clusters-app BUG: chip-all-clusters-app advertises - over BLE when the discovery capability should not be advertising with - capabilites set to '0' chip-device-ctrl > setup-payload generate -vr 0 - -vi 65521 -pi 32769 -cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-26 - 03:50:13 matter-te-6 chip.SPL[22108] INFO Manual pairing code: - [34970112332] 2022-02-26 03:50:13 matter-te-6 chip.SPL[22108] INFO - SetupQRCode: [MT:-24J042C00KA0648G00]" + verification: | + BLOCKED + + chip-all-clusters-app BUG: chip-all-clusters-app advertises over BLE when the discovery capability should not be advertising with capabilites set to '0' + + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 0 -dc 2 -dv 3840 -ps 20202021 + 2022-02-26 03:50:13 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:50:13 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J042C00KA0648G00] disabled: true - label: "If (PICS_DT_STANDARD_COMM_FLOW), Scan the QR code, generated in the previous step, using the DUT" - verification: - "BLOCKED chip-all-clusters-app BUG: chip-all-clusters-app advertises - over BLE when the discovery capability should not be advertising with - capabilites set to '0' DUT Commissioner: sudo - ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 - MT:-24J042C00KA0648G00 ... Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + BLOCKED + + chip-all-clusters-app BUG: chip-all-clusters-app advertises over BLE when the discovery capability should not be advertising with capabilites set to '0' + + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J042C00KA0648G00 + ... + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: @@ -121,22 +130,24 @@ tests: generate a new QR code using all the same Onboarding Payload components except for the Custom Flow bit, set it to 1: User-Intent Commissioning Flow" - verification: - "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 - -cf 1 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:42:39 matter-te-6 - chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-26 - 03:42:39 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:-24J06VO00KA0648G00]" + verification: | + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:42:39 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:42:39 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J06VO00KA0648G00] disabled: true - label: "If (PICS_DT_USER_INTENT_COMM_FLOW), Scan the QR code, generated in the previous step, using the DUT" - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing qrcode 1234 MT:-24J06VO00KA0648G00 ... Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J06VO00KA0648G00 + ... + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: @@ -144,90 +155,105 @@ tests: generate a new QR code using all the same Onboarding Payload components except for the Custom Flow bit, set it to 2: Custom Commissioning Flow" - verification: - "chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 - -cf 2 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:46:32 matter-te-6 - chip.SPL[22108] INFO Manual pairing code: [749701123365521327694] - 2022-02-26 03:46:32 matter-te-6 chip.SPL[22108] INFO SetupQRCode: - [MT:-24J029Q00KA0648G00]" + verification: | + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 2 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:46:32 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [749701123365521327694] + 2022-02-26 03:46:32 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J029Q00KA0648G00] disabled: true - label: "If (PICS_DT_CUSTOM_COMM_FLOW), Scan the QR code, generated in the previous step, using the DUT" - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing qrcode 1234 MT:-24J029Q00KA0648G00 ... Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J029Q00KA0648G00 + ... + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: "Custom Flow - Reserved: Using the QR code from Step 1, generate a new QR code using all the same Onboarding Payload components except for the Custom Flow bit, set it to 3: Reserved" - verification: - "NEED SUPPORT: Unable to generate invalid QR code chip-device-ctrl > - setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 3 -dc 4 -dv 3840 - -ps 20202021 2022-02-26 03:48:59 matter-te-6 chip.SPL[22108] ERROR - Invalid Custom Flow Chip Stack Error 47" + verification: | + NEED SUPPORT: Unable to generate invalid QR code + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 3 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:48:59 matter-te-6 chip.SPL[22108] ERROR Invalid Custom Flow + Chip Stack Error 47 disabled: true - label: "Scan the QR code, generated in the previous step, using the DUT" - verification: - "NEED SUPPORT: Unable to generate invalid QR code in previous step" + verification: | + NEED SUPPORT: Unable to generate invalid QR code in previous step 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" - verification: - "BLOCKED chip-all-clusters-app BUG: chip-all-clusters-app advertises - over BLE when the discovery capability should not be advertising with - capabilites set to '0' chip-device-ctrl > setup-payload generate -vr 0 - -vi 65521 -pi 32769 -cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-26 - 03:50:13 matter-te-6 chip.SPL[22108] INFO Manual pairing code: - [34970112332] 2022-02-26 03:50:13 matter-te-6 chip.SPL[22108] INFO - SetupQRCode: [MT:-24J042C00KA0648G00]" + verification: | + BLOCKED + + chip-all-clusters-app BUG: chip-all-clusters-app advertises over BLE when the discovery capability should not be advertising with capabilites set to '0' + + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 0 -dc 2 -dv 3840 -ps 20202021 + 2022-02-26 03:50:13 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:50:13 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J042C00KA0648G00] disabled: true - label: "If (PICS_DT_BLE), Scan the QR code, generated in the previous step, using the DUT" - verification: - "BLOCKED chip-all-clusters-app BUG: chip-all-clusters-app advertises - over BLE when the discovery capability should not be advertising with - capabilites set to '0' DUT Commissioner: sudo - ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 - MT:-24J042C00KA0648G00 ... Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + BLOCKED + + chip-all-clusters-app BUG: chip-all-clusters-app advertises over BLE when the discovery capability should not be advertising with capabilites set to '0' + + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J042C00KA0648G00 + ... + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network 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" - verification: - "BLOCKED chip-all-clusters-app BUG: chip-all-clusters-app advertises - over IP when the discovery capability should not be advertising with - capabilites set to '0' chip-device-ctrl > setup-payload generate -vr 0 - -vi 65521 -pi 32769 -cf 0 -dc 4 -dv 3840 -ps 20202021 2022-02-26 - 03:58:28 matter-te-6 chip.SPL[22108] INFO Manual pairing code: - [34970112332] 2022-02-26 03:58:28 matter-te-6 chip.SPL[22108] INFO - SetupQRCode: [MT:-24J0AFN00KA0648G00]" + verification: | + BLOCKED + + chip-all-clusters-app BUG: chip-all-clusters-app advertises over IP when the discovery capability should not be advertising with capabilites set to '0' + + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 0 -dc 4 -dv 3840 -ps 20202021 + 2022-02-26 03:58:28 matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332] + 2022-02-26 03:58:28 matter-te-6 chip.SPL[22108] INFO SetupQRCode: [MT:-24J0AFN00KA0648G00] disabled: true - label: "If (PICS_DT_IP), Repeat Step 5.b" - verification: - "BLOCKED chip-all-clusters-app BUG: chip-all-clusters-app advertises - over IP when the discovery capability should not be advertising with - capabilites set to '0' DUT Commissioner: sudo - ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 - MT:-24J0AFN00KA0648G00 ... Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + BLOCKED + + chip-all-clusters-app BUG: chip-all-clusters-app advertises over IP when the discovery capability should not be advertising with capabilites set to '0' + + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 MT:-24J0AFN00KA0648G00 + ... + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: @@ -235,22 +261,26 @@ tests: generate a new QR code using all the same Onboarding Payload components except for the Discovery Capability bit string, set it to non-zeros" - verification: - "NEED SUPPORT Unable to generate fals QR codes with discovery - capability set to an invalid number (i.e. 8 or above for - chip-device-ctrl) chip-device-ctrl > setup-payload generate -vr 0 -vi - 65521 -pi 32769 -cf 0 -dc 8 -dv 3840 -ps 20202021 2022-03-05 00:31:33 - matter-te-6 chip.SPL[394173] INFO Manual pairing code: [34970112332] - Chip Stack Error 47" + verification: | + NEED SUPPORT + + Unable to generate fals QR codes with discovery capability set to an invalid number (i.e. 8 or above for chip-device-ctrl) + + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 0 -dc 8 -dv 3840 -ps 20202021 + 2022-03-05 00:31:33 matter-te-6 chip.SPL[394173] INFO Manual pairing code: [34970112332] + Chip Stack Error 47 disabled: true - label: "Scan the QR code, generated in the previous step, using the DUT" - verification: - "NEED SUPPORT Unable to generate false QR codes with discovery - capability set to an invalid number (i.e. 8 or above for - chip-device-ctrl) Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + NEED SUPPORT + + Unable to generate false QR codes with discovery capability set to an invalid number (i.e. 8 or above for chip-device-ctrl) + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: @@ -261,47 +291,56 @@ tests: same Onboarding Payload components and one Passcode from the list: 00000000, 11111111, 22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888, 99999999, 12345678, 87654321" - verification: - "NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl - chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 - -cf 1 -dc 4 -dv 3840 -ps 00000000 2022-03-03 00:11:58 matter-te-6 - chip.SPL[22108] ERROR Failed encoding invalid payload Chip Stack Error - 47 00000000: 11111111: 22222222: 33333333: 44444444: 55555555: - 66666666: 77777777: 88888888: 99999999: 12345678: 87654321" + verification: | + NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl + chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 00000000 + 2022-03-03 00:11:58 matter-te-6 chip.SPL[22108] ERROR Failed encoding invalid payload + Chip Stack Error 47 + + 00000000: + 11111111: + 22222222: + 33333333: + 44444444: + 55555555: + 66666666: + 77777777: + 88888888: + 99999999: + 12345678: + 87654321 disabled: true - label: "Scan each of the generated QR codes from the previous step using DUT" - verification: - "NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl - in previous step" + verification: | + NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl in previous step disabled: true - label: "Prefix: Using the QR code from Step 1, generate a new QR code but substituting out the current Prefix with an invalid Prefix that is not - 'MT:' (i.e. Prefix='AB:')" - verification: "AB:-24J0W2T00KA0648G00" + ''MT:'' (i.e. Prefix=''AB:'')" + verification: | + AB:-24J0W2T00KA0648G00 disabled: true - label: "Scan the QR code, generated in the previous step, using the DUT" - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing qrcode 1234 AB:-24J0W2T00KA0648G00 ... [1646266501236] - [53666:29430483] CHIP: [IN] TransportMgr initialized [1646266501236] - [53666:29430485] CHIP: [DL] _OnPlatformEvent [1646266501236] - [53666:29430483] CHIP: [-] - ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49: - CHIP Error 0x00000013: Integrity check failed at - ../../commands/common/CHIPCommand.cpp:62 [1646266501236] - [53666:29430483] CHIP: [TOO] Run command failure: - ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49: - CHIP Error 0x00000013: Integrity check failed [1646266501243] - [53666:29430483] CHIP: [SPT] VerifyOrDie failure at - ../../third_party/connectedhomeip/src/lib/support/Pool.h:311: - Allocated() == 0 Abort trap: 6 Device TH: - ./out/all-clusters-app/chip-all-clusters-app ... DUT has not - commissioned the TH to the Matter network" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing qrcode 1234 AB:-24J0W2T00KA0648G00 + ... + [1646266501236] [53666:29430483] CHIP: [IN] TransportMgr initialized + [1646266501236] [53666:29430485] CHIP: [DL] _OnPlatformEvent + [1646266501236] [53666:29430483] CHIP: [-] ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49: CHIP Error 0x00000013: Integrity check failed at ../../commands/common/CHIPCommand.cpp:62 + [1646266501236] [53666:29430483] CHIP: [TOO] Run command failure: ../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49: CHIP Error 0x00000013: Integrity check failed + [1646266501243] [53666:29430483] CHIP: [SPT] VerifyOrDie failure at ../../third_party/connectedhomeip/src/lib/support/Pool.h:311: Allocated() == 0 + Abort trap: 6 + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + DUT has not commissioned the TH to the Matter network disabled: true - label: @@ -310,12 +349,11 @@ tests: length TLV according to the manufacturers specifications. (i.e. if the manufacturer specifies a TLV length=8, substitute in a TVL length=4, or any other TLV length not equal to 8)" - verification: - "NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl" + verification: | + NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl disabled: true - label: "Scan the QR code, generated in the previous step, using the DUT" - verification: - "NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl - in previous step" + verification: | + NEED SUPPORT: Unable to generate false QR codes with chip-device-ctrl in previous step 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 4e7df5518ff176..2977b7145f099f 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 @@ -13,7 +13,7 @@ # limitations under the License. name: - 7.3.13. [TC-DD-3.13] Commissioning Flow - Manual Pairing Code [DUT - + 7.3.13.[TC-DD-3.13] Commissioning Flow - Manual Pairing Code [DUT - Commissioner] config: @@ -26,25 +26,25 @@ tests: "If (PICS_11_MANUAL_PC), VERSION: Use an 11 digit Manual pairing code from a commissionee that has their Manual pairing code VERSION bit string set to 0" - verification: - "Device TH: ./out/all-clusters-app/chip-all-clusters-app ... + verification: | + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... [1645845935.798806][8925:8925] CHIP:DL: Device Configuration: - [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN - [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) - [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 - [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 - [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 - (0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: - (not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 - (0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: - [MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR: - Copy/paste the below URL in a browser to see the QR Code: - [1645845935.799164][8925:8925] CHIP:SVR: - https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 - [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: - [34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual - pairing code: [749701123365521327694]" + [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN + [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) + [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 + [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 + [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 (0xF00) + [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: (not set) + [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 (0xFFFF) + [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1645845935.799135][8925:8925] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1645845935.799164][8925:8925] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: [34970112332] + [1645845935.799236][8925:8925] CHIP:SVR: Long manual pairing code: [749701123365521327694] disabled: true - label: @@ -52,39 +52,42 @@ tests: 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." - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing manualcode 1234 34970112332 ... [1646267353060] - [53689:29437234] CHIP: [TOO] Device commissioning completed with - success Device TH: ./out/all-clusters-app/chip-all-clusters-app ... - [1646267353.273560][28656:28656] CHIP:DL: - HandlePlatformSpecificBLEEvent 32784 [1646267353.273586][28656:28656] - CHIP:SVR: Commissioning completed successfully" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing manualcode 1234 34970112332 + ... + [1646267353060] [53689:29437234] CHIP: [TOO] Device commissioning completed with success + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + [1646267353.273560][28656:28656] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1646267353.273586][28656:28656] CHIP:SVR: Commissioning completed successfully disabled: true - label: "If (PICS_21_MANUAL_PC), VERSION: Use a 21 digit Manual pairing code from a commissionee that has their Manual pairing code VERSION bit string set to 0" - verification: - "Device TH: ./out/all-clusters-app/chip-all-clusters-app ... + verification: | + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... [1645845935.798806][8925:8925] CHIP:DL: Device Configuration: - [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN - [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) - [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 - [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 - [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 - (0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: - (not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 - (0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: - [MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR: - Copy/paste the below URL in a browser to see the QR Code: - [1645845935.799164][8925:8925] CHIP:SVR: - https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 - [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: - [34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual - pairing code: [749701123365521327694]" + [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN + [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) + [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 + [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 + [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 (0xF00) + [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: (not set) + [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 (0xFFFF) + [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1645845935.799135][8925:8925] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1645845935.799164][8925:8925] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: [34970112332] + [1645845935.799236][8925:8925] CHIP:SVR: Long manual pairing code: [749701123365521327694] disabled: true - label: @@ -92,39 +95,42 @@ tests: 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." - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing manualcode 1234 34970112332 ... [1646267665776] - [53714:29441244] CHIP: [TOO] Device commissioning completed with - success Device TH: ./out/all-clusters-app/chip-all-clusters-app ... - [1646267665.929519][28709:28709] CHIP:DL: - HandlePlatformSpecificBLEEvent 32784 [1646267665.929545][28709:28709] - CHIP:SVR: Commissioning completed successfully" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing manualcode 1234 34970112332 + ... + [1646267665776] [53714:29441244] CHIP: [TOO] Device commissioning completed with success + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + [1646267665.929519][28709:28709] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1646267665.929545][28709:28709] CHIP:SVR: Commissioning completed successfully disabled: true - label: "If (PICS_11_MANUAL_PC), VID_PID_PRESENT: Use an 11 digit Manual pairing code from a commissionee that has their VID_PID_PRESENT bit string set to 0" - verification: - "Device TH: ./out/all-clusters-app/chip-all-clusters-app ... + verification: | + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... [1645845935.798806][8925:8925] CHIP:DL: Device Configuration: - [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN - [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) - [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 - [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 - [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 - (0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: - (not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 - (0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: - [MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR: - Copy/paste the below URL in a browser to see the QR Code: - [1645845935.799164][8925:8925] CHIP:SVR: - https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 - [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: - [34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual - pairing code: [749701123365521327694]" + [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN + [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) + [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 + [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 + [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 (0xF00) + [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: (not set) + [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 (0xFFFF) + [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1645845935.799135][8925:8925] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1645845935.799164][8925:8925] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: [34970112332] + [1645845935.799236][8925:8925] CHIP:SVR: Long manual pairing code: [749701123365521327694] disabled: true - label: @@ -132,39 +138,42 @@ tests: 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." - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing manualcode 1234 34970112332 ... [1646267353060] - [53689:29437234] CHIP: [TOO] Device commissioning completed with - success Device TH: ./out/all-clusters-app/chip-all-clusters-app ... - [1646267353.273560][28656:28656] CHIP:DL: - HandlePlatformSpecificBLEEvent 32784 [1646267353.273586][28656:28656] - CHIP:SVR: Commissioning completed successfully" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing manualcode 1234 34970112332 + ... + [1646267353060] [53689:29437234] CHIP: [TOO] Device commissioning completed with success + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + [1646267353.273560][28656:28656] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1646267353.273586][28656:28656] CHIP:SVR: Commissioning completed successfully disabled: true - label: "If (PICS_21_MANUAL_PC), VID_PID_PRESENT: Use a 21 digit Manual pairing code from a commissionee that has their VID_PID_PRESENT bit string set to 1" - verification: - "Device TH: ./out/all-clusters-app/chip-all-clusters-app ... + verification: | + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... [1645845935.798806][8925:8925] CHIP:DL: Device Configuration: - [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN - [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) - [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 - [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 - [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 - (0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: - (not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 - (0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: - [MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR: - Copy/paste the below URL in a browser to see the QR Code: - [1645845935.799164][8925:8925] CHIP:SVR: - https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 - [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: - [34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual - pairing code: [749701123365521327694]" + [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN + [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) + [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 + [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 + [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 (0xF00) + [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: (not set) + [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 (0xFFFF) + [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1645845935.799135][8925:8925] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1645845935.799164][8925:8925] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: [34970112332] + [1645845935.799236][8925:8925] CHIP:SVR: Long manual pairing code: [749701123365521327694] disabled: true - label: @@ -172,14 +181,17 @@ tests: 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." - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing manualcode 1234 34970112332 ... [1646267665776] - [53714:29441244] CHIP: [TOO] Device commissioning completed with - success Device TH: ./out/all-clusters-app/chip-all-clusters-app ... - [1646267665.929519][28709:28709] CHIP:DL: - HandlePlatformSpecificBLEEvent 32784 [1646267665.929545][28709:28709] - CHIP:SVR: Commissioning completed successfully" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing manualcode 1234 34970112332 + ... + [1646267665776] [53714:29441244] CHIP: [TOO] Device commissioning completed with success + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + [1646267665.929519][28709:28709] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1646267665.929545][28709:28709] CHIP:SVR: Commissioning completed successfully disabled: true - label: @@ -187,25 +199,25 @@ tests: Manual pairing code from a commissionee that has a valid VENDOR_ID (as defined in section 2.5.2. 'Vendor Identifier') and PRODUCT_ID (as defined in section 2.5.3. 'Product Identifier')" - verification: - "Device TH: ./out/all-clusters-app/chip-all-clusters-app ... + verification: | + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + + ... [1645845935.798806][8925:8925] CHIP:DL: Device Configuration: - [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN - [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) - [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) - [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 - [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 - [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 - (0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: - (not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 - (0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: - [MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR: - Copy/paste the below URL in a browser to see the QR Code: - [1645845935.799164][8925:8925] CHIP:SVR: - https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 - [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: - [34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual - pairing code: [749701123365521327694]" + [1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN + [1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1) + [1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001) + [1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0 + [1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021 + [1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840 (0xF00) + [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date: (not set) + [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535 (0xFFFF) + [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00] + [1645845935.799135][8925:8925] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code: + [1645845935.799164][8925:8925] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00 + [1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code: [34970112332] + [1645845935.799236][8925:8925] CHIP:SVR: Long manual pairing code: [749701123365521327694] disabled: true - label: @@ -213,12 +225,15 @@ tests: the DUT in any format supported by the DUT. Follow any steps needed for the Commissioner/Commissionee to complete the commissioning process." - verification: - "DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool - pairing manualcode 1234 34970112332 ... [1646267665776] - [53714:29441244] CHIP: [TOO] Device commissioning completed with - success Device TH: ./out/all-clusters-app/chip-all-clusters-app ... - [1646267665.929519][28709:28709] CHIP:DL: - HandlePlatformSpecificBLEEvent 32784 [1646267665.929545][28709:28709] - CHIP:SVR: Commissioning completed successfully" + verification: | + DUT Commissioner: + sudo ./examples/chip-tool/out/debug/chip-tool pairing manualcode 1234 34970112332 + ... + [1646267665776] [53714:29441244] CHIP: [TOO] Device commissioning completed with success + + Device TH: + ./out/all-clusters-app/chip-all-clusters-app + ... + [1646267665.929519][28709:28709] CHIP:DL: HandlePlatformSpecificBLEEvent 32784 + [1646267665.929545][28709:28709] CHIP:SVR: Commissioning completed successfully disabled: true 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 eec3485d68d1fd..706e6e70667931 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 @@ -23,192 +23,268 @@ tests: - label: "Commissioner and Commissionee discover each other and connect via the discovery mode applicable for the DUT." - verification: - "On DUT: sudo ./chip-all-clusters-app On Controller: ./chip-tool - discover commissionables 1. Connect the device to Ethernet 2. Disover - the device using CHIP Tool . ./chip-tool discover commissionables 3. - connect -ip , 4. - Once device is provisioned, read 'Product Name' attribute from the - Basic cluster. Example:./chip-tool basic read product-name 1 0 - Reference : below Full log for the above commands (click on this cell - if you like to see complete log) controller > ./chip-tool discover - commissionables Waiting for device responses... CHIP:CTL: Generating - ICAC CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== - CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> CHIP:DL: AUDIT: * buf1: - 3BE3E264C0A0A053248E93609D22044A CHIP:DL: AUDIT: * buf2: - E69C8767AD6B60907AD3633E774F38EB CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: - 0x16315893 CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END - ==== CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/reboot-count = 23 (0x17) 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:IN: UDP::Init bind&listen port=5541 CHIP:IN: - UDP::Init bound to port=5541 CHIP:IN: UDP::Init bind&listen port=5541 - CHIP:IN: UDP::Init bound to port=5541 CHIP:IN: TransportMgr - initialized CHIP:DIS: Init fabric pairing table with server storage + verification: | + On DUT: sudo ./chip-all-clusters-app + + + On Controller: ./chip-tool discover commissionables + + 1. Connect the device to Ethernet + 2. Disover the device using CHIP Tool . ./chip-tool discover commissionables + 3. connect -ip , + 4. Once device is provisioned, read 'Product Name' attribute from the Basic cluster. Example:./chip-tool basic read product-name 1 0 + + Reference : below Full log for the above commands (click on this cell if you like to see complete log) + + + controller > ./chip-tool discover commissionables + Waiting for device responses... + CHIP:CTL: Generating ICAC + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== + CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> + CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> + CHIP:DL: AUDIT: * buf1: 3BE3E264C0A0A053248E93609D22044A + CHIP:DL: AUDIT: * buf2: E69C8767AD6B60907AD3633E774F38EB + CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: 0x16315893 + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== + CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/reboot-count = 23 (0x17) + 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:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: TransportMgr initialized + CHIP:DIS: Init fabric pairing table with server storage CHIP:DL: writing settings to file (/tmp/chip_counters.ini-zgCtZd) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) CHIP:CTL: System - State Initialized... CHIP:DL: MDNS failed to join multicast group on - veth5731933 for address type IPv4: ../th CHIP:DL: MDNS failed to join - multicast group on vethbf7bfa6 for address type IPv4: ../th CHIP:DL: - MDNS failed to join multicast group on vethcf434e5 for address type - IPv4: ../th CHIP:ZCL: Using ZAP configuration... CHIP:DIS: Verifying - the received credentials CHIP:IN: Generating compressed fabric ID - using uncompressed fabric ID 0x0000000000000000 CHIP:IN: 0x04, 0x66, - 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, - 0x6e, 0x65, 0x46, 0xdc, CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, - 0xd1, 0xb7, CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, - CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, CHIP:IN: - 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, CHIP:IN: 0x0e, 0x9b, - 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, - 0x4f, 0x05, 0x14, 0x99, CHIP:IN: 0x22, CHIP:IN: Generated compressed - fabric ID CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, - CHIP:DIS: Added new fabric at index: 1, Initialized: 1 CHIP:DIS: - Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: - 0x000000000001B669 CHIP:CTL: Joined the fabric at index 1. Compressed - fabric ID is: 0x4A531E5206ED06DA CHIP:DL: CHIP task running CHIP:DIS: - Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA - CHIP:DIS: Port: 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: - Vendor ID: 9050 CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning - Mode 1 CHIP:DIS: Device Type 0 CHIP:DIS: Device Name CHIP:DIS: - Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing - Instruction CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 - controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 - 192.168.1.12 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 ,," + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) + CHIP:CTL: System State Initialized... + CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../th + CHIP:ZCL: Using ZAP configuration... + CHIP:DIS: Verifying the received credentials + CHIP:IN: Generating compressed fabric ID using uncompressed fabric ID 0x0000000000000000 + CHIP:IN: 0x04, 0x66, 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, + CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, 0x6e, 0x65, 0x46, 0xdc, + CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, 0xd1, 0xb7, + CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, + CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, + CHIP:IN: 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, + CHIP:IN: 0x0e, 0x9b, 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, + CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, 0x4f, 0x05, 0x14, 0x99, + CHIP:IN: 0x22, + CHIP:IN: Generated compressed fabric ID + CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, + CHIP:DIS: Added new fabric at index: 1, Initialized: 1 + CHIP:DIS: Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: 0x000000000001B669 + CHIP:CTL: Joined the fabric at index 1. Compressed fabric ID is: 0x4A531E5206ED06DA + CHIP:DL: CHIP task running + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + + + controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 192.168.1.12 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 + + ,, disabled: true - label: "Establish encryption keys with Password Authenticated Session Establishment on the commissioning channel" - verification: "" + verification: | + disabled: true - label: "Commissioner arms Fail-safe timer on the Commissionee using ArmFailSafe command" - verification: "" + verification: | + disabled: true - label: "Commissioner configures the Commissionee UTC time, timezone, DST offset, and regulatory information at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner establishes the authenticity of the Commissionee as a certified CHIP device." - verification: "" + verification: | + disabled: true - label: "Commissioner configures Fabric information using SetFabric command." - verification: "" + verification: | + disabled: true - label: "Commissioner requests operational CSR from Commissionee with OperationalCSRRequest command" - verification: "" + verification: | + disabled: true - label: "Commissioner generates or otherwise obtains an Operational Certificate containing Operational ID in response OperationalCSRRequest command using ecosystem-specific means" - verification: "" + verification: | + disabled: true - label: "Commissioner configures operational credentials" - verification: "" + verification: | + disabled: true - label: "Commissioner configures ACL." - verification: "" + verification: | + disabled: true - label: "Commissioner configures the operational network at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner triggers the Commissionee to connect to the operational network" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee discover each other on the operational network using operational discovery" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee establish encryption keys with CASE" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee perform commissioning complete message exchange using CommissioningComplete command and CommissioningCompleteResponse command" - verification: "" + verification: | + disabled: true - label: "Same steps as 1.a. Force exit any step in 1.." - verification: "" + verification: | + 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 0824f63c4dacc8..7bf7188941219e 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 @@ -23,188 +23,263 @@ tests: - label: "Commissioner and Commissionee discover each other and connect via the discovery mode applicable for the DUT." - verification: - "On DUT: sudo ./chip-all-clusters-app On Controller: ./chip-tool - discover commissionables 1. Connect the device to Ethernet 2. Disover - the device using CHIP Tool . ./chip-tool discover commissionables 3. - connect -ip , 4. - Once device is provisioned, read 'Product Name' attribute from the - Basic cluster. Example:./chip-tool basic read product-name 1 0 - Reference : below Full log for the above commands (click on this cell - if you like to see complete log) controller > ./chip-tool discover - commissionables Waiting for device responses... CHIP:CTL: Generating - ICAC CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== - CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> CHIP:DL: AUDIT: * buf1: - 3BE3E264C0A0A053248E93609D22044A CHIP:DL: AUDIT: * buf2: - E69C8767AD6B60907AD3633E774F38EB CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: - 0x16315893 CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END - ==== CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/reboot-count = 23 (0x17) 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:IN: UDP::Init bind&listen port=5541 CHIP:IN: - UDP::Init bound to port=5541 CHIP:IN: UDP::Init bind&listen port=5541 - CHIP:IN: UDP::Init bound to port=5541 CHIP:IN: TransportMgr - initialized CHIP:DIS: Init fabric pairing table with server storage + verification: | + On DUT: sudo ./chip-all-clusters-app + + + On Controller: ./chip-tool discover commissionables + + 1. Connect the device to Ethernet + 2. Disover the device using CHIP Tool . ./chip-tool discover commissionables + 3. connect -ip , + 4. Once device is provisioned, read 'Product Name' attribute from the Basic cluster. Example:./chip-tool basic read product-name 1 0 + + Reference : below Full log for the above commands (click on this cell if you like to see complete log) + + + controller > ./chip-tool discover commissionables + Waiting for device responses... + CHIP:CTL: Generating ICAC + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== + CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> + CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> + CHIP:DL: AUDIT: * buf1: 3BE3E264C0A0A053248E93609D22044A + CHIP:DL: AUDIT: * buf2: E69C8767AD6B60907AD3633E774F38EB + CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: 0x16315893 + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== + CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/reboot-count = 23 (0x17) + 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:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: TransportMgr initialized + CHIP:DIS: Init fabric pairing table with server storage CHIP:DL: writing settings to file (/tmp/chip_counters.ini-zgCtZd) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) CHIP:CTL: System - State Initialized... CHIP:DL: MDNS failed to join multicast group on - veth5731933 for address type IPv4: ../th CHIP:DL: MDNS failed to join - multicast group on vethbf7bfa6 for address type IPv4: ../th CHIP:DL: - MDNS failed to join multicast group on vethcf434e5 for address type - IPv4: ../th CHIP:ZCL: Using ZAP configuration... CHIP:DIS: Verifying - the received credentials CHIP:IN: Generating compressed fabric ID - using uncompressed fabric ID 0x0000000000000000 CHIP:IN: 0x04, 0x66, - 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, - 0x6e, 0x65, 0x46, 0xdc, CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, - 0xd1, 0xb7, CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, - CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, CHIP:IN: - 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, CHIP:IN: 0x0e, 0x9b, - 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, - 0x4f, 0x05, 0x14, 0x99, CHIP:IN: 0x22, CHIP:IN: Generated compressed - fabric ID CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, - CHIP:DIS: Added new fabric at index: 1, Initialized: 1 CHIP:DIS: - Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: - 0x000000000001B669 CHIP:CTL: Joined the fabric at index 1. Compressed - fabric ID is: 0x4A531E5206ED06DA CHIP:DL: CHIP task running CHIP:DIS: - Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA - CHIP:DIS: Port: 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: - Vendor ID: 9050 CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning - Mode 1 CHIP:DIS: Device Type 0 CHIP:DIS: Device Name CHIP:DIS: - Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing - Instruction CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 - controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 - 192.168.1.12 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 ,," + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) + CHIP:CTL: System State Initialized... + CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../th + CHIP:ZCL: Using ZAP configuration... + CHIP:DIS: Verifying the received credentials + CHIP:IN: Generating compressed fabric ID using uncompressed fabric ID 0x0000000000000000 + CHIP:IN: 0x04, 0x66, 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, + CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, 0x6e, 0x65, 0x46, 0xdc, + CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, 0xd1, 0xb7, + CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, + CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, + CHIP:IN: 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, + CHIP:IN: 0x0e, 0x9b, 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, + CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, 0x4f, 0x05, 0x14, 0x99, + CHIP:IN: 0x22, + CHIP:IN: Generated compressed fabric ID + CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, + CHIP:DIS: Added new fabric at index: 1, Initialized: 1 + CHIP:DIS: Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: 0x000000000001B669 + CHIP:CTL: Joined the fabric at index 1. Compressed fabric ID is: 0x4A531E5206ED06DA + CHIP:DL: CHIP task running + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + + + controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 192.168.1.12 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 + + ,, disabled: true - label: "Establish encryption keys with Password Authenticated Session Establishment on the commissioning channel" - verification: "" + verification: | + disabled: true - label: "Commissioner arms Fail-safe timer on the Commissionee using ArmFailSafe command" - verification: "" + verification: | + disabled: true - label: "Commissioner SHALL configure at the Commissionee UTC time, timezone, DST offset, and regulatory information at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner establishes the authenticity of the Commissionee as a certified CHIP device." - verification: "" + verification: | + disabled: true - label: "Commissioner configures Fabric information using SetFabric command." - verification: "" + verification: | + disabled: true - label: "Commissioner requests operational CSR from Commissionee with OperationalCSRRequest command" - verification: "" + verification: | + disabled: true - label: "Commissioner generates or otherwise obtains an Operational Certificate containing Operational ID in response OperationalCSRRequest command using ecosystem-specific means" - verification: "" + verification: | + disabled: true - label: "Commissioner configures operational credentials" - verification: "" + verification: | + disabled: true - label: "Commissioner configures ACL." - verification: "" + verification: | + disabled: true - label: "Commissioner configures the operational network at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner triggers the Commissionee to connect to the operational network" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee discover each other on the operational network using operational discovery" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee establish encryption keys with CASE" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee perform commissioning complete message exchange using CommissioningComplete command and CommissioningCompleteResponse command" - verification: "" + verification: | + disabled: true 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 ad805b701a0fad..2c7e540b7eb7bc 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 @@ -24,188 +24,263 @@ tests: - label: "Commissioner and Commissionee discover each other and connect via the discovery mode applicable for the DUT." - verification: - "On DUT: sudo ./chip-all-clusters-app On Controller: ./chip-tool - discover commissionables 1. Connect the device to Ethernet 2. Disover - the device using CHIP Tool . ./chip-tool discover commissionables 3. - connect -ip , 4. - Once device is provisioned, read 'Product Name' attribute from the - Basic cluster. Example:./chip-tool basic read product-name 1 0 - Reference : below Full log for the above commands (click on this cell - if you like to see complete log) controller > ./chip-tool discover - commissionables Waiting for device responses... CHIP:CTL: Generating - ICAC CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== - CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> CHIP:DL: AUDIT: * buf1: - 3BE3E264C0A0A053248E93609D22044A CHIP:DL: AUDIT: * buf2: - E69C8767AD6B60907AD3633E774F38EB CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: - 0x16315893 CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END - ==== CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/reboot-count = 23 (0x17) 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:IN: UDP::Init bind&listen port=5541 CHIP:IN: - UDP::Init bound to port=5541 CHIP:IN: UDP::Init bind&listen port=5541 - CHIP:IN: UDP::Init bound to port=5541 CHIP:IN: TransportMgr - initialized CHIP:DIS: Init fabric pairing table with server storage + verification: | + On DUT: sudo ./chip-all-clusters-app + + + On Controller: ./chip-tool discover commissionables + + 1. Connect the device to Ethernet + 2. Disover the device using CHIP Tool . ./chip-tool discover commissionables + 3. connect -ip , + 4. Once device is provisioned, read 'Product Name' attribute from the Basic cluster. Example:./chip-tool basic read product-name 1 0 + + Reference : below Full log for the above commands (click on this cell if you like to see complete log) + + + controller > ./chip-tool discover commissionables + Waiting for device responses... + CHIP:CTL: Generating ICAC + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== + CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<>> + CHIP:DL: AUDIT: * Validate r1 and r2 are <<>> + CHIP:DL: AUDIT: * buf1: 3BE3E264C0A0A053248E93609D22044A + CHIP:DL: AUDIT: * buf2: E69C8767AD6B60907AD3633E774F38EB + CHIP:DL: AUDIT: * r1: 0x2A0E6454 r2: 0x16315893 + CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ==== + CHIP:DL: writing settings to file (/tmp/chip_counters.ini-9yXPat) + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/reboot-count = 23 (0x17) + 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:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: UDP::Init bind&listen port=5541 + CHIP:IN: UDP::Init bound to port=5541 + CHIP:IN: TransportMgr initialized + CHIP:DIS: Init fabric pairing table with server storage CHIP:DL: writing settings to file (/tmp/chip_counters.ini-zgCtZd) - CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) CHIP:DL: - NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) CHIP:CTL: System - State Initialized... CHIP:DL: MDNS failed to join multicast group on - veth5731933 for address type IPv4: ../th CHIP:DL: MDNS failed to join - multicast group on vethbf7bfa6 for address type IPv4: ../th CHIP:DL: - MDNS failed to join multicast group on vethcf434e5 for address type - IPv4: ../th CHIP:ZCL: Using ZAP configuration... CHIP:DIS: Verifying - the received credentials CHIP:IN: Generating compressed fabric ID - using uncompressed fabric ID 0x0000000000000000 CHIP:IN: 0x04, 0x66, - 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, - 0x6e, 0x65, 0x46, 0xdc, CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, - 0xd1, 0xb7, CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, - CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, CHIP:IN: - 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, CHIP:IN: 0x0e, 0x9b, - 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, - 0x4f, 0x05, 0x14, 0x99, CHIP:IN: 0x22, CHIP:IN: Generated compressed - fabric ID CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, - CHIP:DIS: Added new fabric at index: 1, Initialized: 1 CHIP:DIS: - Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: - 0x000000000001B669 CHIP:CTL: Joined the fabric at index 1. Compressed - fabric ID is: 0x4A531E5206ED06DA CHIP:DL: CHIP task running CHIP:DIS: - Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Attempt to mDNS broadcast failed: - ../third_party/connectedhomeip/src/inet/UDP CHIP:DIS: Attempt to mDNS - broadcast failed: ../third_party/connectedhomeip/src/inet/UDP - CHIP:DIS: Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA - CHIP:DIS: Port: 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: - Vendor ID: 9050 CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning - Mode 1 CHIP:DIS: Device Type 0 CHIP:DIS: Device Name CHIP:DIS: - Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing - Instruction CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 CHIP:DIS: - Discovered Node: CHIP:DIS: Host name: EEAABADABAD0DDCA CHIP:DIS: Port: - 5540 CHIP:DIS: Long discriminator: 3840 CHIP:DIS: Vendor ID: 9050 - CHIP:DIS: Product ID: 65279 CHIP:DIS: Commissioning Mode 1 CHIP:DIS: - Device Type 0 CHIP:DIS: Device Name CHIP:DIS: Rotating Id - 00007C5F6E176CD40F68685D100A1CF8A98B CHIP:DIS: Pairing Instruction - CHIP:DIS: Pairing Hint 0x21 CHIP:DIS: Address 0: - 2402:e280:2108:181:dea6:32ff:fef9:f0a1 CHIP:DIS: Address 1: - fe80::dea6:32ff:fef9:f0a1 CHIP:DIS: Address 2: 192.168.1.12 - controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 - 192.168.1.12 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 ,," + CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini) + CHIP:DL: NVS set: chip-counters/GlobalMCTR = 25000 (0x61A8) + CHIP:CTL: System State Initialized... + CHIP:DL: MDNS failed to join multicast group on veth5731933 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethbf7bfa6 for address type IPv4: ../th + CHIP:DL: MDNS failed to join multicast group on vethcf434e5 for address type IPv4: ../th + CHIP:ZCL: Using ZAP configuration... + CHIP:DIS: Verifying the received credentials + CHIP:IN: Generating compressed fabric ID using uncompressed fabric ID 0x0000000000000000 + CHIP:IN: 0x04, 0x66, 0xd6, 0xcf, 0x4c, 0x1e, 0x11, 0xc3, + CHIP:IN: 0x52, 0x4f, 0xa6, 0x8c, 0x6e, 0x65, 0x46, 0xdc, + CHIP:IN: 0x90, 0x1b, 0x5f, 0x42, 0x9f, 0x69, 0xd1, 0xb7, + CHIP:IN: 0x7d, 0xf3, 0x6b, 0x54, 0x12, 0x6c, 0x12, 0x59, + CHIP:IN: 0x5b, 0xc3, 0x07, 0x1c, 0x5c, 0xf4, 0x4e, 0x5f, + CHIP:IN: 0x71, 0x06, 0x9a, 0xbb, 0x2f, 0xef, 0x20, 0x0d, + CHIP:IN: 0x0e, 0x9b, 0x26, 0x3e, 0x8d, 0x46, 0x09, 0xd8, + CHIP:IN: 0xfd, 0xa1, 0xc0, 0x10, 0x4f, 0x05, 0x14, 0x99, + CHIP:IN: 0x22, + CHIP:IN: Generated compressed fabric ID + CHIP:IN: 0x4a, 0x53, 0x1e, 0x52, 0x06, 0xed, 0x06, 0xda, + CHIP:DIS: Added new fabric at index: 1, Initialized: 1 + CHIP:DIS: Assigned compressed fabric ID: 0x4A531E5206ED06DA, node ID: 0x000000000001B669 + CHIP:CTL: Joined the fabric at index 1. Compressed fabric ID is: 0x4A531E5206ED06DA + CHIP:DL: CHIP task running + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Attempt to mDNS broadcast failed: ../third_party/connectedhomeip/src/inet/UDP + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + CHIP:DIS: Discovered Node: + CHIP:DIS: Host name: EEAABADABAD0DDCA + CHIP:DIS: Port: 5540 + CHIP:DIS: Long discriminator: 3840 + CHIP:DIS: Vendor ID: 9050 + CHIP:DIS: Product ID: 65279 + CHIP:DIS: Commissioning Mode 1 + CHIP:DIS: Device Type 0 + CHIP:DIS: Device Name + CHIP:DIS: Rotating Id 00007C5F6E176CD40F68685D100A1CF8A98B + CHIP:DIS: Pairing Instruction + CHIP:DIS: Pairing Hint 0x21 + CHIP:DIS: Address 0: 2402:e280:2108:181:dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 1: fe80::dea6:32ff:fef9:f0a1 + CHIP:DIS: Address 2: 192.168.1.12 + + + controller> sudo ./chip-tool pairing ethernet 112233 20202021 3840 192.168.1.12 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 + + ,, disabled: true - label: "Establish encryption keys with Password Authenticated Session Establishment on the commissioning channel" - verification: "" + verification: | + disabled: true - label: "Commissioner arms Fail-safe timer on the Commissionee using ArmFailSafe command" - verification: "" + verification: | + disabled: true - label: "Commissioner configures the Commissionee UTC time, timezone, DST offset, and regulatory information at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner establishes the authenticity of the Commissionee as a certified CHIP device." - verification: "" + verification: | + disabled: true - label: "Commissioner configures Fabric information using SetFabric command." - verification: "" + verification: | + disabled: true - label: "Commissioner requests operational CSR from Commissionee with OperationalCSRRequest command" - verification: "" + verification: | + disabled: true - label: "Commissioner generates or otherwise obtains an Operational Certificate containing Operational ID in response OperationalCSRRequest command using ecosystem-specific means" - verification: "" + verification: | + disabled: true - label: "Commissioner configures operational credentials" - verification: "" + verification: | + disabled: true - label: "Commissioner configures ACL." - verification: "" + verification: | + disabled: true - label: "Commissioner configures the operational network at the Commissionee." - verification: "" + verification: | + disabled: true - label: "Commissioner triggers the Commissionee to connect to the operational network" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee discover each other on the operational network using operational discovery" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee establish encryption keys with CASE" - verification: "" + verification: | + disabled: true - label: "Commissioner and Commissionee perform commissioning complete message exchange using CommissioningComplete command and CommissioningCompleteResponse command" - verification: "" + verification: | + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DD_3_9.yaml b/src/app/tests/suites/certification/Test_TC_DD_3_9.yaml index ec0c5fdd3664a6..e5de28dda7dd00 100644 --- a/src/app/tests/suites/certification/Test_TC_DD_3_9.yaml +++ b/src/app/tests/suites/certification/Test_TC_DD_3_9.yaml @@ -21,38 +21,37 @@ config: tests: - label: "TH receives Onboarding Payload from the DUT" - verification: - "1. 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:YNJV7NMF00KA0648G00 [1641844121253] [18592:788760] CHIP: [SPL] - Parsing base38Representation: MT:YNJV7NMF00KA0648G00 [1641844121254] - [18592:788760] CHIP: [SPL] CommissioningFlow: 2 [1641844121254] - [18592:788760] CHIP: [SPL] VendorID: 9050 [1641844121254] - [18592:788760] CHIP: [SPL] Version: 0 [1641844121254] [18592:788760] - CHIP: [SPL] ProductID: 65279 [1641844121254] [18592:788760] CHIP: - [SPL] Discriminator: 3840 [1641844121254] [18592:788760] CHIP: [SPL] - SetUpPINCode: 20202021 [1641844121254] [18592:788760] CHIP: [SPL] - RendezvousInformation: 2 2. Verify that the Commissioning Flow is set - to 2 (Custom Flow)" + verification: | + 1. 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:YNJV7NMF00KA0648G00 + [1641844121253] [18592:788760] CHIP: [SPL] Parsing base38Representation: MT:YNJV7NMF00KA0648G00 + [1641844121254] [18592:788760] CHIP: [SPL] CommissioningFlow: 2 + [1641844121254] [18592:788760] CHIP: [SPL] VendorID: 9050 + [1641844121254] [18592:788760] CHIP: [SPL] Version: 0 + [1641844121254] [18592:788760] CHIP: [SPL] ProductID: 65279 + [1641844121254] [18592:788760] CHIP: [SPL] Discriminator: 3840 + [1641844121254] [18592:788760] CHIP: [SPL] SetUpPINCode: 20202021 + [1641844121254] [18592:788760] CHIP: [SPL] RendezvousInformation: 2 + + 2. Verify that the Commissioning Flow is set to 2 (Custom Flow) disabled: true - label: "TH fetches commissioning data from Distributed Compliance Ledger (DCL)" - verification: - "1. TH fetches the DCL from DUT's DCL 2. Verify that DCL contains - criteria" + verification: | + 1. TH fetches the DCL from DUT's DCL + 2. Verify that DCL contains criteria disabled: true - label: "TH uses the provided URL to guide user on how to put DUT in a state that allows commissioning" - verification: "1. Follow steps from DCL's URL given" + verification: | + 1. Follow steps from DCL's URL given disabled: true - label: "DUT is commissioned by the TH" - verification: - "1. Verify that the DUT is commissioned to the TH commissioner - successfully" + verification: | + 1. Verify that the DUT is commissioned to the TH commissioner successfully disabled: true 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 a22bba7d01691e..d1a6566cbc13a6 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 @@ -21,92 +21,92 @@ config: tests: - label: "TH reads DeviceTypeList attribute from DUT." - verification: - "sudo ./chip-tool descriptor read device-list 1 0 - [1641454498.809603][16120:16125] CHIP:TOO: Descriptor.DeviceList - response: 1 entries [1641454498.809737][16120:16125] CHIP:TOO: [1]: { - [1641454498.809780][16120:16125] CHIP:TOO: Type: 22 - [1641454498.809817][16120:16125] CHIP:TOO: Revision: 1 - [1641454498.809852][16120:16125] CHIP:TOO: } - [1641454498.809938][16120:16125] CHIP:EM: Sending Standalone Ack for - MessageCounter:52943 on exchange 24061i" + verification: | + sudo ./chip-tool descriptor read device-list 1 0 + + [1641454498.809603][16120:16125] CHIP:TOO: Descriptor.DeviceList response: 1 entries + [1641454498.809737][16120:16125] CHIP:TOO: [1]: { + [1641454498.809780][16120:16125] CHIP:TOO: Type: 22 + [1641454498.809817][16120:16125] CHIP:TOO: Revision: 1 + [1641454498.809852][16120:16125] CHIP:TOO: } + [1641454498.809938][16120:16125] CHIP:EM: Sending Standalone Ack for MessageCounter:52943 on exchange 24061i disabled: true - label: "TH reads 'ServerList' attribute." - verification: - "sudo ./chip-tool descriptor read server-list 1 0 - [1641454794.918507][16140:16146] CHIP:DMG: SuppressResponse = true, + verification: | + sudo ./chip-tool descriptor read server-list 1 0 + + [1641454794.918507][16140:16146] CHIP:DMG: SuppressResponse = true, [1641454794.918530][16140:16146] CHIP:DMG: } - [1641454794.920033][16140:16146] CHIP:TOO: Descriptor.ServerList - response: 23 entries [1641454794.920083][16140:16146] CHIP:TOO: [1]: 3 - [1641454794.920110][16140:16146] CHIP:TOO: [2]: 4 - [1641454794.920134][16140:16146] CHIP:TOO: [3]: 29 - [1641454794.920157][16140:16146] CHIP:TOO: [4]: 30 - [1641454794.920181][16140:16146] CHIP:TOO: [5]: 31 - [1641454794.920204][16140:16146] CHIP:TOO: [6]: 40 - [1641454794.920227][16140:16146] CHIP:TOO: [7]: 41 - [1641454794.920250][16140:16146] CHIP:TOO: [8]: 42 - [1641454794.920274][16140:16146] CHIP:TOO: [9]: 46 - [1641454794.920297][16140:16146] CHIP:TOO: [10]: 48 - [1641454794.920321][16140:16146] CHIP:TOO: [11]: 49 - [1641454794.920344][16140:16146] CHIP:TOO: [12]: 50 - [1641454794.920367][16140:16146] CHIP:TOO: [13]: 51 - [1641454794.920391][16140:16146] CHIP:TOO: [14]: 52 - [1641454794.920414][16140:16146] CHIP:TOO: [15]: 53 - [1641454794.920437][16140:16146] CHIP:TOO: [16]: 54 - [1641454794.920461][16140:16146] CHIP:TOO: [17]: 55 - [1641454794.920484][16140:16146] CHIP:TOO: [18]: 60 - [1641454794.920507][16140:16146] CHIP:TOO: [19]: 62 - [1641454794.920530][16140:16146] CHIP:TOO: [20]: 63 - [1641454794.920554][16140:16146] CHIP:TOO: [21]: 64 - [1641454794.920577][16140:16146] CHIP:TOO: [22]: 65 - [1641454794.920600][16140:16146] CHIP:TOO: [23]: 1029 - [1641454794.920687][16140:16146] CHIP:EM: Sending Standalone Ack for - MessageCounter:8175897 on exchange 54373i" + [1641454794.920033][16140:16146] CHIP:TOO: Descriptor.ServerList response: 23 entries + [1641454794.920083][16140:16146] CHIP:TOO: [1]: 3 + [1641454794.920110][16140:16146] CHIP:TOO: [2]: 4 + [1641454794.920134][16140:16146] CHIP:TOO: [3]: 29 + [1641454794.920157][16140:16146] CHIP:TOO: [4]: 30 + [1641454794.920181][16140:16146] CHIP:TOO: [5]: 31 + [1641454794.920204][16140:16146] CHIP:TOO: [6]: 40 + [1641454794.920227][16140:16146] CHIP:TOO: [7]: 41 + [1641454794.920250][16140:16146] CHIP:TOO: [8]: 42 + [1641454794.920274][16140:16146] CHIP:TOO: [9]: 46 + [1641454794.920297][16140:16146] CHIP:TOO: [10]: 48 + [1641454794.920321][16140:16146] CHIP:TOO: [11]: 49 + [1641454794.920344][16140:16146] CHIP:TOO: [12]: 50 + [1641454794.920367][16140:16146] CHIP:TOO: [13]: 51 + [1641454794.920391][16140:16146] CHIP:TOO: [14]: 52 + [1641454794.920414][16140:16146] CHIP:TOO: [15]: 53 + [1641454794.920437][16140:16146] CHIP:TOO: [16]: 54 + [1641454794.920461][16140:16146] CHIP:TOO: [17]: 55 + [1641454794.920484][16140:16146] CHIP:TOO: [18]: 60 + [1641454794.920507][16140:16146] CHIP:TOO: [19]: 62 + [1641454794.920530][16140:16146] CHIP:TOO: [20]: 63 + [1641454794.920554][16140:16146] CHIP:TOO: [21]: 64 + [1641454794.920577][16140:16146] CHIP:TOO: [22]: 65 + [1641454794.920600][16140:16146] CHIP:TOO: [23]: 1029 + [1641454794.920687][16140:16146] CHIP:EM: Sending Standalone Ack for MessageCounter:8175897 on exchange 54373i disabled: true - label: "TH reads 'ClientList' attribute" - verification: - "sudo ./chip-tool descriptor read client-list 1 0 - [1641456529.633047][16220:16225] CHIP:DMG: SuppressResponse = true, + verification: | + sudo ./chip-tool descriptor read client-list 1 0 + + [1641456529.633047][16220:16225] CHIP:DMG: SuppressResponse = true, [1641456529.633105][16220:16225] CHIP:DMG: } - [1641456529.633403][16220:16225] CHIP:TOO: Descriptor.ClientList - response: 0 entries [1641456529.633509][16220:16225] CHIP:EM: Sending - Standalone Ack for MessageCounter:3437551 on exchange 887i" + [1641456529.633403][16220:16225] CHIP:TOO: Descriptor.ClientList response: 0 entries + [1641456529.633509][16220:16225] CHIP:EM: Sending Standalone Ack for MessageCounter:3437551 on exchange 887i disabled: true - label: "TH reads 'PartsList' attribute." - verification: - "sudo ./chip-tool descriptor read parts-list 1 0 - [1641456769.777217][16238:16244] CHIP:DMG: SuppressResponse = true, + verification: | + sudo ./chip-tool descriptor read parts-list 1 0 + + [1641456769.777217][16238:16244] CHIP:DMG: SuppressResponse = true, [1641456769.777267][16238:16244] CHIP:DMG: } - [1641456769.777839][16238:16244] CHIP:TOO: Descriptor.PartsList - response: 2 entries [1641456769.777925][16238:16244] CHIP:TOO: [1]: 1 - [1641456769.777978][16238:16244] CHIP:TOO: [2]: 2 - [1641456769.778080][16238:16244] CHIP:EM: Sending Standalone Ack for - MessageCounter:2830202 on exchange 38042i" + [1641456769.777839][16238:16244] CHIP:TOO: Descriptor.PartsList response: 2 entries + [1641456769.777925][16238:16244] CHIP:TOO: [1]: 1 + [1641456769.777978][16238:16244] CHIP:TOO: [2]: 2 + [1641456769.778080][16238:16244] CHIP:EM: Sending Standalone Ack for MessageCounter:2830202 on exchange 38042i disabled: true - label: "TH1 reads the AttributeList attribute from the DUT" - verification: - "sudo ./chip-tool descriptor read attribute-list 1 0 - [1641456932.082331][16256:16261] CHIP:TOO: Descriptor.AttributeList - response: 6 entries [1641456932.082382][16256:16261] CHIP:TOO: [1]: 0 - [1641456932.082409][16256:16261] CHIP:TOO: [2]: 1 - [1641456932.082435][16256:16261] CHIP:TOO: [3]: 2 - [1641456932.082461][16256:16261] CHIP:TOO: [4]: 3 - [1641456932.082487][16256:16261] CHIP:TOO: [5]: 65531 - [1641456932.082512][16256:16261] CHIP:TOO: [6]: 65533 - [1641456932.082570][16256:16261] CHIP:EM: Sending Standalone Ack for - MessageCounter:9736412 on exchange 3286i" + verification: | + sudo ./chip-tool descriptor read attribute-list 1 0 + + [1641456932.082331][16256:16261] CHIP:TOO: Descriptor.AttributeList response: 6 entries + [1641456932.082382][16256:16261] CHIP:TOO: [1]: 0 + [1641456932.082409][16256:16261] CHIP:TOO: [2]: 1 + [1641456932.082435][16256:16261] CHIP:TOO: [3]: 2 + [1641456932.082461][16256:16261] CHIP:TOO: [4]: 3 + [1641456932.082487][16256:16261] CHIP:TOO: [5]: 65531 + [1641456932.082512][16256:16261] CHIP:TOO: [6]: 65533 + [1641456932.082570][16256:16261] CHIP:EM: Sending Standalone Ack for MessageCounter:9736412 on exchange 3286i disabled: true - label: "TH1 reads the ClusterRevision attribute from the DUT" - verification: - "sudo ./chip-tool descriptor read cluster-revision 1 0 - [1641456975.533390][16268:16274] CHIP:DMG: SuppressResponse = true, + verification: | + sudo ./chip-tool descriptor read cluster-revision 1 0 + + [1641456975.533390][16268:16274] CHIP:DMG: SuppressResponse = true, [1641456975.533439][16268:16274] CHIP:DMG: } - [1641456975.533710][16268:16274] CHIP:TOO: Descriptor.ClusterRevision - response: 1 [1641456975.533831][16268:16274] CHIP:EM: Sending - Standalone Ack for MessageCounter:14484175 on exchange 41618i" + [1641456975.533710][16268:16274] CHIP:TOO: Descriptor.ClusterRevision response: 1 + [1641456975.533831][16268:16274] CHIP:EM: Sending Standalone Ack for MessageCounter:14484175 on exchange 41618i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_1.yaml index a2d3664a082ce5..81e6c0fb26ddc2 100644 --- a/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_1.yaml @@ -23,141 +23,142 @@ config: tests: - label: "Reboot DUT" - verification: "" + verification: | + disabled: true - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH sends RetrieveLogsRequest Command (Intent = - EndUserSupport,TransferFileDesignator = 'test.txt', RequestedProtocol= - BDX) to DUT" - verification: - "sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 test.txt 1 - 0 [1646208340.191466][3171:3176] CHIP:DMG: ICR moving to [ResponseRe] + EndUserSupport,TransferFileDesignator = ''test.txt'', + RequestedProtocol= BDX) to DUT" + verification: | + sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 "test.txt" 1 0 + + [1646208340.191466][3171:3176] CHIP:DMG: ICR moving to [ResponseRe] [1646208340.191525][3171:3176] CHIP:DMG: InvokeResponseMessage = [1646208340.191558][3171:3176] CHIP:DMG: { - [1646208340.191589][3171:3176] CHIP:DMG: suppressResponse = false, - [1646208340.191622][3171:3176] CHIP:DMG: InvokeResponseIBs = - [1646208340.191663][3171:3176] CHIP:DMG: [ - [1646208340.191696][3171:3176] CHIP:DMG: InvokeResponseIB = - [1646208340.191743][3171:3176] CHIP:DMG: { - [1646208340.191778][3171:3176] CHIP:DMG: CommandStatusIB = - [1646208340.191819][3171:3176] CHIP:DMG: { - [1646208340.191862][3171:3176] CHIP:DMG: CommandPathIB = - [1646208340.191907][3171:3176] CHIP:DMG: { - [1646208340.191953][3171:3176] CHIP:DMG: EndpointId = 0x0, - [1646208340.192004][3171:3176] CHIP:DMG: ClusterId = 0x32, - [1646208340.192049][3171:3176] CHIP:DMG: CommandId = 0x0, - [1646208340.192093][3171:3176] CHIP:DMG: }, + [1646208340.191589][3171:3176] CHIP:DMG: suppressResponse = false, + [1646208340.191622][3171:3176] CHIP:DMG: InvokeResponseIBs = + [1646208340.191663][3171:3176] CHIP:DMG: [ + [1646208340.191696][3171:3176] CHIP:DMG: InvokeResponseIB = + [1646208340.191743][3171:3176] CHIP:DMG: { + [1646208340.191778][3171:3176] CHIP:DMG: CommandStatusIB = + [1646208340.191819][3171:3176] CHIP:DMG: { + [1646208340.191862][3171:3176] CHIP:DMG: CommandPathIB = + [1646208340.191907][3171:3176] CHIP:DMG: { + [1646208340.191953][3171:3176] CHIP:DMG: EndpointId = 0x0, + [1646208340.192004][3171:3176] CHIP:DMG: ClusterId = 0x32, + [1646208340.192049][3171:3176] CHIP:DMG: CommandId = 0x0, + [1646208340.192093][3171:3176] CHIP:DMG: }, [1646208340.192138][3171:3176] CHIP:DMG: - [1646208340.192177][3171:3176] CHIP:DMG: StatusIB = - [1646208340.192224][3171:3176] CHIP:DMG: { - [1646208340.192271][3171:3176] CHIP:DMG: status = 0x0, - [1646208340.192319][3171:3176] CHIP:DMG: }, + [1646208340.192177][3171:3176] CHIP:DMG: StatusIB = + [1646208340.192224][3171:3176] CHIP:DMG: { + [1646208340.192271][3171:3176] CHIP:DMG: status = 0x0, + [1646208340.192319][3171:3176] CHIP:DMG: }, [1646208340.192362][3171:3176] CHIP:DMG: - [1646208340.192401][3171:3176] CHIP:DMG: }, + [1646208340.192401][3171:3176] CHIP:DMG: }, [1646208340.192450][3171:3176] CHIP:DMG: - [1646208340.192486][3171:3176] CHIP:DMG: }, + [1646208340.192486][3171:3176] CHIP:DMG: }, [1646208340.192530][3171:3176] CHIP:DMG: - [1646208340.192562][3171:3176] CHIP:DMG: ], + [1646208340.192562][3171:3176] CHIP:DMG: ], [1646208340.192602][3171:3176] CHIP:DMG: - [1646208340.192634][3171:3176] CHIP:DMG: InteractionModelRevision = 1 + [1646208340.192634][3171:3176] CHIP:DMG: InteractionModelRevision = 1 [1646208340.192665][3171:3176] CHIP:DMG: }, - [1646208340.192744][3171:3176] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 - Status=0x0" + [1646208340.192744][3171:3176] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 disabled: true - label: "TH Sends BDX SendAccept message" - verification: "" + verification: | + disabled: true - label: "TH sends RetrieveLogsRequest Command (Intent = - EndUserSupport,TransferFileDesignator = 'test.txt', RequestedProtocol= - BDX) to DUT" - verification: - "sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 test.txt 1 - 0 [1646208340.191466][3171:3176] CHIP:DMG: ICR moving to [ResponseRe] + EndUserSupport,TransferFileDesignator = ''test.txt'', + RequestedProtocol= BDX) to DUT" + verification: | + sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 1 "test.txt" 1 0 + + [1646208340.191466][3171:3176] CHIP:DMG: ICR moving to [ResponseRe] [1646208340.191525][3171:3176] CHIP:DMG: InvokeResponseMessage = [1646208340.191558][3171:3176] CHIP:DMG: { - [1646208340.191589][3171:3176] CHIP:DMG: suppressResponse = false, - [1646208340.191622][3171:3176] CHIP:DMG: InvokeResponseIBs = - [1646208340.191663][3171:3176] CHIP:DMG: [ - [1646208340.191696][3171:3176] CHIP:DMG: InvokeResponseIB = - [1646208340.191743][3171:3176] CHIP:DMG: { - [1646208340.191778][3171:3176] CHIP:DMG: CommandStatusIB = - [1646208340.191819][3171:3176] CHIP:DMG: { - [1646208340.191862][3171:3176] CHIP:DMG: CommandPathIB = - [1646208340.191907][3171:3176] CHIP:DMG: { - [1646208340.191953][3171:3176] CHIP:DMG: EndpointId = 0x0, - [1646208340.192004][3171:3176] CHIP:DMG: ClusterId = 0x32, - [1646208340.192049][3171:3176] CHIP:DMG: CommandId = 0x0, - [1646208340.192093][3171:3176] CHIP:DMG: }, + [1646208340.191589][3171:3176] CHIP:DMG: suppressResponse = false, + [1646208340.191622][3171:3176] CHIP:DMG: InvokeResponseIBs = + [1646208340.191663][3171:3176] CHIP:DMG: [ + [1646208340.191696][3171:3176] CHIP:DMG: InvokeResponseIB = + [1646208340.191743][3171:3176] CHIP:DMG: { + [1646208340.191778][3171:3176] CHIP:DMG: CommandStatusIB = + [1646208340.191819][3171:3176] CHIP:DMG: { + [1646208340.191862][3171:3176] CHIP:DMG: CommandPathIB = + [1646208340.191907][3171:3176] CHIP:DMG: { + [1646208340.191953][3171:3176] CHIP:DMG: EndpointId = 0x0, + [1646208340.192004][3171:3176] CHIP:DMG: ClusterId = 0x32, + [1646208340.192049][3171:3176] CHIP:DMG: CommandId = 0x0, + [1646208340.192093][3171:3176] CHIP:DMG: }, [1646208340.192138][3171:3176] CHIP:DMG: - [1646208340.192177][3171:3176] CHIP:DMG: StatusIB - =[1646208340.192224][3171:3176] CHIP:DMG: { - [1646208340.192271][3171:3176] CHIP:DMG: status = - 0x0,[1646208340.192319][3171:3176] CHIP:DMG: }, + [1646208340.192177][3171:3176] CHIP:DMG: StatusIB = + [1646208340.192224][3171:3176] CHIP:DMG: { + [1646208340.192271][3171:3176] CHIP:DMG: status = 0x0, + [1646208340.192319][3171:3176] CHIP:DMG: }, [1646208340.192362][3171:3176] CHIP:DMG: - [1646208340.192401][3171:3176] CHIP:DMG: }, + [1646208340.192401][3171:3176] CHIP:DMG: }, [1646208340.192450][3171:3176] CHIP:DMG: - [1646208340.192486][3171:3176] CHIP:DMG: }, + [1646208340.192486][3171:3176] CHIP:DMG: }, [1646208340.192530][3171:3176] CHIP:DMG: - [1646208340.192562][3171:3176] CHIP:DMG: ], + [1646208340.192562][3171:3176] CHIP:DMG: ], [1646208340.192602][3171:3176] CHIP:DMG: - [1646208340.192634][3171:3176] CHIP:DMG: InteractionModelRevision = - 1[1646208340.192665][3171:3176] CHIP:DMG: }, - [1646208340.192744][3171:3176] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 - Status=0x0" + [1646208340.192634][3171:3176] CHIP:DMG: InteractionModelRevision = 1 + [1646208340.192665][3171:3176] CHIP:DMG: }, + [1646208340.192744][3171:3176] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 disabled: true - label: "TH Sends StatusReport(GeneralCode: FAILURE, ProtocolId: BDX, - ProtocolCode: TRANSFER_METHOD_NOT_SUPPORTED)" - verification: "" + ProtocolCode: TRANSFER_METHOD_NOT_SUPPORTED" + verification: | + disabled: true - label: "TH sends RetrieveLogsRequest Command (Intent = EndUserSupport, RequestedProtocol = ResponsePayload) to DUT" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool diagnosticlogs - retrieve-logs-request 0 0 test.txt 1 0 [1646209207.288760][3223:3228] - CHIP:DMG: ICR moving to [ResponseRe] [1646209207.288823][3223:3228] - CHIP:DMG: InvokeResponseMessage = [1646209207.288859][3223:3228] - CHIP:DMG: { [1646209207.288893][3223:3228] CHIP:DMG: suppressResponse - = false, [1646209207.288928][3223:3228] CHIP:DMG: InvokeResponseIBs - =[1646209207.288972][3223:3228] CHIP:DMG: [ - [1646209207.289006][3223:3228] CHIP:DMG: InvokeResponseIB = - [1646209207.289056][3223:3228] CHIP:DMG: { - [1646209207.289096][3223:3228] CHIP:DMG: CommandStatusIB = - [1646209207.289146][3223:3228] CHIP:DMG: { - [1646209207.289189][3223:3228] CHIP:DMG: CommandPathIB = - [1646209207.289237][3223:3228] CHIP:DMG: { - [1646209207.289285][3223:3228] CHIP:DMG: EndpointId = 0x0, - [1646209207.289338][3223:3228] CHIP:DMG: ClusterId = - 0x32,[1646209207.289391][3223:3228] CHIP:DMG: CommandId = 0x0, - [1646209207.289434][3223:3228] CHIP:DMG: }, + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + + [1646209207.288760][3223:3228] CHIP:DMG: ICR moving to [ResponseRe] + [1646209207.288823][3223:3228] CHIP:DMG: InvokeResponseMessage = + [1646209207.288859][3223:3228] CHIP:DMG: { + [1646209207.288893][3223:3228] CHIP:DMG: suppressResponse = false, + [1646209207.288928][3223:3228] CHIP:DMG: InvokeResponseIBs = + [1646209207.288972][3223:3228] CHIP:DMG: [ + [1646209207.289006][3223:3228] CHIP:DMG: InvokeResponseIB = + [1646209207.289056][3223:3228] CHIP:DMG: { + [1646209207.289096][3223:3228] CHIP:DMG: CommandStatusIB = + [1646209207.289146][3223:3228] CHIP:DMG: { + [1646209207.289189][3223:3228] CHIP:DMG: CommandPathIB = + [1646209207.289237][3223:3228] CHIP:DMG: { + [1646209207.289285][3223:3228] CHIP:DMG: EndpointId = 0x0, + [1646209207.289338][3223:3228] CHIP:DMG: ClusterId = 0x32, + [1646209207.289391][3223:3228] CHIP:DMG: CommandId = 0x0, + [1646209207.289434][3223:3228] CHIP:DMG: }, [1646209207.289479][3223:3228] CHIP:DMG: - [1646209207.289521][3223:3228] CHIP:DMG: StatusIB = - [1646209207.289573][3223:3228] CHIP:DMG: { - [1646209207.289619][3223:3228] CHIP:DMG: status = 0x0, - [1646209207.289666][3223:3228] CHIP:DMG: }, + [1646209207.289521][3223:3228] CHIP:DMG: StatusIB = + [1646209207.289573][3223:3228] CHIP:DMG: { + [1646209207.289619][3223:3228] CHIP:DMG: status = 0x0, + [1646209207.289666][3223:3228] CHIP:DMG: }, [1646209207.289715][3223:3228] CHIP:DMG: - [1646209207.289756][3223:3228] CHIP:DMG: }, + [1646209207.289756][3223:3228] CHIP:DMG: }, [1646209207.289804][3223:3228] CHIP:DMG: - [1646209207.289842][3223:3228] CHIP:DMG: }, + [1646209207.289842][3223:3228] CHIP:DMG: }, [1646209207.289889][3223:3228] CHIP:DMG: - [1646209207.289923][3223:3228] CHIP:DMG: ], + [1646209207.289923][3223:3228] CHIP:DMG: ], [1646209207.289966][3223:3228] CHIP:DMG: - [1646209207.289999][3223:3228] CHIP:DMG: InteractionModelRevision = 1 + [1646209207.289999][3223:3228] CHIP:DMG: InteractionModelRevision = 1 [1646209207.290032][3223:3228] CHIP:DMG: }, - [1646209207.290116][3223:3228] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 - Status=0x0" + [1646209207.290116][3223:3228] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_2.yaml b/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_2.yaml index b49958d5c7a389..b66bc89f5cc95b 100644 --- a/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_2.yaml @@ -23,44 +23,44 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH sends RetrieveLogsRequest Command (Intent = EndUserSupport, - TransferFileDesignator = 'test.txt',RequestedProtocol= BDX) to DUT" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool diagnosticlogs - retrieve-logs-request 0 0 test.txt 1 0 [1646209207.288823][3223:3228] - CHIP:DMG: InvokeResponseMessage = [1646209207.288859][3223:3228] - CHIP:DMG: { [1646209207.288893][3223:3228] CHIP:DMG: suppressResponse - = false, [1646209207.288928][3223:3228] CHIP:DMG: InvokeResponseIBs = - [1646209207.288972][3223:3228] CHIP:DMG: - [[1646209207.289006][3223:3228] CHIP:DMG: InvokeResponseIB - =[1646209207.289056][3223:3228] CHIP:DMG: { - [1646209207.289096][3223:3228] CHIP:DMG: CommandStatusIB - =[1646209207.289146][3223:3228] CHIP:DMG: { - [1646209207.289189][3223:3228] CHIP:DMG: CommandPathIB = - [1646209207.289237][3223:3228] CHIP:DMG: { - [1646209207.289285][3223:3228] CHIP:DMG: EndpointId = 0x0, - [1646209207.289338][3223:3228] CHIP:DMG: ClusterId = - 0x32,[1646209207.289391][3223:3228] CHIP:DMG: CommandId = - 0x0,[1646209207.289434][3223:3228] CHIP:DMG: - },[1646209207.289479][3223:3228] CHIP:DMG: - [1646209207.289521][3223:3228] CHIP:DMG: StatusIB = - [1646209207.289573][3223:3228] CHIP:DMG: { - [1646209207.289619][3223:3228] CHIP:DMG: status = 0x0, - [1646209207.289666][3223:3228] CHIP:DMG: }, + TransferFileDesignator = ''test.txt'',RequestedProtocol= BDX) to DUT" + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + + [1646209207.288823][3223:3228] CHIP:DMG: InvokeResponseMessage = + [1646209207.288859][3223:3228] CHIP:DMG: { + [1646209207.288893][3223:3228] CHIP:DMG: suppressResponse = false, + [1646209207.288928][3223:3228] CHIP:DMG: InvokeResponseIBs = + [1646209207.288972][3223:3228] CHIP:DMG: [ + [1646209207.289006][3223:3228] CHIP:DMG: InvokeResponseIB = + [1646209207.289056][3223:3228] CHIP:DMG: { + [1646209207.289096][3223:3228] CHIP:DMG: CommandStatusIB = + [1646209207.289146][3223:3228] CHIP:DMG: { + [1646209207.289189][3223:3228] CHIP:DMG: CommandPathIB = + [1646209207.289237][3223:3228] CHIP:DMG: { + [1646209207.289285][3223:3228] CHIP:DMG: EndpointId = 0x0, + [1646209207.289338][3223:3228] CHIP:DMG: ClusterId = 0x32, + [1646209207.289391][3223:3228] CHIP:DMG: CommandId = 0x0, + [1646209207.289434][3223:3228] CHIP:DMG: }, + [1646209207.289479][3223:3228] CHIP:DMG: + [1646209207.289521][3223:3228] CHIP:DMG: StatusIB = + [1646209207.289573][3223:3228] CHIP:DMG: { + [1646209207.289619][3223:3228] CHIP:DMG: status = 0x0, + [1646209207.289666][3223:3228] CHIP:DMG: }, [1646209207.289715][3223:3228] CHIP:DMG: - [1646209207.289756][3223:3228] CHIP:DMG: }, + [1646209207.289756][3223:3228] CHIP:DMG: }, [1646209207.289804][3223:3228] CHIP:DMG: - [1646209207.289842][3223:3228] CHIP:DMG: }, + [1646209207.289842][3223:3228] CHIP:DMG: }, [1646209207.289889][3223:3228] CHIP:DMG: - [1646209207.289923][3223:3228] CHIP:DMG: ], + [1646209207.289923][3223:3228] CHIP:DMG: ], [1646209207.289966][3223:3228] CHIP:DMG: - [1646209207.289999][3223:3228] CHIP:DMG: InteractionModelRevision = 1 - [1646209207.290032][3223:3228] CHIP:DMG: - },[1646209207.290116][3223:3228] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 - Status=0x0" + [1646209207.289999][3223:3228] CHIP:DMG: InteractionModelRevision = 1 + [1646209207.290032][3223:3228] CHIP:DMG: }, + [1646209207.290116][3223:3228] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_3.yaml b/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_3.yaml index 148361d94e762f..2cc4a53ee963a2 100644 --- a/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_DIAG_LOG_1_3.yaml @@ -21,73 +21,83 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "DUT sends RetrieveLogsRequest Command to TH" - verification: - "grl_matter@GRL-Matters-MacBook-Air debug % ./chip-tool diagnosticlogs - retrieve-logs-request 0 0 test.txt 1 0 [1646215088531] [15387:2221674] - CHIP: [DMG] InvokeResponseMessage = [1646215088531] [15387:2221674] - CHIP: [DMG] { [1646215088531] [15387:2221674] CHIP: [DMG] - suppressResponse = false, [1646215088531] [15387:2221674] CHIP: [DMG] - InvokeResponseIBs = [1646215088531] [15387:2221674] CHIP: [DMG] [ - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIB = - [1646215088531] [15387:2221674] CHIP: [DMG] {[1646215088531] - [15387:2221674] CHIP: [DMG] CommandStatusIB = [1646215088531] - [15387:2221674] CHIP: [DMG] { [1646215088531] [15387:2221674] CHIP: - [DMG] CommandPathIB = [1646215088531] [15387:2221674] CHIP: [DMG] - {[1646215088531] [15387:2221674] CHIP: [DMG] EndpointId = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] ClusterId = 0x32, - [1646215088531] [15387:2221674] CHIP: [DMG] CommandId = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, [1646215088531] - [15387:2221674] CHIP: [DMG] [1646215088531] [15387:2221674] CHIP: - [DMG] StatusIB = [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, [1646215088531] - [15387:2221674] CHIP: [DMG] [1646215088531] [15387:2221674] CHIP: - [DMG] }, [1646215088531] [15387:2221674] CHIP: [DMG] [1646215088531] - [15387:2221674] CHIP: [DMG] }, [1646215088531] [15387:2221674] CHIP: - [DMG] [1646215088531] [15387:2221674] CHIP: [DMG] ], [1646215088532] - [15387:2221674] CHIP: [DMG] [1646215088532] [15387:2221674] CHIP: - [DMG] InteractionModelRevision = 1 [1646215088532] [15387:2221674] - CHIP: [DMG] }, [1646215088532] [15387:2221674] CHIP: [DMG] Received - Command Response Status for Endpoint=0 Cluster=0x0000_0032 - Command=0x0000_0000 Status=0x0" + verification: | + grl_matter@GRL-Matters-MacBook-Air debug % ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + + [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseMessage = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] suppressResponse = false, + [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIBs = + [1646215088531] [15387:2221674] CHIP: [DMG] [ + [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] CommandStatusIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] CommandPathIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] EndpointId = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] ClusterId = 0x32, + [1646215088531] [15387:2221674] CHIP: [DMG] CommandId = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] StatusIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] ], + [1646215088532] [15387:2221674] CHIP: [DMG] + [1646215088532] [15387:2221674] CHIP: [DMG] InteractionModelRevision = 1 + [1646215088532] [15387:2221674] CHIP: [DMG] }, + [1646215088532] [15387:2221674] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 disabled: true - label: "In case TH initiates a BDX Transfer" - verification: "" + verification: | + disabled: true - label: "In case TH does not initiate BDX Transfer" - verification: - "grl_matter@GRL-Matters-MacBook-Air debug % ./chip-tool diagnosticlogs - retrieve-logs-request 0 0 test.txt 1 0 [1646215088531] [15387:2221674] - CHIP: [DMG] InvokeResponseMessage = [1646215088531] [15387:2221674] - CHIP: [DMG] { [1646215088531] [15387:2221674] CHIP: [DMG] - suppressResponse = false, [1646215088531] [15387:2221674] CHIP: [DMG] - InvokeResponseIBs =[1646215088531] [15387:2221674] CHIP: [DMG] [ - [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIB - =[1646215088531] [15387:2221674] CHIP: [DMG] { [1646215088531] - [15387:2221674] CHIP: [DMG] CommandStatusIB = [1646215088531] - [15387:2221674] CHIP: [DMG] { [1646215088531] [15387:2221674] CHIP: - [DMG] CommandPathIB = [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] EndpointId = - 0x0,[1646215088531] [15387:2221674] CHIP: [DMG] ClusterId = 0x32, - [1646215088531] [15387:2221674] CHIP: [DMG] CommandId = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, [1646215088531] - [15387:2221674] CHIP: [DMG] [1646215088531] [15387:2221674] CHIP: - [DMG] StatusIB = [1646215088531] [15387:2221674] CHIP: [DMG] { - [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, - [1646215088531] [15387:2221674] CHIP: [DMG] }, [1646215088531] - [15387:2221674] CHIP: [DMG] [1646215088531] [15387:2221674] CHIP: - [DMG] }, [1646215088531] [15387:2221674] CHIP: [DMG] [1646215088531] - [15387:2221674] CHIP: [DMG] }, [1646215088531] [15387:2221674] CHIP: - [DMG] [1646215088531] [15387:2221674] CHIP: [DMG] ], [1646215088532] - [15387:2221674] CHIP: [DMG] [1646215088532] [15387:2221674] CHIP: - [DMG] InteractionModelRevision = 1 [1646215088532] [15387:2221674] - CHIP: [DMG] }, [1646215088532] [15387:2221674] CHIP: [DMG] Received - Command Response Status for Endpoint=0 Cluster=0x0000_0032 - Command=0x0000_0000 Status=0x0" + verification: | + grl_matter@GRL-Matters-MacBook-Air debug % ./chip-tool diagnosticlogs retrieve-logs-request 0 0 "test.txt" 1 0 + + [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseMessage = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] suppressResponse = false, + [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIBs = + [1646215088531] [15387:2221674] CHIP: [DMG] [ + [1646215088531] [15387:2221674] CHIP: [DMG] InvokeResponseIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] CommandStatusIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] CommandPathIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] EndpointId = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] ClusterId = 0x32, + [1646215088531] [15387:2221674] CHIP: [DMG] CommandId = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] StatusIB = + [1646215088531] [15387:2221674] CHIP: [DMG] { + [1646215088531] [15387:2221674] CHIP: [DMG] status = 0x0, + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] }, + [1646215088531] [15387:2221674] CHIP: [DMG] + [1646215088531] [15387:2221674] CHIP: [DMG] ], + [1646215088532] [15387:2221674] CHIP: [DMG] + [1646215088532] [15387:2221674] CHIP: [DMG] InteractionModelRevision = 1 + [1646215088532] [15387:2221674] CHIP: [DMG] }, + [1646215088532] [15387:2221674] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0032 Command=0x0000_0000 Status=0x0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_1_4.yaml b/src/app/tests/suites/certification/Test_TC_DM_1_4.yaml index 8fe6838c62da8d..cbdc1023a7dea9 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_1_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_1_4.yaml @@ -21,17 +21,21 @@ config: tests: - label: "Simulate a reboot on the TH" - verification: "./chip-tool basic read-event-by-id 0x0 1 0" + verification: | + ./chip-tool basic read-event-by-id 0x0 1 0 disabled: true - label: "Simulate a Shut down on the TH" - verification: "./chip-tool basic read-event-by-id 0x01 1 0" + verification: | + ./chip-tool basic read-event-by-id 0x01 1 0 disabled: true - label: "Simulate a reboot on the TH" - verification: "" + verification: | + disabled: true - label: "Simulate a Factory Reset the TH" - verification: "./chip-tool basic read-event-by-id 0x0 1 0" + verification: | + ./chip-tool basic read-event-by-id 0x0 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml b/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml index d5a06b0eac755f..eb1f2bffcdfe9c 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_2_4.yaml @@ -21,23 +21,26 @@ config: tests: - label: "Commission TH to DUT" - verification: "" + verification: | + disabled: true - label: "DUT reads the NOCs attribute from TH" - verification: "./chip-tool operationalcredentials read nocs 1 0" + verification: | + ./chip-tool operationalcredentials read nocs 1 0 disabled: true - label: "DUT reads the Fabrics attribute from TH" - verification: "./chip-tool operationalcredentials read fabrics 1 0" + verification: | + ./chip-tool operationalcredentials read fabrics 1 0 disabled: true - label: "DUT reads the SupportedFabrics attribute from TH" - verification: - "./chip-tool operationalcredentials read supported-fabrics 1 0" + verification: | + ./chip-tool operationalcredentials read supported-fabrics 1 0 disabled: true - label: "DUT reads the CommissionedFabrics attribute from TH" - verification: - "./chip-tool operationalcredentials read commissioned-fabrics 1 0" + verification: | + ./chip-tool operationalcredentials read commissioned-fabrics 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml index 00e156c844c9a3..03b5d351c1b374 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_3_2.yaml @@ -22,37 +22,35 @@ config: tests: - label: "if PICS_WIFI) OR (PICS_THREAD then DUT issues a ScanNetworks command" - verification: "./chip-tool networkcommissioning scan-networks null 0 1 0" + verification: | + ./chip-tool networkcommissioning scan-networks null 0 1 0 disabled: true - label: "if (PICS_WIFI) then DUT issues an AddOrUpdateWiFiNetwork command" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning - add-or-update-wi-fi-network GRLPrivate_EXT matter123 0 1 0" + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool networkcommissioning add-or-update-wi-fi-network GRLPrivate_EXT matter123 0 1 0 disabled: true - label: "if (PICS_THREAD) then DUT issues an AddOrUpdateThreadNetwork command" - verification: - "./chip-tool networkcommissioning add-or-update-thread-network - 1111161622222211 0 1 0" + verification: | + ./chip-tool networkcommissioning add-or-update-thread-network 1111161622222211 0 1 0 disabled: true - label: "if PICS_WIFI) OR (PICS_THREAD then DUT issues a RemoveNetwork command" - verification: - "./chip-tool networkcommissioning remove-network 1111161622222211 0 1 - 0" + verification: | + ./chip-tool networkcommissioning remove-network 1111161622222211 0 1 0 disabled: true - label: "DUT issues a ConnectNetwork command" - verification: - "./chip-tool networkcommissioning connect-network 1111161622222211 0 1 - 0" + verification: | + ./chip-tool networkcommissioning connect-network 1111161622222211 0 1 0 disabled: true - label: "if PICS_WIFI) OR (PICS_THREAD then DUT issues a ReorderNetwork command" - verification: "" + verification: | + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml b/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml index 9b0a8cd0d5fae3..08a74024fcfa17 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_3_4.yaml @@ -21,9 +21,11 @@ config: tests: - label: "if (PICS_WIFI) DUT reads MaxNetworks attribute on TH" - verification: "./chip-tool networkcommissioning read max-networks 1 0" + verification: | + ./chip-tool networkcommissioning read max-networks 1 0 disabled: true - label: "if (PICS_WIFI) DUT reads Networks attribute on TH" - verification: "./chip-tool networkcommissioning read networks 1 0" + verification: | + ./chip-tool networkcommissioning read networks 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_2.yaml b/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_2.yaml index e3f37a44a6d5d7..8fab4713bb49c5 100644 --- a/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_ETHDIAG_1_2.yaml @@ -21,374 +21,325 @@ config: tests: - label: "DUT reads a attribute value from TH." - verification: "./chip-tool ethernetnetworkdiagnostics read phyrate 1 1" + verification: | + ./chip-tool ethernetnetworkdiagnostics read phyrate 1 1 disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool ethernetnetworkdiagnostics read full-duplex 1 1 - [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 + verification: | + ./chip-tool ethernetnetworkdiagnostics read full-duplex 1 1 + + [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.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.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.940699][47113:47118] CHIP:DMG: }, [1641968402.940721][47113:47118] CHIP:DMG: - [1641968402.940738][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.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." + [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. disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool ethernetnetworkdiagnostics read packet-rx-count 1 1 - 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: } + verification: | + ./chip-tool ethernetnetworkdiagnostics read packet-rx-count 1 1 + + 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.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.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" + [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 disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool ethernetnetworkdiagnostics read packet-tx-count 1 0 - [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: } + verification: | + ./chip-tool ethernetnetworkdiagnostics read packet-tx-count 1 0 + + [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.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.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" + [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 disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool ethernetnetworkdiagnostics read tx-err-count 1 1 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: } + verification: | + ./chip-tool ethernetnetworkdiagnostics read tx-err-count 1 1 + + 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.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.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.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." + [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. disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool ethernetnetworkdiagnostics read collision-count 1 1 - 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: } + verification: | + ./chip-tool ethernetnetworkdiagnostics read collision-count 1 1 + + 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.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.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.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." + [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. disabled: true - label: "DUT reads a attribute value from TH." - 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: } + 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.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.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.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." + [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. disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool ethernetnetworkdiagnostics read carrier-detect 1 1 - [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 + verification: | + ./chip-tool ethernetnetworkdiagnostics read carrier-detect 1 1 + + [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.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.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.361924][47247:47252] CHIP:DMG: }, [1641968810.361949][47247:47252] CHIP:DMG: - [1641968810.361965][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.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." + [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. disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool ethernetnetworkdiagnostics read time-since-reset 1 1 - [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 + verification: | + ./chip-tool ethernetnetworkdiagnostics read time-since-reset 1 1 + + [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.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.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.832733][47346:47351] CHIP:DMG: }, [1641969031.832757][47346:47351] CHIP:DMG: - [1641969031.832773][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.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." + [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. disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_FLW_3_1.yaml b/src/app/tests/suites/certification/Test_TC_FLW_3_1.yaml index 4a611085d1d0ee..9a00205ed3d77d 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_3_1.yaml @@ -21,21 +21,26 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "DUT reads attribute value from TH." - verification: "./chip-tool flowmeasurement read measured-value 1 1" + verification: | + ./chip-tool flowmeasurement read measured-value 1 1 disabled: true - label: "DUT reads attribute value from TH." - verification: "./chip-tool flowmeasurement read min-measured-value 1 1" + verification: | + ./chip-tool flowmeasurement read min-measured-value 1 1 disabled: true - label: "DUT reads attribute value from TH." - verification: "./chip-tool flowmeasurement read max-measured-value 1 1" + verification: | + ./chip-tool flowmeasurement read max-measured-value 1 1 disabled: true - label: "DUT reads attribute value from TH." - verification: "chip-tool flowmeasurement read tolerance 1 1" + verification: | + chip-tool flowmeasurement read tolerance 1 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_GC_1_2.yaml b/src/app/tests/suites/certification/Test_TC_GC_1_2.yaml index fe87680bd48b0e..d433b24dfdd6ae 100644 --- a/src/app/tests/suites/certification/Test_TC_GC_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_GC_1_2.yaml @@ -21,85 +21,77 @@ config: tests: - label: "Start the commissioning process of TH1 on DUT" - verification: "" + verification: | + disabled: true - label: "TH1 sends ArmFailSafe command to the DUT with ExpiryLengthSeconds - value as 'commission_timeout' and the Breadcrumb value as 0" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning - arm-fail-safe 60 0 60 1 0 [1646202957.619162][2956:2961] CHIP:DMG: - InteractionModelRevision = 1 [1646202957.619205][2956:2961] CHIP:DMG: - }, [1646202957.619299][2956:2961] CHIP:DMG: Received Command Response - Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1646202957.619369][2956:2961] CHIP:TOO: Endpoint: 0 Cluster: - 0x0000_0030 Command 0x0000_0001 [1646202957.619461][2956:2961] - CHIP:TOO: ArmFailSafeResponse: { [1646202957.619522][2956:2961] - CHIP:TOO: errorCode: 0 [1646202957.619556][2956:2961] CHIP:TOO: - debugText: [1646202957.619591][2956:2961] CHIP:TOO: } + value as ''commission_timeout'' and the Breadcrumb value as 0" + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning arm-fail-safe 60 0 60 1 0 + + + [1646202957.619162][2956:2961] CHIP:DMG: InteractionModelRevision = 1 + [1646202957.619205][2956:2961] CHIP:DMG: }, + [1646202957.619299][2956:2961] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 + [1646202957.619369][2956:2961] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 + [1646202957.619461][2956:2961] CHIP:TOO: ArmFailSafeResponse: { + [1646202957.619522][2956:2961] CHIP:TOO: errorCode: 0 + [1646202957.619556][2956:2961] CHIP:TOO: debugText: + [1646202957.619591][2956:2961] CHIP:TOO: } [1646202957.619634][2956:2961] CHIP:DMG: ICR moving to [AwaitingDe] - [1646202957.619712][2956:2961] CHIP:EM: Sending Standalone Ack for - MessageCounter:5531048 on exchange 43022i" + [1646202957.619712][2956:2961] CHIP:EM: Sending Standalone Ack for MessageCounter:5531048 on exchange 43022i disabled: true - label: "TH saves the current timestamp as TS1" - verification: "" + verification: | + disabled: true - label: "TH1 sends SetRegulatoryConfig command to the DUT with Location attribute" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning - set-regulatory-config 0 0 0 60 1 0 [1646203091.878703][2973:2978] - CHIP:DMG: Received Command Response Data, Endpoint=0 - Cluster=0x0000_0030 Command=0x0000_0003 [1646203091.878782][2973:2978] - CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0003 - [1646203091.878888][2973:2978] CHIP:TOO: SetRegulatoryConfigResponse: - { [1646203091.878950][2973:2978] CHIP:TOO: errorCode: 0 - [1646203091.878994][2973:2978] CHIP:TOO: debugText: - [1646203091.879063][2973:2978] CHIP:TOO: } + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning set-regulatory-config 0 0 0 60 1 0 + + [1646203091.878703][2973:2978] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0003 + [1646203091.878782][2973:2978] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0003 + [1646203091.878888][2973:2978] CHIP:TOO: SetRegulatoryConfigResponse: { + [1646203091.878950][2973:2978] CHIP:TOO: errorCode: 0 + [1646203091.878994][2973:2978] CHIP:TOO: debugText: + [1646203091.879063][2973:2978] CHIP:TOO: } [1646203091.879114][2973:2978] CHIP:DMG: ICR moving to [AwaitingDe] - [1646203091.879197][2973:2978] CHIP:EM: Sending Standalone Ack for - MessageCounter:7339336 on exchange 13158i" + [1646203091.879197][2973:2978] CHIP:EM: Sending Standalone Ack for MessageCounter:7339336 on exchange 13158i disabled: true - label: "TH1 sends AttestationRequest command to the DUT" - verification: - "For the 5.5 commissioning flow the steps are added. Not required to - verify on GC test plan verification, because it's verified in another - test plan." + verification: | + For the 5.5 commissioning flow the steps are added. Not required to verify on GC test plan verification, because it's verified in another test plan. disabled: true - label: "TH1 sends CSRRequest command to the DUT" - verification: - "For the 5.5 commissioning flow the steps are added. Not required to - verify on GC test plan verification, because it's verified in another - test plan." + verification: | + For the 5.5 commissioning flow the steps are added. Not required to verify on GC test plan verification, because it's verified in another test plan. disabled: true - label: "TH1 sends AddNOC command to the DUT" - verification: - "For the 5.5 commissioning flow the steps are added. Not required to - verify on GC test plan verification, because it's verified in another - test plan." + verification: | + For the 5.5 commissioning flow the steps are added. Not required to verify on GC test plan verification, because it's verified in another test plan. disabled: true - label: "TH1 Sends CommissionComplete command to the DUT" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning - commissioning-complete 1 0 [1646203451.094771][3006:3011] CHIP:DMG: - InteractionModelRevision = 1 [1646203451.094813][3006:3011] CHIP:DMG: - }, [1646203451.094921][3006:3011] CHIP:DMG: Received Command Response - Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 - [1646203451.094997][3006:3011] CHIP:TOO: Endpoint: 0 Cluster: - 0x0000_0030 Command 0x0000_0005 [1646203451.095097][3006:3011] - CHIP:TOO: CommissioningCompleteResponse: { - [1646203451.095157][3006:3011] CHIP:TOO: errorCode: 0 - [1646203451.095200][3006:3011] CHIP:TOO: debugText: - [1646203451.095242][3006:3011] CHIP:TOO: } + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning commissioning-complete 1 0 + + [1646203451.094771][3006:3011] CHIP:DMG: InteractionModelRevision = 1 + [1646203451.094813][3006:3011] CHIP:DMG: }, + [1646203451.094921][3006:3011] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1646203451.094997][3006:3011] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0005 + [1646203451.095097][3006:3011] CHIP:TOO: CommissioningCompleteResponse: { + [1646203451.095157][3006:3011] CHIP:TOO: errorCode: 0 + [1646203451.095200][3006:3011] CHIP:TOO: debugText: + [1646203451.095242][3006:3011] CHIP:TOO: } [1646203451.095293][3006:3011] CHIP:DMG: ICR moving to [AwaitingDe] - [1646203451.095375][3006:3011] CHIP:EM: Sending Standalone Ack for - MessageCounter:14415629 on exchange 59296i" + [1646203451.095375][3006:3011] CHIP:EM: Sending Standalone Ack for MessageCounter:14415629 on exchange 59296i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_GC_1_3.yaml b/src/app/tests/suites/certification/Test_TC_GC_1_3.yaml index 26e6c9b3984e8d..ccbdbd049c319b 100644 --- a/src/app/tests/suites/certification/Test_TC_GC_1_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_GC_1_3.yaml @@ -21,79 +21,73 @@ config: tests: - label: "Start the commissioning process of TH1 on DUT" - verification: "" + verification: | + disabled: true - label: "TH1 sends ArmFailSafe command to the DUT with ExpiryLengthSeconds as 900 seconds and Breadcrumb value as 0" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning - arm-fail-safe 60 0 60 1 0 [1646202957.619162][2956:2961] CHIP:DMG: - InteractionModelRevision = 1 [1646202957.619205][2956:2961] CHIP:DMG: - }, [1646202957.619299][2956:2961] CHIP:DMG: Received Command Response - Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1646202957.619369][2956:2961] CHIP:TOO: Endpoint: 0 Cluster: - 0x0000_0030 Command 0x0000_0001 [1646202957.619461][2956:2961] - CHIP:TOO: ArmFailSafeResponse: { [1646202957.619522][2956:2961] - CHIP:TOO: errorCode: 0 [1646202957.619556][2956:2961] CHIP:TOO: - debugText: [1646202957.619591][2956:2961] CHIP:TOO: } + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning arm-fail-safe 60 0 60 1 0 + + + [1646202957.619162][2956:2961] CHIP:DMG: InteractionModelRevision = 1 + [1646202957.619205][2956:2961] CHIP:DMG: }, + [1646202957.619299][2956:2961] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 + [1646202957.619369][2956:2961] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 + [1646202957.619461][2956:2961] CHIP:TOO: ArmFailSafeResponse: { + [1646202957.619522][2956:2961] CHIP:TOO: errorCode: 0 + [1646202957.619556][2956:2961] CHIP:TOO: debugText: + [1646202957.619591][2956:2961] CHIP:TOO: } [1646202957.619634][2956:2961] CHIP:DMG: ICR moving to [AwaitingDe] - [1646202957.619712][2956:2961] CHIP:EM: Sending Standalone Ack for - MessageCounter:5531048 on exchange 43022i" + [1646202957.619712][2956:2961] CHIP:EM: Sending Standalone Ack for MessageCounter:5531048 on exchange 43022i disabled: true - label: "TH1 Sends SetRegulatoryConfig command to the DUT with Location attribute" - verification: - "ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning - set-regulatory-config 0 0 0 60 1 0 [1646203091.878703][2973:2978] - CHIP:DMG: Received Command Response Data, Endpoint=0 - Cluster=0x0000_0030 Command=0x0000_0003 [1646203091.878782][2973:2978] - CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0003 - [1646203091.878888][2973:2978] CHIP:TOO: SetRegulatoryConfigResponse: - { [1646203091.878950][2973:2978] CHIP:TOO: errorCode: 0 - [1646203091.878994][2973:2978] CHIP:TOO: debugText: - [1646203091.879063][2973:2978] CHIP:TOO: } + verification: | + ubuntu@ubuntu:~/apps$ sudo ./chip-tool generalcommissioning set-regulatory-config 0 0 0 60 1 0 + + [1646203091.878703][2973:2978] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0003 + [1646203091.878782][2973:2978] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0003 + [1646203091.878888][2973:2978] CHIP:TOO: SetRegulatoryConfigResponse: { + [1646203091.878950][2973:2978] CHIP:TOO: errorCode: 0 + [1646203091.878994][2973:2978] CHIP:TOO: debugText: + [1646203091.879063][2973:2978] CHIP:TOO: } [1646203091.879114][2973:2978] CHIP:DMG: ICR moving to [AwaitingDe] - [1646203091.879197][2973:2978] CHIP:EM: Sending Standalone Ack for - MessageCounter:7339336 on exchange 13158i" + [1646203091.879197][2973:2978] CHIP:EM: Sending Standalone Ack for MessageCounter:7339336 on exchange 13158i disabled: true - label: "TH1 sends AttestationRequest command to the DUT" - verification: - "For the 5.5 commissioning flow the steps are added. Not required to - verify on GC test plan verification, because it's verified in another - test plan." + verification: | + For the 5.5 commissioning flow the steps are added. Not required to verify on GC test plan verification, because it's verified in another test plan. disabled: true - label: "When TH1s commissioning process with DUT is in progress, TH2 sends ArmFailSafe command to the same DUT with ExpiryLengthSeconds value as 950 seconds and Breadcrumb value as 1" - verification: - "./chip-tool generalcommissioning arm-fail-safe 950 1 100 1 0 - [1646317402.469879][13150:13155] CHIP:DMG: Received Command Response - Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1646317402.469969][13150:13155] CHIP:TOO: Endpoint: 0 Cluster: - 0x0000_0030 Command 0x0000_0001 [1646317402.470096][13150:13155] - CHIP:TOO: ArmFailSafeResponse: { [1646317402.470169][13150:13155] - CHIP:TOO: errorCode: 4 [1646317402.470218][13150:13155] CHIP:TOO: - debugText: [1646317402.470266][13150:13155] CHIP:TOO: } - [1646317402.470338][13150:13155] CHIP:DMG: ICR moving to [AwaitingDe]" + verification: | + ./chip-tool generalcommissioning arm-fail-safe 950 1 100 1 0 + + + [1646317402.469879][13150:13155] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 + [1646317402.469969][13150:13155] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 + [1646317402.470096][13150:13155] CHIP:TOO: ArmFailSafeResponse: { + [1646317402.470169][13150:13155] CHIP:TOO: errorCode: 4 + [1646317402.470218][13150:13155] CHIP:TOO: debugText: + [1646317402.470266][13150:13155] CHIP:TOO: } + [1646317402.470338][13150:13155] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: "TH1 sends CSRRequest command to the DUT" - verification: - "For the 5.5 commissioning flow the steps are added. Not required to - verify on GC test plan verification, because it's verified in another - test plan." + verification: | + For the 5.5 commissioning flow the steps are added. Not required to verify on GC test plan verification, because it's verified in another test plan. disabled: true - label: "TH1 sends AddNOC command to the DUT" - verification: - "For the 5.5 commissioning flow the steps are added. Not required to - verify on GC test plan verification, because it's verified in another - test plan." + verification: | + For the 5.5 commissioning flow the steps are added. Not required to verify on GC test plan verification, because it's verified in another test plan. disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_GENDIAG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_GENDIAG_1_1.yaml index 10b5afe118d72d..bb0bbdbd0c955e 100644 --- a/src/app/tests/suites/certification/Test_TC_GENDIAG_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_GENDIAG_1_1.yaml @@ -21,523 +21,445 @@ config: tests: - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read network-interfaces 1 0 - [1636557398.652588][2921:2927] CHIP:EM: Flushed pending ack for - MessageCounter:1532129280 on exchange 32260i - [1636557398.762984][2921:2927] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 32261i - [1636557398.763086][2921:2927] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 32261i - [1636557398.763136][2921:2927] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 32261i [1636557398.763218][2921:2927] - CHIP:DMG: ReportDataMessage = [1636557398.763272][2921:2927] CHIP:DMG: - { [1636557398.763313][2921:2927] CHIP:DMG: AttributeDataList = - [1636557398.763365][2921:2927] CHIP:DMG: [ - [1636557398.763413][2921:2927] CHIP:DMG: AttributeDataElement = - [1636557398.763475][2921:2927] CHIP:DMG: { - [1636557398.763526][2921:2927] CHIP:DMG: AttributePathIB = - [1636557398.763599][2921:2927] CHIP:DMG: { - [1636557398.763672][2921:2927] CHIP:DMG: Endpoint = 0x1, - [1636557398.763748][2921:2927] CHIP:DMG: Cluster = 0x33, - [1636557398.763824][2921:2927] CHIP:DMG: Attribute = 0x0000_0000, - [1636557398.763895][2921:2927] CHIP:DMG: } + verification: | + ./chip-tool generaldiagnostics read network-interfaces 1 0 + + [1636557398.652588][2921:2927] CHIP:EM: Flushed pending ack for MessageCounter:1532129280 on exchange 32260i + [1636557398.762984][2921:2927] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 32261i + [1636557398.763086][2921:2927] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 32261i + [1636557398.763136][2921:2927] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 32261i + [1636557398.763218][2921:2927] CHIP:DMG: ReportDataMessage = + [1636557398.763272][2921:2927] CHIP:DMG: { + [1636557398.763313][2921:2927] CHIP:DMG: AttributeDataList = + [1636557398.763365][2921:2927] CHIP:DMG: [ + [1636557398.763413][2921:2927] CHIP:DMG: AttributeDataElement = + [1636557398.763475][2921:2927] CHIP:DMG: { + [1636557398.763526][2921:2927] CHIP:DMG: AttributePathIB = + [1636557398.763599][2921:2927] CHIP:DMG: { + [1636557398.763672][2921:2927] CHIP:DMG: Endpoint = 0x1, + [1636557398.763748][2921:2927] CHIP:DMG: Cluster = 0x33, + [1636557398.763824][2921:2927] CHIP:DMG: Attribute = 0x0000_0000, + [1636557398.763895][2921:2927] CHIP:DMG: } [1636557398.763971][2921:2927] CHIP:DMG: - [1636557398.764041][2921:2927] CHIP:DMG: Data = [ + [1636557398.764041][2921:2927] CHIP:DMG: Data = [ [1636557398.764111][2921:2927] CHIP:DMG: - [1636557398.764180][2921:2927] CHIP:DMG: { - [1636557398.764260][2921:2927] CHIP:DMG: 0x0 = 'docker0', - [1636557398.764398][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.764477][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.764557][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.764633][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.764712][2921:2927] CHIP:DMG: 0x2, 0x42, 0xb1, 0xa, 0x8d, - 0xbb, [1636557398.764794][2921:2927] CHIP:DMG: ] - [1636557398.764872][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.764950][2921:2927] CHIP:DMG: }, - [1636557398.765023][2921:2927] CHIP:DMG: { - [1636557398.765099][2921:2927] CHIP:DMG: 0x0 = 'br-df4639020401', - [1636557398.765180][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.765257][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.765334][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.765410][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.765488][2921:2927] CHIP:DMG: 0x2, 0x42, 0x37, 0x57, 0x42, - 0x53, [1636557398.765569][2921:2927] CHIP:DMG: ] - [1636557398.765648][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.765724][2921:2927] CHIP:DMG: }, - [1636557398.765797][2921:2927] CHIP:DMG: { - [1636557398.765873][2921:2927] CHIP:DMG: 0x0 = 'br-9b548749a6f7', - [1636557398.765952][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.766031][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.766108][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.766185][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.766263][2921:2927] CHIP:DMG: 0x2, 0x42, 0xa8, 0x9e, 0xe9, - 0x22, [1636557398.766347][2921:2927] CHIP:DMG: ] - [1636557398.766424][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.766503][2921:2927] CHIP:DMG: }, - [1636557398.766576][2921:2927] CHIP:DMG: { - [1636557398.766652][2921:2927] CHIP:DMG: 0x0 = 'wlan0', - [1636557398.766731][2921:2927] CHIP:DMG: 0x1 = true, - [1636557398.766809][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.766886][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.766962][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.767180][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, - 0xf9, [1636557398.767277][2921:2927] CHIP:DMG: ] - [1636557398.767358][2921:2927] CHIP:DMG: 0x5 = 1, - [1636557398.767435][2921:2927] CHIP:DMG: }, - [1636557398.767507][2921:2927] CHIP:DMG: { - [1636557398.767583][2921:2927] CHIP:DMG: 0x0 = 'eth0', - [1636557398.767661][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.767740][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.767818][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.767893][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.767972][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, - 0xf8, [1636557398.768058][2921:2927] CHIP:DMG: ] - [1636557398.768136][2921:2927] CHIP:DMG: 0x5 = 2, - [1636557398.768212][2921:2927] CHIP:DMG: }, - [1636557398.768310][2921:2927] CHIP:DMG: { - [1636557398.768389][2921:2927] CHIP:DMG: 0x0 = 'lo', - [1636557398.768468][2921:2927] CHIP:DMG: 0x1 = true, - [1636557398.768545][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.768623][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.768699][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.768777][2921:2927] CHIP:DMG: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - [1636557398.768860][2921:2927] CHIP:DMG: ] - [1636557398.768907][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.768953][2921:2927] CHIP:DMG: }, - [1636557398.769050][2921:2927] CHIP:DMG: ], - [1636557398.769094][2921:2927] CHIP:DMG: DataElementVersion = 0x0, - [1636557398.769134][2921:2927] CHIP:DMG: }, + [1636557398.764180][2921:2927] CHIP:DMG: { + [1636557398.764260][2921:2927] CHIP:DMG: 0x0 = "docker0", + [1636557398.764398][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.764477][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.764557][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.764633][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.764712][2921:2927] CHIP:DMG: 0x2, 0x42, 0xb1, 0xa, 0x8d, 0xbb, + [1636557398.764794][2921:2927] CHIP:DMG: ] + [1636557398.764872][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.764950][2921:2927] CHIP:DMG: }, + [1636557398.765023][2921:2927] CHIP:DMG: { + [1636557398.765099][2921:2927] CHIP:DMG: 0x0 = "br-df4639020401", + [1636557398.765180][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.765257][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.765334][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.765410][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.765488][2921:2927] CHIP:DMG: 0x2, 0x42, 0x37, 0x57, 0x42, 0x53, + [1636557398.765569][2921:2927] CHIP:DMG: ] + [1636557398.765648][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.765724][2921:2927] CHIP:DMG: }, + [1636557398.765797][2921:2927] CHIP:DMG: { + [1636557398.765873][2921:2927] CHIP:DMG: 0x0 = "br-9b548749a6f7", + [1636557398.765952][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.766031][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.766108][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.766185][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.766263][2921:2927] CHIP:DMG: 0x2, 0x42, 0xa8, 0x9e, 0xe9, 0x22, + [1636557398.766347][2921:2927] CHIP:DMG: ] + [1636557398.766424][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.766503][2921:2927] CHIP:DMG: }, + [1636557398.766576][2921:2927] CHIP:DMG: { + [1636557398.766652][2921:2927] CHIP:DMG: 0x0 = "wlan0", + [1636557398.766731][2921:2927] CHIP:DMG: 0x1 = true, + [1636557398.766809][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.766886][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.766962][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.767180][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, 0xf9, + [1636557398.767277][2921:2927] CHIP:DMG: ] + [1636557398.767358][2921:2927] CHIP:DMG: 0x5 = 1, + [1636557398.767435][2921:2927] CHIP:DMG: }, + [1636557398.767507][2921:2927] CHIP:DMG: { + [1636557398.767583][2921:2927] CHIP:DMG: 0x0 = "eth0", + [1636557398.767661][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.767740][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.767818][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.767893][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.767972][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, 0xf8, + [1636557398.768058][2921:2927] CHIP:DMG: ] + [1636557398.768136][2921:2927] CHIP:DMG: 0x5 = 2, + [1636557398.768212][2921:2927] CHIP:DMG: }, + [1636557398.768310][2921:2927] CHIP:DMG: { + [1636557398.768389][2921:2927] CHIP:DMG: 0x0 = "lo", + [1636557398.768468][2921:2927] CHIP:DMG: 0x1 = true, + [1636557398.768545][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.768623][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.768699][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.768777][2921:2927] CHIP:DMG: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + [1636557398.768860][2921:2927] CHIP:DMG: ] + [1636557398.768907][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.768953][2921:2927] CHIP:DMG: }, + [1636557398.769050][2921:2927] CHIP:DMG: ], + [1636557398.769094][2921:2927] CHIP:DMG: DataElementVersion = 0x0, + [1636557398.769134][2921:2927] CHIP:DMG: }, [1636557398.769199][2921:2927] CHIP:DMG: - [1636557398.769227][2921:2927] CHIP:DMG: ], + [1636557398.769227][2921:2927] CHIP:DMG: ], [1636557398.769286][2921:2927] CHIP:DMG: [1636557398.769313][2921:2927] CHIP:DMG: } [1636557398.769502][2921:2927] CHIP:ZCL: ReadAttributesResponse: - [1636557398.769528][2921:2927] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557398.769557][2921:2927] CHIP:ZCL: attributeId: 0x0000_0000 - [1636557398.769582][2921:2927] CHIP:ZCL: status: Success (0x0000) - [1636557398.769606][2921:2927] CHIP:ZCL: attribute TLV Type: 0x16 - [1636557398.769690][2921:2927] CHIP:TOO: - OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse: 6 entries - [1636557398.769823][2921:2927] CHIP:TOO: [1]: { - [1636557398.769851][2921:2927] CHIP:TOO: Name: docker0 - [1636557398.769879][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.769904][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.769929][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.769955][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.769984][2921:2927] CHIP:TOO: Type: 0 - [1636557398.770009][2921:2927] CHIP:TOO: } - [1636557398.770048][2921:2927] CHIP:TOO: [2]: { - [1636557398.770074][2921:2927] CHIP:TOO: Name: br-df4639020401 - [1636557398.770099][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.770123][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770148][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770173][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770199][2921:2927] CHIP:TOO: Type: 0 - [1636557398.770224][2921:2927] CHIP:TOO: } - [1636557398.770261][2921:2927] CHIP:TOO: [3]: { - [1636557398.770288][2921:2927] CHIP:TOO: Name: br-9b548749a6f7 - [1636557398.770313][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.770338][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770363][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770387][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770414][2921:2927] CHIP:TOO: Type: 0 - [1636557398.770438][2921:2927] CHIP:TOO: } - [1636557398.770476][2921:2927] CHIP:TOO: [4]: { - [1636557398.770502][2921:2927] CHIP:TOO: Name: wlan0 - [1636557398.770526][2921:2927] CHIP:TOO: FabricConnected: TRUE - [1636557398.770551][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770576][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770601][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770627][2921:2927] CHIP:TOO: Type: 1 - [1636557398.770651][2921:2927] CHIP:TOO: } - [1636557398.770689][2921:2927] CHIP:TOO: [5]: { - [1636557398.770715][2921:2927] CHIP:TOO: Name: eth0 - [1636557398.770740][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.770764][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770789][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770814][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770840][2921:2927] CHIP:TOO: Type: 2 - [1636557398.770864][2921:2927] CHIP:TOO: } - [1636557398.770901][2921:2927] CHIP:TOO: [6]: { - [1636557398.770927][2921:2927] CHIP:TOO: Name: lo - [1636557398.770952][2921:2927] CHIP:TOO: FabricConnected: TRUE - [1636557398.770977][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.771001][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.771026][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.771052][2921:2927] CHIP:TOO: Type: 0 - [1636557398.771077][2921:2927] CHIP:TOO: } - [1636557398.771188][2921:2927] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 32261i [1636557398.771266][2921:2927] - CHIP:IN: Prepared encrypted message 0xaaaaeca5bf00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 32261i with MessageC ounter:1. [1636557398.771312][2921:2927] CHIP:IN: - Sending encrypted msg 0xaaaaeca5bf00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3104047 msec" + [1636557398.769528][2921:2927] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557398.769557][2921:2927] CHIP:ZCL: attributeId: 0x0000_0000 + [1636557398.769582][2921:2927] CHIP:ZCL: status: Success (0x0000) + [1636557398.769606][2921:2927] CHIP:ZCL: attribute TLV Type: 0x16 + [1636557398.769690][2921:2927] CHIP:TOO: OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse: 6 entries + [1636557398.769823][2921:2927] CHIP:TOO: [1]: { + [1636557398.769851][2921:2927] CHIP:TOO: Name: docker0 + [1636557398.769879][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.769904][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.769929][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.769955][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.769984][2921:2927] CHIP:TOO: Type: 0 + [1636557398.770009][2921:2927] CHIP:TOO: } + [1636557398.770048][2921:2927] CHIP:TOO: [2]: { + [1636557398.770074][2921:2927] CHIP:TOO: Name: br-df4639020401 + [1636557398.770099][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.770123][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770148][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770173][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770199][2921:2927] CHIP:TOO: Type: 0 + [1636557398.770224][2921:2927] CHIP:TOO: } + [1636557398.770261][2921:2927] CHIP:TOO: [3]: { + [1636557398.770288][2921:2927] CHIP:TOO: Name: br-9b548749a6f7 + [1636557398.770313][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.770338][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770363][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770387][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770414][2921:2927] CHIP:TOO: Type: 0 + [1636557398.770438][2921:2927] CHIP:TOO: } + [1636557398.770476][2921:2927] CHIP:TOO: [4]: { + [1636557398.770502][2921:2927] CHIP:TOO: Name: wlan0 + [1636557398.770526][2921:2927] CHIP:TOO: FabricConnected: TRUE + [1636557398.770551][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770576][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770601][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770627][2921:2927] CHIP:TOO: Type: 1 + [1636557398.770651][2921:2927] CHIP:TOO: } + [1636557398.770689][2921:2927] CHIP:TOO: [5]: { + [1636557398.770715][2921:2927] CHIP:TOO: Name: eth0 + [1636557398.770740][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.770764][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770789][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770814][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770840][2921:2927] CHIP:TOO: Type: 2 + [1636557398.770864][2921:2927] CHIP:TOO: } + [1636557398.770901][2921:2927] CHIP:TOO: [6]: { + [1636557398.770927][2921:2927] CHIP:TOO: Name: lo + [1636557398.770952][2921:2927] CHIP:TOO: FabricConnected: TRUE + [1636557398.770977][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.771001][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.771026][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.771052][2921:2927] CHIP:TOO: Type: 0 + [1636557398.771077][2921:2927] CHIP:TOO: } + [1636557398.771188][2921:2927] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 32261i + [1636557398.771266][2921:2927] CHIP:IN: Prepared encrypted message 0xaaaaeca5bf00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 32261i with MessageC + ounter:1. + [1636557398.771312][2921:2927] CHIP:IN: Sending encrypted msg 0xaaaaeca5bf00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3104047 msec disabled: true - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read reboot-count 1 0 - [1636557429.678822][2935:2941] CHIP:EM: Flushed pending ack for - MessageCounter:1532129282 on exchange 22621i - [1636557429.719202][2935:2941] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 22622i - [1636557429.719259][2935:2941] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 22622i - [1636557429.719289][2935:2941] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 22622i [1636557429.752586][2935:2941] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 22622i [1636557429.752653][2935:2941] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 22622i + verification: | + ./chip-tool generaldiagnostics read reboot-count 1 0 + + [1636557429.678822][2935:2941] CHIP:EM: Flushed pending ack for MessageCounter:1532129282 on exchange 22621i + [1636557429.719202][2935:2941] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 22622i + [1636557429.719259][2935:2941] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 22622i + [1636557429.719289][2935:2941] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 22622i + [1636557429.752586][2935:2941] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 22622i + [1636557429.752653][2935:2941] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 22622i [1636557429.752737][2935:2941] CHIP:DMG: ReportDataMessage = [1636557429.752792][2935:2941] CHIP:DMG: { - [1636557429.752835][2935:2941] CHIP:DMG: AttributeDataList = - [1636557429.752889][2935:2941] CHIP:DMG: [ - [1636557429.752938][2935:2941] CHIP:DMG: AttributeDataElement = - [1636557429.753004][2935:2941] CHIP:DMG: { - [1636557429.753062][2935:2941] CHIP:DMG: AttributePathIB = - [1636557429.753136][2935:2941] CHIP:DMG: { - [1636557429.753209][2935:2941] CHIP:DMG: Endpoint = 0x1, - [1636557429.753287][2935:2941] CHIP:DMG: Cluster = 0x33, - [1636557429.753364][2935:2941] CHIP:DMG: Attribute = 0x0000_0001, - [1636557429.753435][2935:2941] CHIP:DMG: } + [1636557429.752835][2935:2941] CHIP:DMG: AttributeDataList = + [1636557429.752889][2935:2941] CHIP:DMG: [ + [1636557429.752938][2935:2941] CHIP:DMG: AttributeDataElement = + [1636557429.753004][2935:2941] CHIP:DMG: { + [1636557429.753062][2935:2941] CHIP:DMG: AttributePathIB = + [1636557429.753136][2935:2941] CHIP:DMG: { + [1636557429.753209][2935:2941] CHIP:DMG: Endpoint = 0x1, + [1636557429.753287][2935:2941] CHIP:DMG: Cluster = 0x33, + [1636557429.753364][2935:2941] CHIP:DMG: Attribute = 0x0000_0001, + [1636557429.753435][2935:2941] CHIP:DMG: } [1636557429.753513][2935:2941] CHIP:DMG: - [1636557429.753588][2935:2941] CHIP:DMG: Data = 2, - [1636557429.753659][2935:2941] CHIP:DMG: DataElementVersion = 0x0, - [1636557429.753726][2935:2941] CHIP:DMG: }, + [1636557429.753588][2935:2941] CHIP:DMG: Data = 2, + [1636557429.753659][2935:2941] CHIP:DMG: DataElementVersion = 0x0, + [1636557429.753726][2935:2941] CHIP:DMG: }, [1636557429.753793][2935:2941] CHIP:DMG: - [1636557429.753840][2935:2941] CHIP:DMG: ], + [1636557429.753840][2935:2941] CHIP:DMG: ], [1636557429.753900][2935:2941] CHIP:DMG: [1636557429.753943][2935:2941] CHIP:DMG: } [1636557429.754095][2935:2941] CHIP:ZCL: ReadAttributesResponse: - [1636557429.754139][2935:2941] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557429.754185][2935:2941] CHIP:ZCL: attributeId: 0x0000_0001 - [1636557429.754227][2935:2941] CHIP:ZCL: status: Success (0x0000) - [1636557429.754268][2935:2941] CHIP:ZCL: attribute TLV Type: 0x04 + [1636557429.754139][2935:2941] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557429.754185][2935:2941] CHIP:ZCL: attributeId: 0x0000_0001 + [1636557429.754227][2935:2941] CHIP:ZCL: status: Success (0x0000) + [1636557429.754268][2935:2941] CHIP:ZCL: attribute TLV Type: 0x04 [1636557429.754310][2935:2941] CHIP:TOO: Int16u attribute Response: 2 - [1636557429.754424][2935:2941] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 22622i [1636557429.754523][2935:2941] - CHIP:IN: Prepared encrypted message 0xaaaae0f4ef00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 22622i with MessageCounter:1. [1636557429.754594][2935:2941] CHIP:IN: - Sending encrypted msg 0xaaaae0f4ef00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3135030 msec" + [1636557429.754424][2935:2941] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 22622i + [1636557429.754523][2935:2941] CHIP:IN: Prepared encrypted message 0xaaaae0f4ef00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 22622i with MessageCounter:1. + [1636557429.754594][2935:2941] CHIP:IN: Sending encrypted msg 0xaaaae0f4ef00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3135030 msec disabled: true - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read up-time 1 0 - [1636557446.573304][2944:2949] CHIP:EM: Flushed pending ack for - MessageCounter:1532129284 on exchange 58848i - [1636557446.611807][2944:2949] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 58849i - [1636557446.611854][2944:2949] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 58849i - [1636557446.611875][2944:2949] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 58849i [1636557446.646357][2944:2949] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 58849i [1636557446.646428][2944:2949] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 58849i + verification: | + ./chip-tool generaldiagnostics read up-time 1 0 + + [1636557446.573304][2944:2949] CHIP:EM: Flushed pending ack for MessageCounter:1532129284 on exchange 58848i + [1636557446.611807][2944:2949] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 58849i + [1636557446.611854][2944:2949] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 58849i + [1636557446.611875][2944:2949] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 58849i + [1636557446.646357][2944:2949] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 58849i + [1636557446.646428][2944:2949] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 58849i [1636557446.646532][2944:2949] CHIP:DMG: ReportDataMessage = [1636557446.646588][2944:2949] CHIP:DMG: { - [1636557446.646632][2944:2949] CHIP:DMG: AttributeDataList = - [1636557446.646685][2944:2949] CHIP:DMG: [ - [1636557446.646734][2944:2949] CHIP:DMG: AttributeDataElement = - [1636557446.646798][2944:2949] CHIP:DMG: { - [1636557446.646855][2944:2949] CHIP:DMG: AttributePathIB = - [1636557446.646928][2944:2949] CHIP:DMG: { - [1636557446.647004][2944:2949] CHIP:DMG: Endpoint = 0x1, - [1636557446.647081][2944:2949] CHIP:DMG: Cluster = 0x33, - [1636557446.647160][2944:2949] CHIP:DMG: Attribute = 0x0000_0002, - [1636557446.647231][2944:2949] CHIP:DMG: } + [1636557446.646632][2944:2949] CHIP:DMG: AttributeDataList = + [1636557446.646685][2944:2949] CHIP:DMG: [ + [1636557446.646734][2944:2949] CHIP:DMG: AttributeDataElement = + [1636557446.646798][2944:2949] CHIP:DMG: { + [1636557446.646855][2944:2949] CHIP:DMG: AttributePathIB = + [1636557446.646928][2944:2949] CHIP:DMG: { + [1636557446.647004][2944:2949] CHIP:DMG: Endpoint = 0x1, + [1636557446.647081][2944:2949] CHIP:DMG: Cluster = 0x33, + [1636557446.647160][2944:2949] CHIP:DMG: Attribute = 0x0000_0002, + [1636557446.647231][2944:2949] CHIP:DMG: } [1636557446.647309][2944:2949] CHIP:DMG: - [1636557446.647387][2944:2949] CHIP:DMG: Data = 1132, - [1636557446.647453][2944:2949] CHIP:DMG: DataElementVersion = 0x0, - [1636557446.647520][2944:2949] CHIP:DMG: }, + [1636557446.647387][2944:2949] CHIP:DMG: Data = 1132, + [1636557446.647453][2944:2949] CHIP:DMG: DataElementVersion = 0x0, + [1636557446.647520][2944:2949] CHIP:DMG: }, [1636557446.647588][2944:2949] CHIP:DMG: - [1636557446.647638][2944:2949] CHIP:DMG: ], + [1636557446.647638][2944:2949] CHIP:DMG: ], [1636557446.647698][2944:2949] CHIP:DMG: [1636557446.647743][2944:2949] CHIP:DMG: } [1636557446.647894][2944:2949] CHIP:ZCL: ReadAttributesResponse: - [1636557446.647938][2944:2949] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557446.647985][2944:2949] CHIP:ZCL: attributeId: 0x0000_0002 - [1636557446.648028][2944:2949] CHIP:ZCL: status: Success (0x0000) - [1636557446.648069][2944:2949] CHIP:ZCL: attribute TLV Type: 0x04 - [1636557446.648112][2944:2949] CHIP:TOO: Int64u attribute Response: - 1132 [1636557446.648231][2944:2949] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 58849i [1636557446.648389][2944:2949] - CHIP:IN: Prepared encrypted message 0xaaaad4f6df00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 58849i with MessageC ounter:1. [1636557446.648459][2944:2949] CHIP:IN: - Sending encrypted msg 0xaaaad4f6df00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3151924 msec" + [1636557446.647938][2944:2949] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557446.647985][2944:2949] CHIP:ZCL: attributeId: 0x0000_0002 + [1636557446.648028][2944:2949] CHIP:ZCL: status: Success (0x0000) + [1636557446.648069][2944:2949] CHIP:ZCL: attribute TLV Type: 0x04 + [1636557446.648112][2944:2949] CHIP:TOO: Int64u attribute Response: 1132 + [1636557446.648231][2944:2949] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 58849i + [1636557446.648389][2944:2949] CHIP:IN: Prepared encrypted message 0xaaaad4f6df00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 58849i with MessageC + ounter:1. + [1636557446.648459][2944:2949] CHIP:IN: Sending encrypted msg 0xaaaad4f6df00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3151924 msec disabled: true - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read total-operational-hours 1 0 - [1641964558.888877][42874:42879] CHIP:IN: Sending unauthenticated msg - 0x7f3214b1a000 with MessageCounter:2008198488 to 0x0000000000000000 at - monotonic time: 37232446 msec [1641964558.888942][42874:42879] - CHIP:EM: Flushed pending ack for MessageCounter:232282341 on exchange - 38751i [1641964558.931625][42874:42879] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:13392059 on - exchange 38752i [1641964558.931677][42874:42879] CHIP:EM: Found - matching exchange: 38752i, Delegate: 0x7f3200001980 - [1641964558.931706][42874:42879] CHIP:EM: Rxd Ack; Removing - MessageCounter:12235477 from Retrans Table on exchange 38752i - [1641964558.931723][42874:42879] CHIP:EM: Removed CHIP - MessageCounter:12235477 from RetransTable on exchange 38752i + verification: | + ./chip-tool generaldiagnostics read total-operational-hours 1 0 + + [1641964558.888877][42874:42879] CHIP:IN: Sending unauthenticated msg 0x7f3214b1a000 with MessageCounter:2008198488 to 0x0000000000000000 at monotonic time: 37232446 msec + [1641964558.888942][42874:42879] CHIP:EM: Flushed pending ack for MessageCounter:232282341 on exchange 38751i + [1641964558.931625][42874:42879] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:13392059 on exchange 38752i + [1641964558.931677][42874:42879] CHIP:EM: Found matching exchange: 38752i, Delegate: 0x7f3200001980 + [1641964558.931706][42874:42879] CHIP:EM: Rxd Ack; Removing MessageCounter:12235477 from Retrans Table on exchange 38752i + [1641964558.931723][42874:42879] CHIP:EM: Removed CHIP MessageCounter:12235477 from RetransTable on exchange 38752i [1641964558.931771][42874:42879] CHIP:DMG: ReportDataMessage = [1641964558.931791][42874:42879] CHIP:DMG: { - [1641964558.931804][42874:42879] CHIP:DMG: AttributeReportIBs = - [1641964558.931829][42874:42879] CHIP:DMG: [ - [1641964558.931845][42874:42879] CHIP:DMG: AttributeReportIB = - [1641964558.931871][42874:42879] CHIP:DMG: { - [1641964558.931887][42874:42879] CHIP:DMG: AttributeDataIB = - [1641964558.931906][42874:42879] CHIP:DMG: { - [1641964558.931926][42874:42879] CHIP:DMG: DataVersion = 0x0, - [1641964558.931948][42874:42879] CHIP:DMG: AttributePathIB = - [1641964558.931967][42874:42879] CHIP:DMG: { - [1641964558.931986][42874:42879] CHIP:DMG: Endpoint = 0x0, - [1641964558.932009][42874:42879] CHIP:DMG: Cluster = 0x33, - [1641964558.932032][42874:42879] CHIP:DMG: Attribute = 0x0000_0003, - [1641964558.932054][42874:42879] CHIP:DMG: } + [1641964558.931804][42874:42879] CHIP:DMG: AttributeReportIBs = + [1641964558.931829][42874:42879] CHIP:DMG: [ + [1641964558.931845][42874:42879] CHIP:DMG: AttributeReportIB = + [1641964558.931871][42874:42879] CHIP:DMG: { + [1641964558.931887][42874:42879] CHIP:DMG: AttributeDataIB = + [1641964558.931906][42874:42879] CHIP:DMG: { + [1641964558.931926][42874:42879] CHIP:DMG: DataVersion = 0x0, + [1641964558.931948][42874:42879] CHIP:DMG: AttributePathIB = + [1641964558.931967][42874:42879] CHIP:DMG: { + [1641964558.931986][42874:42879] CHIP:DMG: Endpoint = 0x0, + [1641964558.932009][42874:42879] CHIP:DMG: Cluster = 0x33, + [1641964558.932032][42874:42879] CHIP:DMG: Attribute = 0x0000_0003, + [1641964558.932054][42874:42879] CHIP:DMG: } [1641964558.932104][42874:42879] CHIP:DMG: - [1641964558.932126][42874:42879] CHIP:DMG: Data = 0, - [1641964558.932144][42874:42879] CHIP:DMG: }, + [1641964558.932126][42874:42879] CHIP:DMG: Data = 0, + [1641964558.932144][42874:42879] CHIP:DMG: }, [1641964558.932167][42874:42879] CHIP:DMG: - [1641964558.932184][42874:42879] CHIP:DMG: }, + [1641964558.932184][42874:42879] CHIP:DMG: }, [1641964558.932216][42874:42879] CHIP:DMG: - [1641964558.932239][42874:42879] CHIP:DMG: ], + [1641964558.932239][42874:42879] CHIP:DMG: ], [1641964558.932274][42874:42879] CHIP:DMG: - [1641964558.932297][42874:42879] CHIP:DMG: SuppressResponse = true, + [1641964558.932297][42874:42879] CHIP:DMG: SuppressResponse = true, [1641964558.932319][42874:42879] CHIP:DMG: } - [1641964558.932502][42874:42879] CHIP:TOO: - GeneralDiagnostics.TotalOperationalHours response: 0 - [1641964558.932584][42874:42879] CHIP:EM: Sending Standalone Ack for - MessageCounter:13392059 on exchange 38752i - [1641964558.932652][42874:42879] CHIP:IN: Prepared secure message - 0x7f3214b19fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 38752i with MessageCounter:12235478. - [1641964558.932687][42874:42879] CHIP:IN: Sending encrypted msg - 0x7f3214b19fe0 with MessageCounter:12235478 to 0x0000000000000002 (1) - at monotonic time: 37232490 msec [1641964558.932795][42874:42879] - CHIP:EM: Flushed pending ack for MessageCounter:13392059 on exchange - 38752i" + [1641964558.932502][42874:42879] CHIP:TOO: GeneralDiagnostics.TotalOperationalHours response: 0 + [1641964558.932584][42874:42879] CHIP:EM: Sending Standalone Ack for MessageCounter:13392059 on exchange 38752i + [1641964558.932652][42874:42879] CHIP:IN: Prepared secure message 0x7f3214b19fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 38752i with MessageCounter:12235478. + [1641964558.932687][42874:42879] CHIP:IN: Sending encrypted msg 0x7f3214b19fe0 with MessageCounter:12235478 to 0x0000000000000002 (1) at monotonic time: 37232490 msec + [1641964558.932795][42874:42879] CHIP:EM: Flushed pending ack for MessageCounter:13392059 on exchange 38752i disabled: true - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read boot-reasons 1 0 - [1636557536.267635][2963:2968] CHIP:EM: Flushed pending ack for - MessageCounter:1532129288 on exchange 40103i - [1636557536.334504][2963:2968] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 40104i - [1636557536.334549][2963:2968] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 40104i - [1636557536.334570][2963:2968] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 40104i [1636557536.334609][2963:2968] - CHIP:DMG: ReportDataMessage = [1636557536.334635][2963:2968] CHIP:DMG: - { [1636557536.334653][2963:2968] CHIP:DMG: AttributeDataList = - [1636557536.334676][2963:2968] CHIP:DMG: [ - [1636557536.334697][2963:2968] CHIP:DMG: AttributeDataElement = - [1636557536.334724][2963:2968] CHIP:DMG: { - [1636557536.334746][2963:2968] CHIP:DMG: AttributePathIB = - [1636557536.334778][2963:2968] CHIP:DMG: { - [1636557536.334811][2963:2968] CHIP:DMG: Endpoint = 0x1, - [1636557536.334842][2963:2968] CHIP:DMG: Cluster = 0x33, - [1636557536.334874][2963:2968] CHIP:DMG: Attribute = 0x0000_0004, - [1636557536.334904][2963:2968] CHIP:DMG: } + verification: | + ./chip-tool generaldiagnostics read boot-reasons 1 0 + + [1636557536.267635][2963:2968] CHIP:EM: Flushed pending ack for MessageCounter:1532129288 on exchange 40103i + [1636557536.334504][2963:2968] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 40104i + [1636557536.334549][2963:2968] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 40104i + [1636557536.334570][2963:2968] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 40104i + [1636557536.334609][2963:2968] CHIP:DMG: ReportDataMessage = + [1636557536.334635][2963:2968] CHIP:DMG: { + [1636557536.334653][2963:2968] CHIP:DMG: AttributeDataList = + [1636557536.334676][2963:2968] CHIP:DMG: [ + [1636557536.334697][2963:2968] CHIP:DMG: AttributeDataElement = + [1636557536.334724][2963:2968] CHIP:DMG: { + [1636557536.334746][2963:2968] CHIP:DMG: AttributePathIB = + [1636557536.334778][2963:2968] CHIP:DMG: { + [1636557536.334811][2963:2968] CHIP:DMG: Endpoint = 0x1, + [1636557536.334842][2963:2968] CHIP:DMG: Cluster = 0x33, + [1636557536.334874][2963:2968] CHIP:DMG: Attribute = 0x0000_0004, + [1636557536.334904][2963:2968] CHIP:DMG: } [1636557536.334938][2963:2968] CHIP:DMG: - [1636557536.334970][2963:2968] CHIP:DMG: Data = 6, - [1636557536.334999][2963:2968] CHIP:DMG: DataElementVersion = 0x0, - [1636557536.335024][2963:2968] CHIP:DMG: }, + [1636557536.334970][2963:2968] CHIP:DMG: Data = 6, + [1636557536.334999][2963:2968] CHIP:DMG: DataElementVersion = 0x0, + [1636557536.335024][2963:2968] CHIP:DMG: }, [1636557536.335053][2963:2968] CHIP:DMG: - [1636557536.335072][2963:2968] CHIP:DMG: ], + [1636557536.335072][2963:2968] CHIP:DMG: ], [1636557536.335098][2963:2968] CHIP:DMG: [1636557536.335116][2963:2968] CHIP:DMG: } [1636557536.335198][2963:2968] CHIP:ZCL: ReadAttributesResponse: - [1636557536.335217][2963:2968] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557536.335238][2963:2968] CHIP:ZCL: attributeId: 0x0000_0004 - [1636557536.335256][2963:2968] CHIP:ZCL: status: Success (0x0000) - [1636557536.335274][2963:2968] CHIP:ZCL: attribute TLV Type: 0x04 + [1636557536.335217][2963:2968] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557536.335238][2963:2968] CHIP:ZCL: attributeId: 0x0000_0004 + [1636557536.335256][2963:2968] CHIP:ZCL: status: Success (0x0000) + [1636557536.335274][2963:2968] CHIP:ZCL: attribute TLV Type: 0x04 [1636557536.335293][2963:2968] CHIP:TOO: Int8u attribute Response: 6 - [1636557536.335361][2963:2968] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 40104i [1636557536.335414][2963:2968] - CHIP:IN: Prepared encrypted message 0xaaaaf45d5f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 40104i with MessageCounter:1. [1636557536.335445][2963:2968] CHIP:IN: - Sending encrypted msg 0xaaaaf45d5f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3241611 msec" + [1636557536.335361][2963:2968] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 40104i + [1636557536.335414][2963:2968] CHIP:IN: Prepared encrypted message 0xaaaaf45d5f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 40104i with MessageCounter:1. + [1636557536.335445][2963:2968] CHIP:IN: Sending encrypted msg 0xaaaaf45d5f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3241611 msec disabled: true - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read active-hardware-faults 1 0 - [1641965190.317466][43496:43501] CHIP:IN: Sending unauthenticated msg - 0x7fa9a09e4000 with MessageCounter:2890688003 to 0x0000000000000000 at - monotonic time: 37863874 msec [1641965190.317561][43496:43501] - CHIP:EM: Flushed pending ack for MessageCounter:232282345 on exchange - 8364i [1641965190.363021][43496:43501] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:7831593 on exchange - 8365i [1641965190.363074][43496:43501] CHIP:EM: Found matching - exchange: 8365i, Delegate: 0x7fa98c001980 - [1641965190.363105][43496:43501] CHIP:EM: Rxd Ack; Removing - MessageCounter:4919296 from Retrans Table on exchange 8365i - [1641965190.363125][43496:43501] CHIP:EM: Removed CHIP - MessageCounter:4919296 from RetransTable on exchange 8365i + verification: | + ./chip-tool generaldiagnostics read active-hardware-faults 1 0 + + [1641965190.317466][43496:43501] CHIP:IN: Sending unauthenticated msg 0x7fa9a09e4000 with MessageCounter:2890688003 to 0x0000000000000000 at monotonic time: 37863874 msec + [1641965190.317561][43496:43501] CHIP:EM: Flushed pending ack for MessageCounter:232282345 on exchange 8364i + [1641965190.363021][43496:43501] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:7831593 on exchange 8365i + [1641965190.363074][43496:43501] CHIP:EM: Found matching exchange: 8365i, Delegate: 0x7fa98c001980 + [1641965190.363105][43496:43501] CHIP:EM: Rxd Ack; Removing MessageCounter:4919296 from Retrans Table on exchange 8365i + [1641965190.363125][43496:43501] CHIP:EM: Removed CHIP MessageCounter:4919296 from RetransTable on exchange 8365i [1641965190.363196][43496:43501] CHIP:DMG: ReportDataMessage = [1641965190.363226][43496:43501] CHIP:DMG: { - [1641965190.363247][43496:43501] CHIP:DMG: AttributeReportIBs = - [1641965190.363272][43496:43501] CHIP:DMG: [ - [1641965190.363292][43496:43501] CHIP:DMG: AttributeReportIB = - [1641965190.363329][43496:43501] CHIP:DMG: { - [1641965190.363355][43496:43501] CHIP:DMG: AttributeDataIB = - [1641965190.363379][43496:43501] CHIP:DMG: { - [1641965190.363408][43496:43501] CHIP:DMG: DataVersion = 0x0, - [1641965190.363435][43496:43501] CHIP:DMG: AttributePathIB = - [1641965190.363462][43496:43501] CHIP:DMG: { - [1641965190.363490][43496:43501] CHIP:DMG: Endpoint = 0x0, - [1641965190.363520][43496:43501] CHIP:DMG: Cluster = 0x33, - [1641965190.363549][43496:43501] CHIP:DMG: Attribute = 0x0000_0005, - [1641965190.363578][43496:43501] CHIP:DMG: } + [1641965190.363247][43496:43501] CHIP:DMG: AttributeReportIBs = + [1641965190.363272][43496:43501] CHIP:DMG: [ + [1641965190.363292][43496:43501] CHIP:DMG: AttributeReportIB = + [1641965190.363329][43496:43501] CHIP:DMG: { + [1641965190.363355][43496:43501] CHIP:DMG: AttributeDataIB = + [1641965190.363379][43496:43501] CHIP:DMG: { + [1641965190.363408][43496:43501] CHIP:DMG: DataVersion = 0x0, + [1641965190.363435][43496:43501] CHIP:DMG: AttributePathIB = + [1641965190.363462][43496:43501] CHIP:DMG: { + [1641965190.363490][43496:43501] CHIP:DMG: Endpoint = 0x0, + [1641965190.363520][43496:43501] CHIP:DMG: Cluster = 0x33, + [1641965190.363549][43496:43501] CHIP:DMG: Attribute = 0x0000_0005, + [1641965190.363578][43496:43501] CHIP:DMG: } [1641965190.363611][43496:43501] CHIP:DMG: - [1641965190.363637][43496:43501] CHIP:DMG: Data = [ + [1641965190.363637][43496:43501] CHIP:DMG: Data = [ [1641965190.363668][43496:43501] CHIP:DMG: - [1641965190.363707][43496:43501] CHIP:DMG: ], - [1641965190.363740][43496:43501] CHIP:DMG: }, + [1641965190.363707][43496:43501] CHIP:DMG: ], + [1641965190.363740][43496:43501] CHIP:DMG: }, [1641965190.363790][43496:43501] CHIP:DMG: - [1641965190.363817][43496:43501] CHIP:DMG: }, + [1641965190.363817][43496:43501] CHIP:DMG: }, [1641965190.363857][43496:43501] CHIP:DMG: - [1641965190.363881][43496:43501] CHIP:DMG: ], + [1641965190.363881][43496:43501] CHIP:DMG: ], [1641965190.363918][43496:43501] CHIP:DMG: - [1641965190.363943][43496:43501] CHIP:DMG: SuppressResponse = true, + [1641965190.363943][43496:43501] CHIP:DMG: SuppressResponse = true, [1641965190.363967][43496:43501] CHIP:DMG: } - [1641965190.364192][43496:43501] CHIP:TOO: - GeneralDiagnostics.ActiveHardwareFaults response: 0 entries - [1641965190.364261][43496:43501] CHIP:EM: Sending Standalone Ack for - MessageCounter:7831593 on exchange 8365i - [1641965190.364327][43496:43501] CHIP:IN: Prepared secure message - 0x7fa9a09e3fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 8365i with MessageCounter:4919297. - [1641965190.364375][43496:43501] CHIP:IN: Sending encrypted msg - 0x7fa9a09e3fe0 with MessageCounter:4919297 to 0x0000000000000002 (1) - at monotonic time: 37863921 msec [1641965190.364491][43496:43501] - CHIP:EM: Flushed pending ack for MessageCounter:7831593 on exchange - 8365i" + [1641965190.364192][43496:43501] CHIP:TOO: GeneralDiagnostics.ActiveHardwareFaults response: 0 entries + [1641965190.364261][43496:43501] CHIP:EM: Sending Standalone Ack for MessageCounter:7831593 on exchange 8365i + [1641965190.364327][43496:43501] CHIP:IN: Prepared secure message 0x7fa9a09e3fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 8365i with MessageCounter:4919297. + [1641965190.364375][43496:43501] CHIP:IN: Sending encrypted msg 0x7fa9a09e3fe0 with MessageCounter:4919297 to 0x0000000000000002 (1) at monotonic time: 37863921 msec + [1641965190.364491][43496:43501] CHIP:EM: Flushed pending ack for MessageCounter:7831593 on exchange 8365i disabled: true - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read active-radio-faults 1 0 - [1641965451.619831][43603:43608] CHIP:IN: Sending unauthenticated msg - 0x7f6ceeffc000 with MessageCounter:1905359789 to 0x0000000000000000 at - monotonic time: 38125177 msec [1641965451.619898][43603:43608] - CHIP:EM: Flushed pending ack for MessageCounter:232282347 on exchange - 51439i [1641965451.666375][43603:43608] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:14540530 on - exchange 51440i [1641965451.666436][43603:43608] CHIP:EM: Found - matching exchange: 51440i, Delegate: 0x7f6cdc001980 - [1641965451.666472][43603:43608] CHIP:EM: Rxd Ack; Removing - MessageCounter:15284140 from Retrans Table on exchange 51440i - [1641965451.666486][43603:43608] CHIP:EM: Removed CHIP - MessageCounter:15284140 from RetransTable on exchange 51440i + verification: | + ./chip-tool generaldiagnostics read active-radio-faults 1 0 + + [1641965451.619831][43603:43608] CHIP:IN: Sending unauthenticated msg 0x7f6ceeffc000 with MessageCounter:1905359789 to 0x0000000000000000 at monotonic time: 38125177 msec + [1641965451.619898][43603:43608] CHIP:EM: Flushed pending ack for MessageCounter:232282347 on exchange 51439i + [1641965451.666375][43603:43608] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:14540530 on exchange 51440i + [1641965451.666436][43603:43608] CHIP:EM: Found matching exchange: 51440i, Delegate: 0x7f6cdc001980 + [1641965451.666472][43603:43608] CHIP:EM: Rxd Ack; Removing MessageCounter:15284140 from Retrans Table on exchange 51440i + [1641965451.666486][43603:43608] CHIP:EM: Removed CHIP MessageCounter:15284140 from RetransTable on exchange 51440i [1641965451.666541][43603:43608] CHIP:DMG: ReportDataMessage = [1641965451.666570][43603:43608] CHIP:DMG: { - [1641965451.666586][43603:43608] CHIP:DMG: AttributeReportIBs = - [1641965451.666620][43603:43608] CHIP:DMG: [ - [1641965451.666638][43603:43608] CHIP:DMG: AttributeReportIB = - [1641965451.666672][43603:43608] CHIP:DMG: { - [1641965451.666699][43603:43608] CHIP:DMG: AttributeDataIB = - [1641965451.666723][43603:43608] CHIP:DMG: { - [1641965451.666748][43603:43608] CHIP:DMG: DataVersion = 0x0, - [1641965451.666773][43603:43608] CHIP:DMG: AttributePathIB = - [1641965451.666804][43603:43608] CHIP:DMG: { - [1641965451.666828][43603:43608] CHIP:DMG: Endpoint = 0x0, - [1641965451.666866][43603:43608] CHIP:DMG: Cluster = 0x33, - [1641965451.666905][43603:43608] CHIP:DMG: Attribute = 0x0000_0006, - [1641965451.666933][43603:43608] CHIP:DMG: } + [1641965451.666586][43603:43608] CHIP:DMG: AttributeReportIBs = + [1641965451.666620][43603:43608] CHIP:DMG: [ + [1641965451.666638][43603:43608] CHIP:DMG: AttributeReportIB = + [1641965451.666672][43603:43608] CHIP:DMG: { + [1641965451.666699][43603:43608] CHIP:DMG: AttributeDataIB = + [1641965451.666723][43603:43608] CHIP:DMG: { + [1641965451.666748][43603:43608] CHIP:DMG: DataVersion = 0x0, + [1641965451.666773][43603:43608] CHIP:DMG: AttributePathIB = + [1641965451.666804][43603:43608] CHIP:DMG: { + [1641965451.666828][43603:43608] CHIP:DMG: Endpoint = 0x0, + [1641965451.666866][43603:43608] CHIP:DMG: Cluster = 0x33, + [1641965451.666905][43603:43608] CHIP:DMG: Attribute = 0x0000_0006, + [1641965451.666933][43603:43608] CHIP:DMG: } [1641965451.666966][43603:43608] CHIP:DMG: - [1641965451.666988][43603:43608] CHIP:DMG: Data = [ + [1641965451.666988][43603:43608] CHIP:DMG: Data = [ [1641965451.667032][43603:43608] CHIP:DMG: - [1641965451.667076][43603:43608] CHIP:DMG: ], - [1641965451.667106][43603:43608] CHIP:DMG: }, + [1641965451.667076][43603:43608] CHIP:DMG: ], + [1641965451.667106][43603:43608] CHIP:DMG: }, [1641965451.667138][43603:43608] CHIP:DMG: - [1641965451.667153][43603:43608] CHIP:DMG: }, + [1641965451.667153][43603:43608] CHIP:DMG: }, [1641965451.667176][43603:43608] CHIP:DMG: - [1641965451.667189][43603:43608] CHIP:DMG: ], + [1641965451.667189][43603:43608] CHIP:DMG: ], [1641965451.667210][43603:43608] CHIP:DMG: - [1641965451.667227][43603:43608] CHIP:DMG: SuppressResponse = true, + [1641965451.667227][43603:43608] CHIP:DMG: SuppressResponse = true, [1641965451.667242][43603:43608] CHIP:DMG: } - [1641965451.667395][43603:43608] CHIP:TOO: - GeneralDiagnostics.ActiveRadioFaults response: 0 entries - [1641965451.667448][43603:43608] CHIP:EM: Sending Standalone Ack for - MessageCounter:14540530 on exchange 51440i - [1641965451.667495][43603:43608] CHIP:IN: Prepared secure message - 0x7f6ceeffbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 51440i with MessageCounter:15284141." + [1641965451.667395][43603:43608] CHIP:TOO: GeneralDiagnostics.ActiveRadioFaults response: 0 entries + [1641965451.667448][43603:43608] CHIP:EM: Sending Standalone Ack for MessageCounter:14540530 on exchange 51440i + [1641965451.667495][43603:43608] CHIP:IN: Prepared secure message 0x7f6ceeffbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 51440i with MessageCounter:15284141. disabled: true - label: "TH reads a attribute value from DUT." - verification: - "./chip-tool generaldiagnostics read active-network-faults 1 0 - [1641965685.705750][43655:43660] CHIP:IN: Sending unauthenticated msg - 0x7f90a77fd000 with MessageCounter:1562631730 to 0x0000000000000000 at - monotonic time: 38359263 msec [1641965685.705812][43655:43660] - CHIP:EM: Flushed pending ack for MessageCounter:232282349 on exchange - 18037i [1641965685.799740][43655:43660] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:15321486 on - exchange 18038i [1641965685.799801][43655:43660] CHIP:EM: Found - matching exchange: 18038i, Delegate: 0x7f9094001980 - [1641965685.799846][43655:43660] CHIP:EM: Rxd Ack; Removing - MessageCounter:12660801 from Retrans Table on exchange 18038i - [1641965685.799871][43655:43660] CHIP:EM: Removed CHIP - MessageCounter:12660801 from RetransTable on exchange 18038i + verification: | + ./chip-tool generaldiagnostics read active-network-faults 1 0 + + [1641965685.705750][43655:43660] CHIP:IN: Sending unauthenticated msg 0x7f90a77fd000 with MessageCounter:1562631730 to 0x0000000000000000 at monotonic time: 38359263 msec + [1641965685.705812][43655:43660] CHIP:EM: Flushed pending ack for MessageCounter:232282349 on exchange 18037i + [1641965685.799740][43655:43660] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:15321486 on exchange 18038i + [1641965685.799801][43655:43660] CHIP:EM: Found matching exchange: 18038i, Delegate: 0x7f9094001980 + [1641965685.799846][43655:43660] CHIP:EM: Rxd Ack; Removing MessageCounter:12660801 from Retrans Table on exchange 18038i + [1641965685.799871][43655:43660] CHIP:EM: Removed CHIP MessageCounter:12660801 from RetransTable on exchange 18038i [1641965685.799940][43655:43660] CHIP:DMG: ReportDataMessage = [1641965685.799974][43655:43660] CHIP:DMG: { - [1641965685.799997][43655:43660] CHIP:DMG: AttributeReportIBs = - [1641965685.800035][43655:43660] CHIP:DMG: [ - [1641965685.800058][43655:43660] CHIP:DMG: AttributeReportIB = - [1641965685.800124][43655:43660] CHIP:DMG: { - [1641965685.800149][43655:43660] CHIP:DMG: AttributeDataIB = - [1641965685.800174][43655:43660] CHIP:DMG: { - [1641965685.800199][43655:43660] CHIP:DMG: DataVersion = 0x0, - [1641965685.800232][43655:43660] CHIP:DMG: AttributePathIB = - [1641965685.800259][43655:43660] CHIP:DMG: { - [1641965685.800279][43655:43660] CHIP:DMG: Endpoint = 0x0, - [1641965685.800301][43655:43660] CHIP:DMG: Cluster = 0x33, - [1641965685.800323][43655:43660] CHIP:DMG: Attribute = 0x0000_0007, - [1641965685.800345][43655:43660] CHIP:DMG: } + [1641965685.799997][43655:43660] CHIP:DMG: AttributeReportIBs = + [1641965685.800035][43655:43660] CHIP:DMG: [ + [1641965685.800058][43655:43660] CHIP:DMG: AttributeReportIB = + [1641965685.800124][43655:43660] CHIP:DMG: { + [1641965685.800149][43655:43660] CHIP:DMG: AttributeDataIB = + [1641965685.800174][43655:43660] CHIP:DMG: { + [1641965685.800199][43655:43660] CHIP:DMG: DataVersion = 0x0, + [1641965685.800232][43655:43660] CHIP:DMG: AttributePathIB = + [1641965685.800259][43655:43660] CHIP:DMG: { + [1641965685.800279][43655:43660] CHIP:DMG: Endpoint = 0x0, + [1641965685.800301][43655:43660] CHIP:DMG: Cluster = 0x33, + [1641965685.800323][43655:43660] CHIP:DMG: Attribute = 0x0000_0007, + [1641965685.800345][43655:43660] CHIP:DMG: } [1641965685.800367][43655:43660] CHIP:DMG: - [1641965685.800386][43655:43660] CHIP:DMG: Data = [ + [1641965685.800386][43655:43660] CHIP:DMG: Data = [ [1641965685.800410][43655:43660] CHIP:DMG: - [1641965685.800437][43655:43660] CHIP:DMG: ], - [1641965685.800458][43655:43660] CHIP:DMG: }, + [1641965685.800437][43655:43660] CHIP:DMG: ], + [1641965685.800458][43655:43660] CHIP:DMG: }, [1641965685.800483][43655:43660] CHIP:DMG: - [1641965685.800499][43655:43660] CHIP:DMG: }, + [1641965685.800499][43655:43660] CHIP:DMG: }, [1641965685.800525][43655:43660] CHIP:DMG: - [1641965685.800541][43655:43660] CHIP:DMG: ], + [1641965685.800541][43655:43660] CHIP:DMG: ], [1641965685.800567][43655:43660] CHIP:DMG: - [1641965685.800584][43655:43660] CHIP:DMG: SuppressResponse = true, + [1641965685.800584][43655:43660] CHIP:DMG: SuppressResponse = true, [1641965685.800600][43655:43660] CHIP:DMG: } - [1641965685.800755][43655:43660] CHIP:TOO: - GeneralDiagnostics.ActiveNetworkFaults response: 0 entries - [1641965685.800812][43655:43660] CHIP:EM: Sending Standalone Ack for - MessageCounter:15321486 on exchange 18038i - [1641965685.800868][43655:43660] CHIP:IN: Prepared secure message - 0x7f90a77fcfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 18038i with MessageCounter:12660802. - [1641965685.800900][43655:43660] CHIP:IN: Sending encrypted msg - 0x7f90a77fcfe0 with MessageCounter:12660802 to 0x0000000000000002 (1) - at monotonic time: 38359358 msec [1641965685.801006][43655:43660] - CHIP:EM: Flushed pending ack for MessageCounter:15321486 on exchange - 18038i" + [1641965685.800755][43655:43660] CHIP:TOO: GeneralDiagnostics.ActiveNetworkFaults response: 0 entries + [1641965685.800812][43655:43660] CHIP:EM: Sending Standalone Ack for MessageCounter:15321486 on exchange 18038i + [1641965685.800868][43655:43660] CHIP:IN: Prepared secure message 0x7f90a77fcfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 18038i with MessageCounter:12660802. + [1641965685.800900][43655:43660] CHIP:IN: Sending encrypted msg 0x7f90a77fcfe0 with MessageCounter:12660802 to 0x0000000000000002 (1) at monotonic time: 38359358 msec + [1641965685.801006][43655:43660] CHIP:EM: Flushed pending ack for MessageCounter:15321486 on exchange 18038i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_GENDIAG_1_2.yaml b/src/app/tests/suites/certification/Test_TC_GENDIAG_1_2.yaml index 505c10b5bf650b..599cf7e5e2a316 100644 --- a/src/app/tests/suites/certification/Test_TC_GENDIAG_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_GENDIAG_1_2.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 87.2.1. [TC-GENDIAG-1.2] Attributes observation at client as DUT +name: 87.2.1. [TC-GENDIAG-1.2] Attributes with client as DUT config: nodeId: 0x12344321 @@ -21,523 +21,445 @@ config: tests: - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read network-interfaces 1 0 - [1636557398.652588][2921:2927] CHIP:EM: Flushed pending ack for - MessageCounter:1532129280 on exchange 32260i - [1636557398.762984][2921:2927] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 32261i - [1636557398.763086][2921:2927] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 32261i - [1636557398.763136][2921:2927] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 32261i [1636557398.763218][2921:2927] - CHIP:DMG: ReportDataMessage = [1636557398.763272][2921:2927] CHIP:DMG: - { [1636557398.763313][2921:2927] CHIP:DMG: AttributeDataList = - [1636557398.763365][2921:2927] CHIP:DMG: [ - [1636557398.763413][2921:2927] CHIP:DMG: AttributeDataElement = - [1636557398.763475][2921:2927] CHIP:DMG: { - [1636557398.763526][2921:2927] CHIP:DMG: AttributePathIB = - [1636557398.763599][2921:2927] CHIP:DMG: { - [1636557398.763672][2921:2927] CHIP:DMG: Endpoint = 0x1, - [1636557398.763748][2921:2927] CHIP:DMG: Cluster = 0x33, - [1636557398.763824][2921:2927] CHIP:DMG: Attribute = 0x0000_0000, - [1636557398.763895][2921:2927] CHIP:DMG: } + verification: | + ./chip-tool generaldiagnostics read network-interfaces 1 0 + + [1636557398.652588][2921:2927] CHIP:EM: Flushed pending ack for MessageCounter:1532129280 on exchange 32260i + [1636557398.762984][2921:2927] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 32261i + [1636557398.763086][2921:2927] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 32261i + [1636557398.763136][2921:2927] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 32261i + [1636557398.763218][2921:2927] CHIP:DMG: ReportDataMessage = + [1636557398.763272][2921:2927] CHIP:DMG: { + [1636557398.763313][2921:2927] CHIP:DMG: AttributeDataList = + [1636557398.763365][2921:2927] CHIP:DMG: [ + [1636557398.763413][2921:2927] CHIP:DMG: AttributeDataElement = + [1636557398.763475][2921:2927] CHIP:DMG: { + [1636557398.763526][2921:2927] CHIP:DMG: AttributePathIB = + [1636557398.763599][2921:2927] CHIP:DMG: { + [1636557398.763672][2921:2927] CHIP:DMG: Endpoint = 0x1, + [1636557398.763748][2921:2927] CHIP:DMG: Cluster = 0x33, + [1636557398.763824][2921:2927] CHIP:DMG: Attribute = 0x0000_0000, + [1636557398.763895][2921:2927] CHIP:DMG: } [1636557398.763971][2921:2927] CHIP:DMG: - [1636557398.764041][2921:2927] CHIP:DMG: Data = [ + [1636557398.764041][2921:2927] CHIP:DMG: Data = [ [1636557398.764111][2921:2927] CHIP:DMG: - [1636557398.764180][2921:2927] CHIP:DMG: { - [1636557398.764260][2921:2927] CHIP:DMG: 0x0 = 'docker0', - [1636557398.764398][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.764477][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.764557][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.764633][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.764712][2921:2927] CHIP:DMG: 0x2, 0x42, 0xb1, 0xa, 0x8d, - 0xbb, [1636557398.764794][2921:2927] CHIP:DMG: ] - [1636557398.764872][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.764950][2921:2927] CHIP:DMG: }, - [1636557398.765023][2921:2927] CHIP:DMG: { - [1636557398.765099][2921:2927] CHIP:DMG: 0x0 = 'br-df4639020401', - [1636557398.765180][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.765257][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.765334][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.765410][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.765488][2921:2927] CHIP:DMG: 0x2, 0x42, 0x37, 0x57, 0x42, - 0x53, [1636557398.765569][2921:2927] CHIP:DMG: ] - [1636557398.765648][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.765724][2921:2927] CHIP:DMG: }, - [1636557398.765797][2921:2927] CHIP:DMG: { - [1636557398.765873][2921:2927] CHIP:DMG: 0x0 = 'br-9b548749a6f7', - [1636557398.765952][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.766031][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.766108][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.766185][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.766263][2921:2927] CHIP:DMG: 0x2, 0x42, 0xa8, 0x9e, 0xe9, - 0x22, [1636557398.766347][2921:2927] CHIP:DMG: ] - [1636557398.766424][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.766503][2921:2927] CHIP:DMG: }, - [1636557398.766576][2921:2927] CHIP:DMG: { - [1636557398.766652][2921:2927] CHIP:DMG: 0x0 = 'wlan0', - [1636557398.766731][2921:2927] CHIP:DMG: 0x1 = true, - [1636557398.766809][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.766886][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.766962][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.767180][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, - 0xf9, [1636557398.767277][2921:2927] CHIP:DMG: ] - [1636557398.767358][2921:2927] CHIP:DMG: 0x5 = 1, - [1636557398.767435][2921:2927] CHIP:DMG: }, - [1636557398.767507][2921:2927] CHIP:DMG: { - [1636557398.767583][2921:2927] CHIP:DMG: 0x0 = 'eth0', - [1636557398.767661][2921:2927] CHIP:DMG: 0x1 = false, - [1636557398.767740][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.767818][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.767893][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.767972][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, - 0xf8, [1636557398.768058][2921:2927] CHIP:DMG: ] - [1636557398.768136][2921:2927] CHIP:DMG: 0x5 = 2, - [1636557398.768212][2921:2927] CHIP:DMG: }, - [1636557398.768310][2921:2927] CHIP:DMG: { - [1636557398.768389][2921:2927] CHIP:DMG: 0x0 = 'lo', - [1636557398.768468][2921:2927] CHIP:DMG: 0x1 = true, - [1636557398.768545][2921:2927] CHIP:DMG: 0x2 = false, - [1636557398.768623][2921:2927] CHIP:DMG: 0x3 = false, - [1636557398.768699][2921:2927] CHIP:DMG: 0x4 = [ - [1636557398.768777][2921:2927] CHIP:DMG: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - [1636557398.768860][2921:2927] CHIP:DMG: ] - [1636557398.768907][2921:2927] CHIP:DMG: 0x5 = 0, - [1636557398.768953][2921:2927] CHIP:DMG: }, - [1636557398.769050][2921:2927] CHIP:DMG: ], - [1636557398.769094][2921:2927] CHIP:DMG: DataElementVersion = 0x0, - [1636557398.769134][2921:2927] CHIP:DMG: }, + [1636557398.764180][2921:2927] CHIP:DMG: { + [1636557398.764260][2921:2927] CHIP:DMG: 0x0 = "docker0", + [1636557398.764398][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.764477][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.764557][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.764633][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.764712][2921:2927] CHIP:DMG: 0x2, 0x42, 0xb1, 0xa, 0x8d, 0xbb, + [1636557398.764794][2921:2927] CHIP:DMG: ] + [1636557398.764872][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.764950][2921:2927] CHIP:DMG: }, + [1636557398.765023][2921:2927] CHIP:DMG: { + [1636557398.765099][2921:2927] CHIP:DMG: 0x0 = "br-df4639020401", + [1636557398.765180][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.765257][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.765334][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.765410][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.765488][2921:2927] CHIP:DMG: 0x2, 0x42, 0x37, 0x57, 0x42, 0x53, + [1636557398.765569][2921:2927] CHIP:DMG: ] + [1636557398.765648][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.765724][2921:2927] CHIP:DMG: }, + [1636557398.765797][2921:2927] CHIP:DMG: { + [1636557398.765873][2921:2927] CHIP:DMG: 0x0 = "br-9b548749a6f7", + [1636557398.765952][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.766031][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.766108][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.766185][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.766263][2921:2927] CHIP:DMG: 0x2, 0x42, 0xa8, 0x9e, 0xe9, 0x22, + [1636557398.766347][2921:2927] CHIP:DMG: ] + [1636557398.766424][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.766503][2921:2927] CHIP:DMG: }, + [1636557398.766576][2921:2927] CHIP:DMG: { + [1636557398.766652][2921:2927] CHIP:DMG: 0x0 = "wlan0", + [1636557398.766731][2921:2927] CHIP:DMG: 0x1 = true, + [1636557398.766809][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.766886][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.766962][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.767180][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, 0xf9, + [1636557398.767277][2921:2927] CHIP:DMG: ] + [1636557398.767358][2921:2927] CHIP:DMG: 0x5 = 1, + [1636557398.767435][2921:2927] CHIP:DMG: }, + [1636557398.767507][2921:2927] CHIP:DMG: { + [1636557398.767583][2921:2927] CHIP:DMG: 0x0 = "eth0", + [1636557398.767661][2921:2927] CHIP:DMG: 0x1 = false, + [1636557398.767740][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.767818][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.767893][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.767972][2921:2927] CHIP:DMG: 0xe4, 0x5f, 0x1, 0x2f, 0x5, 0xf8, + [1636557398.768058][2921:2927] CHIP:DMG: ] + [1636557398.768136][2921:2927] CHIP:DMG: 0x5 = 2, + [1636557398.768212][2921:2927] CHIP:DMG: }, + [1636557398.768310][2921:2927] CHIP:DMG: { + [1636557398.768389][2921:2927] CHIP:DMG: 0x0 = "lo", + [1636557398.768468][2921:2927] CHIP:DMG: 0x1 = true, + [1636557398.768545][2921:2927] CHIP:DMG: 0x2 = false, + [1636557398.768623][2921:2927] CHIP:DMG: 0x3 = false, + [1636557398.768699][2921:2927] CHIP:DMG: 0x4 = [ + [1636557398.768777][2921:2927] CHIP:DMG: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + [1636557398.768860][2921:2927] CHIP:DMG: ] + [1636557398.768907][2921:2927] CHIP:DMG: 0x5 = 0, + [1636557398.768953][2921:2927] CHIP:DMG: }, + [1636557398.769050][2921:2927] CHIP:DMG: ], + [1636557398.769094][2921:2927] CHIP:DMG: DataElementVersion = 0x0, + [1636557398.769134][2921:2927] CHIP:DMG: }, [1636557398.769199][2921:2927] CHIP:DMG: - [1636557398.769227][2921:2927] CHIP:DMG: ], + [1636557398.769227][2921:2927] CHIP:DMG: ], [1636557398.769286][2921:2927] CHIP:DMG: [1636557398.769313][2921:2927] CHIP:DMG: } [1636557398.769502][2921:2927] CHIP:ZCL: ReadAttributesResponse: - [1636557398.769528][2921:2927] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557398.769557][2921:2927] CHIP:ZCL: attributeId: 0x0000_0000 - [1636557398.769582][2921:2927] CHIP:ZCL: status: Success (0x0000) - [1636557398.769606][2921:2927] CHIP:ZCL: attribute TLV Type: 0x16 - [1636557398.769690][2921:2927] CHIP:TOO: - OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse: 6 entries - [1636557398.769823][2921:2927] CHIP:TOO: [1]: { - [1636557398.769851][2921:2927] CHIP:TOO: Name: docker0 - [1636557398.769879][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.769904][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.769929][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.769955][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.769984][2921:2927] CHIP:TOO: Type: 0 - [1636557398.770009][2921:2927] CHIP:TOO: } - [1636557398.770048][2921:2927] CHIP:TOO: [2]: { - [1636557398.770074][2921:2927] CHIP:TOO: Name: br-df4639020401 - [1636557398.770099][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.770123][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770148][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770173][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770199][2921:2927] CHIP:TOO: Type: 0 - [1636557398.770224][2921:2927] CHIP:TOO: } - [1636557398.770261][2921:2927] CHIP:TOO: [3]: { - [1636557398.770288][2921:2927] CHIP:TOO: Name: br-9b548749a6f7 - [1636557398.770313][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.770338][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770363][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770387][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770414][2921:2927] CHIP:TOO: Type: 0 - [1636557398.770438][2921:2927] CHIP:TOO: } - [1636557398.770476][2921:2927] CHIP:TOO: [4]: { - [1636557398.770502][2921:2927] CHIP:TOO: Name: wlan0 - [1636557398.770526][2921:2927] CHIP:TOO: FabricConnected: TRUE - [1636557398.770551][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770576][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770601][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770627][2921:2927] CHIP:TOO: Type: 1 - [1636557398.770651][2921:2927] CHIP:TOO: } - [1636557398.770689][2921:2927] CHIP:TOO: [5]: { - [1636557398.770715][2921:2927] CHIP:TOO: Name: eth0 - [1636557398.770740][2921:2927] CHIP:TOO: FabricConnected: FALSE - [1636557398.770764][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.770789][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.770814][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.770840][2921:2927] CHIP:TOO: Type: 2 - [1636557398.770864][2921:2927] CHIP:TOO: } - [1636557398.770901][2921:2927] CHIP:TOO: [6]: { - [1636557398.770927][2921:2927] CHIP:TOO: Name: lo - [1636557398.770952][2921:2927] CHIP:TOO: FabricConnected: TRUE - [1636557398.770977][2921:2927] CHIP:TOO: - OffPremiseServicesReachableIPv4: FALSE [1636557398.771001][2921:2927] - CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE - [1636557398.771026][2921:2927] CHIP:TOO: HardwareAddress: 6 - [1636557398.771052][2921:2927] CHIP:TOO: Type: 0 - [1636557398.771077][2921:2927] CHIP:TOO: } - [1636557398.771188][2921:2927] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 32261i [1636557398.771266][2921:2927] - CHIP:IN: Prepared encrypted message 0xaaaaeca5bf00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 32261i with MessageC ounter:1. [1636557398.771312][2921:2927] CHIP:IN: - Sending encrypted msg 0xaaaaeca5bf00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3104047 msec" + [1636557398.769528][2921:2927] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557398.769557][2921:2927] CHIP:ZCL: attributeId: 0x0000_0000 + [1636557398.769582][2921:2927] CHIP:ZCL: status: Success (0x0000) + [1636557398.769606][2921:2927] CHIP:ZCL: attribute TLV Type: 0x16 + [1636557398.769690][2921:2927] CHIP:TOO: OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse: 6 entries + [1636557398.769823][2921:2927] CHIP:TOO: [1]: { + [1636557398.769851][2921:2927] CHIP:TOO: Name: docker0 + [1636557398.769879][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.769904][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.769929][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.769955][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.769984][2921:2927] CHIP:TOO: Type: 0 + [1636557398.770009][2921:2927] CHIP:TOO: } + [1636557398.770048][2921:2927] CHIP:TOO: [2]: { + [1636557398.770074][2921:2927] CHIP:TOO: Name: br-df4639020401 + [1636557398.770099][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.770123][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770148][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770173][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770199][2921:2927] CHIP:TOO: Type: 0 + [1636557398.770224][2921:2927] CHIP:TOO: } + [1636557398.770261][2921:2927] CHIP:TOO: [3]: { + [1636557398.770288][2921:2927] CHIP:TOO: Name: br-9b548749a6f7 + [1636557398.770313][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.770338][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770363][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770387][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770414][2921:2927] CHIP:TOO: Type: 0 + [1636557398.770438][2921:2927] CHIP:TOO: } + [1636557398.770476][2921:2927] CHIP:TOO: [4]: { + [1636557398.770502][2921:2927] CHIP:TOO: Name: wlan0 + [1636557398.770526][2921:2927] CHIP:TOO: FabricConnected: TRUE + [1636557398.770551][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770576][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770601][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770627][2921:2927] CHIP:TOO: Type: 1 + [1636557398.770651][2921:2927] CHIP:TOO: } + [1636557398.770689][2921:2927] CHIP:TOO: [5]: { + [1636557398.770715][2921:2927] CHIP:TOO: Name: eth0 + [1636557398.770740][2921:2927] CHIP:TOO: FabricConnected: FALSE + [1636557398.770764][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.770789][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.770814][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.770840][2921:2927] CHIP:TOO: Type: 2 + [1636557398.770864][2921:2927] CHIP:TOO: } + [1636557398.770901][2921:2927] CHIP:TOO: [6]: { + [1636557398.770927][2921:2927] CHIP:TOO: Name: lo + [1636557398.770952][2921:2927] CHIP:TOO: FabricConnected: TRUE + [1636557398.770977][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv4: FALSE + [1636557398.771001][2921:2927] CHIP:TOO: OffPremiseServicesReachableIPv6: FALSE + [1636557398.771026][2921:2927] CHIP:TOO: HardwareAddress: 6 + [1636557398.771052][2921:2927] CHIP:TOO: Type: 0 + [1636557398.771077][2921:2927] CHIP:TOO: } + [1636557398.771188][2921:2927] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 32261i + [1636557398.771266][2921:2927] CHIP:IN: Prepared encrypted message 0xaaaaeca5bf00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 32261i with MessageC + ounter:1. + [1636557398.771312][2921:2927] CHIP:IN: Sending encrypted msg 0xaaaaeca5bf00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3104047 msec disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read reboot-count 1 0 - [1636557429.678822][2935:2941] CHIP:EM: Flushed pending ack for - MessageCounter:1532129282 on exchange 22621i - [1636557429.719202][2935:2941] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 22622i - [1636557429.719259][2935:2941] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 22622i - [1636557429.719289][2935:2941] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 22622i [1636557429.752586][2935:2941] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 22622i [1636557429.752653][2935:2941] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 22622i + verification: | + ./chip-tool generaldiagnostics read reboot-count 1 0 + + [1636557429.678822][2935:2941] CHIP:EM: Flushed pending ack for MessageCounter:1532129282 on exchange 22621i + [1636557429.719202][2935:2941] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 22622i + [1636557429.719259][2935:2941] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 22622i + [1636557429.719289][2935:2941] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 22622i + [1636557429.752586][2935:2941] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 22622i + [1636557429.752653][2935:2941] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 22622i [1636557429.752737][2935:2941] CHIP:DMG: ReportDataMessage = [1636557429.752792][2935:2941] CHIP:DMG: { - [1636557429.752835][2935:2941] CHIP:DMG: AttributeDataList = - [1636557429.752889][2935:2941] CHIP:DMG: [ - [1636557429.752938][2935:2941] CHIP:DMG: AttributeDataElement = - [1636557429.753004][2935:2941] CHIP:DMG: { - [1636557429.753062][2935:2941] CHIP:DMG: AttributePathIB = - [1636557429.753136][2935:2941] CHIP:DMG: { - [1636557429.753209][2935:2941] CHIP:DMG: Endpoint = 0x1, - [1636557429.753287][2935:2941] CHIP:DMG: Cluster = 0x33, - [1636557429.753364][2935:2941] CHIP:DMG: Attribute = 0x0000_0001, - [1636557429.753435][2935:2941] CHIP:DMG: } + [1636557429.752835][2935:2941] CHIP:DMG: AttributeDataList = + [1636557429.752889][2935:2941] CHIP:DMG: [ + [1636557429.752938][2935:2941] CHIP:DMG: AttributeDataElement = + [1636557429.753004][2935:2941] CHIP:DMG: { + [1636557429.753062][2935:2941] CHIP:DMG: AttributePathIB = + [1636557429.753136][2935:2941] CHIP:DMG: { + [1636557429.753209][2935:2941] CHIP:DMG: Endpoint = 0x1, + [1636557429.753287][2935:2941] CHIP:DMG: Cluster = 0x33, + [1636557429.753364][2935:2941] CHIP:DMG: Attribute = 0x0000_0001, + [1636557429.753435][2935:2941] CHIP:DMG: } [1636557429.753513][2935:2941] CHIP:DMG: - [1636557429.753588][2935:2941] CHIP:DMG: Data = 2, - [1636557429.753659][2935:2941] CHIP:DMG: DataElementVersion = 0x0, - [1636557429.753726][2935:2941] CHIP:DMG: }, + [1636557429.753588][2935:2941] CHIP:DMG: Data = 2, + [1636557429.753659][2935:2941] CHIP:DMG: DataElementVersion = 0x0, + [1636557429.753726][2935:2941] CHIP:DMG: }, [1636557429.753793][2935:2941] CHIP:DMG: - [1636557429.753840][2935:2941] CHIP:DMG: ], + [1636557429.753840][2935:2941] CHIP:DMG: ], [1636557429.753900][2935:2941] CHIP:DMG: [1636557429.753943][2935:2941] CHIP:DMG: } [1636557429.754095][2935:2941] CHIP:ZCL: ReadAttributesResponse: - [1636557429.754139][2935:2941] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557429.754185][2935:2941] CHIP:ZCL: attributeId: 0x0000_0001 - [1636557429.754227][2935:2941] CHIP:ZCL: status: Success (0x0000) - [1636557429.754268][2935:2941] CHIP:ZCL: attribute TLV Type: 0x04 + [1636557429.754139][2935:2941] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557429.754185][2935:2941] CHIP:ZCL: attributeId: 0x0000_0001 + [1636557429.754227][2935:2941] CHIP:ZCL: status: Success (0x0000) + [1636557429.754268][2935:2941] CHIP:ZCL: attribute TLV Type: 0x04 [1636557429.754310][2935:2941] CHIP:TOO: Int16u attribute Response: 2 - [1636557429.754424][2935:2941] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 22622i [1636557429.754523][2935:2941] - CHIP:IN: Prepared encrypted message 0xaaaae0f4ef00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 22622i with MessageCounter:1. [1636557429.754594][2935:2941] CHIP:IN: - Sending encrypted msg 0xaaaae0f4ef00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3135030 msec" + [1636557429.754424][2935:2941] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 22622i + [1636557429.754523][2935:2941] CHIP:IN: Prepared encrypted message 0xaaaae0f4ef00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 22622i with MessageCounter:1. + [1636557429.754594][2935:2941] CHIP:IN: Sending encrypted msg 0xaaaae0f4ef00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3135030 msec disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read up-time 1 0 - [1636557446.573304][2944:2949] CHIP:EM: Flushed pending ack for - MessageCounter:1532129284 on exchange 58848i - [1636557446.611807][2944:2949] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 58849i - [1636557446.611854][2944:2949] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 58849i - [1636557446.611875][2944:2949] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 58849i [1636557446.646357][2944:2949] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 58849i [1636557446.646428][2944:2949] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 58849i + verification: | + ./chip-tool generaldiagnostics read up-time 1 0 + + [1636557446.573304][2944:2949] CHIP:EM: Flushed pending ack for MessageCounter:1532129284 on exchange 58848i + [1636557446.611807][2944:2949] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 58849i + [1636557446.611854][2944:2949] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 58849i + [1636557446.611875][2944:2949] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 58849i + [1636557446.646357][2944:2949] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 58849i + [1636557446.646428][2944:2949] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 58849i [1636557446.646532][2944:2949] CHIP:DMG: ReportDataMessage = [1636557446.646588][2944:2949] CHIP:DMG: { - [1636557446.646632][2944:2949] CHIP:DMG: AttributeDataList = - [1636557446.646685][2944:2949] CHIP:DMG: [ - [1636557446.646734][2944:2949] CHIP:DMG: AttributeDataElement = - [1636557446.646798][2944:2949] CHIP:DMG: { - [1636557446.646855][2944:2949] CHIP:DMG: AttributePathIB = - [1636557446.646928][2944:2949] CHIP:DMG: { - [1636557446.647004][2944:2949] CHIP:DMG: Endpoint = 0x1, - [1636557446.647081][2944:2949] CHIP:DMG: Cluster = 0x33, - [1636557446.647160][2944:2949] CHIP:DMG: Attribute = 0x0000_0002, - [1636557446.647231][2944:2949] CHIP:DMG: } + [1636557446.646632][2944:2949] CHIP:DMG: AttributeDataList = + [1636557446.646685][2944:2949] CHIP:DMG: [ + [1636557446.646734][2944:2949] CHIP:DMG: AttributeDataElement = + [1636557446.646798][2944:2949] CHIP:DMG: { + [1636557446.646855][2944:2949] CHIP:DMG: AttributePathIB = + [1636557446.646928][2944:2949] CHIP:DMG: { + [1636557446.647004][2944:2949] CHIP:DMG: Endpoint = 0x1, + [1636557446.647081][2944:2949] CHIP:DMG: Cluster = 0x33, + [1636557446.647160][2944:2949] CHIP:DMG: Attribute = 0x0000_0002, + [1636557446.647231][2944:2949] CHIP:DMG: } [1636557446.647309][2944:2949] CHIP:DMG: - [1636557446.647387][2944:2949] CHIP:DMG: Data = 1132, - [1636557446.647453][2944:2949] CHIP:DMG: DataElementVersion = 0x0, - [1636557446.647520][2944:2949] CHIP:DMG: }, + [1636557446.647387][2944:2949] CHIP:DMG: Data = 1132, + [1636557446.647453][2944:2949] CHIP:DMG: DataElementVersion = 0x0, + [1636557446.647520][2944:2949] CHIP:DMG: }, [1636557446.647588][2944:2949] CHIP:DMG: - [1636557446.647638][2944:2949] CHIP:DMG: ], + [1636557446.647638][2944:2949] CHIP:DMG: ], [1636557446.647698][2944:2949] CHIP:DMG: [1636557446.647743][2944:2949] CHIP:DMG: } [1636557446.647894][2944:2949] CHIP:ZCL: ReadAttributesResponse: - [1636557446.647938][2944:2949] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557446.647985][2944:2949] CHIP:ZCL: attributeId: 0x0000_0002 - [1636557446.648028][2944:2949] CHIP:ZCL: status: Success (0x0000) - [1636557446.648069][2944:2949] CHIP:ZCL: attribute TLV Type: 0x04 - [1636557446.648112][2944:2949] CHIP:TOO: Int64u attribute Response: - 1132 [1636557446.648231][2944:2949] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 58849i [1636557446.648389][2944:2949] - CHIP:IN: Prepared encrypted message 0xaaaad4f6df00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 58849i with MessageC ounter:1. [1636557446.648459][2944:2949] CHIP:IN: - Sending encrypted msg 0xaaaad4f6df00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3151924 msec" + [1636557446.647938][2944:2949] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557446.647985][2944:2949] CHIP:ZCL: attributeId: 0x0000_0002 + [1636557446.648028][2944:2949] CHIP:ZCL: status: Success (0x0000) + [1636557446.648069][2944:2949] CHIP:ZCL: attribute TLV Type: 0x04 + [1636557446.648112][2944:2949] CHIP:TOO: Int64u attribute Response: 1132 + [1636557446.648231][2944:2949] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 58849i + [1636557446.648389][2944:2949] CHIP:IN: Prepared encrypted message 0xaaaad4f6df00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 58849i with MessageC + ounter:1. + [1636557446.648459][2944:2949] CHIP:IN: Sending encrypted msg 0xaaaad4f6df00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3151924 msec disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read total-operational-hours 1 0 - [1641964558.888877][42874:42879] CHIP:IN: Sending unauthenticated msg - 0x7f3214b1a000 with MessageCounter:2008198488 to 0x0000000000000000 at - monotonic time: 37232446 msec [1641964558.888942][42874:42879] - CHIP:EM: Flushed pending ack for MessageCounter:232282341 on exchange - 38751i [1641964558.931625][42874:42879] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:13392059 on - exchange 38752i [1641964558.931677][42874:42879] CHIP:EM: Found - matching exchange: 38752i, Delegate: 0x7f3200001980 - [1641964558.931706][42874:42879] CHIP:EM: Rxd Ack; Removing - MessageCounter:12235477 from Retrans Table on exchange 38752i - [1641964558.931723][42874:42879] CHIP:EM: Removed CHIP - MessageCounter:12235477 from RetransTable on exchange 38752i + verification: | + ./chip-tool generaldiagnostics read total-operational-hours 1 0 + + [1641964558.888877][42874:42879] CHIP:IN: Sending unauthenticated msg 0x7f3214b1a000 with MessageCounter:2008198488 to 0x0000000000000000 at monotonic time: 37232446 msec + [1641964558.888942][42874:42879] CHIP:EM: Flushed pending ack for MessageCounter:232282341 on exchange 38751i + [1641964558.931625][42874:42879] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:13392059 on exchange 38752i + [1641964558.931677][42874:42879] CHIP:EM: Found matching exchange: 38752i, Delegate: 0x7f3200001980 + [1641964558.931706][42874:42879] CHIP:EM: Rxd Ack; Removing MessageCounter:12235477 from Retrans Table on exchange 38752i + [1641964558.931723][42874:42879] CHIP:EM: Removed CHIP MessageCounter:12235477 from RetransTable on exchange 38752i [1641964558.931771][42874:42879] CHIP:DMG: ReportDataMessage = [1641964558.931791][42874:42879] CHIP:DMG: { - [1641964558.931804][42874:42879] CHIP:DMG: AttributeReportIBs = - [1641964558.931829][42874:42879] CHIP:DMG: [ - [1641964558.931845][42874:42879] CHIP:DMG: AttributeReportIB = - [1641964558.931871][42874:42879] CHIP:DMG: { - [1641964558.931887][42874:42879] CHIP:DMG: AttributeDataIB = - [1641964558.931906][42874:42879] CHIP:DMG: { - [1641964558.931926][42874:42879] CHIP:DMG: DataVersion = 0x0, - [1641964558.931948][42874:42879] CHIP:DMG: AttributePathIB = - [1641964558.931967][42874:42879] CHIP:DMG: { - [1641964558.931986][42874:42879] CHIP:DMG: Endpoint = 0x0, - [1641964558.932009][42874:42879] CHIP:DMG: Cluster = 0x33, - [1641964558.932032][42874:42879] CHIP:DMG: Attribute = 0x0000_0003, - [1641964558.932054][42874:42879] CHIP:DMG: } + [1641964558.931804][42874:42879] CHIP:DMG: AttributeReportIBs = + [1641964558.931829][42874:42879] CHIP:DMG: [ + [1641964558.931845][42874:42879] CHIP:DMG: AttributeReportIB = + [1641964558.931871][42874:42879] CHIP:DMG: { + [1641964558.931887][42874:42879] CHIP:DMG: AttributeDataIB = + [1641964558.931906][42874:42879] CHIP:DMG: { + [1641964558.931926][42874:42879] CHIP:DMG: DataVersion = 0x0, + [1641964558.931948][42874:42879] CHIP:DMG: AttributePathIB = + [1641964558.931967][42874:42879] CHIP:DMG: { + [1641964558.931986][42874:42879] CHIP:DMG: Endpoint = 0x0, + [1641964558.932009][42874:42879] CHIP:DMG: Cluster = 0x33, + [1641964558.932032][42874:42879] CHIP:DMG: Attribute = 0x0000_0003, + [1641964558.932054][42874:42879] CHIP:DMG: } [1641964558.932104][42874:42879] CHIP:DMG: - [1641964558.932126][42874:42879] CHIP:DMG: Data = 0, - [1641964558.932144][42874:42879] CHIP:DMG: }, + [1641964558.932126][42874:42879] CHIP:DMG: Data = 0, + [1641964558.932144][42874:42879] CHIP:DMG: }, [1641964558.932167][42874:42879] CHIP:DMG: - [1641964558.932184][42874:42879] CHIP:DMG: }, + [1641964558.932184][42874:42879] CHIP:DMG: }, [1641964558.932216][42874:42879] CHIP:DMG: - [1641964558.932239][42874:42879] CHIP:DMG: ], + [1641964558.932239][42874:42879] CHIP:DMG: ], [1641964558.932274][42874:42879] CHIP:DMG: - [1641964558.932297][42874:42879] CHIP:DMG: SuppressResponse = true, + [1641964558.932297][42874:42879] CHIP:DMG: SuppressResponse = true, [1641964558.932319][42874:42879] CHIP:DMG: } - [1641964558.932502][42874:42879] CHIP:TOO: - GeneralDiagnostics.TotalOperationalHours response: 0 - [1641964558.932584][42874:42879] CHIP:EM: Sending Standalone Ack for - MessageCounter:13392059 on exchange 38752i - [1641964558.932652][42874:42879] CHIP:IN: Prepared secure message - 0x7f3214b19fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 38752i with MessageCounter:12235478. - [1641964558.932687][42874:42879] CHIP:IN: Sending encrypted msg - 0x7f3214b19fe0 with MessageCounter:12235478 to 0x0000000000000002 (1) - at monotonic time: 37232490 msec [1641964558.932795][42874:42879] - CHIP:EM: Flushed pending ack for MessageCounter:13392059 on exchange - 38752i" + [1641964558.932502][42874:42879] CHIP:TOO: GeneralDiagnostics.TotalOperationalHours response: 0 + [1641964558.932584][42874:42879] CHIP:EM: Sending Standalone Ack for MessageCounter:13392059 on exchange 38752i + [1641964558.932652][42874:42879] CHIP:IN: Prepared secure message 0x7f3214b19fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 38752i with MessageCounter:12235478. + [1641964558.932687][42874:42879] CHIP:IN: Sending encrypted msg 0x7f3214b19fe0 with MessageCounter:12235478 to 0x0000000000000002 (1) at monotonic time: 37232490 msec + [1641964558.932795][42874:42879] CHIP:EM: Flushed pending ack for MessageCounter:13392059 on exchange 38752i disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read boot-reasons 1 0 - [1636557536.267635][2963:2968] CHIP:EM: Flushed pending ack for - MessageCounter:1532129288 on exchange 40103i - [1636557536.334504][2963:2968] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 40104i - [1636557536.334549][2963:2968] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 40104i - [1636557536.334570][2963:2968] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 40104i [1636557536.334609][2963:2968] - CHIP:DMG: ReportDataMessage = [1636557536.334635][2963:2968] CHIP:DMG: - { [1636557536.334653][2963:2968] CHIP:DMG: AttributeDataList = - [1636557536.334676][2963:2968] CHIP:DMG: [ - [1636557536.334697][2963:2968] CHIP:DMG: AttributeDataElement = - [1636557536.334724][2963:2968] CHIP:DMG: { - [1636557536.334746][2963:2968] CHIP:DMG: AttributePathIB = - [1636557536.334778][2963:2968] CHIP:DMG: { - [1636557536.334811][2963:2968] CHIP:DMG: Endpoint = 0x1, - [1636557536.334842][2963:2968] CHIP:DMG: Cluster = 0x33, - [1636557536.334874][2963:2968] CHIP:DMG: Attribute = 0x0000_0004, - [1636557536.334904][2963:2968] CHIP:DMG: } + verification: | + ./chip-tool generaldiagnostics read boot-reasons 1 0 + + [1636557536.267635][2963:2968] CHIP:EM: Flushed pending ack for MessageCounter:1532129288 on exchange 40103i + [1636557536.334504][2963:2968] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 40104i + [1636557536.334549][2963:2968] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 40104i + [1636557536.334570][2963:2968] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 40104i + [1636557536.334609][2963:2968] CHIP:DMG: ReportDataMessage = + [1636557536.334635][2963:2968] CHIP:DMG: { + [1636557536.334653][2963:2968] CHIP:DMG: AttributeDataList = + [1636557536.334676][2963:2968] CHIP:DMG: [ + [1636557536.334697][2963:2968] CHIP:DMG: AttributeDataElement = + [1636557536.334724][2963:2968] CHIP:DMG: { + [1636557536.334746][2963:2968] CHIP:DMG: AttributePathIB = + [1636557536.334778][2963:2968] CHIP:DMG: { + [1636557536.334811][2963:2968] CHIP:DMG: Endpoint = 0x1, + [1636557536.334842][2963:2968] CHIP:DMG: Cluster = 0x33, + [1636557536.334874][2963:2968] CHIP:DMG: Attribute = 0x0000_0004, + [1636557536.334904][2963:2968] CHIP:DMG: } [1636557536.334938][2963:2968] CHIP:DMG: - [1636557536.334970][2963:2968] CHIP:DMG: Data = 6, - [1636557536.334999][2963:2968] CHIP:DMG: DataElementVersion = 0x0, - [1636557536.335024][2963:2968] CHIP:DMG: }, + [1636557536.334970][2963:2968] CHIP:DMG: Data = 6, + [1636557536.334999][2963:2968] CHIP:DMG: DataElementVersion = 0x0, + [1636557536.335024][2963:2968] CHIP:DMG: }, [1636557536.335053][2963:2968] CHIP:DMG: - [1636557536.335072][2963:2968] CHIP:DMG: ], + [1636557536.335072][2963:2968] CHIP:DMG: ], [1636557536.335098][2963:2968] CHIP:DMG: [1636557536.335116][2963:2968] CHIP:DMG: } [1636557536.335198][2963:2968] CHIP:ZCL: ReadAttributesResponse: - [1636557536.335217][2963:2968] CHIP:ZCL: ClusterId: 0x0000_0033 - [1636557536.335238][2963:2968] CHIP:ZCL: attributeId: 0x0000_0004 - [1636557536.335256][2963:2968] CHIP:ZCL: status: Success (0x0000) - [1636557536.335274][2963:2968] CHIP:ZCL: attribute TLV Type: 0x04 + [1636557536.335217][2963:2968] CHIP:ZCL: ClusterId: 0x0000_0033 + [1636557536.335238][2963:2968] CHIP:ZCL: attributeId: 0x0000_0004 + [1636557536.335256][2963:2968] CHIP:ZCL: status: Success (0x0000) + [1636557536.335274][2963:2968] CHIP:ZCL: attribute TLV Type: 0x04 [1636557536.335293][2963:2968] CHIP:TOO: Int8u attribute Response: 6 - [1636557536.335361][2963:2968] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 40104i [1636557536.335414][2963:2968] - CHIP:IN: Prepared encrypted message 0xaaaaf45d5f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 40104i with MessageCounter:1. [1636557536.335445][2963:2968] CHIP:IN: - Sending encrypted msg 0xaaaaf45d5f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 3241611 msec" + [1636557536.335361][2963:2968] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 40104i + [1636557536.335414][2963:2968] CHIP:IN: Prepared encrypted message 0xaaaaf45d5f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 40104i with MessageCounter:1. + [1636557536.335445][2963:2968] CHIP:IN: Sending encrypted msg 0xaaaaf45d5f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 3241611 msec disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read active-hardware-faults 1 0 - [1641965190.317466][43496:43501] CHIP:IN: Sending unauthenticated msg - 0x7fa9a09e4000 with MessageCounter:2890688003 to 0x0000000000000000 at - monotonic time: 37863874 msec [1641965190.317561][43496:43501] - CHIP:EM: Flushed pending ack for MessageCounter:232282345 on exchange - 8364i [1641965190.363021][43496:43501] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:7831593 on exchange - 8365i [1641965190.363074][43496:43501] CHIP:EM: Found matching - exchange: 8365i, Delegate: 0x7fa98c001980 - [1641965190.363105][43496:43501] CHIP:EM: Rxd Ack; Removing - MessageCounter:4919296 from Retrans Table on exchange 8365i - [1641965190.363125][43496:43501] CHIP:EM: Removed CHIP - MessageCounter:4919296 from RetransTable on exchange 8365i + verification: | + ./chip-tool generaldiagnostics read active-hardware-faults 1 0 + + [1641965190.317466][43496:43501] CHIP:IN: Sending unauthenticated msg 0x7fa9a09e4000 with MessageCounter:2890688003 to 0x0000000000000000 at monotonic time: 37863874 msec + [1641965190.317561][43496:43501] CHIP:EM: Flushed pending ack for MessageCounter:232282345 on exchange 8364i + [1641965190.363021][43496:43501] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:7831593 on exchange 8365i + [1641965190.363074][43496:43501] CHIP:EM: Found matching exchange: 8365i, Delegate: 0x7fa98c001980 + [1641965190.363105][43496:43501] CHIP:EM: Rxd Ack; Removing MessageCounter:4919296 from Retrans Table on exchange 8365i + [1641965190.363125][43496:43501] CHIP:EM: Removed CHIP MessageCounter:4919296 from RetransTable on exchange 8365i [1641965190.363196][43496:43501] CHIP:DMG: ReportDataMessage = [1641965190.363226][43496:43501] CHIP:DMG: { - [1641965190.363247][43496:43501] CHIP:DMG: AttributeReportIBs = - [1641965190.363272][43496:43501] CHIP:DMG: [ - [1641965190.363292][43496:43501] CHIP:DMG: AttributeReportIB = - [1641965190.363329][43496:43501] CHIP:DMG: { - [1641965190.363355][43496:43501] CHIP:DMG: AttributeDataIB = - [1641965190.363379][43496:43501] CHIP:DMG: { - [1641965190.363408][43496:43501] CHIP:DMG: DataVersion = 0x0, - [1641965190.363435][43496:43501] CHIP:DMG: AttributePathIB = - [1641965190.363462][43496:43501] CHIP:DMG: { - [1641965190.363490][43496:43501] CHIP:DMG: Endpoint = 0x0, - [1641965190.363520][43496:43501] CHIP:DMG: Cluster = 0x33, - [1641965190.363549][43496:43501] CHIP:DMG: Attribute = 0x0000_0005, - [1641965190.363578][43496:43501] CHIP:DMG: } + [1641965190.363247][43496:43501] CHIP:DMG: AttributeReportIBs = + [1641965190.363272][43496:43501] CHIP:DMG: [ + [1641965190.363292][43496:43501] CHIP:DMG: AttributeReportIB = + [1641965190.363329][43496:43501] CHIP:DMG: { + [1641965190.363355][43496:43501] CHIP:DMG: AttributeDataIB = + [1641965190.363379][43496:43501] CHIP:DMG: { + [1641965190.363408][43496:43501] CHIP:DMG: DataVersion = 0x0, + [1641965190.363435][43496:43501] CHIP:DMG: AttributePathIB = + [1641965190.363462][43496:43501] CHIP:DMG: { + [1641965190.363490][43496:43501] CHIP:DMG: Endpoint = 0x0, + [1641965190.363520][43496:43501] CHIP:DMG: Cluster = 0x33, + [1641965190.363549][43496:43501] CHIP:DMG: Attribute = 0x0000_0005, + [1641965190.363578][43496:43501] CHIP:DMG: } [1641965190.363611][43496:43501] CHIP:DMG: - [1641965190.363637][43496:43501] CHIP:DMG: Data = [ + [1641965190.363637][43496:43501] CHIP:DMG: Data = [ [1641965190.363668][43496:43501] CHIP:DMG: - [1641965190.363707][43496:43501] CHIP:DMG: ], - [1641965190.363740][43496:43501] CHIP:DMG: }, + [1641965190.363707][43496:43501] CHIP:DMG: ], + [1641965190.363740][43496:43501] CHIP:DMG: }, [1641965190.363790][43496:43501] CHIP:DMG: - [1641965190.363817][43496:43501] CHIP:DMG: }, + [1641965190.363817][43496:43501] CHIP:DMG: }, [1641965190.363857][43496:43501] CHIP:DMG: - [1641965190.363881][43496:43501] CHIP:DMG: ], + [1641965190.363881][43496:43501] CHIP:DMG: ], [1641965190.363918][43496:43501] CHIP:DMG: - [1641965190.363943][43496:43501] CHIP:DMG: SuppressResponse = true, + [1641965190.363943][43496:43501] CHIP:DMG: SuppressResponse = true, [1641965190.363967][43496:43501] CHIP:DMG: } - [1641965190.364192][43496:43501] CHIP:TOO: - GeneralDiagnostics.ActiveHardwareFaults response: 0 entries - [1641965190.364261][43496:43501] CHIP:EM: Sending Standalone Ack for - MessageCounter:7831593 on exchange 8365i - [1641965190.364327][43496:43501] CHIP:IN: Prepared secure message - 0x7fa9a09e3fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 8365i with MessageCounter:4919297. - [1641965190.364375][43496:43501] CHIP:IN: Sending encrypted msg - 0x7fa9a09e3fe0 with MessageCounter:4919297 to 0x0000000000000002 (1) - at monotonic time: 37863921 msec [1641965190.364491][43496:43501] - CHIP:EM: Flushed pending ack for MessageCounter:7831593 on exchange - 8365i" + [1641965190.364192][43496:43501] CHIP:TOO: GeneralDiagnostics.ActiveHardwareFaults response: 0 entries + [1641965190.364261][43496:43501] CHIP:EM: Sending Standalone Ack for MessageCounter:7831593 on exchange 8365i + [1641965190.364327][43496:43501] CHIP:IN: Prepared secure message 0x7fa9a09e3fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 8365i with MessageCounter:4919297. + [1641965190.364375][43496:43501] CHIP:IN: Sending encrypted msg 0x7fa9a09e3fe0 with MessageCounter:4919297 to 0x0000000000000002 (1) at monotonic time: 37863921 msec + [1641965190.364491][43496:43501] CHIP:EM: Flushed pending ack for MessageCounter:7831593 on exchange 8365i disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read active-radio-faults 1 0 - [1641965451.619831][43603:43608] CHIP:IN: Sending unauthenticated msg - 0x7f6ceeffc000 with MessageCounter:1905359789 to 0x0000000000000000 at - monotonic time: 38125177 msec [1641965451.619898][43603:43608] - CHIP:EM: Flushed pending ack for MessageCounter:232282347 on exchange - 51439i [1641965451.666375][43603:43608] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:14540530 on - exchange 51440i [1641965451.666436][43603:43608] CHIP:EM: Found - matching exchange: 51440i, Delegate: 0x7f6cdc001980 - [1641965451.666472][43603:43608] CHIP:EM: Rxd Ack; Removing - MessageCounter:15284140 from Retrans Table on exchange 51440i - [1641965451.666486][43603:43608] CHIP:EM: Removed CHIP - MessageCounter:15284140 from RetransTable on exchange 51440i + verification: | + ./chip-tool generaldiagnostics read active-radio-faults 1 0 + + [1641965451.619831][43603:43608] CHIP:IN: Sending unauthenticated msg 0x7f6ceeffc000 with MessageCounter:1905359789 to 0x0000000000000000 at monotonic time: 38125177 msec + [1641965451.619898][43603:43608] CHIP:EM: Flushed pending ack for MessageCounter:232282347 on exchange 51439i + [1641965451.666375][43603:43608] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:14540530 on exchange 51440i + [1641965451.666436][43603:43608] CHIP:EM: Found matching exchange: 51440i, Delegate: 0x7f6cdc001980 + [1641965451.666472][43603:43608] CHIP:EM: Rxd Ack; Removing MessageCounter:15284140 from Retrans Table on exchange 51440i + [1641965451.666486][43603:43608] CHIP:EM: Removed CHIP MessageCounter:15284140 from RetransTable on exchange 51440i [1641965451.666541][43603:43608] CHIP:DMG: ReportDataMessage = [1641965451.666570][43603:43608] CHIP:DMG: { - [1641965451.666586][43603:43608] CHIP:DMG: AttributeReportIBs = - [1641965451.666620][43603:43608] CHIP:DMG: [ - [1641965451.666638][43603:43608] CHIP:DMG: AttributeReportIB = - [1641965451.666672][43603:43608] CHIP:DMG: { - [1641965451.666699][43603:43608] CHIP:DMG: AttributeDataIB = - [1641965451.666723][43603:43608] CHIP:DMG: { - [1641965451.666748][43603:43608] CHIP:DMG: DataVersion = 0x0, - [1641965451.666773][43603:43608] CHIP:DMG: AttributePathIB = - [1641965451.666804][43603:43608] CHIP:DMG: { - [1641965451.666828][43603:43608] CHIP:DMG: Endpoint = 0x0, - [1641965451.666866][43603:43608] CHIP:DMG: Cluster = 0x33, - [1641965451.666905][43603:43608] CHIP:DMG: Attribute = 0x0000_0006, - [1641965451.666933][43603:43608] CHIP:DMG: } + [1641965451.666586][43603:43608] CHIP:DMG: AttributeReportIBs = + [1641965451.666620][43603:43608] CHIP:DMG: [ + [1641965451.666638][43603:43608] CHIP:DMG: AttributeReportIB = + [1641965451.666672][43603:43608] CHIP:DMG: { + [1641965451.666699][43603:43608] CHIP:DMG: AttributeDataIB = + [1641965451.666723][43603:43608] CHIP:DMG: { + [1641965451.666748][43603:43608] CHIP:DMG: DataVersion = 0x0, + [1641965451.666773][43603:43608] CHIP:DMG: AttributePathIB = + [1641965451.666804][43603:43608] CHIP:DMG: { + [1641965451.666828][43603:43608] CHIP:DMG: Endpoint = 0x0, + [1641965451.666866][43603:43608] CHIP:DMG: Cluster = 0x33, + [1641965451.666905][43603:43608] CHIP:DMG: Attribute = 0x0000_0006, + [1641965451.666933][43603:43608] CHIP:DMG: } [1641965451.666966][43603:43608] CHIP:DMG: - [1641965451.666988][43603:43608] CHIP:DMG: Data = [ + [1641965451.666988][43603:43608] CHIP:DMG: Data = [ [1641965451.667032][43603:43608] CHIP:DMG: - [1641965451.667076][43603:43608] CHIP:DMG: ], - [1641965451.667106][43603:43608] CHIP:DMG: }, + [1641965451.667076][43603:43608] CHIP:DMG: ], + [1641965451.667106][43603:43608] CHIP:DMG: }, [1641965451.667138][43603:43608] CHIP:DMG: - [1641965451.667153][43603:43608] CHIP:DMG: }, + [1641965451.667153][43603:43608] CHIP:DMG: }, [1641965451.667176][43603:43608] CHIP:DMG: - [1641965451.667189][43603:43608] CHIP:DMG: ], + [1641965451.667189][43603:43608] CHIP:DMG: ], [1641965451.667210][43603:43608] CHIP:DMG: - [1641965451.667227][43603:43608] CHIP:DMG: SuppressResponse = true, + [1641965451.667227][43603:43608] CHIP:DMG: SuppressResponse = true, [1641965451.667242][43603:43608] CHIP:DMG: } - [1641965451.667395][43603:43608] CHIP:TOO: - GeneralDiagnostics.ActiveRadioFaults response: 0 entries - [1641965451.667448][43603:43608] CHIP:EM: Sending Standalone Ack for - MessageCounter:14540530 on exchange 51440i - [1641965451.667495][43603:43608] CHIP:IN: Prepared secure message - 0x7f6ceeffbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 51440i with MessageCounter:15284141." + [1641965451.667395][43603:43608] CHIP:TOO: GeneralDiagnostics.ActiveRadioFaults response: 0 entries + [1641965451.667448][43603:43608] CHIP:EM: Sending Standalone Ack for MessageCounter:14540530 on exchange 51440i + [1641965451.667495][43603:43608] CHIP:IN: Prepared secure message 0x7f6ceeffbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 51440i with MessageCounter:15284141. disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool generaldiagnostics read active-network-faults 1 0 - [1641965685.705750][43655:43660] CHIP:IN: Sending unauthenticated msg - 0x7f90a77fd000 with MessageCounter:1562631730 to 0x0000000000000000 at - monotonic time: 38359263 msec [1641965685.705812][43655:43660] - CHIP:EM: Flushed pending ack for MessageCounter:232282349 on exchange - 18037i [1641965685.799740][43655:43660] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:15321486 on - exchange 18038i [1641965685.799801][43655:43660] CHIP:EM: Found - matching exchange: 18038i, Delegate: 0x7f9094001980 - [1641965685.799846][43655:43660] CHIP:EM: Rxd Ack; Removing - MessageCounter:12660801 from Retrans Table on exchange 18038i - [1641965685.799871][43655:43660] CHIP:EM: Removed CHIP - MessageCounter:12660801 from RetransTable on exchange 18038i + verification: | + ./chip-tool generaldiagnostics read active-network-faults 1 0 + + [1641965685.705750][43655:43660] CHIP:IN: Sending unauthenticated msg 0x7f90a77fd000 with MessageCounter:1562631730 to 0x0000000000000000 at monotonic time: 38359263 msec + [1641965685.705812][43655:43660] CHIP:EM: Flushed pending ack for MessageCounter:232282349 on exchange 18037i + [1641965685.799740][43655:43660] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:15321486 on exchange 18038i + [1641965685.799801][43655:43660] CHIP:EM: Found matching exchange: 18038i, Delegate: 0x7f9094001980 + [1641965685.799846][43655:43660] CHIP:EM: Rxd Ack; Removing MessageCounter:12660801 from Retrans Table on exchange 18038i + [1641965685.799871][43655:43660] CHIP:EM: Removed CHIP MessageCounter:12660801 from RetransTable on exchange 18038i [1641965685.799940][43655:43660] CHIP:DMG: ReportDataMessage = [1641965685.799974][43655:43660] CHIP:DMG: { - [1641965685.799997][43655:43660] CHIP:DMG: AttributeReportIBs = - [1641965685.800035][43655:43660] CHIP:DMG: [ - [1641965685.800058][43655:43660] CHIP:DMG: AttributeReportIB = - [1641965685.800124][43655:43660] CHIP:DMG: { - [1641965685.800149][43655:43660] CHIP:DMG: AttributeDataIB = - [1641965685.800174][43655:43660] CHIP:DMG: { - [1641965685.800199][43655:43660] CHIP:DMG: DataVersion = 0x0, - [1641965685.800232][43655:43660] CHIP:DMG: AttributePathIB = - [1641965685.800259][43655:43660] CHIP:DMG: { - [1641965685.800279][43655:43660] CHIP:DMG: Endpoint = 0x0, - [1641965685.800301][43655:43660] CHIP:DMG: Cluster = 0x33, - [1641965685.800323][43655:43660] CHIP:DMG: Attribute = 0x0000_0007, - [1641965685.800345][43655:43660] CHIP:DMG: } + [1641965685.799997][43655:43660] CHIP:DMG: AttributeReportIBs = + [1641965685.800035][43655:43660] CHIP:DMG: [ + [1641965685.800058][43655:43660] CHIP:DMG: AttributeReportIB = + [1641965685.800124][43655:43660] CHIP:DMG: { + [1641965685.800149][43655:43660] CHIP:DMG: AttributeDataIB = + [1641965685.800174][43655:43660] CHIP:DMG: { + [1641965685.800199][43655:43660] CHIP:DMG: DataVersion = 0x0, + [1641965685.800232][43655:43660] CHIP:DMG: AttributePathIB = + [1641965685.800259][43655:43660] CHIP:DMG: { + [1641965685.800279][43655:43660] CHIP:DMG: Endpoint = 0x0, + [1641965685.800301][43655:43660] CHIP:DMG: Cluster = 0x33, + [1641965685.800323][43655:43660] CHIP:DMG: Attribute = 0x0000_0007, + [1641965685.800345][43655:43660] CHIP:DMG: } [1641965685.800367][43655:43660] CHIP:DMG: - [1641965685.800386][43655:43660] CHIP:DMG: Data = [ + [1641965685.800386][43655:43660] CHIP:DMG: Data = [ [1641965685.800410][43655:43660] CHIP:DMG: - [1641965685.800437][43655:43660] CHIP:DMG: ], - [1641965685.800458][43655:43660] CHIP:DMG: }, + [1641965685.800437][43655:43660] CHIP:DMG: ], + [1641965685.800458][43655:43660] CHIP:DMG: }, [1641965685.800483][43655:43660] CHIP:DMG: - [1641965685.800499][43655:43660] CHIP:DMG: }, + [1641965685.800499][43655:43660] CHIP:DMG: }, [1641965685.800525][43655:43660] CHIP:DMG: - [1641965685.800541][43655:43660] CHIP:DMG: ], + [1641965685.800541][43655:43660] CHIP:DMG: ], [1641965685.800567][43655:43660] CHIP:DMG: - [1641965685.800584][43655:43660] CHIP:DMG: SuppressResponse = true, + [1641965685.800584][43655:43660] CHIP:DMG: SuppressResponse = true, [1641965685.800600][43655:43660] CHIP:DMG: } - [1641965685.800755][43655:43660] CHIP:TOO: - GeneralDiagnostics.ActiveNetworkFaults response: 0 entries - [1641965685.800812][43655:43660] CHIP:EM: Sending Standalone Ack for - MessageCounter:15321486 on exchange 18038i - [1641965685.800868][43655:43660] CHIP:IN: Prepared secure message - 0x7f90a77fcfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 18038i with MessageCounter:12660802. - [1641965685.800900][43655:43660] CHIP:IN: Sending encrypted msg - 0x7f90a77fcfe0 with MessageCounter:12660802 to 0x0000000000000002 (1) - at monotonic time: 38359358 msec [1641965685.801006][43655:43660] - CHIP:EM: Flushed pending ack for MessageCounter:15321486 on exchange - 18038i" + [1641965685.800755][43655:43660] CHIP:TOO: GeneralDiagnostics.ActiveNetworkFaults response: 0 entries + [1641965685.800812][43655:43660] CHIP:EM: Sending Standalone Ack for MessageCounter:15321486 on exchange 18038i + [1641965685.800868][43655:43660] CHIP:IN: Prepared secure message 0x7f90a77fcfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 18038i with MessageCounter:12660802. + [1641965685.800900][43655:43660] CHIP:IN: Sending encrypted msg 0x7f90a77fcfe0 with MessageCounter:12660802 to 0x0000000000000002 (1) at monotonic time: 38359358 msec + [1641965685.801006][43655:43660] CHIP:EM: Flushed pending ack for MessageCounter:15321486 on exchange 18038i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_GENDIAG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_GENDIAG_2_1.yaml index 0d31a3c50774a6..08c8354ddac750 100644 --- a/src/app/tests/suites/certification/Test_TC_GENDIAG_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_GENDIAG_2_1.yaml @@ -21,20 +21,21 @@ config: tests: - label: "TH use chip-tool event read to get server event report" - verification: - "./chip-tool generaldiagnostics read-event hardware-fault-change 1 0" + verification: | + ./chip-tool generaldiagnostics read-event hardware-fault-change 1 0 disabled: true - label: "TH use chip-tool event read to get server event report" - verification: - "./chip-tool generaldiagnostics read-event radio-fault-change 1 0" + verification: | + ./chip-tool generaldiagnostics read-event radio-fault-change 1 0 disabled: true - label: "TH use chip-tool event read to get server event report" - verification: - "./chip-tool generaldiagnostics read-event network-fault-change 1 0" + verification: | + ./chip-tool generaldiagnostics read-event network-fault-change 1 0 disabled: true - label: "TH use chip-tool event read to get server event report" - verification: "./chip-tool generaldiagnostics read-event boot-reason 1 0" + verification: | + ./chip-tool generaldiagnostics read-event boot-reason 1 0 disabled: true 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 c61bc5e51ec5a6..b3946673b46617 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 @@ -25,16 +25,18 @@ tests: "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: - "In case of chip tool, here is an example command to use sudo - ./chip-tool identify identify 0 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool identify identify 0 1 1 disabled: true - label: "DUT sends the Invoke Request Message to the TH. The Message should contain the wildcard for Endpoint, specific Cluster and Specific Command in the CommandDataIB." - verification: "Out of Scope for V1.0" + verification: | + Out of Scope for V1.0 disabled: true - label: @@ -42,7 +44,8 @@ tests: contain multiple paths Path = [[ Endpoint = Endpoint1, Cluster = ClusterID, Command = Command1 ], [ Endpoint = Endpoint1, Cluster = ClusterID, Command = Command2 ] ]" - verification: "Out of Scope for V1.0" + verification: | + Out of Scope for V1.0 disabled: true - label: @@ -50,16 +53,17 @@ tests: contain one valid CommandDataIB, which has the specific Endpoint, Specific Cluster and Specific Command. Send 2 more Invoke Request 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 sudo ./chip-tool identify - identify 10 1 1" + verification: | + In case of chip tool, here is an example command to use + 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 a command that will return a data type of list as a response." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool modeselect read supported-modes 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool modeselect read supported-modes 1 1 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 8ac81de9196d41..a18e18876ed38f 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 @@ -23,224 +23,251 @@ tests: - label: "TH sends the Invoke Request Message to the DUT with the path that indicates a specific endpoint that is unsupported." - verification: - "In case of chip tool, here is an example command to use ./chip-tool - onoff on 1 20 [1646259751838] [5046:202503] CHIP: [EM] Found matching - exchange: 61331i, Delegate: 0x7fc26610f120 [1646259751838] - [5046:202503] CHIP: [EM] Rxd Ack; Removing MessageCounter:12132811 - from Retrans Table on exchange 61331i [1646259751838] [5046:202503] - CHIP: [EM] Removed CHIP MessageCounter:12132811 from RetransTable on - exchange 61331i [1646259751838] [5046:202503] CHIP: [DMG] ICR moving - to [ResponseRe] [1646259751838] [5046:202503] CHIP: [DMG] - InvokeResponseMessage = [1646259751838] [5046:202503] CHIP: [DMG] { - [1646259751838] [5046:202503] CHIP: [DMG] suppressResponse = false, - [1646259751838] [5046:202503] CHIP: [DMG] InvokeResponseIBs = - [1646259751838] [5046:202503] CHIP: [DMG] [ [1646259751838] - [5046:202503] CHIP: [DMG] InvokeResponseIB = [1646259751838] - [5046:202503] CHIP: [DMG] { [1646259751838] [5046:202503] CHIP: [DMG] - CommandStatusIB = [1646259751838] [5046:202503] CHIP: [DMG] { - [1646259751838] [5046:202503] CHIP: [DMG] CommandPathIB = - [1646259751838] [5046:202503] CHIP: [DMG] { [1646259751838] - [5046:202503] CHIP: [DMG] EndpointId = 0x3, [1646259751838] - [5046:202503] CHIP: [DMG] ClusterId = 0x6, [1646259751838] - [5046:202503] CHIP: [DMG] CommandId = 0x1, [1646259751838] - [5046:202503] CHIP: [DMG] }, [1646259751838] [5046:202503] CHIP: [DMG] - [1646259751838] [5046:202503] CHIP: [DMG] StatusIB = [1646259751838] - [5046:202503] CHIP: [DMG] { [1646259751838] [5046:202503] CHIP: [DMG] - status = 0x7f, [1646259751838] [5046:202503] CHIP: [DMG] }, - [1646259751838] [5046:202503] CHIP: [DMG] [1646259751838] - [5046:202503] CHIP: [DMG] }, [1646259751838] [5046:202503] CHIP: [DMG] - [1646259751838] [5046:202503] CHIP: [DMG] }, [1646259751838] - [5046:202503] CHIP: [DMG] [1646259751838] [5046:202503] CHIP: [DMG] ], - [1646259751838] [5046:202503] CHIP: [DMG] [1646259751838] - [5046:202503] CHIP: [DMG] InteractionModelRevision = 1 [1646259751838] - [5046:202503] CHIP: [DMG] }, [1646259751838] [5046:202503] CHIP: [DMG] - Received Command Response Status for Endpoint=3 Cluster=0x0000_0006 - Command=0x0000_0001 Status=0x7f [1646259751838] [5046:202503] CHIP: - [TOO] Error: IM Error 0x0000057F: General error: 0x7f" + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool onoff on 1 20 + + [1646259751838] [5046:202503] CHIP: [EM] Found matching exchange: 61331i, Delegate: 0x7fc26610f120 + [1646259751838] [5046:202503] CHIP: [EM] Rxd Ack; Removing MessageCounter:12132811 from Retrans Table on exchange 61331i + [1646259751838] [5046:202503] CHIP: [EM] Removed CHIP MessageCounter:12132811 from RetransTable on exchange 61331i + [1646259751838] [5046:202503] CHIP: [DMG] ICR moving to [ResponseRe] + [1646259751838] [5046:202503] CHIP: [DMG] InvokeResponseMessage = + [1646259751838] [5046:202503] CHIP: [DMG] { + [1646259751838] [5046:202503] CHIP: [DMG] suppressResponse = false, + [1646259751838] [5046:202503] CHIP: [DMG] InvokeResponseIBs = + [1646259751838] [5046:202503] CHIP: [DMG] [ + [1646259751838] [5046:202503] CHIP: [DMG] InvokeResponseIB = + [1646259751838] [5046:202503] CHIP: [DMG] { + [1646259751838] [5046:202503] CHIP: [DMG] CommandStatusIB = + [1646259751838] [5046:202503] CHIP: [DMG] { + [1646259751838] [5046:202503] CHIP: [DMG] CommandPathIB = + [1646259751838] [5046:202503] CHIP: [DMG] { + [1646259751838] [5046:202503] CHIP: [DMG] EndpointId = 0x3, + [1646259751838] [5046:202503] CHIP: [DMG] ClusterId = 0x6, + [1646259751838] [5046:202503] CHIP: [DMG] CommandId = 0x1, + [1646259751838] [5046:202503] CHIP: [DMG] }, + [1646259751838] [5046:202503] CHIP: [DMG] + [1646259751838] [5046:202503] CHIP: [DMG] StatusIB = + [1646259751838] [5046:202503] CHIP: [DMG] { + [1646259751838] [5046:202503] CHIP: [DMG] status = 0x7f, + [1646259751838] [5046:202503] CHIP: [DMG] }, + [1646259751838] [5046:202503] CHIP: [DMG] + [1646259751838] [5046:202503] CHIP: [DMG] }, + [1646259751838] [5046:202503] CHIP: [DMG] + [1646259751838] [5046:202503] CHIP: [DMG] }, + [1646259751838] [5046:202503] CHIP: [DMG] + [1646259751838] [5046:202503] CHIP: [DMG] ], + [1646259751838] [5046:202503] CHIP: [DMG] + [1646259751838] [5046:202503] CHIP: [DMG] InteractionModelRevision = 1 + [1646259751838] [5046:202503] CHIP: [DMG] }, + [1646259751838] [5046:202503] CHIP: [DMG] Received Command Response Status for Endpoint=3 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x7f + [1646259751838] [5046:202503] CHIP: [TOO] Error: IM Error 0x0000057F: General error: 0x7f disabled: true - label: "TH sends the Invoke Request Message to the DUT with the path that indicates a specific cluster that is unsupported." - verification: - "In case of chip tool, here is an example command to use ./chip-tool - any command-by-id 0x0003 0 1 1 2 [1646259975665] [5055:204669] CHIP: - [EM] Found matching exchange: 26369i, Delegate: 0x7feb9b534af0 - [1646259975665] [5055:204669] CHIP: [EM] Rxd Ack; Removing - MessageCounter:10263298 from Retrans Table on exchange 26369i - [1646259975665] [5055:204669] CHIP: [EM] Removed CHIP - MessageCounter:10263298 from RetransTable on exchange 26369i + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool any command-by-id 0x0003 0 1 1 2 + + [1646259975665] [5055:204669] CHIP: [EM] Found matching exchange: 26369i, Delegate: 0x7feb9b534af0 + [1646259975665] [5055:204669] CHIP: [EM] Rxd Ack; Removing MessageCounter:10263298 from Retrans Table on exchange 26369i + [1646259975665] [5055:204669] CHIP: [EM] Removed CHIP MessageCounter:10263298 from RetransTable on exchange 26369i [1646259975665] [5055:204669] CHIP: [DMG] ICR moving to [ResponseRe] [1646259975665] [5055:204669] CHIP: [DMG] InvokeResponseMessage = - [1646259975665] [5055:204669] CHIP: [DMG] { [1646259975665] - [5055:204669] CHIP: [DMG] suppressResponse = false, [1646259975665] - [5055:204669] CHIP: [DMG] InvokeResponseIBs = [1646259975665] - [5055:204669] CHIP: [DMG] [ [1646259975665] [5055:204669] CHIP: [DMG] - InvokeResponseIB = [1646259975665] [5055:204669] CHIP: [DMG] { - [1646259975665] [5055:204669] CHIP: [DMG] CommandStatusIB = - [1646259975665] [5055:204669] CHIP: [DMG] { [1646259975665] - [5055:204669] CHIP: [DMG] CommandPathIB = [1646259975665] - [5055:204669] CHIP: [DMG] { [1646259975665] [5055:204669] CHIP: [DMG] - EndpointId = 0x2, [1646259975665] [5055:204669] CHIP: [DMG] ClusterId - = 0x3, [1646259975665] [5055:204669] CHIP: [DMG] CommandId = 0x0, - [1646259975665] [5055:204669] CHIP: [DMG] }, [1646259975665] - [5055:204669] CHIP: [DMG] [1646259975665] [5055:204669] CHIP: [DMG] - StatusIB = [1646259975665] [5055:204669] CHIP: [DMG] { [1646259975665] - [5055:204669] CHIP: [DMG] status = 0xc3, [1646259975665] [5055:204669] - CHIP: [DMG] }, [1646259975665] [5055:204669] CHIP: [DMG] - [1646259975665] [5055:204669] CHIP: [DMG] }, [1646259975665] - [5055:204669] CHIP: [DMG] [1646259975665] [5055:204669] CHIP: [DMG] }, - [1646259975665] [5055:204669] CHIP: [DMG] [1646259975665] - [5055:204669] CHIP: [DMG] ], [1646259975665] [5055:204669] CHIP: [DMG] - [1646259975666] [5055:204669] CHIP: [DMG] InteractionModelRevision = 1 - [1646259975666] [5055:204669] CHIP: [DMG] }, [1646259975666] - [5055:204669] CHIP: [DMG] Received Command Response Status for - Endpoint=2 Cluster=0x0000_0003 Command=0x0000_0000 Status=0xc3 - [1646259975666] [5055:204669] CHIP: [TOO] Error: IM Error 0x000005C3: - General error: 0xc3" + [1646259975665] [5055:204669] CHIP: [DMG] { + [1646259975665] [5055:204669] CHIP: [DMG] suppressResponse = false, + [1646259975665] [5055:204669] CHIP: [DMG] InvokeResponseIBs = + [1646259975665] [5055:204669] CHIP: [DMG] [ + [1646259975665] [5055:204669] CHIP: [DMG] InvokeResponseIB = + [1646259975665] [5055:204669] CHIP: [DMG] { + [1646259975665] [5055:204669] CHIP: [DMG] CommandStatusIB = + [1646259975665] [5055:204669] CHIP: [DMG] { + [1646259975665] [5055:204669] CHIP: [DMG] CommandPathIB = + [1646259975665] [5055:204669] CHIP: [DMG] { + [1646259975665] [5055:204669] CHIP: [DMG] EndpointId = 0x2, + [1646259975665] [5055:204669] CHIP: [DMG] ClusterId = 0x3, + [1646259975665] [5055:204669] CHIP: [DMG] CommandId = 0x0, + [1646259975665] [5055:204669] CHIP: [DMG] }, + [1646259975665] [5055:204669] CHIP: [DMG] + [1646259975665] [5055:204669] CHIP: [DMG] StatusIB = + [1646259975665] [5055:204669] CHIP: [DMG] { + [1646259975665] [5055:204669] CHIP: [DMG] status = 0xc3, + [1646259975665] [5055:204669] CHIP: [DMG] }, + [1646259975665] [5055:204669] CHIP: [DMG] + [1646259975665] [5055:204669] CHIP: [DMG] }, + [1646259975665] [5055:204669] CHIP: [DMG] + [1646259975665] [5055:204669] CHIP: [DMG] }, + [1646259975665] [5055:204669] CHIP: [DMG] + [1646259975665] [5055:204669] CHIP: [DMG] ], + [1646259975665] [5055:204669] CHIP: [DMG] + [1646259975666] [5055:204669] CHIP: [DMG] InteractionModelRevision = 1 + [1646259975666] [5055:204669] CHIP: [DMG] }, + [1646259975666] [5055:204669] CHIP: [DMG] Received Command Response Status for Endpoint=2 Cluster=0x0000_0003 Command=0x0000_0000 Status=0xc3 + [1646259975666] [5055:204669] CHIP: [TOO] Error: IM Error 0x000005C3: General error: 0xc3 disabled: true - label: "TH sends the Invoke Request Message to the DUT with the path that 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 [1646260061731] [5058:205583] CHIP: - [EM] Removed CHIP MessageCounter:16578292 from RetransTable on - exchange 22437i [1646260061731] [5058:205583] CHIP: [DMG] ICR moving - to [ResponseRe] [1646260061731] [5058:205583] CHIP: [DMG] - InvokeResponseMessage = [1646260061731] [5058:205583] CHIP: [DMG] { - [1646260061731] [5058:205583] CHIP: [DMG] suppressResponse = false, - [1646260061731] [5058:205583] CHIP: [DMG] InvokeResponseIBs = - [1646260061732] [5058:205583] CHIP: [DMG] [ [1646260061732] - [5058:205583] CHIP: [DMG] InvokeResponseIB = [1646260061732] - [5058:205583] CHIP: [DMG] { [1646260061732] [5058:205583] CHIP: [DMG] - CommandStatusIB = [1646260061732] [5058:205583] CHIP: [DMG] { - [1646260061732] [5058:205583] CHIP: [DMG] CommandPathIB = - [1646260061732] [5058:205583] CHIP: [DMG] { [1646260061732] - [5058:205583] CHIP: [DMG] EndpointId = 0x0, [1646260061732] - [5058:205583] CHIP: [DMG] ClusterId = 0x3, [1646260061732] - [5058:205583] CHIP: [DMG] CommandId = 0x3, [1646260061732] - [5058:205583] CHIP: [DMG] }, [1646260061732] [5058:205583] CHIP: [DMG] - [1646260061732] [5058:205583] CHIP: [DMG] StatusIB = [1646260061732] - [5058:205583] CHIP: [DMG] { [1646260061732] [5058:205583] CHIP: [DMG] - status = 0x81, [1646260061732] [5058:205583] CHIP: [DMG] }, - [1646260061732] [5058:205583] CHIP: [DMG] [1646260061732] - [5058:205583] CHIP: [DMG] }, [1646260061732] [5058:205583] CHIP: [DMG] - [1646260061732] [5058:205583] CHIP: [DMG] }, [1646260061732] - [5058:205583] CHIP: [DMG] [1646260061732] [5058:205583] CHIP: [DMG] ], - [1646260061732] [5058:205583] CHIP: [DMG] [1646260061732] - [5058:205583] CHIP: [DMG] InteractionModelRevision = 1 [1646260061732] - [5058:205583] CHIP: [DMG] }, [1646260061732] [5058:205583] CHIP: [DMG] - Received Command Response Status for Endpoint=0 Cluster=0x0000_0003 - Command=0x0000_0003 Status=0x81 [1646260061733] [5058:205583] CHIP: - [TOO] Error: IM Error 0x00000581: General error: 0x81" + verification: | + In case of chip tool, here is an example command to use + ./chip-tool any command-by-id 0x0003 3 1 1 0 + + [1646260061731] [5058:205583] CHIP: [EM] Removed CHIP MessageCounter:16578292 from RetransTable on exchange 22437i + [1646260061731] [5058:205583] CHIP: [DMG] ICR moving to [ResponseRe] + [1646260061731] [5058:205583] CHIP: [DMG] InvokeResponseMessage = + [1646260061731] [5058:205583] CHIP: [DMG] { + [1646260061731] [5058:205583] CHIP: [DMG] suppressResponse = false, + [1646260061731] [5058:205583] CHIP: [DMG] InvokeResponseIBs = + [1646260061732] [5058:205583] CHIP: [DMG] [ + [1646260061732] [5058:205583] CHIP: [DMG] InvokeResponseIB = + [1646260061732] [5058:205583] CHIP: [DMG] { + [1646260061732] [5058:205583] CHIP: [DMG] CommandStatusIB = + [1646260061732] [5058:205583] CHIP: [DMG] { + [1646260061732] [5058:205583] CHIP: [DMG] CommandPathIB = + [1646260061732] [5058:205583] CHIP: [DMG] { + [1646260061732] [5058:205583] CHIP: [DMG] EndpointId = 0x0, + [1646260061732] [5058:205583] CHIP: [DMG] ClusterId = 0x3, + [1646260061732] [5058:205583] CHIP: [DMG] CommandId = 0x3, + [1646260061732] [5058:205583] CHIP: [DMG] }, + [1646260061732] [5058:205583] CHIP: [DMG] + [1646260061732] [5058:205583] CHIP: [DMG] StatusIB = + [1646260061732] [5058:205583] CHIP: [DMG] { + [1646260061732] [5058:205583] CHIP: [DMG] status = 0x81, + [1646260061732] [5058:205583] CHIP: [DMG] }, + [1646260061732] [5058:205583] CHIP: [DMG] + [1646260061732] [5058:205583] CHIP: [DMG] }, + [1646260061732] [5058:205583] CHIP: [DMG] + [1646260061732] [5058:205583] CHIP: [DMG] }, + [1646260061732] [5058:205583] CHIP: [DMG] + [1646260061732] [5058:205583] CHIP: [DMG] ], + [1646260061732] [5058:205583] CHIP: [DMG] + [1646260061732] [5058:205583] CHIP: [DMG] InteractionModelRevision = 1 + [1646260061732] [5058:205583] CHIP: [DMG] }, + [1646260061732] [5058:205583] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0003 Command=0x0000_0003 Status=0x81 + [1646260061733] [5058:205583] CHIP: [TOO] Error: IM Error 0x00000581: General error: 0x81 disabled: true - label: "Setup the TH such that it should not have the privilege for the cluster in the path. TH sends the Invoke Request Message to the DUT with a valid CommandDataIB" - verification: "Not for TE8" + verification: | + Not for TE8 disabled: true - label: "Setup the TH such that there is no accessing fabric TH sends the Invoke Request Message to the DUT with a valid and fabric-scoped CommandDataIB" - verification: "Not For TE8" + verification: | + Not For TE8 disabled: true - label: "TH sends the Invoke Request Message to the DUT with the path that is a group path. One of the paths should be invalid." - verification: "Out of Scope for V1.0" + verification: | + Out of Scope for V1.0 disabled: true - label: "(OPTIONAL) TH sends the Invoke Request Message to the DUT with the command which requires another command in response." - verification: - 'In case of chip tool, here is an example command to use ./chip-tool - generalcommissioning arm-fail-safe 1000 1 100 5 0 [1646239170811] - [72173:10220345] CHIP: [DMG] InvokeResponseMessage = [1646239170811] - [72173:10220345] CHIP: [DMG] { [1646239170811] [72173:10220345] CHIP: - [DMG] suppressResponse = false, [1646239170811] [72173:10220345] CHIP: - [DMG] InvokeResponseIBs = [1646239170811] [72173:10220345] CHIP: [DMG] - [ [1646239170811] [72173:10220345] CHIP: [DMG] InvokeResponseIB = - [1646239170811] [72173:10220345] CHIP: [DMG] { [1646239170811] - [72173:10220345] CHIP: [DMG] CommandDataIB = [1646239170811] - [72173:10220345] CHIP: [DMG] { [1646239170811] [72173:10220345] CHIP: - [DMG] CommandPathIB = [1646239170811] [72173:10220345] CHIP: [DMG] { - [1646239170811] [72173:10220345] CHIP: [DMG] EndpointId = 0x0, - [1646239170811] [72173:10220345] CHIP: [DMG] ClusterId = 0x30, - [1646239170811] [72173:10220345] CHIP: [DMG] CommandId = 0x1, - [1646239170811] [72173:10220345] CHIP: [DMG] }, [1646239170811] - [72173:10220345] CHIP: [DMG] [1646239170811] [72173:10220345] CHIP: - [DMG] CommandData = [1646239170811] [72173:10220345] CHIP: [DMG] { - [1646239170811] [72173:10220345] CHIP: [DMG] 0x0 = 0, [1646239170811] - [72173:10220345] CHIP: [DMG] 0x1 = "", [1646239170811] - [72173:10220345] CHIP: [DMG] }, [1646239170811] [72173:10220345] CHIP: - [DMG] }, [1646239170811] [72173:10220345] CHIP: [DMG] [1646239170811] - [72173:10220345] CHIP: [DMG] }, [1646239170811] [72173:10220345] CHIP: - [DMG] [1646239170811] [72173:10220345] CHIP: [DMG] ], [1646239170811] - [72173:10220345] CHIP: [DMG] [1646239170811] [72173:10220345] CHIP: - [DMG] InteractionModelRevision = 1 [1646239170811] [72173:10220345] - CHIP: [DMG] }, [1646239170812] [72173:10220345] CHIP: [DMG] Received - Command Response Data, Endpoint=0 Cluster=0x0000_0030 - Command=0x0000_0001 [1646239170812] [72173:10220345] CHIP: [TOO] - Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 [1646239170813] - [72173:10220345] CHIP: [TOO] ArmFailSafeResponse: { [1646239170813] - [72173:10220345] CHIP: [TOO] errorCode: 0 [1646239170813] - [72173:10220345] CHIP: [TOO] debugText: [1646239170813] - [72173:10220345] CHIP: [TOO] }' + verification: | + In case of chip tool, here is an example command to use + ./chip-tool generalcommissioning arm-fail-safe 1000 1 100 5 0 + + [1646239170811] [72173:10220345] CHIP: [DMG] InvokeResponseMessage = + [1646239170811] [72173:10220345] CHIP: [DMG] { + [1646239170811] [72173:10220345] CHIP: [DMG] suppressResponse = false, + [1646239170811] [72173:10220345] CHIP: [DMG] InvokeResponseIBs = + [1646239170811] [72173:10220345] CHIP: [DMG] [ + [1646239170811] [72173:10220345] CHIP: [DMG] InvokeResponseIB = + [1646239170811] [72173:10220345] CHIP: [DMG] { + [1646239170811] [72173:10220345] CHIP: [DMG] CommandDataIB = + [1646239170811] [72173:10220345] CHIP: [DMG] { + [1646239170811] [72173:10220345] CHIP: [DMG] CommandPathIB = + [1646239170811] [72173:10220345] CHIP: [DMG] { + [1646239170811] [72173:10220345] CHIP: [DMG] EndpointId = 0x0, + [1646239170811] [72173:10220345] CHIP: [DMG] ClusterId = 0x30, + [1646239170811] [72173:10220345] CHIP: [DMG] CommandId = 0x1, + [1646239170811] [72173:10220345] CHIP: [DMG] }, + [1646239170811] [72173:10220345] CHIP: [DMG] + [1646239170811] [72173:10220345] CHIP: [DMG] CommandData = + [1646239170811] [72173:10220345] CHIP: [DMG] { + [1646239170811] [72173:10220345] CHIP: [DMG] 0x0 = 0, + [1646239170811] [72173:10220345] CHIP: [DMG] 0x1 = "", + [1646239170811] [72173:10220345] CHIP: [DMG] }, + [1646239170811] [72173:10220345] CHIP: [DMG] }, + [1646239170811] [72173:10220345] CHIP: [DMG] + [1646239170811] [72173:10220345] CHIP: [DMG] }, + [1646239170811] [72173:10220345] CHIP: [DMG] + [1646239170811] [72173:10220345] CHIP: [DMG] ], + [1646239170811] [72173:10220345] CHIP: [DMG] + [1646239170811] [72173:10220345] CHIP: [DMG] InteractionModelRevision = 1 + [1646239170811] [72173:10220345] CHIP: [DMG] }, + [1646239170812] [72173:10220345] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 + [1646239170812] [72173:10220345] CHIP: [TOO] Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 + [1646239170813] [72173:10220345] CHIP: [TOO] ArmFailSafeResponse: { + [1646239170813] [72173:10220345] CHIP: [TOO] errorCode: 0 + [1646239170813] [72173:10220345] CHIP: [TOO] debugText: + [1646239170813] [72173:10220345] CHIP: [TOO] } disabled: true - label: "TH sends the Invoke Request Message to the DUT with a valid CommandDataIB and SuppressResponse set to True" - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool levelcontrol move-to-level 64 10 1 1 1 1 sudo ./chip-tool - levelcontrol read current-level 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool levelcontrol move-to-level 64 10 1 1 1 1 + sudo ./chip-tool levelcontrol read current-level 1 1 disabled: true - label: "TH sends the Invoke Request Message to the DUT with a valid CommandDataIB which returns a response of data type list." - verification: - "In case of chip tool, here is an example command to use ./chip-tool - basic read client-generated-command-list 1 0 [1646261193889] - [5094:213098] CHIP: [EM] Found matching exchange: 59233i, Delegate: - 0x7ffe83c2c6c0 [1646261193889] [5094:213098] CHIP: [EM] Rxd Ack; - Removing MessageCounter:16023881 from Retrans Table on exchange 59233i - [1646261193889] [5094:213098] CHIP: [EM] Removed CHIP - MessageCounter:16023881 from RetransTable on exchange 59233i + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool basic read client-generated-command-list 1 0 + + [1646261193889] [5094:213098] CHIP: [EM] Found matching exchange: 59233i, Delegate: 0x7ffe83c2c6c0 + [1646261193889] [5094:213098] CHIP: [EM] Rxd Ack; Removing MessageCounter:16023881 from Retrans Table on exchange 59233i + [1646261193889] [5094:213098] CHIP: [EM] Removed CHIP MessageCounter:16023881 from RetransTable on exchange 59233i [1646261193889] [5094:213098] CHIP: [DMG] ReportDataMessage = - [1646261193889] [5094:213098] CHIP: [DMG] { [1646261193889] - [5094:213098] CHIP: [DMG] AttributeReportIBs = [1646261193889] - [5094:213098] CHIP: [DMG] [ [1646261193889] [5094:213098] CHIP: [DMG] - AttributeReportIB = [1646261193889] [5094:213098] CHIP: [DMG] { - [1646261193889] [5094:213098] CHIP: [DMG] AttributeDataIB = - [1646261193889] [5094:213098] CHIP: [DMG] { [1646261193889] - [5094:213098] CHIP: [DMG] DataVersion = 0x2d467ce6, [1646261193889] - [5094:213098] CHIP: [DMG] AttributePathIB = [1646261193889] - [5094:213098] CHIP: [DMG] { [1646261193889] [5094:213098] CHIP: [DMG] - Endpoint = 0x0, [1646261193889] [5094:213098] CHIP: [DMG] Cluster = - 0x28, [1646261193889] [5094:213098] CHIP: [DMG] Attribute = - 0x0000_FFF9, [1646261193889] [5094:213098] CHIP: [DMG] } - [1646261193889] [5094:213098] CHIP: [DMG] [1646261193889] - [5094:213098] CHIP: [DMG] Data = [ [1646261193889] [5094:213098] CHIP: - [DMG] [1646261193889] [5094:213098] CHIP: [DMG] ], [1646261193889] - [5094:213098] CHIP: [DMG] }, [1646261193889] [5094:213098] CHIP: [DMG] - [1646261193889] [5094:213098] CHIP: [DMG] }, [1646261193889] - [5094:213098] CHIP: [DMG] [1646261193889] [5094:213098] CHIP: [DMG] ], - [1646261193889] [5094:213098] CHIP: [DMG] [1646261193889] - [5094:213098] CHIP: [DMG] SuppressResponse = true, [1646261193889] - [5094:213098] CHIP: [DMG] InteractionModelRevision = 1 [1646261193889] - [5094:213098] CHIP: [DMG] } [1646261193889] [5094:213098] CHIP: [TOO] - Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFF9 DataVersion: - 759594214 [1646261193889] [5094:213098] CHIP: [TOO] - AcceptedCommandList: 0 entries" + [1646261193889] [5094:213098] CHIP: [DMG] { + [1646261193889] [5094:213098] CHIP: [DMG] AttributeReportIBs = + [1646261193889] [5094:213098] CHIP: [DMG] [ + [1646261193889] [5094:213098] CHIP: [DMG] AttributeReportIB = + [1646261193889] [5094:213098] CHIP: [DMG] { + [1646261193889] [5094:213098] CHIP: [DMG] AttributeDataIB = + [1646261193889] [5094:213098] CHIP: [DMG] { + [1646261193889] [5094:213098] CHIP: [DMG] DataVersion = 0x2d467ce6, + [1646261193889] [5094:213098] CHIP: [DMG] AttributePathIB = + [1646261193889] [5094:213098] CHIP: [DMG] { + [1646261193889] [5094:213098] CHIP: [DMG] Endpoint = 0x0, + [1646261193889] [5094:213098] CHIP: [DMG] Cluster = 0x28, + [1646261193889] [5094:213098] CHIP: [DMG] Attribute = 0x0000_FFF9, + [1646261193889] [5094:213098] CHIP: [DMG] } + [1646261193889] [5094:213098] CHIP: [DMG] + [1646261193889] [5094:213098] CHIP: [DMG] Data = [ + [1646261193889] [5094:213098] CHIP: [DMG] + [1646261193889] [5094:213098] CHIP: [DMG] ], + [1646261193889] [5094:213098] CHIP: [DMG] }, + [1646261193889] [5094:213098] CHIP: [DMG] + [1646261193889] [5094:213098] CHIP: [DMG] }, + [1646261193889] [5094:213098] CHIP: [DMG] + [1646261193889] [5094:213098] CHIP: [DMG] ], + [1646261193889] [5094:213098] CHIP: [DMG] + [1646261193889] [5094:213098] CHIP: [DMG] SuppressResponse = true, + [1646261193889] [5094:213098] CHIP: [DMG] InteractionModelRevision = 1 + [1646261193889] [5094:213098] CHIP: [DMG] } + [1646261193889] [5094:213098] CHIP: [TOO] Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_FFF9DataVersion: 759594214 + [1646261193889] [5094:213098] CHIP: [TOO] AcceptedCommandList: 0 entries disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_IDM_2_1.yaml b/src/app/tests/suites/certification/Test_TC_IDM_2_1.yaml index 36f19526d31c63..cf99726c1dda7d 100644 --- a/src/app/tests/suites/certification/Test_TC_IDM_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_IDM_2_1.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 19.2.1. [TC-IDM-2.1] Read Request Action from DUT to TH [DUT - Controller] +name: "[TC-IDM-2.1] Read Request Action from DUT to TH [DUT - Controller]" config: nodeId: 0x12344321 @@ -26,9 +26,9 @@ tests: CommandDataIB, which has the specific Endpoint, Specific Cluster and Specific Attribute. On receipt of this message, TH 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 identify read identify-time 1 1" + verification: | + In case of chip tool, here is an example command to use + sudo ./chip-tool identify read identify-time 1 1 disabled: true - label: @@ -37,117 +37,133 @@ tests: [[Endpoint = Endpoint1, Cluster = ClusterID]] On receipt of this message, TH 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 0x3 0xFFFFFFFF 1 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0x3 0xFFFFFFFF 1 0 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type bool." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool onoff read on-off 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool onoff read on-off 1 1 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type string." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool modeselect read description 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool modeselect read description 1 1 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type unsigned integer." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool any read-by-id 0x3 0x1 1 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0x3 0x1 1 0 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type signed integer." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool pressuremeasurement read measured-value 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool pressuremeasurement read measured-value 1 1 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type floating point." - verification: "Currently the Spec is not supporting for this data type." + verification: | + Currently the Spec is not supporting for this data type. disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type Octet String." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool operationalcredentials read trusted-root-certificates 1 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool operationalcredentials read trusted-root-certificates 1 0 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type Struct." - verification: - "In case of chip tool, here is an example command to use Currently the - Spec is not supporting for this data type." + verification: | + In case of chip tool, here is an example command to use + + Currently the Spec is not supporting for this data type. disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type List." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool modeselect read supported-modes 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool modeselect read supported-modes 1 1 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type enum." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool occupancysensing read occupancy-sensor-type 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool occupancysensing read occupancy-sensor-type 1 1 disabled: true - label: "[Optional] DUT sends the Read Request Message to the TH to read an attribute of data type bitmap." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool levelcontrol read options 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool levelcontrol read options 1 1 disabled: true - label: "DUT sends the Read Request Message to the TH to read any attribute TH responds with the report data action with the right attribute value and sets the SuppressResponse field is set to True" - verification: - "In case of chip tool, here is an example command to use ./chip-tool - basic read vendor-name 1 0" + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool basic read vendor-name 1 0 disabled: true - label: "DUT sends the Read Request Message to the TH 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 occupancysensing read occupancy 1 1 sudo ./chip-tool - occupancysensing read occupancy 1 1 sudo ./chip-tool occupancysensing - read occupancy 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool occupancysensing read occupancy 1 1 + sudo ./chip-tool occupancysensing read occupancy 1 1 + + + sudo ./chip-tool occupancysensing read occupancy 1 1 disabled: true - label: "DUT sends the Read Request Message to the TH to read an attribute data or event data which is large in size For every chunked data message received, DUT sends a status response." - verification: - "Add multiple admins on to the node (say 5 , if device supports) and - read trusted-root-certificates attribute In case of chip tool, here is - an example command to use sudo ./out/debug/chip-tool - operationalcredentials read trusted-root-certificates 5 0" + verification: | + Add multiple admins on to the node (say 5 , if device supports) and read trusted-root-certificates attribute + + In case of chip tool, here is an example command to use + + sudo ./out/debug/chip-tool operationalcredentials read trusted-root-certificates 5 0 disabled: true - label: @@ -156,7 +172,8 @@ tests: data or event data which is of type list and is greater than 1 MTU in size or a set of attributes whose total size is greater than 1 MTU. For every chunked data message received, DUT sends a status response." - verification: "Out of Scope for TE8" + verification: | + Out of Scope for TE8 disabled: true - label: @@ -164,9 +181,10 @@ tests: contain one valid CommandDataIB, which has the AttributePath = [[ ]] On receipt of this message, TH 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 colorcontrol read current-hue 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool colorcontrol read current-hue 1 1 disabled: true - label: @@ -174,9 +192,10 @@ tests: contain one valid CommandDataIB, which has the AttributePath = [[ Attribute = specific attribute]] On receipt of this message, TH 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 0xFFFFFFFF 0x0 1 0xFFFF" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0xFFFFFFFF 0x0 1 0xFFFF disabled: true - label: @@ -184,9 +203,10 @@ tests: contain one valid CommandDataIB, which has the AttributePath = [[ Cluster = Specific Cluster]] On receipt of this message, TH 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 0x3 0xFFFFFFFF 1 0xFFFF" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0x3 0xFFFFFFFF 1 0xFFFF disabled: true - label: @@ -195,9 +215,10 @@ tests: Cluster = Specific Cluster, Attribute = specific attribute]] On receipt of this message, TH 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 0x3 0x1 1 0xFFFF" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0x3 0x1 1 0xFFFF disabled: true - label: @@ -205,9 +226,10 @@ tests: contain one valid CommandDataIB, which has the AttributePath = [[ Endpoint = Specific Endpoint]] On receipt of this message, TH 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 0xFFFFFFFF 0xFFFFFFFF 1 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any read-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0 disabled: true - label: @@ -216,7 +238,8 @@ tests: Endpoint = Specific Endpoint, Attribute = specific attribute]] On receipt of this message, TH 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 levelcontrol read min-level 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool levelcontrol read min-level 1 1 disabled: true 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 baf0fbfafc1e31..7afcbdcb0cf481 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 @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 19.8.1. [TC-IDM-6.1] Events Read Interaction +name: 19.8.1. [TC-IDM-6.1] Events Read Interaction from TH to DUT config: nodeId: 0x12344321 @@ -25,10 +25,10 @@ tests: specific event from a specific cluster on a specific endpoint on a specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = Specific, Event = Specific]." - verification: - "First launch DUT and do commissioning with TH and kill DUT by passing - pid Then read the event by id ./chip-tool softwarediagnostics - read-by-id 0x0 1 0" + verification: | + First launch DUT and do commissioning with TH and kill DUT by passing pid + Then read the event by id + ./chip-tool softwarediagnostics read-by-id 0x0 1 0 disabled: true - label: @@ -36,9 +36,10 @@ tests: events from a specific cluster on a specific endpoint on a specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = Specific, Event = Wildcard]." - verification: - "In case of chip tool, here is an example command to use ./chip-tool - any read-event-by-id 0x0036 0x0FFFFFFFF 1 0" + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool any read-event-by-id 0x0036 0x0FFFFFFFF 1 0 disabled: true - label: @@ -46,9 +47,10 @@ tests: events from all clusters on a specific endpoint on a specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = Wildcard, Event = Wildcard]." - verification: - "In case of chip tool, here is an example command to use ./chip-tool - any read-event-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0" + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool any read-event-by-id 0xFFFFFFFF 0xFFFFFFFF 1 0 disabled: true - label: @@ -56,10 +58,10 @@ tests: specific event from a specific cluster on all endpoints on a specific node i.e. [Node = Specific, Endpoint = Wildcard, Cluster = Specific, Event = Specific]." - verification: - "First launch DUT and do commissioning with TH and kill DUT by passing - pid Then read the event by id ./chip-tool softwarediagnostics - read-by-id 0x0 1 0xFFFF" + verification: | + First launch DUT and do commissioning with TH and kill DUT by passing pid + Then read the event by id + ./chip-tool softwarediagnostics read-by-id 0x0 1 0xFFFF disabled: true - label: @@ -67,9 +69,10 @@ tests: events from a specific cluster on all endpoints on a specific node i.e. [Node = Specific, Endpoint = Wildcard, Cluster = Specific, Event = Wildcard]." - verification: - "In case of chip tool, here is an example command to use ./chip-tool - any read-event-by-id 0x0033 0x0FFFFFFFF 1 0xFFFF" + verification: | + In case of chip tool, here is an example command to use + + ./chip-tool any read-event-by-id 0x0033 0x0FFFFFFFF 1 0xFFFF disabled: true - label: @@ -77,14 +80,55 @@ tests: events from all clusters on all endpoints on a specific node i.e. [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" + 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 + disabled: true + + - label: + "TH sends Read Request Message to DUT with EventRequests set to path + which indicates a cluster event that is not supported." + verification: | + disabled: true - label: "TH sends Read Request Message to DUT with EventRequests set to path which requires a privilege that is not granted for the cluster in the path." - verification: "Unsupported in TE8 - Out of scope" + verification: | + Unsupported in TE8 - Out of scope + disabled: true + + - label: + "TH sends Read Request Message to DUT with EventRequests set to + Wildcard path where reading an event in the path requires a privilege + that is not granted for the cluster in the path." + verification: | + + disabled: true + + - label: + "TH sends Read Request Message to DUT with EventRequests set to path + where an event in the path is fabric-sensitive and the associated + fabric does not match the accessing fabric." + verification: | + + disabled: true + + - label: + "TH sends Read Request Message to DUT with EventFilterIB Node + information field matching the node indicated in the path and EventMin + field." + verification: | + + disabled: true + + - label: + "TH sends Read Request Message to DUT with EventFilterIB Node + information field matching the node indicated in the path and the + event number is less than the EventMin field." + verification: | + 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 93c3ff8b5ccbee..e7d30505c7c479 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 @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 19.8.2. [TC-IDM-6.2] Events Subscribe Interaction +name: 19.8.2. [TC-IDM-6.2] Events Subscribe Interaction from TH to DUT config: nodeId: 0x12344321 @@ -25,9 +25,10 @@ tests: specific event from a specific cluster on a specific endpoint on a specific node i.e. [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 0 1 1" + 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 0 1 1 disabled: true - label: @@ -35,9 +36,10 @@ tests: all events from a specific cluster on a specific endpoint on a specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = Specific, Event = Wildcard]." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool any subscribe-event-by-id 0x0034 0xFFFFFFFF 0 100 0 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0x0034 0xFFFFFFFF 0 100 0 1 1 disabled: true - label: @@ -45,10 +47,10 @@ tests: all events from all clusters on a specific endpoint on a specific node i.e. [Node = Specific, Endpoint = Specific, Cluster = Wildcard, Event = Wildcard]." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 - 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 0 disabled: true - label: @@ -56,9 +58,10 @@ tests: specific event from a specific cluster on all endpoints on a specific node i.e. [Node = Specific, Endpoint = Wildcard, 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 0x002f 0xFFFFFFFF 0 100 0 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0x002f 0xFFFFFFFF 0 100 0 1 1 disabled: true - label: @@ -66,10 +69,10 @@ tests: all events from a specific cluster on all endpoints on a specific node i.e. [Node = Specific, Endpoint = Wildcard, Cluster = Specific, Event = Wildcard]." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool any subscribe-event-by-id 0x002f 0xFFFFFFFF 0 100 0 1 - 0xFFFF" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0x002f 0xFFFFFFFF 0 100 0 1 0xFFFF disabled: true - label: @@ -77,10 +80,10 @@ tests: all events from all clusters on all endpoints on a specific node i.e. [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 subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 - 0xFFFF" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 0xFFFF disabled: true - label: @@ -88,60 +91,122 @@ tests: all events from all clusters on all endpoints on a specific node i.e. [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 subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 - 0xFFFF" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 0xFFFF + disabled: true + + - label: + "Activate Event subscription from TH to DUT and change the attribute + value to create subscribed event before minimum interval." + verification: | + + disabled: true + + - label: + "Activate Event subscription from TH to DUT and change the attribute + value to create subscribed event before minimum interval with + 'IsUrgent' flag specified for a particular event path in the + EventPathIB." + verification: | + 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 0x0034 0xFFFFFFFF 0 100 0 1 1" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0x0034 0xFFFFFFFF 0 100 0 1 1 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: - "In case of chip tool, here is an example command to use sudo - ./chip-tool any subscribe-event-by-id 0x0033 0x01 0 100 0 1 1" + 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 0 1 1 disabled: true - label: "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: - "In case of chip tool, here is an example command to use sudo - ./chip-tool any subscribe-event-by-id 0x0033 0x01 0 100 0 1 1" + 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 0 1 1 + 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 + Status." + verification: | + + disabled: true + + - label: + "TH sends Subscribe Request Message to DUT with EventRequests set to + path which indicates a cluster event that is not supported." + verification: | + disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to path which requires a privilege that is not granted for the cluster in the path." - verification: "Unsupported in TE8 - Out of scope" + verification: | + Unsupported in TE8 - Out of scope disabled: true - label: "TH sends Subscribe Request Message to DUT with EventRequests set to Wildcard path where reading an event in the path 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 sudo - ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 - 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 0 + disabled: true + + - label: + "TH sends Subscribe Request Message to DUT with EventRequests set to + path where an event in the path is fabric-sensitive and the associated + fabric does not match the accessing fabric." + verification: | + disabled: true - label: "TH sends Subscribe Request Message to DUT with EventFilterIB Node information field matching the node indicated in the path and EventMin field." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 - 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool any subscribe-event-by-id 0xFFFFFFFF 0xFFFFFFFF 0 100 0 1 0 + disabled: true + + - label: + "TH sends Subscribe Request Message to DUT with EventFilterIB Node + information field matching the node indicated in the path and the + event number is less than the EventMin field." + verification: | + + disabled: true + + - label: + "With an active Event subscription from TH to DUT, change attribute + values on DUT to create events multiple times. Reboot the DUT, + re-subscribe to events and continue to change attribute values on DUT + to create events multiple times. Perform a factory data reset on DUT, + re-subscribe to events and continue to change attribute values on DUT + to create events multiple times." + verification: | + disabled: true 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 679367781300e5..615e5ca5e08a6a 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 @@ -23,7 +23,8 @@ config: tests: - label: "DUT sends Read Request Message to the TH for a supported event." - 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" + 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 disabled: true 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 3dff2caa30521d..f00348409c6c12 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 @@ -24,43 +24,49 @@ config: tests: - label: "DUT sends Subscribe Request Message to the TH for a supported event." - 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 0 1 1" + 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 0 1 1 disabled: true - label: "DUT sends Subscribe Request Message to the TH + TH sends Report Data message to DUT." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool softwarediagnostics subscribe-by-id 0xFFFFFFFF 0 100 0 1 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool softwarediagnostics subscribe-by-id 0xFFFFFFFF 0 100 0 1 0 disabled: true - label: "DUT sends Subscribe Request Message to the TH and TH does not respond with Report Data message to DUT." - verification: "" + verification: | + 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 not respond with Subscribe Response message to DUT." - verification: "" + verification: | + disabled: true - label: "With an active Event subscription from DUT to TH, TH sends Report Data message to DUT with an inactive SubscriptionId." - verification: "" + verification: | + disabled: true - label: "With an active Event subscription from DUT to TH, TH sends Report Data message to DUT after the maximum interval from the last Report Data." - verification: "" + verification: | + disabled: true - label: @@ -68,7 +74,8 @@ tests: specific event. 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." - verification: - "In case of chip tool, here is an example command to use sudo - ./chip-tool softwarediagnostics subscribe-by-id 0x0 0 100 0 1 0" + verification: | + In case of chip tool, here is an example command to use + + sudo ./chip-tool softwarediagnostics subscribe-by-id 0x0 0 100 0 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ILL_2_2.yaml b/src/app/tests/suites/certification/Test_TC_ILL_2_2.yaml index 1fc363a3ab78e1..22ecf512abd80b 100644 --- a/src/app/tests/suites/certification/Test_TC_ILL_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_ILL_2_2.yaml @@ -21,27 +21,33 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "Test Harness Client reads MinMeasuredValue and MaxMeasuredValue from Server DUT" - verification: "./chip-tool illuminancemeasurement read measured-value 1 1" + verification: | + ./chip-tool illuminancemeasurement read measured-value 1 1 disabled: true - label: "Cover the sensor or darken the room" - verification: "" + verification: | + disabled: true - label: "After a few seconds, TH reads MeasuredValue attribute from DUT" - verification: "./chip-tool illuminancemeasurement read measured-value 1 1" + verification: | + ./chip-tool illuminancemeasurement read measured-value 1 1 disabled: true - label: "Expose the sensor again to light" - verification: "" + verification: | + disabled: true - label: "After a few seconds, TH reads MeasuredValue attribute from DUT" - verification: "./chip-tool illuminancemeasurement read measured-value 1 1" + verification: | + ./chip-tool illuminancemeasurement read measured-value 1 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_I_2_2.yaml b/src/app/tests/suites/certification/Test_TC_I_2_2.yaml index 4d93893052943b..65c185bb2bd753 100644 --- a/src/app/tests/suites/certification/Test_TC_I_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_I_2_2.yaml @@ -21,335 +21,317 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH sends Identify command to DUT, with the identify time field set to 0x003c (60s)." - verification: - "./chip-tool identify identify 60 1 1 CHIP:EM: Flushed pending ack for - MessageCounter:1080338627 on exchange 34601i - [1635607335.469159][3437:3442] CHIP:EM: Received message of type 0x9 - with protocolId (0, 1) and MessageCounter:1 on exchange 34602i - [1635607335.469222][3437:3442] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 34602i - [1635607335.469259][3437:3442] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 34602i [1635607335.469311][3437:3442] - CHIP:DMG: InvokeCommand = [1635607335.469349][3437:3442] CHIP:DMG: { - [1635607335.469381][3437:3442] CHIP:DMG: CommandList = - [1635607335.469420][3437:3442] CHIP:DMG: [ - [1635607335.469456][3437:3442] CHIP:DMG: CommandDataIB = - [1635607335.469496][3437:3442] CHIP:DMG: { - [1635607335.469529][3437:3442] CHIP:DMG: CommandPathIB = - [1635607335.469576][3437:3442] CHIP:DMG: { - [1635607335.469622][3437:3442] CHIP:DMG: EndpointId = 0x1, - [1635607335.469671][3437:3442] CHIP:DMG: ClusterId = 0x0, - [1635607335.469727][3437:3442] CHIP:DMG: CommandId = 0x0, - [1635607335.469774][3437:3442] CHIP:DMG: }, + verification: | + ./chip-tool identify identify 60 1 1 + + CHIP:EM: Flushed pending ack for MessageCounter:1080338627 on exchange 34601i + [1635607335.469159][3437:3442] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:1 on exchange 34602i + [1635607335.469222][3437:3442] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 34602i + [1635607335.469259][3437:3442] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 34602i + [1635607335.469311][3437:3442] CHIP:DMG: InvokeCommand = + [1635607335.469349][3437:3442] CHIP:DMG: { + [1635607335.469381][3437:3442] CHIP:DMG: CommandList = + [1635607335.469420][3437:3442] CHIP:DMG: [ + [1635607335.469456][3437:3442] CHIP:DMG: CommandDataIB = + [1635607335.469496][3437:3442] CHIP:DMG: { + [1635607335.469529][3437:3442] CHIP:DMG: CommandPathIB = + [1635607335.469576][3437:3442] CHIP:DMG: { + [1635607335.469622][3437:3442] CHIP:DMG: EndpointId = 0x1, + [1635607335.469671][3437:3442] CHIP:DMG: ClusterId = 0x0, + [1635607335.469727][3437:3442] CHIP:DMG: CommandId = 0x0, + [1635607335.469774][3437:3442] CHIP:DMG: }, [1635607335.469826][3437:3442] CHIP:DMG: - [1635607335.469868][3437:3442] CHIP:DMG: StatusIB = - [1635607335.469911][3437:3442] CHIP:DMG: { - [1635607335.469953][3437:3442] CHIP:DMG: status = 0x85, - [1635607335.469999][3437:3442] CHIP:DMG: }, + [1635607335.469868][3437:3442] CHIP:DMG: StatusIB = + [1635607335.469911][3437:3442] CHIP:DMG: { + [1635607335.469953][3437:3442] CHIP:DMG: status = 0x85, + [1635607335.469999][3437:3442] CHIP:DMG: }, [1635607335.470045][3437:3442] CHIP:DMG: - [1635607335.470092][3437:3442] CHIP:DMG: }, + [1635607335.470092][3437:3442] CHIP:DMG: }, [1635607335.470137][3437:3442] CHIP:DMG: - [1635607335.470172][3437:3442] CHIP:DMG: ], + [1635607335.470172][3437:3442] CHIP:DMG: ], [1635607335.470215][3437:3442] CHIP:DMG: [1635607335.470248][3437:3442] CHIP:DMG: } - [1635607335.470309][3437:3442] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0000 Command=0x0000_0000 - Status=0x85 [1635607335.470349][3437:3442] CHIP:TOO: Default Failure - Response: 0x85 [1635607335.470424][3437:3442] CHIP:DMG: ICR moving to - [AwaitingDe] [1635607335.470469][3437:3442] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 34602i" + [1635607335.470309][3437:3442] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0000 Command=0x0000_0000 Status=0x85 + [1635607335.470349][3437:3442] CHIP:TOO: Default Failure Response: 0x85 + [1635607335.470424][3437:3442] CHIP:DMG: ICR moving to [AwaitingDe] + [1635607335.470469][3437:3442] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 34602i disabled: true - label: "TH reads immediately IdentifyTime attribute from DUT" - verification: "./chip-tool identify read identify-time 1 1" + verification: | + ./chip-tool identify read identify-time 1 1 disabled: true - label: "After 10 seconds, the TH reads IdentifyTime attribute from DUT" - verification: - "./chip-tool identify read identify-time 1 1 CHIP:EM: Flushed pending - ack for MessageCounter:1227491739 on exchange 44726i - [1635609851.059963][3612:3617] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 44727i - [1635609851.060032][3612:3617] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 44727i - [1635609851.060073][3612:3617] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 44727i [1635609851.060161][3612:3617] - CHIP:DMG: ReportData = [1635609851.060205][3612:3617] CHIP:DMG: { - [1635609851.060235][3612:3617] CHIP:DMG: AttributeDataList = - [1635609851.060270][3612:3617] CHIP:DMG: [ - [1635609851.060304][3612:3617] CHIP:DMG: AttributeDataElement = - [1635609851.060342][3612:3617] CHIP:DMG: { - [1635609851.060377][3612:3617] CHIP:DMG: AttributePath = - [1635609851.060416][3612:3617] CHIP:DMG: { - [1635609851.060457][3612:3617] CHIP:DMG: NodeId = 0x1, - [1635609851.060500][3612:3617] CHIP:DMG: EndpointId = 0x1, - [1635609851.060544][3612:3617] CHIP:DMG: ClusterId = 0x3, - [1635609851.060586][3612:3617] CHIP:DMG: FieldTag = 0x0000_0000, - [1635609851.060626][3612:3617] CHIP:DMG: } + verification: | + ./chip-tool identify read identify-time 1 1 + + CHIP:EM: Flushed pending ack for MessageCounter:1227491739 on exchange 44726i + [1635609851.059963][3612:3617] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 44727i + [1635609851.060032][3612:3617] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 44727i + [1635609851.060073][3612:3617] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 44727i + [1635609851.060161][3612:3617] CHIP:DMG: ReportData = + [1635609851.060205][3612:3617] CHIP:DMG: { + [1635609851.060235][3612:3617] CHIP:DMG: AttributeDataList = + [1635609851.060270][3612:3617] CHIP:DMG: [ + [1635609851.060304][3612:3617] CHIP:DMG: AttributeDataElement = + [1635609851.060342][3612:3617] CHIP:DMG: { + [1635609851.060377][3612:3617] CHIP:DMG: AttributePath = + [1635609851.060416][3612:3617] CHIP:DMG: { + [1635609851.060457][3612:3617] CHIP:DMG: NodeId = 0x1, + [1635609851.060500][3612:3617] CHIP:DMG: EndpointId = 0x1, + [1635609851.060544][3612:3617] CHIP:DMG: ClusterId = 0x3, + [1635609851.060586][3612:3617] CHIP:DMG: FieldTag = 0x0000_0000, + [1635609851.060626][3612:3617] CHIP:DMG: } [1635609851.060679][3612:3617] CHIP:DMG: - [1635609851.060731][3612:3617] CHIP:DMG: Data = 0, - [1635609851.060783][3612:3617] CHIP:DMG: DataElementVersion = 0x0, - [1635609851.060830][3612:3617] CHIP:DMG: }, + [1635609851.060731][3612:3617] CHIP:DMG: Data = 0, + [1635609851.060783][3612:3617] CHIP:DMG: DataElementVersion = 0x0, + [1635609851.060830][3612:3617] CHIP:DMG: }, [1635609851.060881][3612:3617] CHIP:DMG: - [1635609851.060920][3612:3617] CHIP:DMG: ], + [1635609851.060920][3612:3617] CHIP:DMG: ], [1635609851.060967][3612:3617] CHIP:DMG: [1635609851.061004][3612:3617] CHIP:DMG: } [1635609851.061115][3612:3617] CHIP:ZCL: ReadAttributesResponse: - [1635609851.061152][3612:3617] CHIP:ZCL: ClusterId: 0x0000_0003 - [1635609851.061189][3612:3617] CHIP:ZCL: attributeId: 0x0000_0000 - [1635609851.061223][3612:3617] CHIP:ZCL: status: Success (0x0000) - [1635609851.061258][3612:3617] CHIP:ZCL: attribute TLV Type: 0x04 + [1635609851.061152][3612:3617] CHIP:ZCL: ClusterId: 0x0000_0003 + [1635609851.061189][3612:3617] CHIP:ZCL: attributeId: 0x0000_0000 + [1635609851.061223][3612:3617] CHIP:ZCL: status: Success (0x0000) + [1635609851.061258][3612:3617] CHIP:ZCL: attribute TLV Type: 0x04 [1635609851.061293][3612:3617] CHIP:TOO: Int16u attribute Response: 0 - [1635609851.061388][3612:3617] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 44727i" + [1635609851.061388][3612:3617] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 44727i disabled: true - label: "TH sends IdentifyQuery command to DUT" - verification: - "./chip-tool identify identify-query 1 0 CHIP:EM: Flushed pending ack - for MessageCounter:1227491741 on exchange 37715i - [1635610089.026755][3630:3635] CHIP:EM: Received message of type 0x9 - with protocolId (0, 1) and MessageCounter:1 on exchange 37716i - [1635610089.026818][3630:3635] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 37716i - [1635610089.026856][3630:3635] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 37716i [1635610089.026907][3630:3635] - CHIP:DMG: InvokeCommand = [1635610089.026945][3630:3635] CHIP:DMG: { - [1635610089.026977][3630:3635] CHIP:DMG: CommandList = - [1635610089.027015][3630:3635] CHIP:DMG: [ - [1635610089.027051][3630:3635] CHIP:DMG: CommandDataIB = - [1635610089.027271][3630:3635] CHIP:DMG: { - [1635610089.027382][3630:3635] CHIP:DMG: CommandPathIB = - [1635610089.027433][3630:3635] CHIP:DMG: { - [1635610089.027480][3630:3635] CHIP:DMG: EndpointId = 0x1, - [1635610089.027534][3630:3635] CHIP:DMG: ClusterId = 0x0, - [1635610089.027616][3630:3635] CHIP:DMG: CommandId = 0x1, - [1635610089.027666][3630:3635] CHIP:DMG: }, + verification: | + ./chip-tool identify identify-query 1 0 + + CHIP:EM: Flushed pending ack for MessageCounter:1227491741 on exchange 37715i + [1635610089.026755][3630:3635] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:1 on exchange 37716i + [1635610089.026818][3630:3635] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 37716i + [1635610089.026856][3630:3635] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 37716i + [1635610089.026907][3630:3635] CHIP:DMG: InvokeCommand = + [1635610089.026945][3630:3635] CHIP:DMG: { + [1635610089.026977][3630:3635] CHIP:DMG: CommandList = + [1635610089.027015][3630:3635] CHIP:DMG: [ + [1635610089.027051][3630:3635] CHIP:DMG: CommandDataIB = + [1635610089.027271][3630:3635] CHIP:DMG: { + [1635610089.027382][3630:3635] CHIP:DMG: CommandPathIB = + [1635610089.027433][3630:3635] CHIP:DMG: { + [1635610089.027480][3630:3635] CHIP:DMG: EndpointId = 0x1, + [1635610089.027534][3630:3635] CHIP:DMG: ClusterId = 0x0, + [1635610089.027616][3630:3635] CHIP:DMG: CommandId = 0x1, + [1635610089.027666][3630:3635] CHIP:DMG: }, [1635610089.027756][3630:3635] CHIP:DMG: - [1635610089.027836][3630:3635] CHIP:DMG: StatusIB = - [1635610089.027917][3630:3635] CHIP:DMG: { - [1635610089.027964][3630:3635] CHIP:DMG: status = 0x85, - [1635610089.028045][3630:3635] CHIP:DMG: }, + [1635610089.027836][3630:3635] CHIP:DMG: StatusIB = + [1635610089.027917][3630:3635] CHIP:DMG: { + [1635610089.027964][3630:3635] CHIP:DMG: status = 0x85, + [1635610089.028045][3630:3635] CHIP:DMG: }, [1635610089.028148][3630:3635] CHIP:DMG: - [1635610089.028190][3630:3635] CHIP:DMG: }, + [1635610089.028190][3630:3635] CHIP:DMG: }, [1635610089.028267][3630:3635] CHIP:DMG: - [1635610089.028342][3630:3635] CHIP:DMG: ], + [1635610089.028342][3630:3635] CHIP:DMG: ], [1635610089.028387][3630:3635] CHIP:DMG: [1635610089.028420][3630:3635] CHIP:DMG: } - [1635610089.028482][3630:3635] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0000 Command=0x0000_0001 - Status=0x85 [1635610089.028560][3630:3635] CHIP:TOO: Default Failure - Response: 0x85 [1635610089.028676][3630:3635] CHIP:DMG: ICR moving to - [AwaitingDe] [1635610089.028771][3630:3635] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 37716i" + [1635610089.028482][3630:3635] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0000 Command=0x0000_0001 Status=0x85 + [1635610089.028560][3630:3635] CHIP:TOO: Default Failure Response: 0x85 + [1635610089.028676][3630:3635] CHIP:DMG: ICR moving to [AwaitingDe] + [1635610089.028771][3630:3635] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 37716i disabled: true - label: "TH sends Identify command to DUT, with the identify time field set to 0x0000 (stop identifying)." - verification: - "./chip-tool identify identify 0 1 1 CHIP:EM: Flushed pending ack for - MessageCounter:1227491743 on exchange 35105i - [1635610133.027930][3638:3643] CHIP:EM: Received message of type 0x9 - with protocolId (0, 1) and MessageCounter:1 on exchange 35106i - [1635610133.027998][3638:3643] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 35106i - [1635610133.028038][3638:3643] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 35106i [1635610133.028094][3638:3643] - CHIP:DMG: InvokeCommand = [1635610133.028170][3638:3643] CHIP:DMG: { - [1635610133.028223][3638:3643] CHIP:DMG: CommandList = - [1635610133.028266][3638:3643] CHIP:DMG: [ - [1635610133.028322][3638:3643] CHIP:DMG: CommandDataIB = - [1635610133.028378][3638:3643] CHIP:DMG: { - [1635610133.028424][3638:3643] CHIP:DMG: CommandPathIB = - [1635610133.028488][3638:3643] CHIP:DMG: { - [1635610133.028540][3638:3643] CHIP:DMG: EndpointId = 0x1, - [1635610133.028606][3638:3643] CHIP:DMG: ClusterId = 0x0, - [1635610133.028667][3638:3643] CHIP:DMG: CommandId = 0x0, - [1635610133.028722][3638:3643] CHIP:DMG: }, + verification: | + ./chip-tool identify identify 0 1 1 + + CHIP:EM: Flushed pending ack for MessageCounter:1227491743 on exchange 35105i + [1635610133.027930][3638:3643] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:1 on exchange 35106i + [1635610133.027998][3638:3643] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 35106i + [1635610133.028038][3638:3643] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 35106i + [1635610133.028094][3638:3643] CHIP:DMG: InvokeCommand = + [1635610133.028170][3638:3643] CHIP:DMG: { + [1635610133.028223][3638:3643] CHIP:DMG: CommandList = + [1635610133.028266][3638:3643] CHIP:DMG: [ + [1635610133.028322][3638:3643] CHIP:DMG: CommandDataIB = + [1635610133.028378][3638:3643] CHIP:DMG: { + [1635610133.028424][3638:3643] CHIP:DMG: CommandPathIB = + [1635610133.028488][3638:3643] CHIP:DMG: { + [1635610133.028540][3638:3643] CHIP:DMG: EndpointId = 0x1, + [1635610133.028606][3638:3643] CHIP:DMG: ClusterId = 0x0, + [1635610133.028667][3638:3643] CHIP:DMG: CommandId = 0x0, + [1635610133.028722][3638:3643] CHIP:DMG: }, [1635610133.028797][3638:3643] CHIP:DMG: - [1635610133.028844][3638:3643] CHIP:DMG: StatusIB = - [1635610133.028913][3638:3643] CHIP:DMG: { - [1635610133.028964][3638:3643] CHIP:DMG: status = 0x85, - [1635610133.029018][3638:3643] CHIP:DMG: }, + [1635610133.028844][3638:3643] CHIP:DMG: StatusIB = + [1635610133.028913][3638:3643] CHIP:DMG: { + [1635610133.028964][3638:3643] CHIP:DMG: status = 0x85, + [1635610133.029018][3638:3643] CHIP:DMG: }, [1635610133.029083][3638:3643] CHIP:DMG: - [1635610133.029141][3638:3643] CHIP:DMG: }, + [1635610133.029141][3638:3643] CHIP:DMG: }, [1635610133.029195][3638:3643] CHIP:DMG: - [1635610133.029233][3638:3643] CHIP:DMG: ], + [1635610133.029233][3638:3643] CHIP:DMG: ], [1635610133.029279][3638:3643] CHIP:DMG: [1635610133.029331][3638:3643] CHIP:DMG: } - [1635610133.029399][3638:3643] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0000 Command=0x0000_0000 - Status=0x85 [1635610133.029457][3638:3643] CHIP:TOO: Default Failure - Response: 0x85 [1635610133.029531][3638:3643] CHIP:DMG: ICR moving to - [AwaitingDe] [1635610133.029595][3638:3643] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 35106i" + [1635610133.029399][3638:3643] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0000 Command=0x0000_0000 Status=0x85 + [1635610133.029457][3638:3643] CHIP:TOO: Default Failure Response: 0x85 + [1635610133.029531][3638:3643] CHIP:DMG: ICR moving to [AwaitingDe] + [1635610133.029595][3638:3643] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 35106i disabled: true - label: "TH reads immediately IdentifyTime attribute from DUT" - verification: - "./chip-tool identify read identify-time 1 1 CHIP:EM: Flushed pending - ack for MessageCounter:1227491745 on exchange 43955i - [1635610358.362798][3651:3656] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 43956i - [1635610358.362866][3651:3656] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 43956i - [1635610358.362908][3651:3656] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 43956i [1635610358.362964][3651:3656] - CHIP:DMG: ReportData = [1635610358.363006][3651:3656] CHIP:DMG: { - [1635610358.363042][3651:3656] CHIP:DMG: AttributeDataList = - [1635610358.363085][3651:3656] CHIP:DMG: [ - [1635610358.363124][3651:3656] CHIP:DMG: AttributeDataElement = - [1635610358.363179][3651:3656] CHIP:DMG: { - [1635610358.363225][3651:3656] CHIP:DMG: AttributePath = - [1635610358.363282][3651:3656] CHIP:DMG: { - [1635610358.363335][3651:3656] CHIP:DMG: NodeId = 0x1, - [1635610358.363391][3651:3656] CHIP:DMG: EndpointId = 0x1, - [1635610358.363450][3651:3656] CHIP:DMG: ClusterId = 0x3, - [1635610358.363510][3651:3656] CHIP:DMG: FieldTag = 0x0000_0000, - [1635610358.363562][3651:3656] CHIP:DMG: } + verification: | + ./chip-tool identify read identify-time 1 1 + + CHIP:EM: Flushed pending ack for MessageCounter:1227491745 on exchange 43955i + [1635610358.362798][3651:3656] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 43956i + [1635610358.362866][3651:3656] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 43956i + [1635610358.362908][3651:3656] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 43956i + [1635610358.362964][3651:3656] CHIP:DMG: ReportData = + [1635610358.363006][3651:3656] CHIP:DMG: { + [1635610358.363042][3651:3656] CHIP:DMG: AttributeDataList = + [1635610358.363085][3651:3656] CHIP:DMG: [ + [1635610358.363124][3651:3656] CHIP:DMG: AttributeDataElement = + [1635610358.363179][3651:3656] CHIP:DMG: { + [1635610358.363225][3651:3656] CHIP:DMG: AttributePath = + [1635610358.363282][3651:3656] CHIP:DMG: { + [1635610358.363335][3651:3656] CHIP:DMG: NodeId = 0x1, + [1635610358.363391][3651:3656] CHIP:DMG: EndpointId = 0x1, + [1635610358.363450][3651:3656] CHIP:DMG: ClusterId = 0x3, + [1635610358.363510][3651:3656] CHIP:DMG: FieldTag = 0x0000_0000, + [1635610358.363562][3651:3656] CHIP:DMG: } [1635610358.363617][3651:3656] CHIP:DMG: - [1635610358.363672][3651:3656] CHIP:DMG: Data = 0, - [1635610358.363727][3651:3656] CHIP:DMG: DataElementVersion = 0x0, - [1635610358.363780][3651:3656] CHIP:DMG: }, + [1635610358.363672][3651:3656] CHIP:DMG: Data = 0, + [1635610358.363727][3651:3656] CHIP:DMG: DataElementVersion = 0x0, + [1635610358.363780][3651:3656] CHIP:DMG: }, [1635610358.363833][3651:3656] CHIP:DMG: - [1635610358.363872][3651:3656] CHIP:DMG: ], + [1635610358.363872][3651:3656] CHIP:DMG: ], [1635610358.363920][3651:3656] CHIP:DMG: [1635610358.363957][3651:3656] CHIP:DMG: } [1635610358.364068][3651:3656] CHIP:ZCL: ReadAttributesResponse: - [1635610358.364106][3651:3656] CHIP:ZCL: ClusterId: 0x0000_0003 - [1635610358.364180][3651:3656] CHIP:ZCL: attributeId: 0x0000_0000 - [1635610358.364212][3651:3656] CHIP:ZCL: status: Success (0x0000) - [1635610358.364247][3651:3656] CHIP:ZCL: attribute TLV Type: 0x04 + [1635610358.364106][3651:3656] CHIP:ZCL: ClusterId: 0x0000_0003 + [1635610358.364180][3651:3656] CHIP:ZCL: attributeId: 0x0000_0000 + [1635610358.364212][3651:3656] CHIP:ZCL: status: Success (0x0000) + [1635610358.364247][3651:3656] CHIP:ZCL: attribute TLV Type: 0x04 [1635610358.364283][3651:3656] CHIP:TOO: Int16u attribute Response: 0 - [1635610358.364380][3651:3656] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 43956i" + [1635610358.364380][3651:3656] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 43956i disabled: true - label: "TH sends IdentifyQuery command to DUT" - verification: - "./chip-tool identify identify-query 1 0 CHIP:EM: Flushed pending ack - for MessageCounter:1227491747 on exchange 13705i - [1635610396.344537][3658:3663] CHIP:EM: Received message of type 0x9 - with protocolId (0, 1) and MessageCounter:1 on exchange 13706i - [1635610396.344592][3658:3663] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 13706i - [1635610396.344626][3658:3663] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 13706i [1635610396.344673][3658:3663] - CHIP:DMG: InvokeCommand = [1635610396.344707][3658:3663] CHIP:DMG: { - [1635610396.344751][3658:3663] CHIP:DMG: CommandList = - [1635610396.344786][3658:3663] CHIP:DMG: [ - [1635610396.344831][3658:3663] CHIP:DMG: CommandDataIB = - [1635610396.344872][3658:3663] CHIP:DMG: { - [1635610396.344919][3658:3663] CHIP:DMG: CommandPathIB = - [1635610396.344966][3658:3663] CHIP:DMG: { - [1635610396.345023][3658:3663] CHIP:DMG: EndpointId = 0x0, - [1635610396.345075][3658:3663] CHIP:DMG: ClusterId = 0x0, - [1635610396.345118][3658:3663] CHIP:DMG: CommandId = 0x1, - [1635610396.345172][3658:3663] CHIP:DMG: }, + verification: | + ./chip-tool identify identify-query 1 0 + + CHIP:EM: Flushed pending ack for MessageCounter:1227491747 on exchange 13705i + [1635610396.344537][3658:3663] CHIP:EM: Received message of type 0x9 with protocolId (0, 1) and MessageCounter:1 on exchange 13706i + [1635610396.344592][3658:3663] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 13706i + [1635610396.344626][3658:3663] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 13706i + [1635610396.344673][3658:3663] CHIP:DMG: InvokeCommand = + [1635610396.344707][3658:3663] CHIP:DMG: { + [1635610396.344751][3658:3663] CHIP:DMG: CommandList = + [1635610396.344786][3658:3663] CHIP:DMG: [ + [1635610396.344831][3658:3663] CHIP:DMG: CommandDataIB = + [1635610396.344872][3658:3663] CHIP:DMG: { + [1635610396.344919][3658:3663] CHIP:DMG: CommandPathIB = + [1635610396.344966][3658:3663] CHIP:DMG: { + [1635610396.345023][3658:3663] CHIP:DMG: EndpointId = 0x0, + [1635610396.345075][3658:3663] CHIP:DMG: ClusterId = 0x0, + [1635610396.345118][3658:3663] CHIP:DMG: CommandId = 0x1, + [1635610396.345172][3658:3663] CHIP:DMG: }, [1635610396.345219][3658:3663] CHIP:DMG: - [1635610396.345268][3658:3663] CHIP:DMG: StatusIB = - [1635610396.345310][3658:3663] CHIP:DMG: { - [1635610396.345363][3658:3663] CHIP:DMG: status = 0x85, - [1635610396.345416][3658:3663] CHIP:DMG: }, + [1635610396.345268][3658:3663] CHIP:DMG: StatusIB = + [1635610396.345310][3658:3663] CHIP:DMG: { + [1635610396.345363][3658:3663] CHIP:DMG: status = 0x85, + [1635610396.345416][3658:3663] CHIP:DMG: }, [1635610396.345463][3658:3663] CHIP:DMG: - [1635610396.345511][3658:3663] CHIP:DMG: }, + [1635610396.345511][3658:3663] CHIP:DMG: }, [1635610396.345552][3658:3663] CHIP:DMG: - [1635610396.345595][3658:3663] CHIP:DMG: ], + [1635610396.345595][3658:3663] CHIP:DMG: ], [1635610396.345634][3658:3663] CHIP:DMG: [1635610396.345676][3658:3663] CHIP:DMG: } - [1635610396.345732][3658:3663] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_0000 Command=0x0000_0001 - Status=0x85 [1635610396.345783][3658:3663] CHIP:TOO: Default Failure - Response: 0x85 [1635610396.345857][3658:3663] CHIP:DMG: ICR moving to - [AwaitingDe] [1635610396.345897][3658:3663] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 13706i" + [1635610396.345732][3658:3663] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0000 Command=0x0000_0001 Status=0x85 + [1635610396.345783][3658:3663] CHIP:TOO: Default Failure Response: 0x85 + [1635610396.345857][3658:3663] CHIP:DMG: ICR moving to [AwaitingDe] + [1635610396.345897][3658:3663] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 13706i disabled: true - label: "TH writes a value of 0x000f (15s) to IdentifyTime attribute of DUT" - verification: - "./chip-tool identify write identify-time 15 1 0 CHIP:EM: Flushed - pending ack for MessageCounter:1227491749 on exchange 15428i - [1635610454.188449][3668:3673] CHIP:EM: Received message of type 0x7 - with protocolId (0, 1) and MessageCounter:1 on exchange 15429i - [1635610454.188517][3668:3673] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 15429i - [1635610454.188558][3668:3673] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 15429i [1635610454.188615][3668:3673] - CHIP:DMG: WriteResponse = [1635610454.188657][3668:3673] CHIP:DMG: { - [1635610454.188692][3668:3673] CHIP:DMG: AttributeStatusList = - [1635610454.188734][3668:3673] CHIP:DMG: [ - [1635610454.188774][3668:3673] CHIP:DMG: AttributeStatusIB = - [1635610454.188823][3668:3673] CHIP:DMG: { - [1635610454.188868][3668:3673] CHIP:DMG: AttributePath = - [1635610454.188919][3668:3673] CHIP:DMG: { - [1635610454.188973][3668:3673] CHIP:DMG: FieldTag = 0x0000_0000, - [1635610454.189030][3668:3673] CHIP:DMG: NodeId = 0x0, - [1635610454.189091][3668:3673] CHIP:DMG: ClusterId = 0x3, - [1635610454.189145][3668:3673] CHIP:DMG: EndpointId = 0x0, - [1635610454.189201][3668:3673] CHIP:DMG: } + verification: | + ./chip-tool identify write identify-time 15 1 0 + + CHIP:EM: Flushed pending ack for MessageCounter:1227491749 on exchange 15428i + [1635610454.188449][3668:3673] CHIP:EM: Received message of type 0x7 with protocolId (0, 1) and MessageCounter:1 on exchange 15429i + [1635610454.188517][3668:3673] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 15429i + [1635610454.188558][3668:3673] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 15429i + [1635610454.188615][3668:3673] CHIP:DMG: WriteResponse = + [1635610454.188657][3668:3673] CHIP:DMG: { + [1635610454.188692][3668:3673] CHIP:DMG: AttributeStatusList = + [1635610454.188734][3668:3673] CHIP:DMG: [ + [1635610454.188774][3668:3673] CHIP:DMG: AttributeStatusIB = + [1635610454.188823][3668:3673] CHIP:DMG: { + [1635610454.188868][3668:3673] CHIP:DMG: AttributePath = + [1635610454.188919][3668:3673] CHIP:DMG: { + [1635610454.188973][3668:3673] CHIP:DMG: FieldTag = 0x0000_0000, + [1635610454.189030][3668:3673] CHIP:DMG: NodeId = 0x0, + [1635610454.189091][3668:3673] CHIP:DMG: ClusterId = 0x3, + [1635610454.189145][3668:3673] CHIP:DMG: EndpointId = 0x0, + [1635610454.189201][3668:3673] CHIP:DMG: } [1635610454.189258][3668:3673] CHIP:DMG: - [1635610454.189303][3668:3673] CHIP:DMG: StatusIB = - [1635610454.189358][3668:3673] CHIP:DMG: { - [1635610454.189407][3668:3673] CHIP:DMG: status = 0x0, - [1635610454.189458][3668:3673] CHIP:DMG: }, + [1635610454.189303][3668:3673] CHIP:DMG: StatusIB = + [1635610454.189358][3668:3673] CHIP:DMG: { + [1635610454.189407][3668:3673] CHIP:DMG: status = 0x0, + [1635610454.189458][3668:3673] CHIP:DMG: }, [1635610454.189510][3668:3673] CHIP:DMG: - [1635610454.189552][3668:3673] CHIP:DMG: }, + [1635610454.189552][3668:3673] CHIP:DMG: }, [1635610454.189601][3668:3673] CHIP:DMG: - [1635610454.189640][3668:3673] CHIP:DMG: ], + [1635610454.189640][3668:3673] CHIP:DMG: ], [1635610454.189696][3668:3673] CHIP:DMG: [1635610454.189732][3668:3673] CHIP:DMG: } [1635610454.189813][3668:3673] CHIP:ZCL: WriteResponse: - [1635610454.189849][3668:3673] CHIP:ZCL: status: Success (0x0000) + [1635610454.189849][3668:3673] CHIP:ZCL: status: Success (0x0000) [1635610454.189889][3668:3673] CHIP:TOO: Default Success Response - [1635610454.189964][3668:3673] CHIP:DMG: WriteClient moving to - [Uninitiali] [1635610454.190006][3668:3673] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 15429i" + [1635610454.189964][3668:3673] CHIP:DMG: WriteClient moving to [Uninitiali] + [1635610454.190006][3668:3673] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 15429i disabled: true - label: "After 5 seconds, the TH reads IdentifyTime attribute from DUT" - verification: - "./chip-tool identify read identify-time 1 1 CHIP:EM: Flushed pending - ack for MessageCounter:1227491751 on exchange 51588i - [1635610554.173050][3677:3682] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 51589i - [1635610554.173120][3677:3682] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 51589i - [1635610554.173157][3677:3682] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 51589i [1635610554.173209][3677:3682] - CHIP:DMG: ReportData = [1635610554.173249][3677:3682] CHIP:DMG: { - [1635610554.173281][3677:3682] CHIP:DMG: AttributeDataList = - [1635610554.173320][3677:3682] CHIP:DMG: [ - [1635610554.173355][3677:3682] CHIP:DMG: AttributeDataElement = - [1635610554.173399][3677:3682] CHIP:DMG: { - [1635610554.173440][3677:3682] CHIP:DMG: AttributePath = - [1635610554.173530][3677:3682] CHIP:DMG: { - [1635610554.173613][3677:3682] CHIP:DMG: NodeId = 0x1, - [1635610554.173664][3677:3682] CHIP:DMG: EndpointId = 0x1, - [1635610554.173754][3677:3682] CHIP:DMG: ClusterId = 0x3, - [1635610554.173843][3677:3682] CHIP:DMG: FieldTag = 0x0000_0000, - [1635610554.173887][3677:3682] CHIP:DMG: } + verification: | + ./chip-tool identify read identify-time 1 1 + + CHIP:EM: Flushed pending ack for MessageCounter:1227491751 on exchange 51588i + [1635610554.173050][3677:3682] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 51589i + [1635610554.173120][3677:3682] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51589i + [1635610554.173157][3677:3682] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 51589i + [1635610554.173209][3677:3682] CHIP:DMG: ReportData = + [1635610554.173249][3677:3682] CHIP:DMG: { + [1635610554.173281][3677:3682] CHIP:DMG: AttributeDataList = + [1635610554.173320][3677:3682] CHIP:DMG: [ + [1635610554.173355][3677:3682] CHIP:DMG: AttributeDataElement = + [1635610554.173399][3677:3682] CHIP:DMG: { + [1635610554.173440][3677:3682] CHIP:DMG: AttributePath = + [1635610554.173530][3677:3682] CHIP:DMG: { + [1635610554.173613][3677:3682] CHIP:DMG: NodeId = 0x1, + [1635610554.173664][3677:3682] CHIP:DMG: EndpointId = 0x1, + [1635610554.173754][3677:3682] CHIP:DMG: ClusterId = 0x3, + [1635610554.173843][3677:3682] CHIP:DMG: FieldTag = 0x0000_0000, + [1635610554.173887][3677:3682] CHIP:DMG: } [1635610554.173971][3677:3682] CHIP:DMG: - [1635610554.174054][3677:3682] CHIP:DMG: Data = 0, - [1635610554.174128][3677:3682] CHIP:DMG: DataElementVersion = 0x0, - [1635610554.174208][3677:3682] CHIP:DMG: }, + [1635610554.174054][3677:3682] CHIP:DMG: Data = 0, + [1635610554.174128][3677:3682] CHIP:DMG: DataElementVersion = 0x0, + [1635610554.174208][3677:3682] CHIP:DMG: }, [1635610554.174291][3677:3682] CHIP:DMG: - [1635610554.174530][3677:3682] CHIP:DMG: ], + [1635610554.174530][3677:3682] CHIP:DMG: ], [1635610554.174612][3677:3682] CHIP:DMG: [1635610554.174680][3677:3682] CHIP:DMG: } [1635610554.174846][3677:3682] CHIP:ZCL: ReadAttributesResponse: - [1635610554.174917][3677:3682] CHIP:ZCL: ClusterId: 0x0000_0003 - [1635610554.174956][3677:3682] CHIP:ZCL: attributeId: 0x0000_0000 - [1635610554.175022][3677:3682] CHIP:ZCL: status: Success (0x0000) - [1635610554.175055][3677:3682] CHIP:ZCL: attribute TLV Type: 0x04 + [1635610554.174917][3677:3682] CHIP:ZCL: ClusterId: 0x0000_0003 + [1635610554.174956][3677:3682] CHIP:ZCL: attributeId: 0x0000_0000 + [1635610554.175022][3677:3682] CHIP:ZCL: status: Success (0x0000) + [1635610554.175055][3677:3682] CHIP:ZCL: attribute TLV Type: 0x04 [1635610554.175088][3677:3682] CHIP:TOO: Int16u attribute Response: 0 - [1635610554.175215][3677:3682] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 51589i" + [1635610554.175215][3677:3682] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 51589i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_2.yaml index ae58bb3279fe0e..6c8e891213428e 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_10_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_10_2.yaml @@ -21,67 +21,65 @@ config: tests: - label: "DUT reads the AcceptHeader attribute from the TH" - verification: - "./chip-tool contentlauncher read accept-header-list 1 1 + verification: | + ./chip-tool contentlauncher read accept-header-list 1 1 [1642143310.771536][4307:4312] CHIP:DMG: ReportDataMessage = [1642143310.771560][4307:4312] CHIP:DMG: { - [1642143310.771578][4307:4312] CHIP:DMG: AttributeReportIBs = - [1642143310.771607][4307:4312] CHIP:DMG: [ - [1642143310.771669][4307:4312] CHIP:DMG: AttributeReportIB = - [1642143310.771706][4307:4312] CHIP:DMG: { - [1642143310.771733][4307:4312] CHIP:DMG: AttributeDataIB = - [1642143310.771761][4307:4312] CHIP:DMG: { - [1642143310.771787][4307:4312] CHIP:DMG: DataVersion = 0x0, - [1642143310.771815][4307:4312] CHIP:DMG: AttributePathIB = - [1642143310.771875][4307:4312] CHIP:DMG: { - [1642143310.771921][4307:4312] CHIP:DMG: Endpoint = 0x1, - [1642143310.771968][4307:4312] CHIP:DMG: Cluster = 0x50a, - [1642143310.772015][4307:4312] CHIP:DMG: Attribute = 0x0000_0000, - [1642143310.772059][4307:4312] CHIP:DMG: } + [1642143310.771578][4307:4312] CHIP:DMG: AttributeReportIBs = + [1642143310.771607][4307:4312] CHIP:DMG: [ + [1642143310.771669][4307:4312] CHIP:DMG: AttributeReportIB = + [1642143310.771706][4307:4312] CHIP:DMG: { + [1642143310.771733][4307:4312] CHIP:DMG: AttributeDataIB = + [1642143310.771761][4307:4312] CHIP:DMG: { + [1642143310.771787][4307:4312] CHIP:DMG: DataVersion = 0x0, + [1642143310.771815][4307:4312] CHIP:DMG: AttributePathIB = + [1642143310.771875][4307:4312] CHIP:DMG: { + [1642143310.771921][4307:4312] CHIP:DMG: Endpoint = 0x1, + [1642143310.771968][4307:4312] CHIP:DMG: Cluster = 0x50a, + [1642143310.772015][4307:4312] CHIP:DMG: Attribute = 0x0000_0000, + [1642143310.772059][4307:4312] CHIP:DMG: } [1642143310.772107][4307:4312] CHIP:DMG: - [1642143310.772150][4307:4312] CHIP:DMG: Data = [ + [1642143310.772150][4307:4312] CHIP:DMG: Data = [ [1642143310.772195][4307:4312] CHIP:DMG: - [1642143310.772240][4307:4312] CHIP:DMG: ], - [1642143310.772283][4307:4312] CHIP:DMG: }, + [1642143310.772240][4307:4312] CHIP:DMG: ], + [1642143310.772283][4307:4312] CHIP:DMG: }, [1642143310.772327][4307:4312] CHIP:DMG: - [1642143310.772354][4307:4312] CHIP:DMG: }, + [1642143310.772354][4307:4312] CHIP:DMG: }, [1642143310.772385][4307:4312] CHIP:DMG: - [1642143310.772409][4307:4312] CHIP:DMG: ], + [1642143310.772409][4307:4312] CHIP:DMG: ], [1642143310.772440][4307:4312] CHIP:DMG: - [1642143310.772464][4307:4312] CHIP:DMG: SuppressResponse = true, + [1642143310.772464][4307:4312] CHIP:DMG: SuppressResponse = true, [1642143310.772487][4307:4312] CHIP:DMG: } - [1642143310.772653][4307:4312] CHIP:TOO: - ContentLauncher.AcceptHeaderList response: 0 entries" + [1642143310.772653][4307:4312] CHIP:TOO: ContentLauncher.AcceptHeaderList response: 0 entries disabled: true - label: "DUT reads the SupportedStreamingProtocols attribute from the TH" - verification: - "./chip-tool contentlauncher read supported-streaming-protocols 1 1 + verification: | + ./chip-tool contentlauncher read supported-streaming-protocols 1 1 [1642143572.943704][4325:4330] CHIP:DMG: ReportDataMessage = [1642143572.943750][4325:4330] CHIP:DMG: { - [1642143572.943798][4325:4330] CHIP:DMG: AttributeReportIBs = - [1642143572.943844][4325:4330] CHIP:DMG: [ - [1642143572.943881][4325:4330] CHIP:DMG: AttributeReportIB = - [1642143572.943940][4325:4330] CHIP:DMG: { - [1642143572.943967][4325:4330] CHIP:DMG: AttributeDataIB = - [1642143572.944014][4325:4330] CHIP:DMG: { - [1642143572.944069][4325:4330] CHIP:DMG: DataVersion = 0x0, - [1642143572.944095][4325:4330] CHIP:DMG: AttributePathIB = - [1642143572.944141][4325:4330] CHIP:DMG: { - [1642143572.944230][4325:4330] CHIP:DMG: Endpoint = 0x1, - [1642143572.944274][4325:4330] CHIP:DMG: Cluster = 0x50a, - [1642143572.944320][4325:4330] CHIP:DMG: Attribute = 0x0000_0001, - [1642143572.944382][4325:4330] CHIP:DMG: } + [1642143572.943798][4325:4330] CHIP:DMG: AttributeReportIBs = + [1642143572.943844][4325:4330] CHIP:DMG: [ + [1642143572.943881][4325:4330] CHIP:DMG: AttributeReportIB = + [1642143572.943940][4325:4330] CHIP:DMG: { + [1642143572.943967][4325:4330] CHIP:DMG: AttributeDataIB = + [1642143572.944014][4325:4330] CHIP:DMG: { + [1642143572.944069][4325:4330] CHIP:DMG: DataVersion = 0x0, + [1642143572.944095][4325:4330] CHIP:DMG: AttributePathIB = + [1642143572.944141][4325:4330] CHIP:DMG: { + [1642143572.944230][4325:4330] CHIP:DMG: Endpoint = 0x1, + [1642143572.944274][4325:4330] CHIP:DMG: Cluster = 0x50a, + [1642143572.944320][4325:4330] CHIP:DMG: Attribute = 0x0000_0001, + [1642143572.944382][4325:4330] CHIP:DMG: } [1642143572.944415][4325:4330] CHIP:DMG: - [1642143572.944462][4325:4330] CHIP:DMG: Data = 0, - [1642143572.944493][4325:4330] CHIP:DMG: }, + [1642143572.944462][4325:4330] CHIP:DMG: Data = 0, + [1642143572.944493][4325:4330] CHIP:DMG: }, [1642143572.944522][4325:4330] CHIP:DMG: - [1642143572.944547][4325:4330] CHIP:DMG: }, + [1642143572.944547][4325:4330] CHIP:DMG: }, [1642143572.944578][4325:4330] CHIP:DMG: - [1642143572.944598][4325:4330] CHIP:DMG: ], + [1642143572.944598][4325:4330] CHIP:DMG: ], [1642143572.944625][4325:4330] CHIP:DMG: - [1642143572.944649][4325:4330] CHIP:DMG: SuppressResponse = true, + [1642143572.944649][4325:4330] CHIP:DMG: SuppressResponse = true, [1642143572.944670][4325:4330] CHIP:DMG: } - [1642143572.944820][4325:4330] CHIP:TOO: - ContentLauncher.SupportedStreamingProtocols response: 0" + [1642143572.944820][4325:4330] CHIP:TOO: ContentLauncher.SupportedStreamingProtocols response: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_3.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_3.yaml index 2a4247785e30bb..cebb92e445bd45 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_10_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_10_3.yaml @@ -23,122 +23,108 @@ tests: - label: "TH sends a LaunchContent command to the DUT with a search parameter and string, and AutoPlay flag set to false" - verification: - "./chip-tool contentlauncher launch-content {parameterList: [ { type: - 0, value: exampleString, externalIDList: [ { name: exampleName, value: - exampleValue} ] } ] } 0 1 1 [1646144019287] [87340:3772426] CHIP: [EM] - Received message of type 0x9 with protocolId (0, 1) and - MessageCounter:12801802 on exchange 1916i [1646144019287] - [87340:3772426] CHIP: [EM] Found matching exchange: 1916i, Delegate: - 0x7fb9e622f730 [1646144019287] [87340:3772426] CHIP: [EM] Rxd Ack; - Removing MessageCounter:9833723 from Retrans Table on exchange 1916i - [1646144019287] [87340:3772426] CHIP: [EM] Removed CHIP - MessageCounter:9833723 from RetransTable on exchange 1916i + verification: | + ./chip-tool contentlauncher launch-content '{"parameterList": [ { "type": 0, "value": "exampleString", "externalIDList": [ { "name": "exampleName", "value": "exampleValue"} ] } ] }' 0 1 1 + + + [1646144019287] [87340:3772426] CHIP: [EM] Received message of type 0x9 with protocolId (0, 1) and MessageCounter:12801802 on exchange 1916i + [1646144019287] [87340:3772426] CHIP: [EM] Found matching exchange: 1916i, Delegate: 0x7fb9e622f730 + [1646144019287] [87340:3772426] CHIP: [EM] Rxd Ack; Removing MessageCounter:9833723 from Retrans Table on exchange 1916i + [1646144019287] [87340:3772426] CHIP: [EM] Removed CHIP MessageCounter:9833723 from RetransTable on exchange 1916i [1646144019287] [87340:3772426] CHIP: [DMG] ICR moving to [ResponseRe] [1646144019287] [87340:3772426] CHIP: [DMG] InvokeResponseMessage = - [1646144019287] [87340:3772426] CHIP: [DMG] { [1646144019287] - [87340:3772426] CHIP: [DMG] suppressResponse = false, [1646144019287] - [87340:3772426] CHIP: [DMG] InvokeResponseIBs = [1646144019287] - [87340:3772426] CHIP: [DMG] [ [1646144019287] [87340:3772426] CHIP: - [DMG] InvokeResponseIB = [1646144019287] [87340:3772426] CHIP: [DMG] { - [1646144019287] [87340:3772426] CHIP: [DMG] CommandDataIB = - [1646144019287] [87340:3772426] CHIP: [DMG] { [1646144019287] - [87340:3772426] CHIP: [DMG] CommandPathIB = [1646144019287] - [87340:3772426] CHIP: [DMG] { [1646144019287] [87340:3772426] CHIP: - [DMG] EndpointId = 0x1, [1646144019287] [87340:3772426] CHIP: [DMG] - ClusterId = 0x50a, [1646144019287] [87340:3772426] CHIP: [DMG] - CommandId = 0x2, [1646144019287] [87340:3772426] CHIP: [DMG] }, - [1646144019288] [87340:3772426] CHIP: [DMG] [1646144019288] - [87340:3772426] CHIP: [DMG] CommandData = [1646144019288] - [87340:3772426] CHIP: [DMG] { [1646144019288] [87340:3772426] CHIP: - [DMG] 0x0 = 0, [1646144019288] [87340:3772426] CHIP: [DMG] 0x1 = - exampleData, [1646144019288] [87340:3772426] CHIP: [DMG] }, - [1646144019288] [87340:3772426] CHIP: [DMG] }, [1646144019288] - [87340:3772426] CHIP: [DMG] [1646144019288] [87340:3772426] CHIP: - [DMG] }, [1646144019288] [87340:3772426] CHIP: [DMG] [1646144019288] - [87340:3772426] CHIP: [DMG] ], [1646144019288] [87340:3772426] CHIP: - [DMG] [1646144019288] [87340:3772426] CHIP: [DMG] - InteractionModelRevision = 1 [1646144019288] [87340:3772426] CHIP: - [DMG] }, [1646144019288] [87340:3772426] CHIP: [DMG] Received Command - Response Data, Endpoint=1 Cluster=0x0000_050A Command=0x0000_0002 - [1646144019288] [87340:3772426] CHIP: [TOO] Endpoint: 1 Cluster: - 0x0000_050A Command 0x0000_0002 [1646144019288] [87340:3772426] CHIP: - [TOO] LaunchResponse: { [1646144019288] [87340:3772426] CHIP: [TOO] - status: 0 [1646144019288] [87340:3772426] CHIP: [TOO] data: - exampleData [1646144019288] [87340:3772426] CHIP: [TOO] } + [1646144019287] [87340:3772426] CHIP: [DMG] { + [1646144019287] [87340:3772426] CHIP: [DMG] suppressResponse = false, + [1646144019287] [87340:3772426] CHIP: [DMG] InvokeResponseIBs = + [1646144019287] [87340:3772426] CHIP: [DMG] [ + [1646144019287] [87340:3772426] CHIP: [DMG] InvokeResponseIB = + [1646144019287] [87340:3772426] CHIP: [DMG] { + [1646144019287] [87340:3772426] CHIP: [DMG] CommandDataIB = + [1646144019287] [87340:3772426] CHIP: [DMG] { + [1646144019287] [87340:3772426] CHIP: [DMG] CommandPathIB = + [1646144019287] [87340:3772426] CHIP: [DMG] { + [1646144019287] [87340:3772426] CHIP: [DMG] EndpointId = 0x1, + [1646144019287] [87340:3772426] CHIP: [DMG] ClusterId = 0x50a, + [1646144019287] [87340:3772426] CHIP: [DMG] CommandId = 0x2, + [1646144019287] [87340:3772426] CHIP: [DMG] }, + [1646144019288] [87340:3772426] CHIP: [DMG] + [1646144019288] [87340:3772426] CHIP: [DMG] CommandData = + [1646144019288] [87340:3772426] CHIP: [DMG] { + [1646144019288] [87340:3772426] CHIP: [DMG] 0x0 = 0, + [1646144019288] [87340:3772426] CHIP: [DMG] 0x1 = "exampleData", + [1646144019288] [87340:3772426] CHIP: [DMG] }, + [1646144019288] [87340:3772426] CHIP: [DMG] }, + [1646144019288] [87340:3772426] CHIP: [DMG] + [1646144019288] [87340:3772426] CHIP: [DMG] }, + [1646144019288] [87340:3772426] CHIP: [DMG] + [1646144019288] [87340:3772426] CHIP: [DMG] ], + [1646144019288] [87340:3772426] CHIP: [DMG] + [1646144019288] [87340:3772426] CHIP: [DMG] InteractionModelRevision = 1 + [1646144019288] [87340:3772426] CHIP: [DMG] }, + [1646144019288] [87340:3772426] CHIP: [DMG] Received Command Response Data, Endpoint=1 Cluster=0x0000_050A Command=0x0000_0002 + [1646144019288] [87340:3772426] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_050A Command 0x0000_0002 + [1646144019288] [87340:3772426] CHIP: [TOO] LaunchResponse: { + [1646144019288] [87340:3772426] CHIP: [TOO] status: 0 + [1646144019288] [87340:3772426] CHIP: [TOO] data: exampleData + [1646144019288] [87340:3772426] CHIP: [TOO] } [1646144019288] [87340:3772426] CHIP: [DMG] ICR moving to [AwaitingDe] - [1646144019288] [87340:3772426] CHIP: [EM] Sending Standalone Ack for - MessageCounter:12801802 on exchange 1916i [1646144019288] - [87340:3772426] CHIP: [IN] Prepared secure message 0x70000d398560 to - 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange - 1916i with MessageCounter:9833724. [1646144019288] [87340:3772426] - CHIP: [IN] Sending encrypted msg 0x70000d398560 with - MessageCounter:9833724 to 0x0000000000000001 (1) at monotonic time: - 431300143 msec" + [1646144019288] [87340:3772426] CHIP: [EM] Sending Standalone Ack for MessageCounter:12801802 on exchange 1916i + [1646144019288] [87340:3772426] CHIP: [IN] Prepared secure message 0x70000d398560 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 1916i with MessageCounter:9833724. + [1646144019288] [87340:3772426] CHIP: [IN] Sending encrypted msg 0x70000d398560 with MessageCounter:9833724 to 0x0000000000000001 (1) at monotonic time: 431300143 msec disabled: true - label: "TH sends a LaunchContent command to the DUT with a search parameter and string, and AutoPlay flag set to true" - verification: - "././chip-tool contentlauncher launch-content {parameterList: [ { - type: 0, value: exampleString, externalIDList: [ { name: exampleName, - value: exampleValue} ] } ] } 0 1 1 1646144098507] [87512:3773773] - CHIP: [EM] Sending Standalone Ack for MessageCounter:926867885 on - exchange 14424i [1646144098507] [87512:3773773] CHIP: [IN] Prepared - unauthenticated message 0x7000086924e0 to 0x0000000000000000 (0) of - type 0x10 and protocolId (0, 0) on exchange 14424i with - MessageCounter:504203623. [1646144098507] [87512:3773773] CHIP: [IN] - Sending unauthenticated msg 0x7000086924e0 with - MessageCounter:504203623 to 0x0000000000000000 at monotonic time: - 431379361 msec [1646144098507] [87512:3773773] CHIP: [EM] Flushed - pending ack for MessageCounter:926867885 on exchange 14424i - [1646144098507] [87512:3773773] CHIP: [EM] Received message of type - 0x9 with protocolId (0, 1) and MessageCounter:1602389 on exchange - 14425i [1646144098507] [87512:3773773] CHIP: [EM] Found matching - exchange: 14425i, Delegate: 0x7fd62b804680 [1646144098507] - [87512:3773773] CHIP: [EM] Rxd Ack; Removing MessageCounter:9939351 - from Retrans Table on exchange 14425i [1646144098507] [87512:3773773] - CHIP: [EM] Removed CHIP MessageCounter:9939351 from RetransTable on - exchange 14425i [1646144098507] [87512:3773773] CHIP: [DMG] ICR moving - to [ResponseRe] [1646144098507] [87512:3773773] CHIP: [DMG] - InvokeResponseMessage = [1646144098507] [87512:3773773] CHIP: [DMG] { - [1646144098507] [87512:3773773] CHIP: [DMG] suppressResponse = false, - [1646144098507] [87512:3773773] CHIP: [DMG] InvokeResponseIBs = - [1646144098507] [87512:3773773] CHIP: [DMG] [ [1646144098507] - [87512:3773773] CHIP: [DMG] InvokeResponseIB = [1646144098508] - [87512:3773773] CHIP: [DMG] { [1646144098508] [87512:3773773] CHIP: - [DMG] CommandDataIB = [1646144098508] [87512:3773773] CHIP: [DMG] { - [1646144098508] [87512:3773773] CHIP: [DMG] CommandPathIB = - [1646144098508] [87512:3773773] CHIP: [DMG] { [1646144098508] - [87512:3773773] CHIP: [DMG] EndpointId = 0x1, [1646144098508] - [87512:3773773] CHIP: [DMG] ClusterId = 0x50a, [1646144098508] - [87512:3773773] CHIP: [DMG] CommandId = 0x2, [1646144098508] - [87512:3773773] CHIP: [DMG] }, [1646144098508] [87512:3773773] CHIP: - [DMG] [1646144098508] [87512:3773773] CHIP: [DMG] CommandData = - [1646144098508] [87512:3773773] CHIP: [DMG] { [1646144098508] - [87512:3773773] CHIP: [DMG] 0x0 = 0, [1646144098508] [87512:3773773] - CHIP: [DMG] 0x1 = exampleData, [1646144098508] [87512:3773773] CHIP: - [DMG] }, [1646144098508] [87512:3773773] CHIP: [DMG] }, - [1646144098508] [87512:3773773] CHIP: [DMG] [1646144098508] - [87512:3773773] CHIP: [DMG] }, [1646144098508] [87512:3773773] CHIP: - [DMG] [1646144098508] [87512:3773773] CHIP: [DMG] ], [1646144098508] - [87512:3773773] CHIP: [DMG] [1646144098508] [87512:3773773] CHIP: - [DMG] InteractionModelRevision = 1 [1646144098508] [87512:3773773] - CHIP: [DMG] }, [1646144098508] [87512:3773773] CHIP: [DMG] Received - Command Response Data, Endpoint=1 Cluster=0x0000_050A - Command=0x0000_0002 [1646144098508] [87512:3773773] CHIP: [TOO] - Endpoint: 1 Cluster: 0x0000_050A Command 0x0000_0002 [1646144098508] - [87512:3773773] CHIP: [TOO] LaunchResponse: { [1646144098508] - [87512:3773773] CHIP: [TOO] status: 0 [1646144098508] [87512:3773773] - CHIP: [TOO] data: exampleData [1646144098508] [87512:3773773] CHIP: - [TOO] } [1646144098508] [87512:3773773] CHIP: [DMG] ICR moving to - [AwaitingDe] [1646144098508] [87512:3773773] CHIP: [EM] Sending - Standalone Ack for MessageCounter:1602389 on exchange 14425i - [1646144098508] [87512:3773773] CHIP: [IN] Prepared secure message - 0x700008692560 to 0x0000000000000001 (1) of type 0x10 and protocolId - (0, 0) on exchange 14425i with MessageCounter:9939352. [1646144098508] - [87512:3773773] CHIP: [IN] Sending encrypted msg 0x700008692560 with - MessageCounter:9939352 to 0x0000000000000001 (1) at monotonic time: - 431379363 msec" + verification: | + ././chip-tool contentlauncher launch-content '{"parameterList": [ { "type": 0, "value": "exampleString", "externalIDList": [ { "name": "exampleName", "value": "exampleValue"} ] } ] }' 0 1 1 + + 1646144098507] [87512:3773773] CHIP: [EM] Sending Standalone Ack for MessageCounter:926867885 on exchange 14424i + [1646144098507] [87512:3773773] CHIP: [IN] Prepared unauthenticated message 0x7000086924e0 to 0x0000000000000000 (0) of type 0x10 and protocolId (0, 0) on exchange 14424i with MessageCounter:504203623. + [1646144098507] [87512:3773773] CHIP: [IN] Sending unauthenticated msg 0x7000086924e0 with MessageCounter:504203623 to 0x0000000000000000 at monotonic time: 431379361 msec + [1646144098507] [87512:3773773] CHIP: [EM] Flushed pending ack for MessageCounter:926867885 on exchange 14424i + [1646144098507] [87512:3773773] CHIP: [EM] Received message of type 0x9 with protocolId (0, 1) and MessageCounter:1602389 on exchange 14425i + [1646144098507] [87512:3773773] CHIP: [EM] Found matching exchange: 14425i, Delegate: 0x7fd62b804680 + [1646144098507] [87512:3773773] CHIP: [EM] Rxd Ack; Removing MessageCounter:9939351 from Retrans Table on exchange 14425i + [1646144098507] [87512:3773773] CHIP: [EM] Removed CHIP MessageCounter:9939351 from RetransTable on exchange 14425i + [1646144098507] [87512:3773773] CHIP: [DMG] ICR moving to [ResponseRe] + [1646144098507] [87512:3773773] CHIP: [DMG] InvokeResponseMessage = + [1646144098507] [87512:3773773] CHIP: [DMG] { + [1646144098507] [87512:3773773] CHIP: [DMG] suppressResponse = false, + [1646144098507] [87512:3773773] CHIP: [DMG] InvokeResponseIBs = + [1646144098507] [87512:3773773] CHIP: [DMG] [ + [1646144098507] [87512:3773773] CHIP: [DMG] InvokeResponseIB = + [1646144098508] [87512:3773773] CHIP: [DMG] { + [1646144098508] [87512:3773773] CHIP: [DMG] CommandDataIB = + [1646144098508] [87512:3773773] CHIP: [DMG] { + [1646144098508] [87512:3773773] CHIP: [DMG] CommandPathIB = + [1646144098508] [87512:3773773] CHIP: [DMG] { + [1646144098508] [87512:3773773] CHIP: [DMG] EndpointId = 0x1, + [1646144098508] [87512:3773773] CHIP: [DMG] ClusterId = 0x50a, + [1646144098508] [87512:3773773] CHIP: [DMG] CommandId = 0x2, + [1646144098508] [87512:3773773] CHIP: [DMG] }, + [1646144098508] [87512:3773773] CHIP: [DMG] + [1646144098508] [87512:3773773] CHIP: [DMG] CommandData = + [1646144098508] [87512:3773773] CHIP: [DMG] { + [1646144098508] [87512:3773773] CHIP: [DMG] 0x0 = 0, + [1646144098508] [87512:3773773] CHIP: [DMG] 0x1 = "exampleData", + [1646144098508] [87512:3773773] CHIP: [DMG] }, + [1646144098508] [87512:3773773] CHIP: [DMG] }, + [1646144098508] [87512:3773773] CHIP: [DMG] + [1646144098508] [87512:3773773] CHIP: [DMG] }, + [1646144098508] [87512:3773773] CHIP: [DMG] + [1646144098508] [87512:3773773] CHIP: [DMG] ], + [1646144098508] [87512:3773773] CHIP: [DMG] + [1646144098508] [87512:3773773] CHIP: [DMG] InteractionModelRevision = 1 + [1646144098508] [87512:3773773] CHIP: [DMG] }, + [1646144098508] [87512:3773773] CHIP: [DMG] Received Command Response Data, Endpoint=1 Cluster=0x0000_050A Command=0x0000_0002 + [1646144098508] [87512:3773773] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_050A Command 0x0000_0002 + [1646144098508] [87512:3773773] CHIP: [TOO] LaunchResponse: { + [1646144098508] [87512:3773773] CHIP: [TOO] status: 0 + [1646144098508] [87512:3773773] CHIP: [TOO] data: exampleData + [1646144098508] [87512:3773773] CHIP: [TOO] } + [1646144098508] [87512:3773773] CHIP: [DMG] ICR moving to [AwaitingDe] + [1646144098508] [87512:3773773] CHIP: [EM] Sending Standalone Ack for MessageCounter:1602389 on exchange 14425i + [1646144098508] [87512:3773773] CHIP: [IN] Prepared secure message 0x700008692560 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 14425i with MessageCounter:9939352. + [1646144098508] [87512:3773773] CHIP: [IN] Sending encrypted msg 0x700008692560 with MessageCounter:9939352 to 0x0000000000000001 (1) at monotonic time: 431379363 msec disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_4.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_4.yaml index b4c514e3214e54..302b223ab71d0f 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_10_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_10_4.yaml @@ -23,13 +23,13 @@ tests: - label: "DUT sends a LaunchContent command to the TH with a search parameter and string, and AutoPlay flag set to false" - verification: - "./chip-tool contentlauncher launch-content-request 0 'Star Wars' 1 1" + verification: | + ./chip-tool contentlauncher launch-content-request 0 'Star Wars' 1 1 disabled: true - label: "DUT sends a LaunchContent command to the TH with a search parameter and string, and AutoPlay flag set to true" - verification: - "./chip-tool contentlauncher launch-content-request 1 'Star Wars' 1 1" + verification: | + ./chip-tool contentlauncher launch-content-request 1 'Star Wars' 1 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_5.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_5.yaml index 92bcc6d8e81325..5d3a71f3b464ca 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_10_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_10_5.yaml @@ -23,24 +23,79 @@ tests: - label: "TH sends a LaunchURL command to the DUT with a known good content URL string" + verification: | + ./chip-tool contentlauncher launch-url "exampleUrl" '{"providerName": "exampleName", "background": { "imageUrl": "exampleUrl", "color": "blue", "size" : {"width": 1.0, "height": 1.0, "metric": 0} }}' 1 1 + + [1646144176735] [87729:3775289] CHIP: [EM] Received message of type 0x9 with protocolId (0, 1) and MessageCounter:13910464 on exchange 56735i + [1646144176735] [87729:3775289] CHIP: [EM] Found matching exchange: 56735i, Delegate: 0x7f86f5805d50 + [1646144176735] [87729:3775289] CHIP: [EM] Rxd Ack; Removing MessageCounter:15382164 from Retrans Table on exchange 56735i + [1646144176735] [87729:3775289] CHIP: [EM] Removed CHIP MessageCounter:15382164 from RetransTable on exchange 56735i + [1646144176735] [87729:3775289] CHIP: [DMG] ICR moving to [ResponseRe] + [1646144176735] [87729:3775289] CHIP: [DMG] InvokeResponseMessage = + [1646144176736] [87729:3775289] CHIP: [DMG] { + [1646144176736] [87729:3775289] CHIP: [DMG] suppressResponse = false, + [1646144176736] [87729:3775289] CHIP: [DMG] InvokeResponseIBs = + [1646144176736] [87729:3775289] CHIP: [DMG] [ + [1646144176736] [87729:3775289] CHIP: [DMG] InvokeResponseIB = + [1646144176736] [87729:3775289] CHIP: [DMG] { + [1646144176736] [87729:3775289] CHIP: [DMG] CommandDataIB = + [1646144176736] [87729:3775289] CHIP: [DMG] { + [1646144176736] [87729:3775289] CHIP: [DMG] CommandPathIB = + [1646144176736] [87729:3775289] CHIP: [DMG] { + [1646144176736] [87729:3775289] CHIP: [DMG] EndpointId = 0x1, + [1646144176736] [87729:3775289] CHIP: [DMG] ClusterId = 0x50a, + [1646144176736] [87729:3775289] CHIP: [DMG] CommandId = 0x2, + [1646144176736] [87729:3775289] CHIP: [DMG] }, + [1646144176736] [87729:3775289] CHIP: [DMG] + [1646144176736] [87729:3775289] CHIP: [DMG] CommandData = + [1646144176736] [87729:3775289] CHIP: [DMG] { + [1646144176736] [87729:3775289] CHIP: [DMG] 0x0 = 0, + [1646144176736] [87729:3775289] CHIP: [DMG] 0x1 = "exampleData", + [1646144176736] [87729:3775289] CHIP: [DMG] }, + [1646144176736] [87729:3775289] CHIP: [DMG] }, + [1646144176736] [87729:3775289] CHIP: [DMG] + [1646144176736] [87729:3775289] CHIP: [DMG] }, + [1646144176736] [87729:3775289] CHIP: [DMG] + [1646144176736] [87729:3775289] CHIP: [DMG] ], + [1646144176736] [87729:3775289] CHIP: [DMG] + [1646144176736] [87729:3775289] CHIP: [DMG] InteractionModelRevision = 1 + [1646144176736] [87729:3775289] CHIP: [DMG] }, + [1646144176736] [87729:3775289] CHIP: [DMG] Received Command Response Data, Endpoint=1 Cluster=0x0000_050A Command=0x0000_0002 + [1646144176736] [87729:3775289] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_050A Command 0x0000_0002 + [1646144176737] [87729:3775289] CHIP: [TOO] LaunchResponse: { + [1646144176737] [87729:3775289] CHIP: [TOO] status: 0 + [1646144176737] [87729:3775289] CHIP: [TOO] data: exampleData + [1646144176737] [87729:3775289] CHIP: [TOO] } + [1646144176737] [87729:3775289] CHIP: [DMG] ICR moving to [AwaitingDe] + [1646144176737] [87729:3775289] CHIP: [EM] Sending Standalone Ack for MessageCounter:13910464 on exchange 56735i + [1646144176737] [87729:3775289] CHIP: [IN] Prepared secure message 0x70000027a560 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 56735i with MessageCounter:15382165. + [1646144176737] [87729:3775289] CHIP: [IN] Sending encrypted msg 0x70000027a560 with MessageCounter:15382165 to 0x0000000000000001 (1) at monotonic time: 431457592 msec disabled: true - label: "TH sends a LaunchURL command to the DUT with a known good content URL string and a display string" + verification: | + ./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/ 'Test content' 1 1 disabled: true - label: "TH sends a LaunchURL command to the DUT with a known good content URL string and a brand information object." + verification: | + Not supported by chip-tool disabled: true - label: "TH sends a LaunchURL command to the DUT with a known unreachable content URL string." + verification: | + ./chip-tool contentlauncher launch-urlrequest https://badurl 1 1 disabled: true - label: "TH sends a LaunchURL command to the DUT with a known un-authorized content URL string." + verification: | + ./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/badauth 1 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_10_6.yaml b/src/app/tests/suites/certification/Test_TC_MC_10_6.yaml index 51c18f16f71507..4d2cbf0b6af3ea 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_10_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_10_6.yaml @@ -23,28 +23,27 @@ tests: - label: "DUT sends a LaunchURL command to the TH with a known good content URL string" - verification: - "./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/ 1 - 1" + verification: | + ./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/ 1 1 disabled: true - label: "DUT sends a LaunchURL command to the TH with a known good content URL string and a display string" - verification: - "./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/ - 'Test content' 1 1" + verification: | + ./chip-tool contentlauncher launch-urlrequest https://csa-iot.org/ 'Test content' 1 1 disabled: true - label: "DUT sends a LaunchURL command to the TH with a known good content URL string and a brand information object." - verification: "Not supported by chip-tool" + verification: | + Not supported by chip-tool disabled: true - label: "DUT sends a LaunchURL command to the DUT with a known unreachable content URL string." - verification: - "./chip-tool contentlauncher launch-urlrequest https://badurl 1 1" + verification: | + ./chip-tool contentlauncher launch-urlrequest https://badurl 1 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml index 605c365e16b32b..11f94b740dc139 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_12.yaml @@ -23,78 +23,76 @@ tests: - label: "TH sends ShowInputStatus command to DUT to show active input status info" - verification: - "./chip-tool mediainput show-input-status 1 1 + verification: | + ./chip-tool mediainput show-input-status 1 1 + [1646036662.457124][49885:49890] CHIP:DMG: InvokeResponseMessage = [1646036662.457158][49885:49890] CHIP:DMG: { - [1646036662.457189][49885:49890] CHIP:DMG: suppressResponse = false, - [1646036662.457221][49885:49890] CHIP:DMG: InvokeResponseIBs = - [1646036662.457267][49885:49890] CHIP:DMG: [ - [1646036662.457300][49885:49890] CHIP:DMG: InvokeResponseIB = - [1646036662.457345][49885:49890] CHIP:DMG: { - [1646036662.457384][49885:49890] CHIP:DMG: CommandStatusIB = - [1646036662.457434][49885:49890] CHIP:DMG: { - [1646036662.457494][49885:49890] CHIP:DMG: CommandPathIB = - [1646036662.457543][49885:49890] CHIP:DMG: { - [1646036662.457592][49885:49890] CHIP:DMG: EndpointId = 0x1, - [1646036662.457638][49885:49890] CHIP:DMG: ClusterId = 0x507, - [1646036662.457682][49885:49890] CHIP:DMG: CommandId = 0x1, - [1646036662.457726][49885:49890] CHIP:DMG: }, + [1646036662.457189][49885:49890] CHIP:DMG: suppressResponse = false, + [1646036662.457221][49885:49890] CHIP:DMG: InvokeResponseIBs = + [1646036662.457267][49885:49890] CHIP:DMG: [ + [1646036662.457300][49885:49890] CHIP:DMG: InvokeResponseIB = + [1646036662.457345][49885:49890] CHIP:DMG: { + [1646036662.457384][49885:49890] CHIP:DMG: CommandStatusIB = + [1646036662.457434][49885:49890] CHIP:DMG: { + [1646036662.457494][49885:49890] CHIP:DMG: CommandPathIB = + [1646036662.457543][49885:49890] CHIP:DMG: { + [1646036662.457592][49885:49890] CHIP:DMG: EndpointId = 0x1, + [1646036662.457638][49885:49890] CHIP:DMG: ClusterId = 0x507, + [1646036662.457682][49885:49890] CHIP:DMG: CommandId = 0x1, + [1646036662.457726][49885:49890] CHIP:DMG: }, [1646036662.457775][49885:49890] CHIP:DMG: - [1646036662.457815][49885:49890] CHIP:DMG: StatusIB = - [1646036662.457858][49885:49890] CHIP:DMG: { - [1646036662.457905][49885:49890] CHIP:DMG: status = 0x0, - [1646036662.457949][49885:49890] CHIP:DMG: }, + [1646036662.457815][49885:49890] CHIP:DMG: StatusIB = + [1646036662.457858][49885:49890] CHIP:DMG: { + [1646036662.457905][49885:49890] CHIP:DMG: status = 0x0, + [1646036662.457949][49885:49890] CHIP:DMG: }, [1646036662.457994][49885:49890] CHIP:DMG: - [1646036662.458034][49885:49890] CHIP:DMG: }, + [1646036662.458034][49885:49890] CHIP:DMG: }, [1646036662.458079][49885:49890] CHIP:DMG: - [1646036662.458115][49885:49890] CHIP:DMG: }, + [1646036662.458115][49885:49890] CHIP:DMG: }, [1646036662.458157][49885:49890] CHIP:DMG: - [1646036662.458188][49885:49890] CHIP:DMG: ], + [1646036662.458188][49885:49890] CHIP:DMG: ], [1646036662.458228][49885:49890] CHIP:DMG: - [1646036662.458260][49885:49890] CHIP:DMG: InteractionModelRevision = - 1 [1646036662.458290][49885:49890] CHIP:DMG: }, - [1646036662.458369][49885:49890] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0507 Command=0x0000_0001 - Status=0x0" + [1646036662.458260][49885:49890] CHIP:DMG: InteractionModelRevision = 1 + [1646036662.458290][49885:49890] CHIP:DMG: }, + [1646036662.458369][49885:49890] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0507 Command=0x0000_0001 Status=0x0 disabled: true - label: "TH sends HideInputStatus command to DUT to hide an input from the Input list" - verification: - "./chip-tool mediainput hide-input-status 1 1 + verification: | + ./chip-tool mediainput hide-input-status 1 1 + [1646036720.226336][49897:49902] CHIP:DMG: ICR moving to [ResponseRe] [1646036720.226386][49897:49902] CHIP:DMG: InvokeResponseMessage = [1646036720.226407][49897:49902] CHIP:DMG: { - [1646036720.226426][49897:49902] CHIP:DMG: suppressResponse = false, - [1646036720.226447][49897:49902] CHIP:DMG: InvokeResponseIBs = - [1646036720.226479][49897:49902] CHIP:DMG: [ - [1646036720.226503][49897:49902] CHIP:DMG: InvokeResponseIB = - [1646036720.226532][49897:49902] CHIP:DMG: { - [1646036720.226554][49897:49902] CHIP:DMG: CommandStatusIB = - [1646036720.226586][49897:49902] CHIP:DMG: { - [1646036720.226614][49897:49902] CHIP:DMG: CommandPathIB = - [1646036720.226641][49897:49902] CHIP:DMG: { - [1646036720.226667][49897:49902] CHIP:DMG: EndpointId = 0x1, - [1646036720.226706][49897:49902] CHIP:DMG: ClusterId = 0x507, - [1646036720.226740][49897:49902] CHIP:DMG: CommandId = 0x2, - [1646036720.226771][49897:49902] CHIP:DMG: }, + [1646036720.226426][49897:49902] CHIP:DMG: suppressResponse = false, + [1646036720.226447][49897:49902] CHIP:DMG: InvokeResponseIBs = + [1646036720.226479][49897:49902] CHIP:DMG: [ + [1646036720.226503][49897:49902] CHIP:DMG: InvokeResponseIB = + [1646036720.226532][49897:49902] CHIP:DMG: { + [1646036720.226554][49897:49902] CHIP:DMG: CommandStatusIB = + [1646036720.226586][49897:49902] CHIP:DMG: { + [1646036720.226614][49897:49902] CHIP:DMG: CommandPathIB = + [1646036720.226641][49897:49902] CHIP:DMG: { + [1646036720.226667][49897:49902] CHIP:DMG: EndpointId = 0x1, + [1646036720.226706][49897:49902] CHIP:DMG: ClusterId = 0x507, + [1646036720.226740][49897:49902] CHIP:DMG: CommandId = 0x2, + [1646036720.226771][49897:49902] CHIP:DMG: }, [1646036720.226808][49897:49902] CHIP:DMG: - [1646036720.226837][49897:49902] CHIP:DMG: StatusIB = - [1646036720.226869][49897:49902] CHIP:DMG: { - [1646036720.226901][49897:49902] CHIP:DMG: status = 0x0, - [1646036720.226932][49897:49902] CHIP:DMG: }, + [1646036720.226837][49897:49902] CHIP:DMG: StatusIB = + [1646036720.226869][49897:49902] CHIP:DMG: { + [1646036720.226901][49897:49902] CHIP:DMG: status = 0x0, + [1646036720.226932][49897:49902] CHIP:DMG: }, [1646036720.226964][49897:49902] CHIP:DMG: - [1646036720.226993][49897:49902] CHIP:DMG: }, + [1646036720.226993][49897:49902] CHIP:DMG: }, [1646036720.227026][49897:49902] CHIP:DMG: - [1646036720.227053][49897:49902] CHIP:DMG: }, + [1646036720.227053][49897:49902] CHIP:DMG: }, [1646036720.227086][49897:49902] CHIP:DMG: - [1646036720.227108][49897:49902] CHIP:DMG: ], + [1646036720.227108][49897:49902] CHIP:DMG: ], [1646036720.227137][49897:49902] CHIP:DMG: - [1646036720.227160][49897:49902] CHIP:DMG: InteractionModelRevision = - 1 [1646036720.227185][49897:49902] CHIP:DMG: }, - [1646036720.227245][49897:49902] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0507 Command=0x0000_0002 - Status=0x0" + [1646036720.227160][49897:49902] CHIP:DMG: InteractionModelRevision = 1 + [1646036720.227185][49897:49902] CHIP:DMG: }, + [1646036720.227245][49897:49902] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0507 Command=0x0000_0002 Status=0x0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml index 80a7909e850dc6..1e744921297539 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_13.yaml @@ -23,82 +23,86 @@ tests: - label: "TH reads the InputList attribute from the DUT to show list of Inputs available" - verification: - "./chip-tool mediainput read input-list 1 1 [1646140193572] - [83167:3718213] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0507 Attribute - 0x0000_0000 DataVersion: 645543558 [1646140193572] [83167:3718213] - CHIP: [TOO] InputList: 2 entries [1646140193572] [83167:3718213] CHIP: - [TOO] [1]: { [1646140193572] [83167:3718213] CHIP: [TOO] Index: 1 - [1646140193573] [83167:3718213] CHIP: [TOO] InputType: 4 - [1646140193573] [83167:3718213] CHIP: [TOO] Name: HDMI [1646140193573] - [83167:3718213] CHIP: [TOO] Description: High-Definition Multimedia - Interface [1646140193573] [83167:3718213] CHIP: [TOO] } - [1646140193573] [83167:3718213] CHIP: [TOO] [2]: { [1646140193573] - [83167:3718213] CHIP: [TOO] Index: 2 [1646140193573] [83167:3718213] - CHIP: [TOO] InputType: 4 [1646140193573] [83167:3718213] CHIP: [TOO] - Name: HDMI [1646140193573] [83167:3718213] CHIP: [TOO] Description: - High-Definition Multimedia Interface [1646140193573] [83167:3718213] - CHIP: [TOO] }" + verification: | + ./chip-tool mediainput read input-list 1 1 + + [1646140193572] [83167:3718213] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0507 Attribute 0x0000_0000DataVersion: 645543558 + [1646140193572] [83167:3718213] CHIP: [TOO] InputList: 2 entries + [1646140193572] [83167:3718213] CHIP: [TOO] [1]: { + [1646140193572] [83167:3718213] CHIP: [TOO] Index: 1 + [1646140193573] [83167:3718213] CHIP: [TOO] InputType: 4 + [1646140193573] [83167:3718213] CHIP: [TOO] Name: HDMI + [1646140193573] [83167:3718213] CHIP: [TOO] Description: High-Definition Multimedia Interface + [1646140193573] [83167:3718213] CHIP: [TOO] } + [1646140193573] [83167:3718213] CHIP: [TOO] [2]: { + [1646140193573] [83167:3718213] CHIP: [TOO] Index: 2 + [1646140193573] [83167:3718213] CHIP: [TOO] InputType: 4 + [1646140193573] [83167:3718213] CHIP: [TOO] Name: HDMI + [1646140193573] [83167:3718213] CHIP: [TOO] Description: High-Definition Multimedia Interface + [1646140193573] [83167:3718213] CHIP: [TOO] } disabled: true - label: "TH sends a RenameInput command to DUT to rename an input from the list returned in step 1" - verification: - "./chip-tool mediainput rename-input 1 newname 1 1 [1646140236677] - [83197:3718807] CHIP: [EM] Received message of type 0x9 with - protocolId (0, 1) and MessageCounter:11877446 on exchange 40542i - [1646140236677] [83197:3718807] CHIP: [EM] Found matching exchange: - 40542i, Delegate: 0x7fc8b97e2670 [1646140236677] [83197:3718807] CHIP: - [EM] Rxd Ack; Removing MessageCounter:7248594 from Retrans Table on - exchange 40542i [1646140236677] [83197:3718807] CHIP: [EM] Removed - CHIP MessageCounter:7248594 from RetransTable on exchange 40542i + verification: | + ./chip-tool mediainput rename-input 1 newname 1 1 + + [1646140236677] [83197:3718807] CHIP: [EM] Received message of type 0x9 with protocolId (0, 1) and MessageCounter:11877446 on exchange 40542i + [1646140236677] [83197:3718807] CHIP: [EM] Found matching exchange: 40542i, Delegate: 0x7fc8b97e2670 + [1646140236677] [83197:3718807] CHIP: [EM] Rxd Ack; Removing MessageCounter:7248594 from Retrans Table on exchange 40542i + [1646140236677] [83197:3718807] CHIP: [EM] Removed CHIP MessageCounter:7248594 from RetransTable on exchange 40542i [1646140236677] [83197:3718807] CHIP: [DMG] ICR moving to [ResponseRe] [1646140236677] [83197:3718807] CHIP: [DMG] InvokeResponseMessage = - [1646140236677] [83197:3718807] CHIP: [DMG] { [1646140236677] - [83197:3718807] CHIP: [DMG] suppressResponse = false, [1646140236677] - [83197:3718807] CHIP: [DMG] InvokeResponseIBs = [1646140236677] - [83197:3718807] CHIP: [DMG] [ [1646140236677] [83197:3718807] CHIP: - [DMG] InvokeResponseIB = [1646140236677] [83197:3718807] CHIP: [DMG] { - [1646140236677] [83197:3718807] CHIP: [DMG] CommandStatusIB = - [1646140236677] [83197:3718807] CHIP: [DMG] { [1646140236677] - [83197:3718807] CHIP: [DMG] CommandPathIB = [1646140236677] - [83197:3718807] CHIP: [DMG] { [1646140236677] [83197:3718807] CHIP: - [DMG] EndpointId = 0x1, [1646140236677] [83197:3718807] CHIP: [DMG] - ClusterId = 0x507, [1646140236677] [83197:3718807] CHIP: [DMG] - CommandId = 0x3, [1646140236677] [83197:3718807] CHIP: [DMG] }, - [1646140236677] [83197:3718807] CHIP: [DMG] [1646140236677] - [83197:3718807] CHIP: [DMG] StatusIB = [1646140236677] [83197:3718807] - CHIP: [DMG] { [1646140236677] [83197:3718807] CHIP: [DMG] status = - 0x0, [1646140236677] [83197:3718807] CHIP: [DMG] }, [1646140236677] - [83197:3718807] CHIP: [DMG] [1646140236677] [83197:3718807] CHIP: - [DMG] }, [1646140236677] [83197:3718807] CHIP: [DMG] [1646140236677] - [83197:3718807] CHIP: [DMG] }, [1646140236677] [83197:3718807] CHIP: - [DMG] [1646140236677] [83197:3718807] CHIP: [DMG] ], [1646140236677] - [83197:3718807] CHIP: [DMG] [1646140236677] [83197:3718807] CHIP: - [DMG] InteractionModelRevision = 1 [1646140236677] [83197:3718807] - CHIP: [DMG] }, [1646140236677] [83197:3718807] CHIP: [DMG] Received - Command Response Status for Endpoint=1 Cluster=0x0000_0507 - Command=0x0000_0003 Status=0x0" + [1646140236677] [83197:3718807] CHIP: [DMG] { + [1646140236677] [83197:3718807] CHIP: [DMG] suppressResponse = false, + [1646140236677] [83197:3718807] CHIP: [DMG] InvokeResponseIBs = + [1646140236677] [83197:3718807] CHIP: [DMG] [ + [1646140236677] [83197:3718807] CHIP: [DMG] InvokeResponseIB = + [1646140236677] [83197:3718807] CHIP: [DMG] { + [1646140236677] [83197:3718807] CHIP: [DMG] CommandStatusIB = + [1646140236677] [83197:3718807] CHIP: [DMG] { + [1646140236677] [83197:3718807] CHIP: [DMG] CommandPathIB = + [1646140236677] [83197:3718807] CHIP: [DMG] { + [1646140236677] [83197:3718807] CHIP: [DMG] EndpointId = 0x1, + [1646140236677] [83197:3718807] CHIP: [DMG] ClusterId = 0x507, + [1646140236677] [83197:3718807] CHIP: [DMG] CommandId = 0x3, + [1646140236677] [83197:3718807] CHIP: [DMG] }, + [1646140236677] [83197:3718807] CHIP: [DMG] + [1646140236677] [83197:3718807] CHIP: [DMG] StatusIB = + [1646140236677] [83197:3718807] CHIP: [DMG] { + [1646140236677] [83197:3718807] CHIP: [DMG] status = 0x0, + [1646140236677] [83197:3718807] CHIP: [DMG] }, + [1646140236677] [83197:3718807] CHIP: [DMG] + [1646140236677] [83197:3718807] CHIP: [DMG] }, + [1646140236677] [83197:3718807] CHIP: [DMG] + [1646140236677] [83197:3718807] CHIP: [DMG] }, + [1646140236677] [83197:3718807] CHIP: [DMG] + [1646140236677] [83197:3718807] CHIP: [DMG] ], + [1646140236677] [83197:3718807] CHIP: [DMG] + [1646140236677] [83197:3718807] CHIP: [DMG] InteractionModelRevision = 1 + [1646140236677] [83197:3718807] CHIP: [DMG] }, + [1646140236677] [83197:3718807] CHIP: [DMG] Received Command Response Status for Endpoint=1 Cluster=0x0000_0507 Command=0x0000_0003 Status=0x0 disabled: true - label: "TH reads the InputList attribute from the DUT to show list of Inputs available" - verification: - "./chip-tool mediainput read input-list 1 1 [1646140289219] - [83463:3720087] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0507 Attribute - 0x0000_0000 DataVersion: 645543558 [1646140289219] [83463:3720087] - CHIP: [TOO] InputList: 2 entries [1646140289219] [83463:3720087] CHIP: - [TOO] [1]: { [1646140289219] [83463:3720087] CHIP: [TOO] Index: 1 - [1646140289219] [83463:3720087] CHIP: [TOO] InputType: 4 - [1646140289219] [83463:3720087] CHIP: [TOO] Name: newname - [1646140289219] [83463:3720087] CHIP: [TOO] Description: - High-Definition Multimedia Interface [1646140289219] [83463:3720087] - CHIP: [TOO] } [1646140289219] [83463:3720087] CHIP: [TOO] [2]: { - [1646140289219] [83463:3720087] CHIP: [TOO] Index: 2 [1646140289219] - [83463:3720087] CHIP: [TOO] InputType: 4 [1646140289219] - [83463:3720087] CHIP: [TOO] Name: HDMI [1646140289219] [83463:3720087] - CHIP: [TOO] Description: High-Definition Multimedia Interface - [1646140289219] [83463:3720087] CHIP: [TOO] }" + verification: | + ./chip-tool mediainput read input-list 1 1 + + [1646140289219] [83463:3720087] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0507 Attribute 0x0000_0000DataVersion: 645543558 + [1646140289219] [83463:3720087] CHIP: [TOO] InputList: 2 entries + [1646140289219] [83463:3720087] CHIP: [TOO] [1]: { + [1646140289219] [83463:3720087] CHIP: [TOO] Index: 1 + [1646140289219] [83463:3720087] CHIP: [TOO] InputType: 4 + [1646140289219] [83463:3720087] CHIP: [TOO] Name: newname + [1646140289219] [83463:3720087] CHIP: [TOO] Description: High-Definition Multimedia Interface + [1646140289219] [83463:3720087] CHIP: [TOO] } + [1646140289219] [83463:3720087] CHIP: [TOO] [2]: { + [1646140289219] [83463:3720087] CHIP: [TOO] Index: 2 + [1646140289219] [83463:3720087] CHIP: [TOO] InputType: 4 + [1646140289219] [83463:3720087] CHIP: [TOO] Name: HDMI + [1646140289219] [83463:3720087] CHIP: [TOO] Description: High-Definition Multimedia Interface + [1646140289219] [83463:3720087] CHIP: [TOO] } disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_4_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_4_1.yaml index 782eb538504994..f461184b8151b8 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_4_1.yaml @@ -21,51 +21,51 @@ config: tests: - label: "TH reads the MACAddress attribute from the DUT" - verification: - "./chip-tool wakeonlan read macaddress 1 1 [1646140497523] - [83791:3722553] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0503 Attribute - 0x0000_0000 DataVersion: 937942620 [1646140497523] [83791:3722553] - CHIP: [TOO] MACAddress: 00:00:00:00:00" + verification: | + ./chip-tool wakeonlan read macaddress 1 1 + + [1646140497523] [83791:3722553] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0503 Attribute 0x0000_0000DataVersion: 937942620 + [1646140497523] [83791:3722553] CHIP: [TOO] MACAddress: 00:00:00:00:00 disabled: true - label: "TH sends a Sleep command to DUT" - verification: - "./chip-tool lowpower sleep 1 1 [1646101689.826629][3009:3014] - CHIP:DMG: InvokeResponseMessage = [1646101689.826665][3009:3014] - CHIP:DMG: { [1646101689.826697][3009:3014] CHIP:DMG: suppressResponse - = false, [1646101689.826727][3009:3014] CHIP:DMG: InvokeResponseIBs - =[1646101689.826769][3009:3014] CHIP:DMG: [ - [1646101689.826804][3009:3014] CHIP:DMG: InvokeResponseIB = - [1646101689.826848][3009:3014] CHIP:DMG: { - [1646101689.826882][3009:3014] CHIP:DMG: CommandStatusIB = - [1646101689.826922][3009:3014] CHIP:DMG: { - [1646101689.826954][3009:3014] CHIP:DMG: CommandPathIB - =[1646101689.826989][3009:3014] CHIP:DMG: { - [1646101689.827031][3009:3014] CHIP:DMG: EndpointId = 0x1, - [1646101689.827082][3009:3014] CHIP:DMG: ClusterId = 0x508, - [1646101689.827127][3009:3014] CHIP:DMG: CommandId = 0x0, - [1646101689.827172][3009:3014] CHIP:DMG: }, + verification: | + ./chip-tool lowpower sleep 1 1 + [1646101689.826629][3009:3014] CHIP:DMG: InvokeResponseMessage = + [1646101689.826665][3009:3014] CHIP:DMG: { + [1646101689.826697][3009:3014] CHIP:DMG: suppressResponse = false, + [1646101689.826727][3009:3014] CHIP:DMG: InvokeResponseIBs = + [1646101689.826769][3009:3014] CHIP:DMG: [ + [1646101689.826804][3009:3014] CHIP:DMG: InvokeResponseIB = + [1646101689.826848][3009:3014] CHIP:DMG: { + [1646101689.826882][3009:3014] CHIP:DMG: CommandStatusIB = + [1646101689.826922][3009:3014] CHIP:DMG: { + [1646101689.826954][3009:3014] CHIP:DMG: CommandPathIB = + [1646101689.826989][3009:3014] CHIP:DMG: { + [1646101689.827031][3009:3014] CHIP:DMG: EndpointId = 0x1, + [1646101689.827082][3009:3014] CHIP:DMG: ClusterId = 0x508, + [1646101689.827127][3009:3014] CHIP:DMG: CommandId = 0x0, + [1646101689.827172][3009:3014] CHIP:DMG: }, [1646101689.827223][3009:3014] CHIP:DMG: - [1646101689.827260][3009:3014] CHIP:DMG: StatusIB = - [1646101689.827311][3009:3014] CHIP:DMG: { - [1646101689.827360][3009:3014] CHIP:DMG: status = 0x0, - [1646101689.827411][3009:3014] CHIP:DMG: }, + [1646101689.827260][3009:3014] CHIP:DMG: StatusIB = + [1646101689.827311][3009:3014] CHIP:DMG: { + [1646101689.827360][3009:3014] CHIP:DMG: status = 0x0, + [1646101689.827411][3009:3014] CHIP:DMG: }, [1646101689.827457][3009:3014] CHIP:DMG: - [1646101689.827498][3009:3014] CHIP:DMG: }, + [1646101689.827498][3009:3014] CHIP:DMG: }, [1646101689.827540][3009:3014] CHIP:DMG: - [1646101689.827607][3009:3014] CHIP:DMG: }, + [1646101689.827607][3009:3014] CHIP:DMG: }, [1646101689.827658][3009:3014] CHIP:DMG: - [1646101689.827689][3009:3014] CHIP:DMG: ], + [1646101689.827689][3009:3014] CHIP:DMG: ], [1646101689.827730][3009:3014] CHIP:DMG: - [1646101689.827761][3009:3014] CHIP:DMG: InteractionModelRevision = 1 + [1646101689.827761][3009:3014] CHIP:DMG: InteractionModelRevision = 1 [1646101689.827792][3009:3014] CHIP:DMG: }, - [1646101689.827875][3009:3014] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0508 Command=0x0000_0000 - Status=0x0" + [1646101689.827875][3009:3014] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0508 Command=0x0000_0000 Status=0x0 disabled: true - label: "TH sends Wake-On LAN magic packet containing the MAC address from step 1" - verification: "Send a magic packet using the method of your choice" + verification: | + Send a magic packet using the method of your choice disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_8_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_8_2.yaml index 0320b34122d207..6dd2a609f8a83c 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_8_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_8_2.yaml @@ -21,281 +21,251 @@ config: tests: - label: "DUT reads the CurrentTarget attribute from the TH" - verification: "" + verification: | + disabled: true - label: "DUT reads the TargetList attribute from the TH" - verification: - "./chip-tool targetnavigator read target-navigator-list 1 0 CHIP:IN: - CASE Session established. Setting up the secure channel. - [1635844031.242605][3216:3216] CHIP:IN: Marking old secure session for - device 0x000000000001B669 as expired [1635844031.242643][3216:3216] - CHIP:IN: New secure session created for device 0x000000000001B669, key - 4!! [1635844031.242715][3216:3216] CHIP:IN: CASE secure channel is - available now. [1635844031.242744][3216:3216] CHIP:IN: CASE Server - enabling CASE session setups [1635844031.243571][3216:3216] CHIP:EM: - Received message of type 0x2 with protocolId (0, 1) and - MessageCounter:0 on exchange 37125r [1635844031.243615][3216:3216] - CHIP:EM: Handling via exchange: 37125r, Delegate: 0x0xaaaae48831b8 + verification: | + ./chip-tool targetnavigator read target-navigator-list 1 0 + + CHIP:IN: CASE Session established. Setting up the secure channel. + [1635844031.242605][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired + [1635844031.242643][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! + [1635844031.242715][3216:3216] CHIP:IN: CASE secure channel is available now. + [1635844031.242744][3216:3216] CHIP:IN: CASE Server enabling CASE session setups + [1635844031.243571][3216:3216] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 37125r + [1635844031.243615][3216:3216] CHIP:EM: Handling via exchange: 37125r, Delegate: 0x0xaaaae48831b8 [1635844031.243660][3216:3216] CHIP:IM: Received Read request [1635844031.243691][3216:3216] CHIP:DMG: IM RH moving to [Initialized] [1635844031.243728][3216:3216] CHIP:DMG: ReadRequest = [1635844031.243758][3216:3216] CHIP:DMG: { - [1635844031.243785][3216:3216] CHIP:DMG: AttributePathList = - [1635844031.243817][3216:3216] CHIP:DMG: [ - [1635844031.243847][3216:3216] CHIP:DMG: AttributePath = - [1635844031.243879][3216:3216] CHIP:DMG: { - [1635844031.243918][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844031.243957][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844031.244000][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844031.244041][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844031.244078][3216:3216] CHIP:DMG: } + [1635844031.243785][3216:3216] CHIP:DMG: AttributePathList = + [1635844031.243817][3216:3216] CHIP:DMG: [ + [1635844031.243847][3216:3216] CHIP:DMG: AttributePath = + [1635844031.243879][3216:3216] CHIP:DMG: { + [1635844031.243918][3216:3216] CHIP:DMG: NodeId = 0x1, + [1635844031.243957][3216:3216] CHIP:DMG: EndpointId = 0x0, + [1635844031.244000][3216:3216] CHIP:DMG: ClusterId = 0x505, + [1635844031.244041][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, + [1635844031.244078][3216:3216] CHIP:DMG: } [1635844031.244117][3216:3216] CHIP:DMG: - [1635844031.244151][3216:3216] CHIP:DMG: ], + [1635844031.244151][3216:3216] CHIP:DMG: ], [1635844031.244185][3216:3216] CHIP:DMG: [1635844031.244214][3216:3216] CHIP:DMG: } - [1635844031.244275][3216:3216] CHIP:DMG: IM RH moving to - [GeneratingReports] [1635844031.244419][3216:3216] CHIP:DMG: - Cluster 505, Field 0 is dirty [1635844031.244452][3216:3216] CHIP:DMG: - Reading attribute: Cluster=0x0000_0505 Endpoint=0 - AttributeId=0x0000_0000 [1635844031.244495][3216:3216] CHIP:DMG: - Dumping report data... [1635844031.244526][3216:3216] CHIP:DMG: - ReportData = [1635844031.244555][3216:3216] CHIP:DMG: { - [1635844031.244581][3216:3216] CHIP:DMG: AttributeDataList = - [1635844031.244612][3216:3216] CHIP:DMG: [ - [1635844031.244642][3216:3216] CHIP:DMG: AttributeDataElement = - [1635844031.244678][3216:3216] CHIP:DMG: { - [1635844031.244710][3216:3216] CHIP:DMG: AttributePath = - [1635844031.244746][3216:3216] CHIP:DMG: { - [1635844031.244788][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844031.244829][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844031.244870][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844031.244913][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844031.244951][3216:3216] CHIP:DMG: } + [1635844031.244275][3216:3216] CHIP:DMG: IM RH moving to [GeneratingReports] + [1635844031.244419][3216:3216] CHIP:DMG: Cluster 505, Field 0 is dirty + [1635844031.244452][3216:3216] CHIP:DMG: Reading attribute: Cluster=0x0000_0505 Endpoint=0 AttributeId=0x0000_0000 + [1635844031.244495][3216:3216] CHIP:DMG: Dumping report data... + [1635844031.244526][3216:3216] CHIP:DMG: ReportData = + [1635844031.244555][3216:3216] CHIP:DMG: { + [1635844031.244581][3216:3216] CHIP:DMG: AttributeDataList = + [1635844031.244612][3216:3216] CHIP:DMG: [ + [1635844031.244642][3216:3216] CHIP:DMG: AttributeDataElement = + [1635844031.244678][3216:3216] CHIP:DMG: { + [1635844031.244710][3216:3216] CHIP:DMG: AttributePath = + [1635844031.244746][3216:3216] CHIP:DMG: { + [1635844031.244788][3216:3216] CHIP:DMG: NodeId = 0x1, + [1635844031.244829][3216:3216] CHIP:DMG: EndpointId = 0x0, + [1635844031.244870][3216:3216] CHIP:DMG: ClusterId = 0x505, + [1635844031.244913][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, + [1635844031.244951][3216:3216] CHIP:DMG: } [1635844031.244992][3216:3216] CHIP:DMG: - [1635844031.245030][3216:3216] CHIP:DMG: Status = 0x86, - [1635844031.245069][3216:3216] CHIP:DMG: }, + [1635844031.245030][3216:3216] CHIP:DMG: Status = 0x86, + [1635844031.245069][3216:3216] CHIP:DMG: }, [1635844031.245106][3216:3216] CHIP:DMG: - [1635844031.245135][3216:3216] CHIP:DMG: ], + [1635844031.245135][3216:3216] CHIP:DMG: ], [1635844031.245169][3216:3216] CHIP:DMG: [1635844031.245197][3216:3216] CHIP:DMG: } [1635844031.245222][3216:3216] CHIP:DMG: Sending report... - [1635844031.245251][3216:3216] CHIP:DMG: IM RH moving to - [AwaitingReportResponse] [1635844031.245284][3216:3216] CHIP:EM: - Piggybacking Ack for MessageCounter:0 on exchange: 37125r - [1635844031.245349][3216:3216] CHIP:IN: Prepared encrypted message - 0xaaaae4887858 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) - on exchange 37125r with MessageCounter:1. - [1635844031.245393][3216:3216] CHIP:IN: Sending encrypted msg - 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at - monotonic time: 3109679 msec [1635844031.245501][3216:3216] CHIP:DMG: - ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635844031.245594][3216:3216] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:3861075869 on exchange - 37124r [1635844031.245639][3216:3216] CHIP:EM: Rxd Ack; Removing - MessageCounter:2841322247 from Retrans Table on exchange 37124r - [1635844031.245670][3216:3216] CHIP:EM: Removed CHIP - MessageCounter:2841322247 from RetransTable on exchange 37124r - [1635844031.248229][3216:3216] CHIP:EM: Received message of type 0x1 - with protocolId (0, 1) and MessageCounter:1 on exchange 37125r - [1635844031.248279][3216:3216] CHIP:EM: Rxd Ack; Removing - MessageCounter:1 from Retrans Table on exchange 37125r - [1635844031.248309][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 - from RetransTable on exchange 37125r [1635844031.248352][3216:3216] - CHIP:DMG: StatusResponse = [1635844031.248383][3216:3216] CHIP:DMG: { - [1635844031.248411][3216:3216] CHIP:DMG: Status = 0x0, + [1635844031.245251][3216:3216] CHIP:DMG: IM RH moving to [AwaitingReportResponse] + [1635844031.245284][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 37125r + [1635844031.245349][3216:3216] CHIP:IN: Prepared encrypted message 0xaaaae4887858 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 37125r with MessageCounter:1. + [1635844031.245393][3216:3216] CHIP:IN: Sending encrypted msg 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 3109679 msec + [1635844031.245501][3216:3216] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages + [1635844031.245594][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:3861075869 on exchange 37124r + [1635844031.245639][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:2841322247 from Retrans Table on exchange 37124r + [1635844031.245670][3216:3216] CHIP:EM: Removed CHIP MessageCounter:2841322247 from RetransTable on exchange 37124r + [1635844031.248229][3216:3216] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:1 on exchange 37125r + [1635844031.248279][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 37125r + [1635844031.248309][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 from RetransTable on exchange 37125r + [1635844031.248352][3216:3216] CHIP:DMG: StatusResponse = + [1635844031.248383][3216:3216] CHIP:DMG: { + [1635844031.248411][3216:3216] CHIP:DMG: Status = 0x0, [1635844031.248440][3216:3216] CHIP:DMG: } - [1635844031.248469][3216:3216] CHIP:DMG: In state - AwaitingReportResponse, receive status response, status code is 0 - [1635844031.248497][3216:3216] CHIP:DMG: OnReportConfirm: - NumReports = 0 [1635844031.248523][3216:3216] CHIP:DMG: IM RH moving - to [Uninitialized] [1635844031.248551][3216:3216] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 37125r" + [1635844031.248469][3216:3216] CHIP:DMG: In state AwaitingReportResponse, receive status response, status code is 0 + [1635844031.248497][3216:3216] CHIP:DMG: OnReportConfirm: NumReports = 0 + [1635844031.248523][3216:3216] CHIP:DMG: IM RH moving to [Uninitialized] + [1635844031.248551][3216:3216] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 37125r disabled: true - label: "DUT sends a NavigateTarget command to the TH with the identifier from step 1b" - verification: - "./chip-tool targetnavigator navigate-target 1 nav 1 0 CHIP:IN: CASE - Session established. Setting up the secure channel. - [1635844324.044404][3216:3216] CHIP:IN: Marking old secure session for - device 0x000000000001B669 as expired [1635844324.044451][3216:3216] - CHIP:IN: New secure session created for device 0x000000000001B669, key - 4!! [1635844324.044536][3216:3216] CHIP:IN: CASE secure channel is - available now. [1635844324.044571][3216:3216] CHIP:IN: CASE Server - enabling CASE session setups [1635844324.047550][3216:3216] CHIP:EM: - Received message of type 0x8 with protocolId (0, 1) and - MessageCounter:0 on exchange 44163r [1635844324.047601][3216:3216] - CHIP:EM: Handling via exchange: 44163r, Delegate: 0x0xaaaae48831b8 + verification: | + ./chip-tool targetnavigator navigate-target 1 nav 1 0 + + + CHIP:IN: CASE Session established. Setting up the secure channel. + [1635844324.044404][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired + [1635844324.044451][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! + [1635844324.044536][3216:3216] CHIP:IN: CASE secure channel is available now. + [1635844324.044571][3216:3216] CHIP:IN: CASE Server enabling CASE session setups + [1635844324.047550][3216:3216] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:0 on exchange 44163r + [1635844324.047601][3216:3216] CHIP:EM: Handling via exchange: 44163r, Delegate: 0x0xaaaae48831b8 [1635844324.047667][3216:3216] CHIP:DMG: InvokeCommand = [1635844324.047707][3216:3216] CHIP:DMG: { - [1635844324.047739][3216:3216] CHIP:DMG: CommandList = - [1635844324.047777][3216:3216] CHIP:DMG: [ - [1635844324.047813][3216:3216] CHIP:DMG: CommandDataIB = - [1635844324.047858][3216:3216] CHIP:DMG: { - [1635844324.047896][3216:3216] CHIP:DMG: CommandPathIB = - [1635844324.047936][3216:3216] CHIP:DMG: { - [1635844324.047983][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844324.048033][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844324.048089][3216:3216] CHIP:DMG: CommandId = 0x0, - [1635844324.048136][3216:3216] CHIP:DMG: }, + [1635844324.047739][3216:3216] CHIP:DMG: CommandList = + [1635844324.047777][3216:3216] CHIP:DMG: [ + [1635844324.047813][3216:3216] CHIP:DMG: CommandDataIB = + [1635844324.047858][3216:3216] CHIP:DMG: { + [1635844324.047896][3216:3216] CHIP:DMG: CommandPathIB = + [1635844324.047936][3216:3216] CHIP:DMG: { + [1635844324.047983][3216:3216] CHIP:DMG: EndpointId = 0x0, + [1635844324.048033][3216:3216] CHIP:DMG: ClusterId = 0x505, + [1635844324.048089][3216:3216] CHIP:DMG: CommandId = 0x0, + [1635844324.048136][3216:3216] CHIP:DMG: }, [1635844324.048187][3216:3216] CHIP:DMG: - [1635844324.048226][3216:3216] CHIP:DMG: CommandData = - [1635844324.048276][3216:3216] CHIP:DMG: { - [1635844324.048325][3216:3216] CHIP:DMG: 0x0 = 1, - [1635844324.048383][3216:3216] CHIP:DMG: 0x1 = 'nav', - [1635844324.048433][3216:3216] CHIP:DMG: }, - [1635844324.048472][3216:3216] CHIP:DMG: }, + [1635844324.048226][3216:3216] CHIP:DMG: CommandData = + [1635844324.048276][3216:3216] CHIP:DMG: { + [1635844324.048325][3216:3216] CHIP:DMG: 0x0 = 1, + [1635844324.048383][3216:3216] CHIP:DMG: 0x1 = "nav", + [1635844324.048433][3216:3216] CHIP:DMG: }, + [1635844324.048472][3216:3216] CHIP:DMG: }, [1635844324.048518][3216:3216] CHIP:DMG: - [1635844324.048554][3216:3216] CHIP:DMG: ], + [1635844324.048554][3216:3216] CHIP:DMG: ], [1635844324.048595][3216:3216] CHIP:DMG: [1635844324.048629][3216:3216] CHIP:DMG: } - [1635844324.048683][3216:3216] CHIP:DMG: No Cluster 0x0000_0505 on - Endpoint 0x0 [1635844324.048737][3216:3216] CHIP:DMG: ICR moving to - [AddingComm] [1635844324.048779][3216:3216] CHIP:DMG: ICR moving to - [AddedComma] [1635844324.048830][3216:3216] CHIP:EM: Piggybacking Ack - for MessageCounter:0 on exchange: 44163r" + [1635844324.048683][3216:3216] CHIP:DMG: No Cluster 0x0000_0505 on Endpoint 0x0 + [1635844324.048737][3216:3216] CHIP:DMG: ICR moving to [AddingComm] + [1635844324.048779][3216:3216] CHIP:DMG: ICR moving to [AddedComma] + [1635844324.048830][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 44163r disabled: true - label: "DUT reads the CurrentTarget attribute from the TH" - verification: "" + verification: | + disabled: true - label: "DUT reads the TargetList attribute from the TH" - verification: - "./chip-tool targetnavigator read target-navigator-list 1 0 CHIP:IN: - CASE Session established. Setting up the secure channel. - [1635844541.724866][3216:3216] CHIP:IN: Marking old secure session for - device 0x000000000001B669 as expired [1635844541.724903][3216:3216] - CHIP:IN: New secure session created for device 0x000000000001B669, key - 4!! [1635844541.724975][3216:3216] CHIP:IN: CASE secure channel is - available now. [1635844541.725004][3216:3216] CHIP:IN: CASE Server - enabling CASE session setups [1635844541.725874][3216:3216] CHIP:EM: - Received message of type 0x2 with protocolId (0, 1) and - MessageCounter:0 on exchange 49188r [1635844541.725918][3216:3216] - CHIP:EM: Handling via exchange: 49188r, Delegate: 0x0xaaaae48831b8 + verification: | + ./chip-tool targetnavigator read target-navigator-list 1 0 + + + CHIP:IN: CASE Session established. Setting up the secure channel. + [1635844541.724866][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired + [1635844541.724903][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! + [1635844541.724975][3216:3216] CHIP:IN: CASE secure channel is available now. + [1635844541.725004][3216:3216] CHIP:IN: CASE Server enabling CASE session setups + [1635844541.725874][3216:3216] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 49188r + [1635844541.725918][3216:3216] CHIP:EM: Handling via exchange: 49188r, Delegate: 0x0xaaaae48831b8 [1635844541.725962][3216:3216] CHIP:IM: Received Read request [1635844541.725993][3216:3216] CHIP:DMG: IM RH moving to [Initialized] [1635844541.726058][3216:3216] CHIP:DMG: ReadRequest = [1635844541.726088][3216:3216] CHIP:DMG: { - [1635844541.726115][3216:3216] CHIP:DMG: AttributePathList = - [1635844541.726147][3216:3216] CHIP:DMG: [ - [1635844541.726176][3216:3216] CHIP:DMG: AttributePath = - [1635844541.726209][3216:3216] CHIP:DMG: { - [1635844541.726244][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844541.726280][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844541.726320][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844541.726358][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844541.726391][3216:3216] CHIP:DMG: } + [1635844541.726115][3216:3216] CHIP:DMG: AttributePathList = + [1635844541.726147][3216:3216] CHIP:DMG: [ + [1635844541.726176][3216:3216] CHIP:DMG: AttributePath = + [1635844541.726209][3216:3216] CHIP:DMG: { + [1635844541.726244][3216:3216] CHIP:DMG: NodeId = 0x1, + [1635844541.726280][3216:3216] CHIP:DMG: EndpointId = 0x0, + [1635844541.726320][3216:3216] CHIP:DMG: ClusterId = 0x505, + [1635844541.726358][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, + [1635844541.726391][3216:3216] CHIP:DMG: } [1635844541.726427][3216:3216] CHIP:DMG: - [1635844541.726461][3216:3216] CHIP:DMG: ], + [1635844541.726461][3216:3216] CHIP:DMG: ], [1635844541.726495][3216:3216] CHIP:DMG: [1635844541.726524][3216:3216] CHIP:DMG: } - [1635844541.726585][3216:3216] CHIP:DMG: IM RH moving to - [GeneratingReports] [1635844541.726683][3216:3216] CHIP:DMG: - Cluster 505, Field 0 is dirty [1635844541.726715][3216:3216] CHIP:DMG: - Reading attribute: Cluster=0x0000_0505 Endpoint=0 - AttributeId=0x0000_0000 [1635844541.726757][3216:3216] CHIP:DMG: - Dumping report data... [1635844541.726788][3216:3216] CHIP:DMG: - ReportData = [1635844541.726817][3216:3216] CHIP:DMG: { - [1635844541.726843][3216:3216] CHIP:DMG: AttributeDataList = - [1635844541.726874][3216:3216] CHIP:DMG: [ - [1635844541.726904][3216:3216] CHIP:DMG: AttributeDataElement = - [1635844541.726941][3216:3216] CHIP:DMG: { - [1635844541.726972][3216:3216] CHIP:DMG: AttributePath = - [1635844541.727006][3216:3216] CHIP:DMG: { - [1635844541.727043][3216:3216] CHIP:DMG: NodeId = 0x1, - [1635844541.727085][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844541.727129][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844541.727170][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, - [1635844541.727208][3216:3216] CHIP:DMG: } + [1635844541.726585][3216:3216] CHIP:DMG: IM RH moving to [GeneratingReports] + [1635844541.726683][3216:3216] CHIP:DMG: Cluster 505, Field 0 is dirty + [1635844541.726715][3216:3216] CHIP:DMG: Reading attribute: Cluster=0x0000_0505 Endpoint=0 AttributeId=0x0000_0000 + [1635844541.726757][3216:3216] CHIP:DMG: Dumping report data... + [1635844541.726788][3216:3216] CHIP:DMG: ReportData = + [1635844541.726817][3216:3216] CHIP:DMG: { + [1635844541.726843][3216:3216] CHIP:DMG: AttributeDataList = + [1635844541.726874][3216:3216] CHIP:DMG: [ + [1635844541.726904][3216:3216] CHIP:DMG: AttributeDataElement = + [1635844541.726941][3216:3216] CHIP:DMG: { + [1635844541.726972][3216:3216] CHIP:DMG: AttributePath = + [1635844541.727006][3216:3216] CHIP:DMG: { + [1635844541.727043][3216:3216] CHIP:DMG: NodeId = 0x1, + [1635844541.727085][3216:3216] CHIP:DMG: EndpointId = 0x0, + [1635844541.727129][3216:3216] CHIP:DMG: ClusterId = 0x505, + [1635844541.727170][3216:3216] CHIP:DMG: FieldTag = 0x0000_0000, + [1635844541.727208][3216:3216] CHIP:DMG: } [1635844541.727248][3216:3216] CHIP:DMG: - [1635844541.727285][3216:3216] CHIP:DMG: Status = 0x86, - [1635844541.727325][3216:3216] CHIP:DMG: }, + [1635844541.727285][3216:3216] CHIP:DMG: Status = 0x86, + [1635844541.727325][3216:3216] CHIP:DMG: }, [1635844541.727360][3216:3216] CHIP:DMG: - [1635844541.727390][3216:3216] CHIP:DMG: ], + [1635844541.727390][3216:3216] CHIP:DMG: ], [1635844541.727425][3216:3216] CHIP:DMG: [1635844541.727452][3216:3216] CHIP:DMG: } [1635844541.727478][3216:3216] CHIP:DMG: Sending report... - [1635844541.727506][3216:3216] CHIP:DMG: IM RH moving to - [AwaitingReportResponse] [1635844541.727539][3216:3216] CHIP:EM: - Piggybacking Ack for MessageCounter:0 on exchange: 49188r - [1635844541.727606][3216:3216] CHIP:IN: Prepared encrypted message - 0xaaaae4887858 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) - on exchange 49188r with MessageCounter:1. - [1635844541.727650][3216:3216] CHIP:IN: Sending encrypted msg - 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at - monotonic time: 3620161 msec [1635844541.727756][3216:3216] CHIP:DMG: - ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635844541.727849][3216:3216] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:3414294172 on exchange - 49187r [1635844541.727895][3216:3216] CHIP:EM: Rxd Ack; Removing - MessageCounter:2841322251 from Retrans Table on exchange 49187r - [1635844541.727926][3216:3216] CHIP:EM: Removed CHIP - MessageCounter:2841322251 from RetransTable on exchange 49187r - [1635844541.729955][3216:3216] CHIP:EM: Received message of type 0x1 - with protocolId (0, 1) and MessageCounter:1 on exchange 49188r - [1635844541.730024][3216:3216] CHIP:EM: Rxd Ack; Removing - MessageCounter:1 from Retrans Table on exchange 49188r - [1635844541.730056][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 - from RetransTable on exchange 49188r [1635844541.730099][3216:3216] - CHIP:DMG: StatusResponse = [1635844541.730131][3216:3216] CHIP:DMG: { - [1635844541.730158][3216:3216] CHIP:DMG: Status = 0x0, + [1635844541.727506][3216:3216] CHIP:DMG: IM RH moving to [AwaitingReportResponse] + [1635844541.727539][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 49188r + [1635844541.727606][3216:3216] CHIP:IN: Prepared encrypted message 0xaaaae4887858 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 49188r with MessageCounter:1. + [1635844541.727650][3216:3216] CHIP:IN: Sending encrypted msg 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 3620161 msec + [1635844541.727756][3216:3216] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages + [1635844541.727849][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:3414294172 on exchange 49187r + [1635844541.727895][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:2841322251 from Retrans Table on exchange 49187r + [1635844541.727926][3216:3216] CHIP:EM: Removed CHIP MessageCounter:2841322251 from RetransTable on exchange 49187r + [1635844541.729955][3216:3216] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:1 on exchange 49188r + [1635844541.730024][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 49188r + [1635844541.730056][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 from RetransTable on exchange 49188r + [1635844541.730099][3216:3216] CHIP:DMG: StatusResponse = + [1635844541.730131][3216:3216] CHIP:DMG: { + [1635844541.730158][3216:3216] CHIP:DMG: Status = 0x0, [1635844541.730187][3216:3216] CHIP:DMG: } - [1635844541.730217][3216:3216] CHIP:DMG: In state - AwaitingReportResponse, receive status response, status code is 0 - [1635844541.730245][3216:3216] CHIP:DMG: OnReportConfirm: - NumReports = 0 [1635844541.730271][3216:3216] CHIP:DMG: IM RH moving - to [Uninitialized] [1635844541.730300][3216:3216] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 49188r" + [1635844541.730217][3216:3216] CHIP:DMG: In state AwaitingReportResponse, receive status response, status code is 0 + [1635844541.730245][3216:3216] CHIP:DMG: OnReportConfirm: NumReports = 0 + [1635844541.730271][3216:3216] CHIP:DMG: IM RH moving to [Uninitialized] + [1635844541.730300][3216:3216] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 49188r disabled: true - label: "DUT sends a NavigateTarget command to the TH with the identifier from step 3b and manufacturer provided app-specific data (string format)." - verification: - "./chip-tool targetnavigator navigate-target 2 another 1 0 CHIP:IN: - CASE Session established. Setting up the secure channel. - [1635844631.704944][3216:3216] CHIP:IN: Marking old secure session for - device 0x000000000001B669 as expired [1635844631.704984][3216:3216] - CHIP:IN: New secure session created for device 0x000000000001B669, key - 4!! [1635844631.705059][3216:3216] CHIP:IN: CASE secure channel is - available now. [1635844631.705092][3216:3216] CHIP:IN: CASE Server - enabling CASE session setups [1635844631.706226][3216:3216] CHIP:EM: - Received message of type 0x8 with protocolId (0, 1) and - MessageCounter:0 on exchange 26803r [1635844631.706273][3216:3216] - CHIP:EM: Handling via exchange: 26803r, Delegate: 0x0xaaaae48831b8 + verification: | + ./chip-tool targetnavigator navigate-target 2 another 1 0 + + + CHIP:IN: CASE Session established. Setting up the secure channel. + [1635844631.704944][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired + [1635844631.704984][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! + [1635844631.705059][3216:3216] CHIP:IN: CASE secure channel is available now. + [1635844631.705092][3216:3216] CHIP:IN: CASE Server enabling CASE session setups + [1635844631.706226][3216:3216] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:0 on exchange 26803r + [1635844631.706273][3216:3216] CHIP:EM: Handling via exchange: 26803r, Delegate: 0x0xaaaae48831b8 [1635844631.706334][3216:3216] CHIP:DMG: InvokeCommand = [1635844631.706369][3216:3216] CHIP:DMG: { - [1635844631.706399][3216:3216] CHIP:DMG: CommandList = - [1635844631.706434][3216:3216] CHIP:DMG: [ - [1635844631.706466][3216:3216] CHIP:DMG: CommandDataIB = - [1635844631.706508][3216:3216] CHIP:DMG: { - [1635844631.706542][3216:3216] CHIP:DMG: CommandPathIB = - [1635844631.706588][3216:3216] CHIP:DMG: { - [1635844631.706630][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635844631.706678][3216:3216] CHIP:DMG: ClusterId = 0x505, - [1635844631.706718][3216:3216] CHIP:DMG: CommandId = 0x0, - [1635844631.706766][3216:3216] CHIP:DMG: }, + [1635844631.706399][3216:3216] CHIP:DMG: CommandList = + [1635844631.706434][3216:3216] CHIP:DMG: [ + [1635844631.706466][3216:3216] CHIP:DMG: CommandDataIB = + [1635844631.706508][3216:3216] CHIP:DMG: { + [1635844631.706542][3216:3216] CHIP:DMG: CommandPathIB = + [1635844631.706588][3216:3216] CHIP:DMG: { + [1635844631.706630][3216:3216] CHIP:DMG: EndpointId = 0x0, + [1635844631.706678][3216:3216] CHIP:DMG: ClusterId = 0x505, + [1635844631.706718][3216:3216] CHIP:DMG: CommandId = 0x0, + [1635844631.706766][3216:3216] CHIP:DMG: }, [1635844631.706808][3216:3216] CHIP:DMG: - [1635844631.706844][3216:3216] CHIP:DMG: CommandData = - [1635844631.706882][3216:3216] CHIP:DMG: { - [1635844631.706924][3216:3216] CHIP:DMG: 0x0 = 2, - [1635844631.706971][3216:3216] CHIP:DMG: 0x1 = 'another', - [1635844631.707014][3216:3216] CHIP:DMG: }, - [1635844631.707050][3216:3216] CHIP:DMG: }, + [1635844631.706844][3216:3216] CHIP:DMG: CommandData = + [1635844631.706882][3216:3216] CHIP:DMG: { + [1635844631.706924][3216:3216] CHIP:DMG: 0x0 = 2, + [1635844631.706971][3216:3216] CHIP:DMG: 0x1 = "another", + [1635844631.707014][3216:3216] CHIP:DMG: }, + [1635844631.707050][3216:3216] CHIP:DMG: }, [1635844631.707097][3216:3216] CHIP:DMG: - [1635844631.707130][3216:3216] CHIP:DMG: ], + [1635844631.707130][3216:3216] CHIP:DMG: ], [1635844631.707169][3216:3216] CHIP:DMG: [1635844631.707200][3216:3216] CHIP:DMG: } - [1635844631.707249][3216:3216] CHIP:DMG: No Cluster 0x0000_0505 on - Endpoint 0x0 [1635844631.707300][3216:3216] CHIP:DMG: ICR moving to - [AddingComm] [1635844631.707337][3216:3216] CHIP:DMG: ICR moving to - [AddedComma] [1635844631.707384][3216:3216] CHIP:EM: Piggybacking Ack - for MessageCounter:0 on exchange: 26803r" + [1635844631.707249][3216:3216] CHIP:DMG: No Cluster 0x0000_0505 on Endpoint 0x0 + [1635844631.707300][3216:3216] CHIP:DMG: ICR moving to [AddingComm] + [1635844631.707337][3216:3216] CHIP:DMG: ICR moving to [AddedComma] + [1635844631.707384][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 26803r disabled: true - label: "DUT reads the CurrentTarget attribute from the TH" - verification: "" + verification: | + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_9_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_9_2.yaml index 535269f8e0707d..af861c988e98fd 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_9_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_9_2.yaml @@ -23,322 +23,287 @@ config: tests: - label: "TH reads the VendorName attribute from the DUT" - verification: - "./chip-tool applicationbasic read vendor-name 1 1 CHIP:EM: Received - message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on - exchange 47792r [1635669394.984912][4641:4641] CHIP:EM: Handling via - exchange: 47792r, Delegate: 0x0xaaaada70fd80 + verification: | + ./chip-tool applicationbasic read vendor-name 1 1 + + CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 47792r + [1635669394.984912][4641:4641] CHIP:EM: Handling via exchange: 47792r, Delegate: 0x0xaaaada70fd80 [1635669394.984996][4641:4641] CHIP:IM: Received Read request [1635669394.985055][4641:4641] CHIP:DMG: IM RH moving to [Initialized] [1635669394.985120][4641:4641] CHIP:DMG: ReadRequest = [1635669394.985179][4641:4641] CHIP:DMG: { - [1635669394.985232][4641:4641] CHIP:DMG: AttributePathList = - [1635669394.985295][4641:4641] CHIP:DMG: [ - [1635669394.985355][4641:4641] CHIP:DMG: AttributePath = - [1635669394.985420][4641:4641] CHIP:DMG: { - [1635669394.985490][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669394.985566][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669394.985652][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669394.985730][4641:4641] CHIP:DMG: FieldTag = 0x0000_0000, - [1635669394.985791][4641:4641] CHIP:DMG: } + [1635669394.985232][4641:4641] CHIP:DMG: AttributePathList = + [1635669394.985295][4641:4641] CHIP:DMG: [ + [1635669394.985355][4641:4641] CHIP:DMG: AttributePath = + [1635669394.985420][4641:4641] CHIP:DMG: { + [1635669394.985490][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669394.985566][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669394.985652][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669394.985730][4641:4641] CHIP:DMG: FieldTag = 0x0000_0000, + [1635669394.985791][4641:4641] CHIP:DMG: } [1635669394.985825][4641:4641] CHIP:DMG: - [1635669394.985854][4641:4641] CHIP:DMG: ], + [1635669394.985854][4641:4641] CHIP:DMG: ], [1635669394.985886][4641:4641] CHIP:DMG: [1635669394.985979][4641:4641] CHIP:DMG: } - [1635669394.986037][4641:4641] CHIP:DMG: IM RH moving to - [GeneratingReports] [1635669394.986134][4641:4641] CHIP:DMG: - Cluster 50d, Field 0 is dirty [1635669394.986164][4641:4641] CHIP:DMG: - Reading attribute: Cluster=0x0000_050D Endpoint=1 - AttributeId=0x0000_0000 [1635669394.986208][4641:4641] CHIP:DMG: - Dumping report data... [1635669394.986237][4641:4641] CHIP:DMG: - ReportData =./chip-tool applicationbasic read vendor-name 1 1 + [1635669394.986037][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] + [1635669394.986134][4641:4641] CHIP:DMG: Cluster 50d, Field 0 is dirty + [1635669394.986164][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0000 + [1635669394.986208][4641:4641] CHIP:DMG: Dumping report data... + [1635669394.986237][4641:4641] CHIP:DMG: ReportData =./chip-tool applicationbasic read vendor-name 1 1 [1635669394.986264][4641:4641] CHIP:DMG: { - [1635669394.986289][4641:4641] CHIP:DMG: AttributeDataList = - [1635669394.986319][4641:4641] CHIP:DMG: [ - [1635669394.986347][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669394.986381][4641:4641] CHIP:DMG: { - [1635669394.986411][4641:4641] CHIP:DMG: AttributePath = - [1635669394.986445][4641:4641] CHIP:DMG: { - [1635669394.986481][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669394.986516][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669394.986559][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669394.986595][4641:4641] CHIP:DMG: FieldTag = 0x0000_0000, - [1635669394.986627][4641:4641] CHIP:DMG: } + [1635669394.986289][4641:4641] CHIP:DMG: AttributeDataList = + [1635669394.986319][4641:4641] CHIP:DMG: [ + [1635669394.986347][4641:4641] CHIP:DMG: AttributeDataElement = + [1635669394.986381][4641:4641] CHIP:DMG: { + [1635669394.986411][4641:4641] CHIP:DMG: AttributePath = + [1635669394.986445][4641:4641] CHIP:DMG: { + [1635669394.986481][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669394.986516][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669394.986559][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669394.986595][4641:4641] CHIP:DMG: FieldTag = 0x0000_0000, + [1635669394.986627][4641:4641] CHIP:DMG: } [1635669394.986667][4641:4641] CHIP:DMG: - [1635669394.986706][4641:4641] CHIP:DMG: Data = '', - [1635669394.986742][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669394.986776][4641:4641] CHIP:DMG: }, + [1635669394.986706][4641:4641] CHIP:DMG: Data = "", + [1635669394.986742][4641:4641] CHIP:DMG: DataElementVersion = 0x0, + [1635669394.986776][4641:4641] CHIP:DMG: }, [1635669394.986810][4641:4641] CHIP:DMG: - [1635669394.986837][4641:4641] CHIP:DMG: ], + [1635669394.986837][4641:4641] CHIP:DMG: ], [1635669394.986871][4641:4641] CHIP:DMG: [1635669394.986896][4641:4641] CHIP:DMG: } [1635669394.986920][4641:4641] CHIP:DMG: Sending report... - [1635669394.986946][4641:4641] CHIP:DMG: IM RH moving to - [AwaitingReportResponse] [1635669394.986973][4641:4641] CHIP:EM: - Piggybacking Ack for MessageCounter:0 on exchange: 47792r - [1635669394.987032][4641:4641] CHIP:IN: Prepared encrypted message - 0xaaaada714448 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) - on exchange 47792r with MessageCounter:1. - [1635669394.987074][4641:4641] CHIP:IN: Sending encrypted msg - 0xaaaada714448 with MessageCounter:1 to 0x000000000001B669 at - monotonic time: 7893783 msec [1635669394.987195][4641:4641] CHIP:DMG: - ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635669394.987286][4641:4641] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:466709192 on exchange 47791r - [1635669394.987328][4641:4641] CHIP:EM: Rxd Ack; Removing - MessageCounter:1572049851 from Retrans Table on exchange 47791r - [1635669394.987357][4641:4641] CHIP:EM: Removed CHIP - MessageCounter:1572049851 from RetransTable on exchange 47791r - [1635669394.989332][4641:4641] CHIP:EM: Received message of type 0x1 - with protocolId (0, 1) and MessageCounter:1 on exchange 47792r - [1635669394.989373][4641:4641] CHIP:EM: Rxd Ack; Removing - MessageCounter:1 from Retrans Table on exchange 47792r" + [1635669394.986946][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] + [1635669394.986973][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 47792r + [1635669394.987032][4641:4641] CHIP:IN: Prepared encrypted message 0xaaaada714448 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 47792r with MessageCounter:1. + [1635669394.987074][4641:4641] CHIP:IN: Sending encrypted msg 0xaaaada714448 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 7893783 msec + [1635669394.987195][4641:4641] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages + [1635669394.987286][4641:4641] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:466709192 on exchange 47791r + [1635669394.987328][4641:4641] CHIP:EM: Rxd Ack; Removing MessageCounter:1572049851 from Retrans Table on exchange 47791r + [1635669394.987357][4641:4641] CHIP:EM: Removed CHIP MessageCounter:1572049851 from RetransTable on exchange 47791r + [1635669394.989332][4641:4641] CHIP:EM: Received message of type 0x1 with protocolId (0, 1) and MessageCounter:1 on exchange 47792r + [1635669394.989373][4641:4641] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 47792r disabled: true - label: "TH reads the VendorID attribute from the DUT" - verification: - "./chip-tool applicationbasic read vendor-id 1 1 CHIP:EM: Received - message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on - exchange 10649r [1635669532.932419][4641:4641] CHIP:EM: Handling via - exchange: 10649r, Delegate: 0x0xaaaada70fd80 + verification: | + ./chip-tool applicationbasic read vendor-id 1 1 + + CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 10649r + [1635669532.932419][4641:4641] CHIP:EM: Handling via exchange: 10649r, Delegate: 0x0xaaaada70fd80 [1635669532.932476][4641:4641] CHIP:IM: Received Read request [1635669532.932506][4641:4641] CHIP:DMG: IM RH moving to [Initialized] [1635669532.932545][4641:4641] CHIP:DMG: ReadRequest = [1635669532.932575][4641:4641] CHIP:DMG: { - [1635669532.932601][4641:4641] CHIP:DMG: AttributePathList = - [1635669532.932633][4641:4641] CHIP:DMG: [ - [1635669532.932663][4641:4641] CHIP:DMG: AttributePath = - [1635669532.932696][4641:4641] CHIP:DMG: { - [1635669532.932731][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669532.932767][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669532.932810][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669532.932849][4641:4641] CHIP:DMG: FieldTag = 0x0000_0001, - [1635669532.932889][4641:4641] CHIP:DMG: } + [1635669532.932601][4641:4641] CHIP:DMG: AttributePathList = + [1635669532.932633][4641:4641] CHIP:DMG: [ + [1635669532.932663][4641:4641] CHIP:DMG: AttributePath = + [1635669532.932696][4641:4641] CHIP:DMG: { + [1635669532.932731][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669532.932767][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669532.932810][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669532.932849][4641:4641] CHIP:DMG: FieldTag = 0x0000_0001, + [1635669532.932889][4641:4641] CHIP:DMG: } [1635669532.932928][4641:4641] CHIP:DMG: - [1635669532.932962][4641:4641] CHIP:DMG: ], + [1635669532.932962][4641:4641] CHIP:DMG: ], [1635669532.932995][4641:4641] CHIP:DMG: [1635669532.933025][4641:4641] CHIP:DMG: } - [1635669532.933092][4641:4641] CHIP:DMG: IM RH moving to - [GeneratingReports] [1635669532.933194][4641:4641] CHIP:DMG: - Cluster 50d, Field 1 is dirty [1635669532.933226][4641:4641] CHIP:DMG: - Reading attribute: Cluster=0x0000_050D Endpoint=1 - AttributeId=0x0000_0001 [1635669532.933273][4641:4641] CHIP:DMG: - Dumping report data... [1635669532.933305][4641:4641] CHIP:DMG: - ReportData = [1635669532.933334][4641:4641] CHIP:DMG: { - [1635669532.933357][4641:4641] CHIP:DMG: AttributeDataList = - [1635669532.933388][4641:4641] CHIP:DMG: [ - [1635669532.933418][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669532.933448][4641:4641] CHIP:DMG: { - [1635669532.933479][4641:4641] CHIP:DMG: AttributePath = - [1635669532.933520][4641:4641] CHIP:DMG: { - [1635669532.933559][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669532.933600][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669532.933644][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669532.933684][4641:4641] CHIP:DMG: FieldTag = 0x0000_0001, - [1635669532.933726][4641:4641] CHIP:DMG: } + [1635669532.933092][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] + [1635669532.933194][4641:4641] CHIP:DMG: Cluster 50d, Field 1 is dirty + [1635669532.933226][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0001 + [1635669532.933273][4641:4641] CHIP:DMG: Dumping report data... + [1635669532.933305][4641:4641] CHIP:DMG: ReportData = + [1635669532.933334][4641:4641] CHIP:DMG: { + [1635669532.933357][4641:4641] CHIP:DMG: AttributeDataList = + [1635669532.933388][4641:4641] CHIP:DMG: [ + [1635669532.933418][4641:4641] CHIP:DMG: AttributeDataElement = + [1635669532.933448][4641:4641] CHIP:DMG: { + [1635669532.933479][4641:4641] CHIP:DMG: AttributePath = + [1635669532.933520][4641:4641] CHIP:DMG: { + [1635669532.933559][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669532.933600][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669532.933644][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669532.933684][4641:4641] CHIP:DMG: FieldTag = 0x0000_0001, + [1635669532.933726][4641:4641] CHIP:DMG: } [1635669532.933767][4641:4641] CHIP:DMG: - [1635669532.933809][4641:4641] CHIP:DMG: Data = 0, - [1635669532.933847][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669532.933882][4641:4641] CHIP:DMG: }, + [1635669532.933809][4641:4641] CHIP:DMG: Data = 0, + [1635669532.933847][4641:4641] CHIP:DMG: DataElementVersion = 0x0, + [1635669532.933882][4641:4641] CHIP:DMG: }, [1635669532.933915][4641:4641] CHIP:DMG: - [1635669532.933945][4641:4641] CHIP:DMG: ], + [1635669532.933945][4641:4641] CHIP:DMG: ], [1635669532.933984][4641:4641] CHIP:DMG: [1635669532.934011][4641:4641] CHIP:DMG: } [1635669532.934040][4641:4641] CHIP:DMG: Sending report... - [1635669532.934082][4641:4641] CHIP:DMG: IM RH moving to - [AwaitingReportResponse] [1635669532.934129][4641:4641] CHIP:EM: - Piggybacking Ack for MessageCounter:0 on exchange: 10649r - [1635669532.934194][4641:4641] CHIP:IN: Prepared encrypted message - 0xaaaada714448 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) - on exchange 10649r with MessageCounter:1. - [1635669532.934243][4641:4641] CHIP:IN: Sending encrypted msg - 0xaaaada714448 with MessageCounter:1 to 0x000000000001B669 at - monotonic time: 8031730 msec [1635669532.934363][4641:4641] CHIP:DMG: - ReportsInFlight = 1 with readHandler 0, RE has no more messages - [1635669532.934463][4641:4641] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:229251686 on exchange 10648r - [1635669532.934517][4641:4641] CHIP:EM: Rxd Ack; Removing - MessageCounter:1572049853 from Retrans Table on exchange 10648r - [1635669532.934550][4641:4641] CHIP:EM: Removed CHIP - MessageCounter:1572049853 from RetransTable on exchange 10648r" + [1635669532.934082][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] + [1635669532.934129][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 10649r + [1635669532.934194][4641:4641] CHIP:IN: Prepared encrypted message 0xaaaada714448 to 0x000000000001B669 of type 0x5 and protocolId (0, 1) on exchange 10649r with MessageCounter:1. + [1635669532.934243][4641:4641] CHIP:IN: Sending encrypted msg 0xaaaada714448 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 8031730 msec + [1635669532.934363][4641:4641] CHIP:DMG: ReportsInFlight = 1 with readHandler 0, RE has no more messages + [1635669532.934463][4641:4641] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:229251686 on exchange 10648r + [1635669532.934517][4641:4641] CHIP:EM: Rxd Ack; Removing MessageCounter:1572049853 from Retrans Table on exchange 10648r + [1635669532.934550][4641:4641] CHIP:EM: Removed CHIP MessageCounter:1572049853 from RetransTable on exchange 10648r disabled: true - label: "TH reads the ApplicationName attribute from the DUT" - verification: - "./chip-tool applicationbasic read application-name 1 1 CHIP:EM: - Received message of type 0x2 with protocolId (0, 1) and - MessageCounter:0 on exchange 3361r [1635669651.324865][4641:4641] - CHIP:EM: Handling via exchange: 3361r, Delegate: 0x0xaaaada70fd80 + verification: | + ./chip-tool applicationbasic read application-name 1 1 + + CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 3361r + [1635669651.324865][4641:4641] CHIP:EM: Handling via exchange: 3361r, Delegate: 0x0xaaaada70fd80 [1635669651.324915][4641:4641] CHIP:IM: Received Read request [1635669651.324948][4641:4641] CHIP:DMG: IM RH moving to [Initialized] [1635669651.324987][4641:4641] CHIP:DMG: ReadRequest = [1635669651.325019][4641:4641] CHIP:DMG: { - [1635669651.325049][4641:4641] CHIP:DMG: AttributePathList = - [1635669651.325083][4641:4641] CHIP:DMG: [ - [1635669651.325117][4641:4641] CHIP:DMG: AttributePath = - [1635669651.325153][4641:4641] CHIP:DMG: { - [1635669651.325197][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669651.325242][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669651.325285][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669651.325328][4641:4641] CHIP:DMG: FieldTag = 0x0000_0002, - [1635669651.325369][4641:4641] CHIP:DMG: } + [1635669651.325049][4641:4641] CHIP:DMG: AttributePathList = + [1635669651.325083][4641:4641] CHIP:DMG: [ + [1635669651.325117][4641:4641] CHIP:DMG: AttributePath = + [1635669651.325153][4641:4641] CHIP:DMG: { + [1635669651.325197][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669651.325242][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669651.325285][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669651.325328][4641:4641] CHIP:DMG: FieldTag = 0x0000_0002, + [1635669651.325369][4641:4641] CHIP:DMG: } [1635669651.325408][4641:4641] CHIP:DMG: - [1635669651.325442][4641:4641] CHIP:DMG: ], + [1635669651.325442][4641:4641] CHIP:DMG: ], [1635669651.325480][4641:4641] CHIP:DMG: [1635669651.325512][4641:4641] CHIP:DMG: } - [1635669651.325578][4641:4641] CHIP:DMG: IM RH moving to - [GeneratingReports] [1635669651.325684][4641:4641] CHIP:DMG: - Cluster 50d, Field 2 is dirty [1635669651.325719][4641:4641] CHIP:DMG: - Reading attribute: Cluster=0x0000_050D Endpoint=1 - AttributeId=0x0000_0002 [1635669651.325773][4641:4641] CHIP:DMG: - Dumping report data... [1635669651.325807][4641:4641] CHIP:DMG: - ReportData = [1635669651.325840][4641:4641] CHIP:DMG: { - [1635669651.325869][4641:4641] CHIP:DMG: AttributeDataList = - [1635669651.325903][4641:4641] CHIP:DMG: [ - [1635669651.325936][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669651.325973][4641:4641] CHIP:DMG: { - [1635669651.326008][4641:4641] CHIP:DMG: AttributePath = - [1635669651.326048][4641:4641] CHIP:DMG: { - [1635669651.326090][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669651.326139][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669651.326181][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669651.326230][4641:4641] CHIP:DMG: FieldTag = 0x0000_0002, - [1635669651.326268][4641:4641] CHIP:DMG: } + [1635669651.325578][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] + [1635669651.325684][4641:4641] CHIP:DMG: Cluster 50d, Field 2 is dirty + [1635669651.325719][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0002 + [1635669651.325773][4641:4641] CHIP:DMG: Dumping report data... + [1635669651.325807][4641:4641] CHIP:DMG: ReportData = + [1635669651.325840][4641:4641] CHIP:DMG: { + [1635669651.325869][4641:4641] CHIP:DMG: AttributeDataList = + [1635669651.325903][4641:4641] CHIP:DMG: [ + [1635669651.325936][4641:4641] CHIP:DMG: AttributeDataElement = + [1635669651.325973][4641:4641] CHIP:DMG: { + [1635669651.326008][4641:4641] CHIP:DMG: AttributePath = + [1635669651.326048][4641:4641] CHIP:DMG: { + [1635669651.326090][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669651.326139][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669651.326181][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669651.326230][4641:4641] CHIP:DMG: FieldTag = 0x0000_0002, + [1635669651.326268][4641:4641] CHIP:DMG: } [1635669651.326311][4641:4641] CHIP:DMG: - [1635669651.326358][4641:4641] CHIP:DMG: Data = '', - [1635669651.326397][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669651.326439][4641:4641] CHIP:DMG: }, + [1635669651.326358][4641:4641] CHIP:DMG: Data = "", + [1635669651.326397][4641:4641] CHIP:DMG: DataElementVersion = 0x0, + [1635669651.326439][4641:4641] CHIP:DMG: }, [1635669651.326480][4641:4641] CHIP:DMG: - [1635669651.326513][4641:4641] CHIP:DMG: ], + [1635669651.326513][4641:4641] CHIP:DMG: ], [1635669651.326552][4641:4641] CHIP:DMG: [1635669651.326583][4641:4641] CHIP:DMG: } [1635669651.326611][4641:4641] CHIP:DMG: Sending report... - [1635669651.326642][4641:4641] CHIP:DMG: IM RH moving to - [AwaitingReportResponse] [1635669651.326677][4641:4641] CHIP:EM: - Piggybacking Ack for MessageCounter:0 on exchange: 3361r" + [1635669651.326642][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] + [1635669651.326677][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 3361r disabled: true - label: "TH reads the ProductID attribute from the DUT" - verification: - "./chip-tool applicationbasic read product-id 1 1 CHIP:EM: Received - message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on - exchange 12029r [1635669782.991396][4641:4641] CHIP:EM: Handling via - exchange: 12029r, Delegate: 0x0xaaaada70fd80 + verification: | + ./chip-tool applicationbasic read product-id 1 1 + + CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:0 on exchange 12029r + [1635669782.991396][4641:4641] CHIP:EM: Handling via exchange: 12029r, Delegate: 0x0xaaaada70fd80 [1635669782.991444][4641:4641] CHIP:IM: Received Read request [1635669782.991477][4641:4641] CHIP:DMG: IM RH moving to [Initialized] [1635669782.991517][4641:4641] CHIP:DMG: ReadRequest = [1635669782.991550][4641:4641] CHIP:DMG: { - [1635669782.991579][4641:4641] CHIP:DMG: AttributePathList = - [1635669782.991614][4641:4641] CHIP:DMG: [ - [1635669782.991646][4641:4641] CHIP:DMG: AttributePath = - [1635669782.991686][4641:4641] CHIP:DMG: { - [1635669782.991724][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669782.991766][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669782.991813][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669782.991857][4641:4641] CHIP:DMG: FieldTag = 0x0000_0003, - [1635669782.991923][4641:4641] CHIP:DMG: } + [1635669782.991579][4641:4641] CHIP:DMG: AttributePathList = + [1635669782.991614][4641:4641] CHIP:DMG: [ + [1635669782.991646][4641:4641] CHIP:DMG: AttributePath = + [1635669782.991686][4641:4641] CHIP:DMG: { + [1635669782.991724][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669782.991766][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669782.991813][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669782.991857][4641:4641] CHIP:DMG: FieldTag = 0x0000_0003, + [1635669782.991923][4641:4641] CHIP:DMG: } [1635669782.991969][4641:4641] CHIP:DMG: - [1635669782.992003][4641:4641] CHIP:DMG: ], + [1635669782.992003][4641:4641] CHIP:DMG: ], [1635669782.992040][4641:4641] CHIP:DMG: [1635669782.992073][4641:4641] CHIP:DMG: } - [1635669782.992137][4641:4641] CHIP:DMG: IM RH moving to - [GeneratingReports] [1635669782.992249][4641:4641] CHIP:DMG: - Cluster 50d, Field 3 is dirty [1635669782.992284][4641:4641] CHIP:DMG: - Reading attribute: Cluster=0x0000_050D Endpoint=1 - AttributeId=0x0000_0003 [1635669782.992335][4641:4641] CHIP:DMG: - Dumping report data... [1635669782.992369][4641:4641] CHIP:DMG: - ReportData = [1635669782.992401][4641:4641] CHIP:DMG: { - [1635669782.992470][4641:4641] CHIP:DMG: AttributeDataList = - [1635669782.992506][4641:4641] CHIP:DMG: [ - [1635669782.992539][4641:4641] CHIP:DMG: AttributeDataElement = - [1635669782.992576][4641:4641] CHIP:DMG: { - [1635669782.992617][4641:4641] CHIP:DMG: AttributePath = - [1635669782.992658][4641:4641] CHIP:DMG: { - [1635669782.992701][4641:4641] CHIP:DMG: NodeId = 0x1, - [1635669782.992750][4641:4641] CHIP:DMG: EndpointId = 0x1, - [1635669782.992800][4641:4641] CHIP:DMG: ClusterId = 0x50d, - [1635669782.992845][4641:4641] CHIP:DMG: FieldTag = 0x0000_0003, - [1635669782.992891][4641:4641] CHIP:DMG: } + [1635669782.992137][4641:4641] CHIP:DMG: IM RH moving to [GeneratingReports] + [1635669782.992249][4641:4641] CHIP:DMG: Cluster 50d, Field 3 is dirty + [1635669782.992284][4641:4641] CHIP:DMG: Reading attribute: Cluster=0x0000_050D Endpoint=1 AttributeId=0x0000_0003 + [1635669782.992335][4641:4641] CHIP:DMG: Dumping report data... + [1635669782.992369][4641:4641] CHIP:DMG: ReportData = + [1635669782.992401][4641:4641] CHIP:DMG: { + [1635669782.992470][4641:4641] CHIP:DMG: AttributeDataList = + [1635669782.992506][4641:4641] CHIP:DMG: [ + [1635669782.992539][4641:4641] CHIP:DMG: AttributeDataElement = + [1635669782.992576][4641:4641] CHIP:DMG: { + [1635669782.992617][4641:4641] CHIP:DMG: AttributePath = + [1635669782.992658][4641:4641] CHIP:DMG: { + [1635669782.992701][4641:4641] CHIP:DMG: NodeId = 0x1, + [1635669782.992750][4641:4641] CHIP:DMG: EndpointId = 0x1, + [1635669782.992800][4641:4641] CHIP:DMG: ClusterId = 0x50d, + [1635669782.992845][4641:4641] CHIP:DMG: FieldTag = 0x0000_0003, + [1635669782.992891][4641:4641] CHIP:DMG: } [1635669782.992932][4641:4641] CHIP:DMG: - [1635669782.992976][4641:4641] CHIP:DMG: Data = 0, - [1635669782.993022][4641:4641] CHIP:DMG: DataElementVersion = 0x0, - [1635669782.993065][4641:4641] CHIP:DMG: }, + [1635669782.992976][4641:4641] CHIP:DMG: Data = 0, + [1635669782.993022][4641:4641] CHIP:DMG: DataElementVersion = 0x0, + [1635669782.993065][4641:4641] CHIP:DMG: }, [1635669782.993108][4641:4641] CHIP:DMG: - [1635669782.993140][4641:4641] CHIP:DMG: ], + [1635669782.993140][4641:4641] CHIP:DMG: ], [1635669782.993179][4641:4641] CHIP:DMG: [1635669782.993210][4641:4641] CHIP:DMG: } [1635669782.993238][4641:4641] CHIP:DMG: Sending report... - [1635669782.993269][4641:4641] CHIP:DMG: IM RH moving to - [AwaitingReportResponse] [1635669782.993305][4641:4641] CHIP:EM: - Piggybacking Ack for MessageCounter:0 on exchange: 12029r" + [1635669782.993269][4641:4641] CHIP:DMG: IM RH moving to [AwaitingReportResponse] + [1635669782.993305][4641:4641] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 12029r disabled: true - label: "TH reads the Status attribute from the DUT" - verification: - "./chip-tool applicationbasic change-status 2 1 0 CHIP:IN: CASE - Session established. Setting up the secure channel. - [1635849338.804317][3216:3216] CHIP:IN: Marking old secure session for - device 0x000000000001B669 as expired [1635849338.804591][3216:3216] - CHIP:IN: New secure session created for device 0x000000000001B669, key - 4!! [1635849338.804767][3216:3216] CHIP:IN: CASE secure channel is - available now. [1635849338.804821][3216:3216] CHIP:IN: CASE Server - enabling CASE session setups [1635849338.805449][3216:3216] CHIP:EM: - Received message of type 0x8 with protocolId (0, 1) and - MessageCounter:0 on exchange 15761r [1635849338.805523][3216:3216] - CHIP:EM: Handling via exchange: 15761r, Delegate: 0x0xaaaae48831b8 + verification: | + ./chip-tool applicationbasic change-status 2 1 0 + + + CHIP:IN: CASE Session established. Setting up the secure channel. + [1635849338.804317][3216:3216] CHIP:IN: Marking old secure session for device 0x000000000001B669 as expired + [1635849338.804591][3216:3216] CHIP:IN: New secure session created for device 0x000000000001B669, key 4!! + [1635849338.804767][3216:3216] CHIP:IN: CASE secure channel is available now. + [1635849338.804821][3216:3216] CHIP:IN: CASE Server enabling CASE session setups + [1635849338.805449][3216:3216] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:0 on exchange 15761r + [1635849338.805523][3216:3216] CHIP:EM: Handling via exchange: 15761r, Delegate: 0x0xaaaae48831b8 [1635849338.805614][3216:3216] CHIP:DMG: InvokeCommand = [1635849338.805669][3216:3216] CHIP:DMG: { - [1635849338.805715][3216:3216] CHIP:DMG: CommandList = - [1635849338.805769][3216:3216] CHIP:DMG: [ - [1635849338.805819][3216:3216] CHIP:DMG: CommandDataIB = - [1635849338.805881][3216:3216] CHIP:DMG: { - [1635849338.805974][3216:3216] CHIP:DMG: CommandPathIB = - [1635849338.806032][3216:3216] CHIP:DMG: { - [1635849338.806148][3216:3216] CHIP:DMG: EndpointId = 0x0, - [1635849338.806213][3216:3216] CHIP:DMG: ClusterId = 0x50d, - [1635849338.806253][3216:3216] CHIP:DMG: CommandId = 0x0, - [1635849338.806290][3216:3216] CHIP:DMG: }, + [1635849338.805715][3216:3216] CHIP:DMG: CommandList = + [1635849338.805769][3216:3216] CHIP:DMG: [ + [1635849338.805819][3216:3216] CHIP:DMG: CommandDataIB = + [1635849338.805881][3216:3216] CHIP:DMG: { + [1635849338.805974][3216:3216] CHIP:DMG: CommandPathIB = + [1635849338.806032][3216:3216] CHIP:DMG: { + [1635849338.806148][3216:3216] CHIP:DMG: EndpointId = 0x0, + [1635849338.806213][3216:3216] CHIP:DMG: ClusterId = 0x50d, + [1635849338.806253][3216:3216] CHIP:DMG: CommandId = 0x0, + [1635849338.806290][3216:3216] CHIP:DMG: }, [1635849338.806356][3216:3216] CHIP:DMG: - [1635849338.806389][3216:3216] CHIP:DMG: CommandData = - [1635849338.806425][3216:3216] CHIP:DMG: { - [1635849338.806458][3216:3216] CHIP:DMG: 0x0 = 2, - [1635849338.806525][3216:3216] CHIP:DMG: }, - [1635849338.806560][3216:3216] CHIP:DMG: }, + [1635849338.806389][3216:3216] CHIP:DMG: CommandData = + [1635849338.806425][3216:3216] CHIP:DMG: { + [1635849338.806458][3216:3216] CHIP:DMG: 0x0 = 2, + [1635849338.806525][3216:3216] CHIP:DMG: }, + [1635849338.806560][3216:3216] CHIP:DMG: }, [1635849338.806622][3216:3216] CHIP:DMG: - [1635849338.806671][3216:3216] CHIP:DMG: ], + [1635849338.806671][3216:3216] CHIP:DMG: ], [1635849338.806722][3216:3216] CHIP:DMG: [1635849338.806775][3216:3216] CHIP:DMG: } - [1635849338.806822][3216:3216] CHIP:DMG: No Cluster 0x0000_050D on - Endpoint 0x0 [1635849338.806867][3216:3216] CHIP:DMG: ICR moving to - [AddingComm] [1635849338.806899][3216:3216] CHIP:DMG: ICR moving to - [AddedComma] [1635849338.806939][3216:3216] CHIP:EM: Piggybacking Ack - for MessageCounter:0 on exchange: 15761r - [1635849338.807002][3216:3216] CHIP:IN: Prepared encrypted message - 0xaaaae4887858 to 0x000000000001B669 of type 0x9 and protocolId (0, 1) - on exchange 15761r with MessageCounter:1. - [1635849338.807073][3216:3216] CHIP:IN: Sending encrypted msg - 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at - monotonic time: 8417241 msec [1635849338.807226][3216:3216] CHIP:DMG: - ICR moving to [CommandSen] [1635849338.807256][3216:3216] CHIP:DMG: - ICR moving to [AwaitingDe] [1635849338.807452][3216:3216] CHIP:EM: - Received message of type 0x10 with protocolId (0, 0) and - MessageCounter:1459595048 on exchange 15760r - [1635849338.807521][3216:3216] CHIP:EM: Rxd Ack; Removing - MessageCounter:2841322265 from Retrans Table on exchange 15760r - [1635849338.807551][3216:3216] CHIP:EM: Removed CHIP - MessageCounter:2841322265 from RetransTable on exchange 15760r - [1635849338.809288][3216:3216] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 15761r - [1635849338.809333][3216:3216] CHIP:EM: Rxd Ack; Removing - MessageCounter:1 from Retrans Table on exchange 15761r - [1635849338.809361][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 - from RetransTable on exchange 15761r" + [1635849338.806822][3216:3216] CHIP:DMG: No Cluster 0x0000_050D on Endpoint 0x0 + [1635849338.806867][3216:3216] CHIP:DMG: ICR moving to [AddingComm] + [1635849338.806899][3216:3216] CHIP:DMG: ICR moving to [AddedComma] + [1635849338.806939][3216:3216] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 15761r + [1635849338.807002][3216:3216] CHIP:IN: Prepared encrypted message 0xaaaae4887858 to 0x000000000001B669 of type 0x9 and protocolId (0, 1) on exchange 15761r with MessageCounter:1. + [1635849338.807073][3216:3216] CHIP:IN: Sending encrypted msg 0xaaaae4887858 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 8417241 msec + [1635849338.807226][3216:3216] CHIP:DMG: ICR moving to [CommandSen] + [1635849338.807256][3216:3216] CHIP:DMG: ICR moving to [AwaitingDe] + [1635849338.807452][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1459595048 on exchange 15760r + [1635849338.807521][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:2841322265 from Retrans Table on exchange 15760r + [1635849338.807551][3216:3216] CHIP:EM: Removed CHIP MessageCounter:2841322265 from RetransTable on exchange 15760r + [1635849338.809288][3216:3216] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 15761r + [1635849338.809333][3216:3216] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 15761r + [1635849338.809361][3216:3216] CHIP:EM: Removed CHIP MessageCounter:1 from RetransTable on exchange 15761r disabled: true - label: "TH reads the ApplicationVersion attribute from the DUT" - verification: "" + verification: | + disabled: true - label: "TH reads the AllowedVendorList attribute from the DUT" - verification: "" + verification: | + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml index 1fa13f2af9c0a2..3e9260347b7856 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_1.yaml @@ -21,509 +21,531 @@ config: tests: - label: "TH_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using 1st controller chip-tool on the raspi - (use above instructions) " + verification: | + 1. Provision the device using 1st controller chip-tool on the raspi (use above instructions) disabled: true - label: "TH_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM (Enhanced Commissioning Method)" - verification: - "On 1st controller using chip tool, open commissioning window using - ECM ./chip-tool pairing open-commissioning-window 1 1 400 2000 3840 - Controller: CHIP:IN: Sending encrypted msg 0xaaaad3464d10 with - MessageCounter:0 to 0x0000000000000001 at monotonic time: 5805157 msec + verification: | + On 1st controller using chip tool, open commissioning window using ECM + + ./chip-tool pairing open-commissioning-window 1 1 400 2000 3840 + + Controller: + + CHIP:IN: Sending encrypted msg 0xaaaad3464d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 5805157 msec [1635691999.946536][3822:3827] CHIP:DMG: ICR moving to [CommandSen] - [1635691999.946586][3822:3827] CHIP:CTL: Manual pairing code: - [35407541839] [1635691999.946650][3822:3827] CHIP:CTL: SetupQRCode: - [MT:00000CQM00G6V851H10] [1635691999.946802][3822:3827] CHIP:EM: - Sending Standalone Ack for MessageCounter:3234931243 on exchange - 35324i [1635691999.946850][3822:3827] CHIP:IN: Prepared plaintext - message 0xffffaa58a960 to 0x0000000000000000 of type 0x10 and - protocolId (0, 0) on exchange 35324i with MessageCounter:1726016118. - [1635691999.946895][3822:3827] CHIP:IN: Sending plaintext msg - 0xffffaa58a960 with MessageCounter:1726016118 to 0x0000000000000000 at - monotonic time: 5805158 msec [1635691999.946983][3822:3827] CHIP:EM: - Flushed pending ack for MessageCounter:3234931243 on exchange 35324i - Device: CHIP minimal mDNS started advertising. - [1635687658.683388][3792:3792] CHIP:DIS: Failed to find a valid admin - pairing. Node ID unknown [1635687658.683427][3792:3792] CHIP:DIS: - Start dns-sd server - no current nodeId [1635687658.683456][3792:3792] - CHIP:DL: MAC is not known, using a default. - [1635687658.683522][3792:3792] CHIP:DIS: Advertise commission - parameter vendorID=9050 productID=65279 discriminator=3840/00 - [1635687658.683597][3792:3792] CHIP:DIS: CHIP minimal mDNS configured - as 'Commissionable node device'. [1635687658.684345][3792:3792] - CHIP:DIS: Broadcasting mDns reply for query from 192.168.0.225 - [1635687658.687201][3792:3792] CHIP:DIS: Broadcasting mDns reply for - query from 192.168.0.225" + [1635691999.946586][3822:3827] CHIP:CTL: Manual pairing code: [35407541839] + [1635691999.946650][3822:3827] CHIP:CTL: SetupQRCode: [MT:00000CQM00G6V851H10] + [1635691999.946802][3822:3827] CHIP:EM: Sending Standalone Ack for MessageCounter:3234931243 on exchange 35324i + [1635691999.946850][3822:3827] CHIP:IN: Prepared plaintext message 0xffffaa58a960 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 35324i with MessageCounter:1726016118. + [1635691999.946895][3822:3827] CHIP:IN: Sending plaintext msg 0xffffaa58a960 with MessageCounter:1726016118 to 0x0000000000000000 at monotonic time: 5805158 msec + [1635691999.946983][3822:3827] CHIP:EM: Flushed pending ack for MessageCounter:3234931243 on exchange 35324i + + Device: + + CHIP minimal mDNS started advertising. + [1635687658.683388][3792:3792] CHIP:DIS: Failed to find a valid admin pairing. Node ID unknown + [1635687658.683427][3792:3792] CHIP:DIS: Start dns-sd server - no current nodeId + [1635687658.683456][3792:3792] CHIP:DL: MAC is not known, using a default. + [1635687658.683522][3792:3792] CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 + [1635687658.683597][3792:3792] CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'. + [1635687658.684345][3792:3792] CHIP:DIS: Broadcasting mDns reply for query from 192.168.0.225 + [1635687658.687201][3792:3792] CHIP:DIS: Broadcasting mDns reply for query from 192.168.0.225 disabled: true - label: "TH_CR1 reads the list of Fabrics on TH_CE" - verification: - "On 1st controller using chip tool read fabricList ./chip-tool - operationalcredentials read fabrics-list 1 0 CHIP:DMG: ReportData = + verification: | + On 1st controller using chip tool read fabricList + + ./chip-tool operationalcredentials read fabrics-list 1 0 + + CHIP:DMG: ReportData = [1635690007.805198][3613:3618] CHIP:DMG: { - [1635690007.805247][3613:3618] CHIP:DMG: AttributeDataList = - [1635690007.805286][3613:3618] CHIP:DMG: [ - [1635690007.805334][3613:3618] CHIP:DMG: AttributeDataElement = - [1635690007.805500][3613:3618] CHIP:DMG: { - [1635690007.805541][3613:3618] CHIP:DMG: AttributePath = - [1635690007.805599][3613:3618] CHIP:DMG: { - [1635690007.805648][3613:3618] CHIP:DMG: NodeId = 0x1, - [1635690007.805712][3613:3618] CHIP:DMG: EndpointId = 0x0, - [1635690007.805763][3613:3618] CHIP:DMG: ClusterId = 0x3e, - [1635690007.805826][3613:3618] CHIP:DMG: FieldTag = 0x0000_0001, - [1635690007.805881][3613:3618] CHIP:DMG: } + [1635690007.805247][3613:3618] CHIP:DMG: AttributeDataList = + [1635690007.805286][3613:3618] CHIP:DMG: [ + [1635690007.805334][3613:3618] CHIP:DMG: AttributeDataElement = + [1635690007.805500][3613:3618] CHIP:DMG: { + [1635690007.805541][3613:3618] CHIP:DMG: AttributePath = + [1635690007.805599][3613:3618] CHIP:DMG: { + [1635690007.805648][3613:3618] CHIP:DMG: NodeId = 0x1, + [1635690007.805712][3613:3618] CHIP:DMG: EndpointId = 0x0, + [1635690007.805763][3613:3618] CHIP:DMG: ClusterId = 0x3e, + [1635690007.805826][3613:3618] CHIP:DMG: FieldTag = 0x0000_0001, + [1635690007.805881][3613:3618] CHIP:DMG: } [1635690007.805931][3613:3618] CHIP:DMG: - [1635690007.805987][3613:3618] CHIP:DMG: Data = [ + [1635690007.805987][3613:3618] CHIP:DMG: Data = [ [1635690007.806032][3613:3618] CHIP:DMG: - [1635690007.806085][3613:3618] CHIP:DMG: { - [1635690007.806136][3613:3618] CHIP:DMG: 0x0 = 1, - [1635690007.806201][3613:3618] CHIP:DMG: 0x1 = [ - [1635690007.806283][3613:3618] CHIP:DMG: 0x4, 0x5d, 0x4, 0xcb, 0xc5, - 0xe2, 0x30, 0xb2, 0x3b, 0xee, 0x54, 0xc7, 0xff, 0x3d, 0xdc, 0x65, - 0x31, 0x67, 0x69, 0xa8, 0x90, 0x58, 0x5b, 0x83, 0x19, 0x85, 0x8d, - 0x1d, 0x3a, 0x63, 0xba, 0x62, 0x54, 0xf8, 0x30, 0x18, 0xb3, 0x68, - 0x7b, 0x66, 0x9, 0x94, [1635690007.806359][3613:3618] CHIP:DMG: ] - [1635690007.806412][3613:3618] CHIP:DMG: 0x2 = 54600, - [1635690007.806474][3613:3618] CHIP:DMG: 0x3 = 0, - [1635690007.806530][3613:3618] CHIP:DMG: 0x4 = 1, - [1635690007.806597][3613:3618] CHIP:DMG: 0x5 = ', - [1635690007.806661][3613:3618] CHIP:DMG: }, - [1635690007.806706][3613:3618] CHIP:DMG: { - [1635690007.806763][3613:3618] CHIP:DMG: 0x0 = 2, - [1635690007.806817][3613:3618] CHIP:DMG: 0x1 = [ - [1635690007.806902][3613:3618] CHIP:DMG: 0x4, 0xc1, 0x79, 0xcc, 0x1d, - 0xc3, 0xdc, 0x71, 0x74, 0xd8, 0x99, 0xcb, 0xef, 0x54, 0xa0, 0xb6, - 0xb9, 0x91, 0x37, 0x6d, 0x5d, 0xf1, 0x80, 0x12, 0xa6, 0x4e, 0xc9, - 0x7e, 0x34, 0x6a, 0x8d, 0x6b, 0x7a, 0x8e, 0xe2, 0xee, 0x7c, 0xd0, - 0x24, 0xa2, 0x62, 0x1d [1635690007.806980][3613:3618] CHIP:DMG: ] - [1635690007.807131][3613:3618] CHIP:DMG: 0x2 = 0, - [1635690007.807222][3613:3618] CHIP:DMG: 0x3 = 0, - [1635690007.807287][3613:3618] CHIP:DMG: 0x4 = 1, - [1635690007.807361][3613:3618] CHIP:DMG: 0x5 = ', - [1635690007.807437][3613:3618] CHIP:DMG: }, - [1635690007.807503][3613:3618] CHIP:DMG: ], - [1635690007.807586][3613:3618] CHIP:DMG: DataElementVersion = 0x0, - [1635690007.807636][3613:3618] CHIP:DMG: }, + [1635690007.806085][3613:3618] CHIP:DMG: { + [1635690007.806136][3613:3618] CHIP:DMG: 0x0 = 1, + [1635690007.806201][3613:3618] CHIP:DMG: 0x1 = [ + [1635690007.806283][3613:3618] CHIP:DMG: 0x4, 0x5d, 0x4, 0xcb, 0xc5, 0xe2, 0x30, 0xb2, 0x3b, 0xee, 0x54, 0xc7, 0xff, 0x3d, 0xdc, 0x65, 0x31, 0x67, 0x69, 0xa8, 0x90, 0x58, 0x5b, 0x83, 0x19, 0x85, 0x8d, 0x1d, 0x3a, 0x63, 0xba, 0x62, 0x54, 0xf8, 0x30, 0x18, 0xb3, 0x68, 0x7b, 0x66, 0x9, 0x94, + [1635690007.806359][3613:3618] CHIP:DMG: ] + [1635690007.806412][3613:3618] CHIP:DMG: 0x2 = 54600, + [1635690007.806474][3613:3618] CHIP:DMG: 0x3 = 0, + [1635690007.806530][3613:3618] CHIP:DMG: 0x4 = 1, + [1635690007.806597][3613:3618] CHIP:DMG: 0x5 = "", + [1635690007.806661][3613:3618] CHIP:DMG: }, + [1635690007.806706][3613:3618] CHIP:DMG: { + [1635690007.806763][3613:3618] CHIP:DMG: 0x0 = 2, + [1635690007.806817][3613:3618] CHIP:DMG: 0x1 = [ + [1635690007.806902][3613:3618] CHIP:DMG: 0x4, 0xc1, 0x79, 0xcc, 0x1d, 0xc3, 0xdc, 0x71, 0x74, 0xd8, 0x99, 0xcb, 0xef, 0x54, 0xa0, 0xb6, 0xb9, 0x91, 0x37, 0x6d, 0x5d, 0xf1, 0x80, 0x12, 0xa6, 0x4e, 0xc9, 0x7e, 0x34, 0x6a, 0x8d, 0x6b, 0x7a, 0x8e, 0xe2, 0xee, 0x7c, 0xd0, 0x24, 0xa2, 0x62, 0x1d + [1635690007.806980][3613:3618] CHIP:DMG: ] + [1635690007.807131][3613:3618] CHIP:DMG: 0x2 = 0, + [1635690007.807222][3613:3618] CHIP:DMG: 0x3 = 0, + [1635690007.807287][3613:3618] CHIP:DMG: 0x4 = 1, + [1635690007.807361][3613:3618] CHIP:DMG: 0x5 = "", + [1635690007.807437][3613:3618] CHIP:DMG: }, + [1635690007.807503][3613:3618] CHIP:DMG: ], + [1635690007.807586][3613:3618] CHIP:DMG: DataElementVersion = 0x0, + [1635690007.807636][3613:3618] CHIP:DMG: }, [1635690007.807720][3613:3618] CHIP:DMG: - [1635690007.807765][3613:3618] CHIP:DMG: ], + [1635690007.807765][3613:3618] CHIP:DMG: ], [1635690007.807846][3613:3618] CHIP:DMG: [1635690007.807887][3613:3618] CHIP:DMG: } [1635690007.808091][3613:3618] CHIP:ZCL: ReadAttributesResponse: - [1635690007.808148][3613:3618] CHIP:ZCL: ClusterId: 0x0000_003E - [1635690007.808193][3613:3618] CHIP:ZCL: attributeId: 0x0000_0001 - [1635690007.808234][3613:3618] CHIP:ZCL: status: Success (0x0000) - [1635690007.808266][3613:3618] CHIP:ZCL: attribute TLV Type: 0x16 - [1635690007.808338][3613:3618] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635690007.808148][3613:3618] CHIP:ZCL: ClusterId: 0x0000_003E + [1635690007.808193][3613:3618] CHIP:ZCL: attributeId: 0x0000_0001 + [1635690007.808234][3613:3618] CHIP:ZCL: status: Success (0x0000) + [1635690007.808266][3613:3618] CHIP:ZCL: attribute TLV Type: 0x16 + [1635690007.808338][3613:3618] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635690007.808661][3613:3618] CHIP:TOO: FabricDescriptor[1]: - [1635690007.808711][3613:3618] CHIP:TOO: fabricIndex: 1 - [1635690007.808768][3613:3618] CHIP:ZCL: RootPublicKey: 65 - [1635690007.808805][3613:3618] CHIP:TOO: vendorId: 54600 - [1635690007.808843][3613:3618] CHIP:TOO: fabricId: 0 - [1635690007.808879][3613:3618] CHIP:TOO: nodeId: 1 - [1635690007.808930][3613:3618] CHIP:ZCL: Label: + [1635690007.808711][3613:3618] CHIP:TOO: fabricIndex: 1 + [1635690007.808768][3613:3618] CHIP:ZCL: RootPublicKey: 65 + [1635690007.808805][3613:3618] CHIP:TOO: vendorId: 54600 + [1635690007.808843][3613:3618] CHIP:TOO: fabricId: 0 + [1635690007.808879][3613:3618] CHIP:TOO: nodeId: 1 + [1635690007.808930][3613:3618] CHIP:ZCL: Label: [1635690007.808984][3613:3618] CHIP:TOO: FabricDescriptor[2]: - [1635690007.809040][3613:3618] CHIP:TOO: fabricIndex: 2 - [1635690007.809078][3613:3618] CHIP:ZCL: RootPublicKey: 65 - [1635690007.809115][3613:3618] CHIP:TOO: vendorId: 0 - [1635690007.809168][3613:3618] CHIP:TOO: fabricId: 0 - [1635690007.809206][3613:3618] CHIP:TOO: nodeId: 1 - [1635690007.809242][3613:3618] CHIP:ZCL: Label: - [1635690007.809382][3613:3618] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 8901i [1635690007.809494][3613:3618] - CHIP:IN: Prepared encrypted message 0xaaaae7c60d10 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 8901i - with MessageCounter:1." + [1635690007.809040][3613:3618] CHIP:TOO: fabricIndex: 2 + [1635690007.809078][3613:3618] CHIP:ZCL: RootPublicKey: 65 + [1635690007.809115][3613:3618] CHIP:TOO: vendorId: 0 + [1635690007.809168][3613:3618] CHIP:TOO: fabricId: 0 + [1635690007.809206][3613:3618] CHIP:TOO: nodeId: 1 + [1635690007.809242][3613:3618] CHIP:ZCL: Label: + [1635690007.809382][3613:3618] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 8901i + [1635690007.809494][3613:3618] CHIP:IN: Prepared encrypted message 0xaaaae7c60d10 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 8901i with MessageCounter:1. disabled: true - label: "DUT_CR2 starts a commissioning process with TH_CE" - verification: - "On 2nd controller, using chip-tool connect using manual code. Below - is the example when using chip tool as controller (considering - 35998938564 as the manual code generated by 1st controller) - ./chip-tool pairing manualcode 2 35998938564" + verification: | + On 2nd controller, using chip-tool connect using manual code. + Below is the example when using chip tool as controller (considering 35998938564 as the manual code generated by 1st controller) + ./chip-tool pairing manualcode 2 35998938564 disabled: true - label: "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "Using your DUT controller, write attribute and read attribute to and - from TH_CE Below is the example when using chip tool as controller - ./chip-tool basic write node-label te5new 2 0 CHIP: [EM] Received - message of type 0x7 with protocolId (0, 1) and MessageCounter:1 on - exchange 44858i [1635692170347] [30464:4576577] CHIP: [EM] Rxd Ack; - Removing MessageCounter:0 from Retrans Table on exchange 44858i - [1635692170347] [30464:4576577] CHIP: [EM] Removed CHIP - MessageCounter:0 from RetransTable on exchange 44858i [1635692170347] - [30464:4576577] CHIP: [DMG] WriteResponse = [1635692170347] - [30464:4576577] CHIP: [DMG] { [1635692170347] [30464:4576577] CHIP: - [DMG] AttributeStatusList = [1635692170347] [30464:4576577] CHIP: - [DMG] [ [1635692170347] [30464:4576577] CHIP: [DMG] AttributeStatusIB - = [1635692170347] [30464:4576577] CHIP: [DMG] { [1635692170347] - [30464:4576577] CHIP: [DMG] AttributePath = [1635692170347] - [30464:4576577] CHIP: [DMG] { [1635692170347] [30464:4576577] CHIP: - [DMG] FieldTag = 0x0000_0005, [1635692170347] [30464:4576577] CHIP: - [DMG] NodeId = 0x0, [1635692170347] [30464:4576577] CHIP: [DMG] - ClusterId = 0x28, [1635692170347] [30464:4576577] CHIP: [DMG] - EndpointId = 0x0, [1635692170347] [30464:4576577] CHIP: [DMG] } - [1635692170347] [30464:4576577] CHIP: [DMG] [1635692170347] - [30464:4576577] CHIP: [DMG] StatusIB = [1635692170347] [30464:4576577] - CHIP: [DMG] { [1635692170347] [30464:4576577] CHIP: [DMG] status = - 0x0, [1635692170347] [30464:4576577] CHIP: [DMG] }, [1635692170347] - [30464:4576577] CHIP: [DMG] [1635692170347] [30464:4576577] CHIP: - [DMG] }, [1635692170347] [30464:4576577] CHIP: [DMG] [1635692170347] - [30464:4576577] CHIP: [DMG] ], [1635692170347] [30464:4576577] CHIP: - [DMG] [1635692170347] [30464:4576577] CHIP: [DMG] } [1635692170347] - [30464:4576577] CHIP: [ZCL] WriteResponse: [1635692170347] - [30464:4576577] CHIP: [ZCL] status: Success (0x0000) [1635692170347] - [30464:4576577] CHIP: [TOO] Default Success Response [1635692170347] - [30464:4576577] CHIP: [DMG] WriteClient moving to [Uninitiali] - [1635692170347] [30464:4576577] CHIP: [EM] Sending Standalone Ack for - MessageCounter:1 on exchange 44858i Verify read attribute returns the - updated value written ./chip-tool basic read node-label 1 0 CHIP: [EM] - Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:1 on exchange 52334i [1635692600286] [30469:4578600] - CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on - exchange 52334i [1635692600286] [30469:4578600] CHIP: [EM] Removed - CHIP MessageCounter:0 from RetransTable on exchange 52334i + verification: | + Using your DUT controller, write attribute and read attribute to and from TH_CE + + Below is the example when using chip tool as controller + ./chip-tool basic write node-label te5new 2 0 + + CHIP: [EM] Received message of type 0x7 with protocolId (0, 1) and MessageCounter:1 on exchange 44858i + [1635692170347] [30464:4576577] CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 44858i + [1635692170347] [30464:4576577] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 44858i + [1635692170347] [30464:4576577] CHIP: [DMG] WriteResponse = + [1635692170347] [30464:4576577] CHIP: [DMG] { + [1635692170347] [30464:4576577] CHIP: [DMG] AttributeStatusList = + [1635692170347] [30464:4576577] CHIP: [DMG] [ + [1635692170347] [30464:4576577] CHIP: [DMG] AttributeStatusIB = + [1635692170347] [30464:4576577] CHIP: [DMG] { + [1635692170347] [30464:4576577] CHIP: [DMG] AttributePath = + [1635692170347] [30464:4576577] CHIP: [DMG] { + [1635692170347] [30464:4576577] CHIP: [DMG] FieldTag = 0x0000_0005, + [1635692170347] [30464:4576577] CHIP: [DMG] NodeId = 0x0, + [1635692170347] [30464:4576577] CHIP: [DMG] ClusterId = 0x28, + [1635692170347] [30464:4576577] CHIP: [DMG] EndpointId = 0x0, + [1635692170347] [30464:4576577] CHIP: [DMG] } + [1635692170347] [30464:4576577] CHIP: [DMG] + [1635692170347] [30464:4576577] CHIP: [DMG] StatusIB = + [1635692170347] [30464:4576577] CHIP: [DMG] { + [1635692170347] [30464:4576577] CHIP: [DMG] status = 0x0, + [1635692170347] [30464:4576577] CHIP: [DMG] }, + [1635692170347] [30464:4576577] CHIP: [DMG] + [1635692170347] [30464:4576577] CHIP: [DMG] }, + [1635692170347] [30464:4576577] CHIP: [DMG] + [1635692170347] [30464:4576577] CHIP: [DMG] ], + [1635692170347] [30464:4576577] CHIP: [DMG] + [1635692170347] [30464:4576577] CHIP: [DMG] } + [1635692170347] [30464:4576577] CHIP: [ZCL] WriteResponse: + [1635692170347] [30464:4576577] CHIP: [ZCL] status: Success (0x0000) + [1635692170347] [30464:4576577] CHIP: [TOO] Default Success Response + [1635692170347] [30464:4576577] CHIP: [DMG] WriteClient moving to [Uninitiali] + [1635692170347] [30464:4576577] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 44858i + + Verify read attribute returns the updated value written + + ./chip-tool basic read node-label 1 0 + + CHIP: [EM] Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 52334i + [1635692600286] [30469:4578600] CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 52334i + [1635692600286] [30469:4578600] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 52334i [1635692600286] [30469:4578600] CHIP: [DMG] ReportData = - [1635692600286] [30469:4578600] CHIP: [DMG] { [1635692600286] - [30469:4578600] CHIP: [DMG] AttributeDataList = [1635692600286] - [30469:4578600] CHIP: [DMG] [ [1635692600286] [30469:4578600] CHIP: - [DMG] AttributeDataElement = [1635692600286] [30469:4578600] CHIP: - [DMG] { [1635692600286] [30469:4578600] CHIP: [DMG] AttributePath = - [1635692600286] [30469:4578600] CHIP: [DMG] { [1635692600286] - [30469:4578600] CHIP: [DMG] NodeId = 0x1, [1635692600286] - [30469:4578600] CHIP: [DMG] EndpointId = 0x0, [1635692600286] - [30469:4578600] CHIP: [DMG] ClusterId = 0x28, [1635692600286] - [30469:4578600] CHIP: [DMG] FieldTag = 0x0000_0005, [1635692600286] - [30469:4578600] CHIP: [DMG] } [1635692600286] [30469:4578600] CHIP: - [DMG] [1635692600286] [30469:4578600] CHIP: [DMG] Data = 'te5new', - [1635692600286] [30469:4578600] CHIP: [DMG] DataElementVersion = 0x0, - [1635692600286] [30469:4578600] CHIP: [DMG] }, [1635692600286] - [30469:4578600] CHIP: [DMG] [1635692600286] [30469:4578600] CHIP: - [DMG] ], [1635692600286] [30469:4578600] CHIP: [DMG] [1635692600286] - [30469:4578600] CHIP: [DMG] } [1635692600286] [30469:4578600] CHIP: - [ZCL] ReadAttributesResponse: [1635692600286] [30469:4578600] CHIP: - [ZCL] ClusterId: 0x0000_0028 [1635692600286] [30469:4578600] CHIP: - [ZCL] attributeId: 0x0000_0005 [1635692600286] [30469:4578600] CHIP: - [ZCL] status: Success (0x0000) [1635692600286] [30469:4578600] CHIP: - [ZCL] attribute TLV Type: 0x0c [1635692600286] [30469:4578600] CHIP: - [TOO] CharString attribute Response: te5new [1635692600286] - [30469:4578600] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on - exchange: 52334i" + [1635692600286] [30469:4578600] CHIP: [DMG] { + [1635692600286] [30469:4578600] CHIP: [DMG] AttributeDataList = + [1635692600286] [30469:4578600] CHIP: [DMG] [ + [1635692600286] [30469:4578600] CHIP: [DMG] AttributeDataElement = + [1635692600286] [30469:4578600] CHIP: [DMG] { + [1635692600286] [30469:4578600] CHIP: [DMG] AttributePath = + [1635692600286] [30469:4578600] CHIP: [DMG] { + [1635692600286] [30469:4578600] CHIP: [DMG] NodeId = 0x1, + [1635692600286] [30469:4578600] CHIP: [DMG] EndpointId = 0x0, + [1635692600286] [30469:4578600] CHIP: [DMG] ClusterId = 0x28, + [1635692600286] [30469:4578600] CHIP: [DMG] FieldTag = 0x0000_0005, + [1635692600286] [30469:4578600] CHIP: [DMG] } + [1635692600286] [30469:4578600] CHIP: [DMG] + [1635692600286] [30469:4578600] CHIP: [DMG] Data = "te5new", + [1635692600286] [30469:4578600] CHIP: [DMG] DataElementVersion = 0x0, + [1635692600286] [30469:4578600] CHIP: [DMG] }, + [1635692600286] [30469:4578600] CHIP: [DMG] + [1635692600286] [30469:4578600] CHIP: [DMG] ], + [1635692600286] [30469:4578600] CHIP: [DMG] + [1635692600286] [30469:4578600] CHIP: [DMG] } + [1635692600286] [30469:4578600] CHIP: [ZCL] ReadAttributesResponse: + [1635692600286] [30469:4578600] CHIP: [ZCL] ClusterId: 0x0000_0028 + [1635692600286] [30469:4578600] CHIP: [ZCL] attributeId: 0x0000_0005 + [1635692600286] [30469:4578600] CHIP: [ZCL] status: Success (0x0000) + [1635692600286] [30469:4578600] CHIP: [ZCL] attribute TLV Type: 0x0c + [1635692600286] [30469:4578600] CHIP: [TOO] CharString attribute Response: te5new + [1635692600286] [30469:4578600] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 52334i disabled: true - label: "DUT_CR2 reads the list of Fabrics on TH_CE" - verification: - "On your DUT controller read fabricList Below is the example using - chip tool as controller ./chip-tool operationalcredentials read - fabrics-list 1 0 CHIP: [DMG] } [1635692672664] [30472:4578967] CHIP: - [ZCL] ReadAttributesResponse: [1635692672664] [30472:4578967] CHIP: - [ZCL] ClusterId: 0x0000_003E [1635692672664] [30472:4578967] CHIP: - [ZCL] attributeId: 0x0000_0001 [1635692672664] [30472:4578967] CHIP: - [ZCL] status: Success (0x0000) [1635692672664] [30472:4578967] CHIP: - [ZCL] attribute TLV Type: 0x16 [1635692672664] [30472:4578967] CHIP: - [TOO] OnOperationalCredentialsFabricsListListAttributeResponse: 2 - entries [1635692672664] [30472:4578967] CHIP: [TOO] - FabricDescriptor[1]: [1635692672664] [30472:4578967] CHIP: [TOO] - fabricIndex: 1 [1635692672664] [30472:4578967] CHIP: [ZCL] - RootPublicKey: 65 [1635692672664] [30472:4578967] CHIP: [TOO] - vendorId: 62792 [1635692672664] [30472:4578967] CHIP: [TOO] fabricId: - 0 [1635692672664] [30472:4578967] CHIP: [TOO] nodeId: 1 - [1635692672664] [30472:4578967] CHIP: [ZCL] Label: [1635692672664] - [30472:4578967] CHIP: [TOO] FabricDescriptor[2]: [1635692672664] - [30472:4578967] CHIP: [TOO] fabricIndex: 2 [1635692672664] - [30472:4578967] CHIP: [ZCL] RootPublicKey: 65 [1635692672664] - [30472:4578967] CHIP: [TOO] vendorId: 0 [1635692672664] - [30472:4578967] CHIP: [TOO] fabricId: 0 [1635692672664] - [30472:4578967] CHIP: [TOO] nodeId: 1 [1635692672664] [30472:4578967] - CHIP: [ZCL] Label: [1635692672664] [30472:4578967] CHIP: [EM] - Piggybacking Ack for MessageCounter:1 on exchange: 42395i" - disabled: true + verification: | + On your DUT controller read fabricList + + Below is the example using chip tool as controller - - label: "" - verification: - "On the raspi , Verify if the DUT is broadcasting using $ avahi-browse - -rt _matter._tcp" + ./chip-tool operationalcredentials read fabrics-list 1 0 + + CHIP: [DMG] } + [1635692672664] [30472:4578967] CHIP: [ZCL] ReadAttributesResponse: + [1635692672664] [30472:4578967] CHIP: [ZCL] ClusterId: 0x0000_003E + [1635692672664] [30472:4578967] CHIP: [ZCL] attributeId: 0x0000_0001 + [1635692672664] [30472:4578967] CHIP: [ZCL] status: Success (0x0000) + [1635692672664] [30472:4578967] CHIP: [ZCL] attribute TLV Type: 0x16 + [1635692672664] [30472:4578967] CHIP: [TOO] OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635692672664] [30472:4578967] CHIP: [TOO] FabricDescriptor[1]: + [1635692672664] [30472:4578967] CHIP: [TOO] fabricIndex: 1 + [1635692672664] [30472:4578967] CHIP: [ZCL] RootPublicKey: 65 + [1635692672664] [30472:4578967] CHIP: [TOO] vendorId: 62792 + [1635692672664] [30472:4578967] CHIP: [TOO] fabricId: 0 + [1635692672664] [30472:4578967] CHIP: [TOO] nodeId: 1 + [1635692672664] [30472:4578967] CHIP: [ZCL] Label: + [1635692672664] [30472:4578967] CHIP: [TOO] FabricDescriptor[2]: + [1635692672664] [30472:4578967] CHIP: [TOO] fabricIndex: 2 + [1635692672664] [30472:4578967] CHIP: [ZCL] RootPublicKey: 65 + [1635692672664] [30472:4578967] CHIP: [TOO] vendorId: 0 + [1635692672664] [30472:4578967] CHIP: [TOO] fabricId: 0 + [1635692672664] [30472:4578967] CHIP: [TOO] nodeId: 1 + [1635692672664] [30472:4578967] CHIP: [ZCL] Label: + [1635692672664] [30472:4578967] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 42395i disabled: true - label: "TH_CR1 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE using CASE" - verification: - "On 1st controller using chip tool, write attribute and read attribute - ./chip-tool basic write node-label te5new 1 0 CHIP:DMG: WriteResponse - = [1635693016.169157][3871:3876] CHIP:DMG: { - [1635693016.169189][3871:3876] CHIP:DMG: AttributeStatusList = - [1635693016.169227][3871:3876] CHIP:DMG: [ - [1635693016.169263][3871:3876] CHIP:DMG: AttributeStatusIB = - [1635693016.169312][3871:3876] CHIP:DMG: { - [1635693016.169351][3871:3876] CHIP:DMG: AttributePath = - [1635693016.169397][3871:3876] CHIP:DMG: { - [1635693016.169444][3871:3876] CHIP:DMG: FieldTag = 0x0000_0005, - [1635693016.169499][3871:3876] CHIP:DMG: NodeId = 0x0, - [1635693016.169549][3871:3876] CHIP:DMG: ClusterId = 0x28, - [1635693016.169596][3871:3876] CHIP:DMG: EndpointId = 0x0, - [1635693016.169646][3871:3876] CHIP:DMG: } + verification: | + On 1st controller using chip tool, write attribute and read attribute + + ./chip-tool basic write node-label te5new 1 0 + + CHIP:DMG: WriteResponse = + [1635693016.169157][3871:3876] CHIP:DMG: { + [1635693016.169189][3871:3876] CHIP:DMG: AttributeStatusList = + [1635693016.169227][3871:3876] CHIP:DMG: [ + [1635693016.169263][3871:3876] CHIP:DMG: AttributeStatusIB = + [1635693016.169312][3871:3876] CHIP:DMG: { + [1635693016.169351][3871:3876] CHIP:DMG: AttributePath = + [1635693016.169397][3871:3876] CHIP:DMG: { + [1635693016.169444][3871:3876] CHIP:DMG: FieldTag = 0x0000_0005, + [1635693016.169499][3871:3876] CHIP:DMG: NodeId = 0x0, + [1635693016.169549][3871:3876] CHIP:DMG: ClusterId = 0x28, + [1635693016.169596][3871:3876] CHIP:DMG: EndpointId = 0x0, + [1635693016.169646][3871:3876] CHIP:DMG: } [1635693016.169695][3871:3876] CHIP:DMG: - [1635693016.169736][3871:3876] CHIP:DMG: StatusIB = - [1635693016.169787][3871:3876] CHIP:DMG: { - [1635693016.169831][3871:3876] CHIP:DMG: status = 0x0, - [1635693016.169877][3871:3876] CHIP:DMG: }, + [1635693016.169736][3871:3876] CHIP:DMG: StatusIB = + [1635693016.169787][3871:3876] CHIP:DMG: { + [1635693016.169831][3871:3876] CHIP:DMG: status = 0x0, + [1635693016.169877][3871:3876] CHIP:DMG: }, [1635693016.169928][3871:3876] CHIP:DMG: - [1635693016.169967][3871:3876] CHIP:DMG: }, + [1635693016.169967][3871:3876] CHIP:DMG: }, [1635693016.170014][3871:3876] CHIP:DMG: - [1635693016.170049][3871:3876] CHIP:DMG: ], + [1635693016.170049][3871:3876] CHIP:DMG: ], [1635693016.170092][3871:3876] CHIP:DMG: [1635693016.170125][3871:3876] CHIP:DMG: } [1635693016.170199][3871:3876] CHIP:ZCL: WriteResponse: - [1635693016.170232][3871:3876] CHIP:ZCL: status: Success (0x0000) + [1635693016.170232][3871:3876] CHIP:ZCL: status: Success (0x0000) [1635693016.170267][3871:3876] CHIP:TOO: Default Success Response - [1635693016.170333][3871:3876] CHIP:DMG: WriteClient moving to - [Uninitiali] [1635693016.170370][3871:3876] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 11798i Verify read - attribute returns the updated value written ./chip-tool basic read - node-label 1 0 CHIP:DMG: ReportData = [1635693045.341772][3879:3884] - CHIP:DMG: { [1635693045.341805][3879:3884] CHIP:DMG: AttributeDataList - = [1635693045.341843][3879:3884] CHIP:DMG: [ - [1635693045.341880][3879:3884] CHIP:DMG: AttributeDataElement = - [1635693045.341925][3879:3884] CHIP:DMG: { - [1635693045.341963][3879:3884] CHIP:DMG: AttributePath = - [1635693045.342006][3879:3884] CHIP:DMG: { - [1635693045.342046][3879:3884] CHIP:DMG: NodeId = 0x1, - [1635693045.342092][3879:3884] CHIP:DMG: EndpointId = 0x0, - [1635693045.342142][3879:3884] CHIP:DMG: ClusterId = 0x28, - [1635693045.342187][3879:3884] CHIP:DMG: FieldTag = 0x0000_0005, - [1635693045.342238][3879:3884] CHIP:DMG: } + [1635693016.170333][3871:3876] CHIP:DMG: WriteClient moving to [Uninitiali] + [1635693016.170370][3871:3876] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 11798i + + Verify read attribute returns the updated value written + ./chip-tool basic read node-label 1 0 + + CHIP:DMG: ReportData = + [1635693045.341772][3879:3884] CHIP:DMG: { + [1635693045.341805][3879:3884] CHIP:DMG: AttributeDataList = + [1635693045.341843][3879:3884] CHIP:DMG: [ + [1635693045.341880][3879:3884] CHIP:DMG: AttributeDataElement = + [1635693045.341925][3879:3884] CHIP:DMG: { + [1635693045.341963][3879:3884] CHIP:DMG: AttributePath = + [1635693045.342006][3879:3884] CHIP:DMG: { + [1635693045.342046][3879:3884] CHIP:DMG: NodeId = 0x1, + [1635693045.342092][3879:3884] CHIP:DMG: EndpointId = 0x0, + [1635693045.342142][3879:3884] CHIP:DMG: ClusterId = 0x28, + [1635693045.342187][3879:3884] CHIP:DMG: FieldTag = 0x0000_0005, + [1635693045.342238][3879:3884] CHIP:DMG: } [1635693045.342289][3879:3884] CHIP:DMG: - [1635693045.342339][3879:3884] CHIP:DMG: Data = 'te5new', - [1635693045.342386][3879:3884] CHIP:DMG: DataElementVersion = 0x0, - [1635693045.342429][3879:3884] CHIP:DMG: }, + [1635693045.342339][3879:3884] CHIP:DMG: Data = "te5new", + [1635693045.342386][3879:3884] CHIP:DMG: DataElementVersion = 0x0, + [1635693045.342429][3879:3884] CHIP:DMG: }, [1635693045.342473][3879:3884] CHIP:DMG: - [1635693045.342509][3879:3884] CHIP:DMG: ], + [1635693045.342509][3879:3884] CHIP:DMG: ], [1635693045.342551][3879:3884] CHIP:DMG: [1635693045.342584][3879:3884] CHIP:DMG: } [1635693045.342688][3879:3884] CHIP:ZCL: ReadAttributesResponse: - [1635693045.342720][3879:3884] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635693045.342756][3879:3884] CHIP:ZCL: attributeId: 0x0000_0005 - [1635693045.342786][3879:3884] CHIP:ZCL: status: Success (0x0000) - [1635693045.342816][3879:3884] CHIP:ZCL: attribute TLV Type: 0x0c - [1635693045.342851][3879:3884] CHIP:TOO: CharString attribute - Response: te5new [1635693045.343045][3879:3884] CHIP:EM: Piggybacking - Ack for MessageCounter:1 on exchange: 49307i" + [1635693045.342720][3879:3884] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635693045.342756][3879:3884] CHIP:ZCL: attributeId: 0x0000_0005 + [1635693045.342786][3879:3884] CHIP:ZCL: status: Success (0x0000) + [1635693045.342816][3879:3884] CHIP:ZCL: attribute TLV Type: 0x0c + [1635693045.342851][3879:3884] CHIP:TOO: CharString attribute Response: te5new + [1635693045.343045][3879:3884] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 49307i disabled: true - label: "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "Using your DUT controller, write attribute and read attribute to and - from TH_CE Below is an example of using chip tool as controller - ./chip-tool basic write node-label te5new 2 0 CHIP: [EM] Rxd Ack; - Removing MessageCounter:0 from Retrans Table on exchange 51363i - [1635693100458] [30494:4580771] CHIP: [EM] Removed CHIP - MessageCounter:0 from RetransTable on exchange 51363i [1635693100458] - [30494:4580771] CHIP: [DMG] WriteResponse = [1635693100458] - [30494:4580771] CHIP: [DMG] { [1635693100458] [30494:4580771] CHIP: - [DMG] AttributeStatusList = [1635693100458] [30494:4580771] CHIP: - [DMG] [ [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusIB - = [1635693100458] [30494:4580771] CHIP: [DMG] { [1635693100458] - [30494:4580771] CHIP: [DMG] AttributePath = [1635693100458] - [30494:4580771] CHIP: [DMG] { [1635693100458] [30494:4580771] CHIP: - [DMG] FieldTag = 0x0000_0005, [1635693100458] [30494:4580771] CHIP: - [DMG] NodeId = 0x0, [1635693100458] [30494:4580771] CHIP: [DMG] - ClusterId = 0x28, [1635693100458] [30494:4580771] CHIP: [DMG] - EndpointId = 0x0, [1635693100458] [30494:4580771] CHIP: [DMG] } - [1635693100458] [30494:4580771] CHIP: [DMG] [1635693100458] - [30494:4580771] CHIP: [DMG] StatusIB = [1635693100458] [30494:4580771] - CHIP: [DMG] { [1635693100458] [30494:4580771] CHIP: [DMG] status = - 0x0, [1635693100458] [30494:4580771] CHIP: [DMG] }, [1635693100458] - [30494:4580771] CHIP: [DMG] [1635693100458] [30494:4580771] CHIP: - [DMG] }, [1635693100458] [30494:4580771] CHIP: [DMG] [1635693100458] - [30494:4580771] CHIP: [DMG] ], [1635693100458] [30494:4580771] CHIP: - [DMG] [1635693100458] [30494:4580771] CHIP: [DMG] } [1635693100458] - [30494:4580771] CHIP: [ZCL] WriteResponse: [1635693100458] - [30494:4580771] CHIP: [ZCL] status: Success (0x0000) [1635693100458] - [30494:4580771] CHIP: [TOO] Default Success Response [1635693100458] - [30494:4580771] CHIP: [DMG] WriteClient moving to [Uninitiali] - [1635693100458] [30494:4580771] CHIP: [EM] Sending Standalone Ack for - MessageCounter:1 on exchange 51363i Verify read attribute returns the - updated value written ./chip-tool basic read node-label 2 0 CHIP: [EM] - Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange - 6848i [1635693130217] [30496:4581003] CHIP: [EM] Removed CHIP - MessageCounter:0 from RetransTable on exchange 6848i [1635693130217] - [30496:4581003] CHIP: [DMG] ReportData = [1635693130217] - [30496:4581003] CHIP: [DMG] { [1635693130217] [30496:4581003] CHIP: - [DMG] AttributeDataList = [1635693130217] [30496:4581003] CHIP: [DMG] - [ [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataElement = - [1635693130217] [30496:4581003] CHIP: [DMG] { [1635693130217] - [30496:4581003] CHIP: [DMG] AttributePath = [1635693130217] - [30496:4581003] CHIP: [DMG] { [1635693130217] [30496:4581003] CHIP: - [DMG] NodeId = 0x1, [1635693130217] [30496:4581003] CHIP: [DMG] - EndpointId = 0x0, [1635693130217] [30496:4581003] CHIP: [DMG] - ClusterId = 0x28, [1635693130217] [30496:4581003] CHIP: [DMG] FieldTag - = 0x0000_0005, [1635693130217] [30496:4581003] CHIP: [DMG] } - [1635693130217] [30496:4581003] CHIP: [DMG] [1635693130217] - [30496:4581003] CHIP: [DMG] Data = 'te5new', [1635693130217] - [30496:4581003] CHIP: [DMG] DataElementVersion = 0x0, [1635693130217] - [30496:4581003] CHIP: [DMG] }, [1635693130217] [30496:4581003] CHIP: - [DMG] [1635693130217] [30496:4581003] CHIP: [DMG] ], [1635693130217] - [30496:4581003] CHIP: [DMG] [1635693130217] [30496:4581003] CHIP: - [DMG] } [1635693130217] [30496:4581003] CHIP: [ZCL] - ReadAttributesResponse: [1635693130217] [30496:4581003] CHIP: [ZCL] - ClusterId: 0x0000_0028 [1635693130217] [30496:4581003] CHIP: [ZCL] - attributeId: 0x0000_0005 [1635693130217] [30496:4581003] CHIP: [ZCL] - status: Success (0x0000) [1635693130217] [30496:4581003] CHIP: [ZCL] - attribute TLV Type: 0x0c [1635693130218] [30496:4581003] CHIP: [TOO] - CharString attribute Response: te5new [1635693130218] [30496:4581003] - CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 6848i" + verification: | + Using your DUT controller, write attribute and read attribute to and from TH_CE + + Below is an example of using chip tool as controller + + ./chip-tool basic write node-label te5new 2 0 + + CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51363i + [1635693100458] [30494:4580771] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 51363i + [1635693100458] [30494:4580771] CHIP: [DMG] WriteResponse = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusList = + [1635693100458] [30494:4580771] CHIP: [DMG] [ + [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusIB = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] AttributePath = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] FieldTag = 0x0000_0005, + [1635693100458] [30494:4580771] CHIP: [DMG] NodeId = 0x0, + [1635693100458] [30494:4580771] CHIP: [DMG] ClusterId = 0x28, + [1635693100458] [30494:4580771] CHIP: [DMG] EndpointId = 0x0, + [1635693100458] [30494:4580771] CHIP: [DMG] } + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] StatusIB = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] status = 0x0, + [1635693100458] [30494:4580771] CHIP: [DMG] }, + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] }, + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] ], + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] } + [1635693100458] [30494:4580771] CHIP: [ZCL] WriteResponse: + [1635693100458] [30494:4580771] CHIP: [ZCL] status: Success (0x0000) + [1635693100458] [30494:4580771] CHIP: [TOO] Default Success Response + [1635693100458] [30494:4580771] CHIP: [DMG] WriteClient moving to [Uninitiali] + [1635693100458] [30494:4580771] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 51363i + + Verify read attribute returns the updated value written + + ./chip-tool basic read node-label 2 0 + + CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 6848i + [1635693130217] [30496:4581003] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 6848i + [1635693130217] [30496:4581003] CHIP: [DMG] ReportData = + [1635693130217] [30496:4581003] CHIP: [DMG] { + [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataList = + [1635693130217] [30496:4581003] CHIP: [DMG] [ + [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataElement = + [1635693130217] [30496:4581003] CHIP: [DMG] { + [1635693130217] [30496:4581003] CHIP: [DMG] AttributePath = + [1635693130217] [30496:4581003] CHIP: [DMG] { + [1635693130217] [30496:4581003] CHIP: [DMG] NodeId = 0x1, + [1635693130217] [30496:4581003] CHIP: [DMG] EndpointId = 0x0, + [1635693130217] [30496:4581003] CHIP: [DMG] ClusterId = 0x28, + [1635693130217] [30496:4581003] CHIP: [DMG] FieldTag = 0x0000_0005, + [1635693130217] [30496:4581003] CHIP: [DMG] } + [1635693130217] [30496:4581003] CHIP: [DMG] + [1635693130217] [30496:4581003] CHIP: [DMG] Data = "te5new", + [1635693130217] [30496:4581003] CHIP: [DMG] DataElementVersion = 0x0, + [1635693130217] [30496:4581003] CHIP: [DMG] }, + [1635693130217] [30496:4581003] CHIP: [DMG] + [1635693130217] [30496:4581003] CHIP: [DMG] ], + [1635693130217] [30496:4581003] CHIP: [DMG] + [1635693130217] [30496:4581003] CHIP: [DMG] } + [1635693130217] [30496:4581003] CHIP: [ZCL] ReadAttributesResponse: + [1635693130217] [30496:4581003] CHIP: [ZCL] ClusterId: 0x0000_0028 + [1635693130217] [30496:4581003] CHIP: [ZCL] attributeId: 0x0000_0005 + [1635693130217] [30496:4581003] CHIP: [ZCL] status: Success (0x0000) + [1635693130217] [30496:4581003] CHIP: [ZCL] attribute TLV Type: 0x0c + [1635693130218] [30496:4581003] CHIP: [TOO] CharString attribute Response: te5new + [1635693130218] [30496:4581003] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 6848i disabled: true - label: "Turn off TH_CR1" - verification: - "No need to do anything as chip-tool process exits after each command" + verification: | + No need to do anything as chip-tool process exits after each command disabled: true - label: "DUT_CR2 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM (Enhanced Commissioning Method)" - verification: - "1. Using your DUT controller open commissioning window using ECM - Below is an example when using chip tool as controller ./chip-tool - pairing open-commissionig-window 2 1 300 1000 3840 CHIP: [IN] Prepared - encrypted message 0x124012e80 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 50829i with MessageCounter:0. - [1635693418549] [30519:4583024] CHIP: [IN] Sending encrypted msg - 0x124012e80 with MessageCounter:0 to 0x0000000000000001 at monotonic - time: 5995099243 msec [1635693418549] [30519:4583024] CHIP: [DMG] ICR - moving to [CommandSen] [1635693418549] [30519:4583024] CHIP: [CTL] - Manual pairing code: [34995354639] [1635693418550] [30519:4583024] - CHIP: [CTL] SetupQRCode: [MT:00000CQM00YND84XX10] [1635693418550] - [30519:4583024] CHIP: [EM] Sending Standalone Ack for - MessageCounter:3441918415 on exchange 50828i [1635693418550] - [30519:4583024] CHIP: [IN] Prepared plaintext message 0x16b92d198 to - 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange - 50828i with MessageCounter:3727034150. [1635693418550] [30519:4583024] - CHIP: [IN] Sending plaintext msg 0x16b92d198 with Mes" + verification: | + 1. Using your DUT controller open commissioning window using ECM + + Below is an example when using chip tool as controller + ./chip-tool pairing open-commissionig-window 2 1 300 1000 3840 + + CHIP: [IN] Prepared encrypted message 0x124012e80 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 50829i with MessageCounter:0. + [1635693418549] [30519:4583024] CHIP: [IN] Sending encrypted msg 0x124012e80 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 5995099243 msec + [1635693418549] [30519:4583024] CHIP: [DMG] ICR moving to [CommandSen] + [1635693418549] [30519:4583024] CHIP: [CTL] Manual pairing code: [34995354639] + [1635693418550] [30519:4583024] CHIP: [CTL] SetupQRCode: [MT:00000CQM00YND84XX10] + [1635693418550] [30519:4583024] CHIP: [EM] Sending Standalone Ack for MessageCounter:3441918415 on exchange 50828i + [1635693418550] [30519:4583024] CHIP: [IN] Prepared plaintext message 0x16b92d198 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 50828i with MessageCounter:3727034150. + [1635693418550] [30519:4583024] CHIP: [IN] Sending plaintext msg 0x16b92d198 with Mes disabled: true - label: "DUT_CR2 revokes the commissioning window on TH_CE using the Revoke Commissioning command" - verification: - "On your DUT controller, run revoke command Below is an example when - using chip tool as controller ./chip-tool administratorcommissioning - revoke-commissioning 2 0 CHIP: [EM] Rxd Ack; Removing MessageCounter:0 - from Retrans Table on exchange 55209i [1635693494790] [30525:4583596] - CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange - 55209i [1635693494790] [30525:4583596] CHIP: [DMG] InvokeCommand = - [1635693494791] [30525:4583596] CHIP: [DMG] { [1635693494791] - [30525:4583596] CHIP: [DMG] CommandList = [1635693494791] - [30525:4583596] CHIP: [DMG] [ [1635693494791] [30525:4583596] CHIP: - [DMG] CommandDataIB = [1635693494791] [30525:4583596] CHIP: [DMG] { - [1635693494791] [30525:4583596] CHIP: [DMG] CommandPathIB = - [1635693494791] [30525:4583596] CHIP: [DMG] { [1635693494791] - [30525:4583596] CHIP: [DMG] EndpointId = 0x0, [1635693494791] - [30525:4583596] CHIP: [DMG] ClusterId = 0x3c, [1635693494791] - [30525:4583596] CHIP: [DMG] CommandId = 0x2, [1635693494791] - [30525:4583596] CHIP: [DMG] }, [1635693494791] [30525:4583596] CHIP: - [DMG] [1635693494791] [30525:4583596] CHIP: [DMG] StatusIB = - [1635693494791] [30525:4583596] CHIP: [DMG] { [1635693494791] - [30525:4583596] CHIP: [DMG] status = 0x0, [1635693494791] - [30525:4583596] CHIP: [DMG] }, [1635693494791] [30525:4583596] CHIP: - [DMG] [1635693494791] [30525:4583596] CHIP: [DMG] }, [1635693494791] - [30525:4583596] CHIP: [DMG] [1635693494791] [30525:4583596] CHIP: - [DMG] ], [1635693494791] [30525:4583596] CHIP: [DMG] [1635693494791] - [30525:4583596] CHIP: [DMG] } [1635693494791] [30525:4583596] CHIP: - [DMG] Received Command Response Status for Endpoint=0 - Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 [1635693494791] - [30525:4583596] CHIP: [TOO] Default Success Response [1635693494791] - [30525:4583596] CHIP: [DMG] ICR moving to [AwaitingDe] [1635693494791] - [30525:4583596] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 - on exchange 55209i [1635693494791] [30525:4583596] CHIP: [IN] Prepared - encrypted message 0x16f21d008 to 0x0000000000000001 of type 0x10 and - protocolId (0, 0) on exchange 55209i with MessageCounter:1." + verification: | + On your DUT controller, run revoke command + + Below is an example when using chip tool as controller + + ./chip-tool administratorcommissioning revoke-commissioning 2 0 + + CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 55209i + [1635693494790] [30525:4583596] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 55209i + [1635693494790] [30525:4583596] CHIP: [DMG] InvokeCommand = + [1635693494791] [30525:4583596] CHIP: [DMG] { + [1635693494791] [30525:4583596] CHIP: [DMG] CommandList = + [1635693494791] [30525:4583596] CHIP: [DMG] [ + [1635693494791] [30525:4583596] CHIP: [DMG] CommandDataIB = + [1635693494791] [30525:4583596] CHIP: [DMG] { + [1635693494791] [30525:4583596] CHIP: [DMG] CommandPathIB = + [1635693494791] [30525:4583596] CHIP: [DMG] { + [1635693494791] [30525:4583596] CHIP: [DMG] EndpointId = 0x0, + [1635693494791] [30525:4583596] CHIP: [DMG] ClusterId = 0x3c, + [1635693494791] [30525:4583596] CHIP: [DMG] CommandId = 0x2, + [1635693494791] [30525:4583596] CHIP: [DMG] }, + [1635693494791] [30525:4583596] CHIP: [DMG] + [1635693494791] [30525:4583596] CHIP: [DMG] StatusIB = + [1635693494791] [30525:4583596] CHIP: [DMG] { + [1635693494791] [30525:4583596] CHIP: [DMG] status = 0x0, + [1635693494791] [30525:4583596] CHIP: [DMG] }, + [1635693494791] [30525:4583596] CHIP: [DMG] + [1635693494791] [30525:4583596] CHIP: [DMG] }, + [1635693494791] [30525:4583596] CHIP: [DMG] + [1635693494791] [30525:4583596] CHIP: [DMG] ], + [1635693494791] [30525:4583596] CHIP: [DMG] + [1635693494791] [30525:4583596] CHIP: [DMG] } + [1635693494791] [30525:4583596] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635693494791] [30525:4583596] CHIP: [TOO] Default Success Response + [1635693494791] [30525:4583596] CHIP: [DMG] ICR moving to [AwaitingDe] + [1635693494791] [30525:4583596] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 55209i + [1635693494791] [30525:4583596] CHIP: [IN] Prepared encrypted message 0x16f21d008 to 0x0000000000000001 of type 0x10 and protocolId (0, 0) on exchange 55209i with MessageCounter:1. disabled: true - label: "TH_CR3 attempts to execute a PASE to starts a commissioning process with TH_CE" - verification: - "On 3rd controller using chip-tool connect using manual code generated - from 1st controller. This attempt should fail, i.e ./chip-tool pairing - manualcode 1 34995354639" + verification: | + On 3rd controller using chip-tool connect using manual code generated from 1st controller. This attempt should fail, i.e + ./chip-tool pairing manualcode 1 34995354639 disabled: true - label: "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "Using your DUT controller, write attribute and read attribute to and - from TH_CE Below is the example using chip tool as controller - ./chip-tool basic write node-label te5new 2 0 CHIP: [EM] Rxd Ack; - Removing MessageCounter:0 from Retrans Table on exchange 51363i - [1635693100458] [30494:4580771] CHIP: [EM] Removed CHIP - MessageCounter:0 from RetransTable on exchange 51363i [1635693100458] - [30494:4580771] CHIP: [DMG] WriteResponse = [1635693100458] - [30494:4580771] CHIP: [DMG] { [1635693100458] [30494:4580771] CHIP: - [DMG] AttributeStatusList = [1635693100458] [30494:4580771] CHIP: - [DMG] [ [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusIB - = [1635693100458] [30494:4580771] CHIP: [DMG] { [1635693100458] - [30494:4580771] CHIP: [DMG] AttributePath = [1635693100458] - [30494:4580771] CHIP: [DMG] { [1635693100458] [30494:4580771] CHIP: - [DMG] FieldTag = 0x0000_0005, [1635693100458] [30494:4580771] CHIP: - [DMG] NodeId = 0x0, [1635693100458] [30494:4580771] CHIP: [DMG] - ClusterId = 0x28, [1635693100458] [30494:4580771] CHIP: [DMG] - EndpointId = 0x0, [1635693100458] [30494:4580771] CHIP: [DMG] } - [1635693100458] [30494:4580771] CHIP: [DMG] [1635693100458] - [30494:4580771] CHIP: [DMG] StatusIB = [1635693100458] [30494:4580771] - CHIP: [DMG] { [1635693100458] [30494:4580771] CHIP: [DMG] status = - 0x0, [1635693100458] [30494:4580771] CHIP: [DMG] }, [1635693100458] - [30494:4580771] CHIP: [DMG] [1635693100458] [30494:4580771] CHIP: - [DMG] }, [1635693100458] [30494:4580771] CHIP: [DMG] [1635693100458] - [30494:4580771] CHIP: [DMG] ], [1635693100458] [30494:4580771] CHIP: - [DMG] [1635693100458] [30494:4580771] CHIP: [DMG] } [1635693100458] - [30494:4580771] CHIP: [ZCL] WriteResponse: [1635693100458] - [30494:4580771] CHIP: [ZCL] status: Success (0x0000) [1635693100458] - [30494:4580771] CHIP: [TOO] Default Success Response [1635693100458] - [30494:4580771] CHIP: [DMG] WriteClient moving to [Uninitiali] - [1635693100458] [30494:4580771] CHIP: [EM] Sending Standalone Ack for - MessageCounter:1 on exchange 51363i Verify read attribute returns the - updated value written ./chip-tool basic read user-label 2 0 CHIP: [EM] - Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange - 6848i [1635693130217] [30496:4581003] CHIP: [EM] Removed CHIP - MessageCounter:0 from RetransTable on exchange 6848i [1635693130217] - [30496:4581003] CHIP: [DMG] ReportData = [1635693130217] - [30496:4581003] CHIP: [DMG] { [1635693130217] [30496:4581003] CHIP: - [DMG] AttributeDataList = [1635693130217] [30496:4581003] CHIP: [DMG] - [ [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataElement = - [1635693130217] [30496:4581003] CHIP: [DMG] { [1635693130217] - [30496:4581003] CHIP: [DMG] AttributePath = [1635693130217] - [30496:4581003] CHIP: [DMG] { [1635693130217] [30496:4581003] CHIP: - [DMG] NodeId = 0x1, [1635693130217] [30496:4581003] CHIP: [DMG] - EndpointId = 0x0, [1635693130217] [30496:4581003] CHIP: [DMG] - ClusterId = 0x28, [1635693130217] [30496:4581003] CHIP: [DMG] FieldTag - = 0x0000_0005, [1635693130217] [30496:4581003] CHIP: [DMG] } - [1635693130217] [30496:4581003] CHIP: [DMG] [1635693130217] - [30496:4581003] CHIP: [DMG] Data = 'te5new', [1635693130217] - [30496:4581003] CHIP: [DMG] DataElementVersion = 0x0, [1635693130217] - [30496:4581003] CHIP: [DMG] }, [1635693130217] [30496:4581003] CHIP: - [DMG] [1635693130217] [30496:4581003] CHIP: [DMG] ], [1635693130217] - [30496:4581003] CHIP: [DMG] [1635693130217] [30496:4581003] CHIP: - [DMG] } [1635693130217] [30496:4581003] CHIP: [ZCL] - ReadAttributesResponse: [1635693130217] [30496:4581003] CHIP: [ZCL] - ClusterId: 0x0000_0028 [1635693130217] [30496:4581003] CHIP: [ZCL] - attributeId: 0x0000_0005 [1635693130217] [30496:4581003] CHIP: [ZCL] - status: Success (0x0000) [1635693130217] [30496:4581003] CHIP: [ZCL] - attribute TLV Type: 0x0c [1635693130218] [30496:4581003] CHIP: [TOO] - CharString attribute Response: te5new [1635693130218] [30496:4581003] - CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 6848i" + verification: | + Using your DUT controller, write attribute and read attribute to and from TH_CE + + Below is the example using chip tool as controller + + ./chip-tool basic write node-label te5new 2 0 + + CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51363i + [1635693100458] [30494:4580771] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 51363i + [1635693100458] [30494:4580771] CHIP: [DMG] WriteResponse = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusList = + [1635693100458] [30494:4580771] CHIP: [DMG] [ + [1635693100458] [30494:4580771] CHIP: [DMG] AttributeStatusIB = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] AttributePath = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] FieldTag = 0x0000_0005, + [1635693100458] [30494:4580771] CHIP: [DMG] NodeId = 0x0, + [1635693100458] [30494:4580771] CHIP: [DMG] ClusterId = 0x28, + [1635693100458] [30494:4580771] CHIP: [DMG] EndpointId = 0x0, + [1635693100458] [30494:4580771] CHIP: [DMG] } + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] StatusIB = + [1635693100458] [30494:4580771] CHIP: [DMG] { + [1635693100458] [30494:4580771] CHIP: [DMG] status = 0x0, + [1635693100458] [30494:4580771] CHIP: [DMG] }, + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] }, + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] ], + [1635693100458] [30494:4580771] CHIP: [DMG] + [1635693100458] [30494:4580771] CHIP: [DMG] } + [1635693100458] [30494:4580771] CHIP: [ZCL] WriteResponse: + [1635693100458] [30494:4580771] CHIP: [ZCL] status: Success (0x0000) + [1635693100458] [30494:4580771] CHIP: [TOO] Default Success Response + [1635693100458] [30494:4580771] CHIP: [DMG] WriteClient moving to [Uninitiali] + [1635693100458] [30494:4580771] CHIP: [EM] Sending Standalone Ack for MessageCounter:1 on exchange 51363i + + Verify read attribute returns the updated value written + + ./chip-tool basic read user-label 2 0 + + CHIP: [EM] Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 6848i + [1635693130217] [30496:4581003] CHIP: [EM] Removed CHIP MessageCounter:0 from RetransTable on exchange 6848i + [1635693130217] [30496:4581003] CHIP: [DMG] ReportData = + [1635693130217] [30496:4581003] CHIP: [DMG] { + [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataList = + [1635693130217] [30496:4581003] CHIP: [DMG] [ + [1635693130217] [30496:4581003] CHIP: [DMG] AttributeDataElement = + [1635693130217] [30496:4581003] CHIP: [DMG] { + [1635693130217] [30496:4581003] CHIP: [DMG] AttributePath = + [1635693130217] [30496:4581003] CHIP: [DMG] { + [1635693130217] [30496:4581003] CHIP: [DMG] NodeId = 0x1, + [1635693130217] [30496:4581003] CHIP: [DMG] EndpointId = 0x0, + [1635693130217] [30496:4581003] CHIP: [DMG] ClusterId = 0x28, + [1635693130217] [30496:4581003] CHIP: [DMG] FieldTag = 0x0000_0005, + [1635693130217] [30496:4581003] CHIP: [DMG] } + [1635693130217] [30496:4581003] CHIP: [DMG] + [1635693130217] [30496:4581003] CHIP: [DMG] Data = "te5new", + [1635693130217] [30496:4581003] CHIP: [DMG] DataElementVersion = 0x0, + [1635693130217] [30496:4581003] CHIP: [DMG] }, + [1635693130217] [30496:4581003] CHIP: [DMG] + [1635693130217] [30496:4581003] CHIP: [DMG] ], + [1635693130217] [30496:4581003] CHIP: [DMG] + [1635693130217] [30496:4581003] CHIP: [DMG] } + [1635693130217] [30496:4581003] CHIP: [ZCL] ReadAttributesResponse: + [1635693130217] [30496:4581003] CHIP: [ZCL] ClusterId: 0x0000_0028 + [1635693130217] [30496:4581003] CHIP: [ZCL] attributeId: 0x0000_0005 + [1635693130217] [30496:4581003] CHIP: [ZCL] status: Success (0x0000) + [1635693130217] [30496:4581003] CHIP: [ZCL] attribute TLV Type: 0x0c + [1635693130218] [30496:4581003] CHIP: [TOO] CharString attribute Response: te5new + [1635693130218] [30496:4581003] CHIP: [EM] Piggybacking Ack for MessageCounter:1 on exchange: 6848i disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_10.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_10.yaml index 4512a58ff9d9da..af86c1cb5ed809 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_10.yaml @@ -23,57 +23,58 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st python controller on the raspi (use - above instructions) " + verification: | + 1. Provision the device using 1st python controller on the raspi (use above instructions) disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On 1st controller using chip tool, open commissioning window using - BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 1 0 [1635871562.958905][4336:4341] - CHIP:DMG: InvokeCommand = [1635871562.958976][4336:4341] CHIP:DMG: { - [1635871562.959031][4336:4341] CHIP:DMG: CommandList = - [1635871562.959095][4336:4341] CHIP:DMG: [ - [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = - [1635871562.959225][4336:4341] CHIP:DMG: { - [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = - [1635871562.959368][4336:4341] CHIP:DMG: { - [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, - [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, - [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, - [1635871562.959698][4336:4341] CHIP:DMG: }, + verification: | + On 1st controller using chip tool, open commissioning window using BCM + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + + [1635871562.958905][4336:4341] CHIP:DMG: InvokeCommand = + [1635871562.958976][4336:4341] CHIP:DMG: { + [1635871562.959031][4336:4341] CHIP:DMG: CommandList = + [1635871562.959095][4336:4341] CHIP:DMG: [ + [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = + [1635871562.959225][4336:4341] CHIP:DMG: { + [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = + [1635871562.959368][4336:4341] CHIP:DMG: { + [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, + [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, + [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, + [1635871562.959698][4336:4341] CHIP:DMG: }, [1635871562.959776][4336:4341] CHIP:DMG: - [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = - [1635871562.959911][4336:4341] CHIP:DMG: { - [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, - [1635871562.960064][4336:4341] CHIP:DMG: }, + [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = + [1635871562.959911][4336:4341] CHIP:DMG: { + [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, + [1635871562.960064][4336:4341] CHIP:DMG: }, [1635871562.960313][4336:4341] CHIP:DMG: - [1635871562.960459][4336:4341] CHIP:DMG: }, + [1635871562.960459][4336:4341] CHIP:DMG: }, [1635871562.960544][4336:4341] CHIP:DMG: - [1635871562.960604][4336:4341] CHIP:DMG: ], + [1635871562.960604][4336:4341] CHIP:DMG: ], [1635871562.960668][4336:4341] CHIP:DMG: [1635871562.960723][4336:4341] CHIP:DMG: } - [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635871562.960894][4336:4341] CHIP:TOO: Default Success - Response" + [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635871562.960894][4336:4341] CHIP:TOO: Default Success Response disabled: true - label: "Set up a TH_CR2 to start attempting to do PASE to DUT_CE and failing 20 times. This can be done using an invalid passcode" - verification: - "On 2nd controller, using chip-tool connect using wrong passcode. - Repeat the step for 20 times. ./chip-tool pairing onnetwork 1 20202019 - (With wrong passcode)" + verification: | + On 2nd controller, using chip-tool connect using wrong passcode. Repeat the step for 20 times. + + ./chip-tool pairing onnetwork 1 20202019 (With wrong passcode) disabled: true - label: "TH_CR2 starts a 21st commissioning process" - verification: - "On 2nd controller, using chip tool connect using correct passcode. - ./chip-tool pairing onnetwork 1 20202021 (correct passcode)" + verification: | + On 2nd controller, using chip tool connect using correct passcode. + + ./chip-tool pairing onnetwork 1 20202021 (correct passcode) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml index 7a114602b8f412..3c12b908c0a2f3 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_11.yaml @@ -23,60 +23,59 @@ config: tests: - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using 2nd controller chip tool on the raspi - (use above instructions) ," + verification: | + 1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) , disabled: true - label: "TH_CR2 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 2nd controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 2 1 400 2000 - 3840 Controller: CHIP:IN: Sending encrypted msg 0xaaaad3464d10 with - MessageCounter:0 to 0x0000000000000001 at monotonic time: 5805157 msec + verification: | + On the 2nd controller using chip tool, open commissioning window using ECM + + ./chip-tool pairing open-commissioning-window 2 1 400 2000 3840 + + Controller: + + CHIP:IN: Sending encrypted msg 0xaaaad3464d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 5805157 msec [1635691999.946536][3822:3827] CHIP:DMG: ICR moving to [CommandSen] - [1635691999.946586][3822:3827] CHIP:CTL: Manual pairing code: - [35407541839] [1635691999.946650][3822:3827] CHIP:CTL: SetupQRCode: - [MT:00000CQM00G6V851H10] [1635691999.946802][3822:3827] CHIP:EM: - Sending Standalone Ack for MessageCounter:3234931243 on exchange - 35324i [1635691999.946850][3822:3827] CHIP:IN: Prepared plaintext - message 0xffffaa58a960 to 0x0000000000000000 of type 0x10 and - protocolId (0, 0) on exchange 35324i with MessageCounter:1726016118. - [1635691999.946895][3822:3827] CHIP:IN: Sending plaintext msg - 0xffffaa58a960 with MessageCounter:1726016118 to 0x0000000000000000 at - monotonic time: 5805158 msec [1635691999.946983][3822:3827] CHIP:EM: - Flushed pending ack for MessageCounter:3234931243 on exchange 35324i - Device: CHIP minimal mDNS started advertising. - [1635687658.683388][3792:3792] CHIP:DIS: Failed to find a valid admin - pairing. Node ID unknown [1635687658.683427][3792:3792] CHIP:DIS: - Start dns-sd server - no current nodeId [1635687658.683456][3792:3792] - CHIP:DL: MAC is not known, using a default. - [1635687658.683522][3792:3792] CHIP:DIS: Advertise commission - parameter vendorID=9050 productID=65279 discriminator=3840/00 - [1635687658.683597][3792:3792] CHIP:DIS: CHIP minimal mDNS configured - as 'Commissionable node device'. [1635687658.684345][3792:3792] - CHIP:DIS: Broadcasting mDns reply for query from 192.168.0.225 - [1635687658.687201][3792:3792] CHIP:DIS: Broadcasting mDns reply for - query from 192.168.0.225 The setup pin code is extracted from the - manual pairing code in the log and that will be used when pairing the - 2nd admin controller." + [1635691999.946586][3822:3827] CHIP:CTL: Manual pairing code: [35407541839] + [1635691999.946650][3822:3827] CHIP:CTL: SetupQRCode: [MT:00000CQM00G6V851H10] + [1635691999.946802][3822:3827] CHIP:EM: Sending Standalone Ack for MessageCounter:3234931243 on exchange 35324i + [1635691999.946850][3822:3827] CHIP:IN: Prepared plaintext message 0xffffaa58a960 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 35324i with MessageCounter:1726016118. + [1635691999.946895][3822:3827] CHIP:IN: Sending plaintext msg 0xffffaa58a960 with MessageCounter:1726016118 to 0x0000000000000000 at monotonic time: 5805158 msec + [1635691999.946983][3822:3827] CHIP:EM: Flushed pending ack for MessageCounter:3234931243 on exchange 35324i + + Device: + + CHIP minimal mDNS started advertising. + [1635687658.683388][3792:3792] CHIP:DIS: Failed to find a valid admin pairing. Node ID unknown + [1635687658.683427][3792:3792] CHIP:DIS: Start dns-sd server - no current nodeId + [1635687658.683456][3792:3792] CHIP:DL: MAC is not known, using a default. + [1635687658.683522][3792:3792] CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00 + [1635687658.683597][3792:3792] CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'. + [1635687658.684345][3792:3792] CHIP:DIS: Broadcasting mDns reply for query from 192.168.0.225 + [1635687658.687201][3792:3792] CHIP:DIS: Broadcasting mDns reply for query from 192.168.0.225 + + + The setup pin code is extracted from the manual pairing code in the log and that will be used when pairing the 2nd admin controller. disabled: true - label: "Set up a DUT_CR1 to start attempting to do PASE to TH_CE and failing 20 times. This can be done using an invalid passcode" - verification: - "1. On your DUT controller connect using wrong manual code. Repeat the - step for 20 times. Below the example when using chip tool as - controller ./chip-tool pairing manualcode 1 36177160937 (With wrong - passcode)" + verification: | + 1. On your DUT controller connect using wrong manual code. Repeat the step for 20 times. + + Below the example when using chip tool as controller + ./chip-tool pairing manualcode 1 36177160937 (With wrong passcode) disabled: true - label: "DUT_CR1 starts a 21st commissioning process with a valid passcode" - verification: - "1. On your DUT controller connect using correct manual code Below the - example when using chip tool as controller ./chip-tool pairing - manualcode 1 35407541839 (correct passcode)" + verification: | + 1. On your DUT controller connect using correct manual code + + Below the example when using chip tool as controller + + ./chip-tool pairing manualcode 1 35407541839 (correct passcode) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml index 02cef0c33846c3..4fbc9658fc5178 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_12.yaml @@ -23,59 +23,61 @@ config: tests: - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using 2nd controller chip tool on the raspi - (use above instructions)" + verification: | + 1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) disabled: true - label: "TH_CR2 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 2nd controller using chip tool, open commissioning window - using BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 2 0 [1635871562.958905][4336:4341] - CHIP:DMG: InvokeCommand = [1635871562.958976][4336:4341] CHIP:DMG: { - [1635871562.959031][4336:4341] CHIP:DMG: CommandList = - [1635871562.959095][4336:4341] CHIP:DMG: [ - [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = - [1635871562.959225][4336:4341] CHIP:DMG: { - [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = - [1635871562.959368][4336:4341] CHIP:DMG: { - [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, - [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, - [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, - [1635871562.959698][4336:4341] CHIP:DMG: }, + verification: | + On the 2nd controller using chip tool, open commissioning window using BCM + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 + + [1635871562.958905][4336:4341] CHIP:DMG: InvokeCommand = + [1635871562.958976][4336:4341] CHIP:DMG: { + [1635871562.959031][4336:4341] CHIP:DMG: CommandList = + [1635871562.959095][4336:4341] CHIP:DMG: [ + [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = + [1635871562.959225][4336:4341] CHIP:DMG: { + [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = + [1635871562.959368][4336:4341] CHIP:DMG: { + [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, + [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, + [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, + [1635871562.959698][4336:4341] CHIP:DMG: }, [1635871562.959776][4336:4341] CHIP:DMG: - [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = - [1635871562.959911][4336:4341] CHIP:DMG: { - [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, - [1635871562.960064][4336:4341] CHIP:DMG: }, + [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = + [1635871562.959911][4336:4341] CHIP:DMG: { + [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, + [1635871562.960064][4336:4341] CHIP:DMG: }, [1635871562.960313][4336:4341] CHIP:DMG: - [1635871562.960459][4336:4341] CHIP:DMG: }, + [1635871562.960459][4336:4341] CHIP:DMG: }, [1635871562.960544][4336:4341] CHIP:DMG: - [1635871562.960604][4336:4341] CHIP:DMG: ], + [1635871562.960604][4336:4341] CHIP:DMG: ], [1635871562.960668][4336:4341] CHIP:DMG: [1635871562.960723][4336:4341] CHIP:DMG: } - [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635871562.960894][4336:4341] CHIP:TOO: Default Success - Response" + [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635871562.960894][4336:4341] CHIP:TOO: Default Success Response disabled: true - label: "Set up a DUT_CR1 to start attempting to do PASE to TH_CE and failing 20 times. This can be done using an invalid passcode" - verification: - "1. On your DUT controller connect using wrong passcode. Repeat the - step for 20 times. Below the example when using chip tool as - controller ./chip-tool pairing onnetwork 1 20202019 (With wrong - passcode)" + verification: | + 1. On your DUT controller connect using wrong passcode. Repeat the step for 20 times. + + Below the example when using chip tool as controller + + ./chip-tool pairing onnetwork 1 20202019 (With wrong passcode) disabled: true - label: "DUT_CR1 starts a 21st commissioning process with a valid passcode" - verification: - "1. On your DUT controller connect using IP address and correct - passcode. Below the example when using chip tool as controller - ./chip-tool pairing onnetwork 1 20202021 (correct passcode)" + verification: | + 1. On your DUT controller connect using IP address and correct passcode. + + Below the example when using chip tool as controller + + ./chip-tool pairing onnetwork 1 20202021 (correct passcode) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml index 2845c4998ad82f..c64aeb7433eede 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_13.yaml @@ -23,313 +23,306 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st controller chip tool on the raspi - (use above instructions) ," + verification: | + 1. Provision the device using 1st controller chip tool on the raspi (use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using ECM and TH_CR3 Commissions with DUT_CE" - verification: - "On the 1st controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 - 3840 [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] 1. On 3rd controller - using chip tool connect using manual code ./chip-tool pairing - manualcode 1 35484132896" + verification: | + On the 1st controller using chip tool, open commissioning window using ECM + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] + + + 1. On 3rd controller using chip tool connect using manual code + + ./chip-tool pairing manualcode 1 35484132896 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using ECM and TH_CR2 Commissions with DUT_CE" - verification: - "On the 1st controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 - 3840 [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] 1. On 2nd controller - using chip tool connect using manual code ./chip-tool pairing - manualcode 1 35484132896" + verification: | + On the 1st controller using chip tool, open commissioning window using ECM + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] + + + 1. On 2nd controller using chip tool connect using manual code + + ./chip-tool pairing manualcode 1 35484132896 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 1st controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 - 3840 [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510]" + verification: | + On the 1st controller using chip tool, open commissioning window using ECM + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR1 opens a 2nd commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "Before the timer expiry, on the 1st controller using chip tool, open - commissioning window using ECM. Verify the General code return error 1 - ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840" + verification: | + Before the timer expiry, on the 1st controller using chip tool, open commissioning window using ECM. Verify the General code return error 1 + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "On 1st controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + On 1st controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635874880.498519][4577:4582] CHIP:DMG: ReportData = [1635874880.498558][4577:4582] CHIP:DMG: { - [1635874880.498587][4577:4582] CHIP:DMG: AttributeDataList = - [1635874880.498622][4577:4582] CHIP:DMG: [ - [1635874880.498654][4577:4582] CHIP:DMG: AttributeDataElement = - [1635874880.498695][4577:4582] CHIP:DMG: { - [1635874880.498734][4577:4582] CHIP:DMG: AttributePath = - [1635874880.498783][4577:4582] CHIP:DMG: { - [1635874880.498827][4577:4582] CHIP:DMG: NodeId = 0x1, - [1635874880.498874][4577:4582] CHIP:DMG: EndpointId = 0x0, - [1635874880.498923][4577:4582] CHIP:DMG: ClusterId = 0x3e, - [1635874880.498995][4577:4582] CHIP:DMG: FieldTag = 0x0000_0001, - [1635874880.499070][4577:4582] CHIP:DMG: } + [1635874880.498587][4577:4582] CHIP:DMG: AttributeDataList = + [1635874880.498622][4577:4582] CHIP:DMG: [ + [1635874880.498654][4577:4582] CHIP:DMG: AttributeDataElement = + [1635874880.498695][4577:4582] CHIP:DMG: { + [1635874880.498734][4577:4582] CHIP:DMG: AttributePath = + [1635874880.498783][4577:4582] CHIP:DMG: { + [1635874880.498827][4577:4582] CHIP:DMG: NodeId = 0x1, + [1635874880.498874][4577:4582] CHIP:DMG: EndpointId = 0x0, + [1635874880.498923][4577:4582] CHIP:DMG: ClusterId = 0x3e, + [1635874880.498995][4577:4582] CHIP:DMG: FieldTag = 0x0000_0001, + [1635874880.499070][4577:4582] CHIP:DMG: } [1635874880.499148][4577:4582] CHIP:DMG: - [1635874880.499200][4577:4582] CHIP:DMG: Data = [ + [1635874880.499200][4577:4582] CHIP:DMG: Data = [ [1635874880.499252][4577:4582] CHIP:DMG: - [1635874880.499305][4577:4582] CHIP:DMG: { - [1635874880.499369][4577:4582] CHIP:DMG: 0x0 = 1, - [1635874880.499429][4577:4582] CHIP:DMG: 0x1 = [ - [1635874880.499514][4577:4582] CHIP:DMG: 0x4, 0x9e, 0x26, 0x54, 0x2, - 0x45, 0x18, 0xca, 0x68, 0x9c, 0xa0, 0x77, 0xef, 0xb4, 0x37, 0x0, 0xce, - 0xb7, 0x15, 0x8d, 0x4a, 0xc7, 0x6a, 0x67, 0x31, 0xf2, 0xba, 0x52, - 0x8f, 0xb9, 0xfd, 0x93, 0xed, 0xc0, 0xdc, 0xce, 0xf7, 0x9d, 0x3, 0x3b, - 0xc8, 0x63, 0 [1635874880.499583][4577:4582] CHIP:DMG: ] - [1635874880.499656][4577:4582] CHIP:DMG: 0x2 = 30024, - [1635874880.499726][4577:4582] CHIP:DMG: 0x3 = 0, - [1635874880.499798][4577:4582] CHIP:DMG: 0x4 = 1, - [1635874880.499854][4577:4582] CHIP:DMG: 0x5 = ', - [1635874880.499912][4577:4582] CHIP:DMG: }, - [1635874880.499967][4577:4582] CHIP:DMG: { - [1635874880.500024][4577:4582] CHIP:DMG: 0x0 = 2, - [1635874880.500082][4577:4582] CHIP:DMG: 0x1 = [ - [1635874880.500165][4577:4582] CHIP:DMG: 0x4, 0x5b, 0x93, 0x38, 0xab, - 0x50, 0x6, 0x85, 0xc0, 0x50, 0xfe, 0x7d, 0x6c, 0xeb, 0x9d, 0xbd, 0x55, - 0x90, 0x5e, 0x4f, 0x54, 0xed, 0x94, 0x21, 0xc0, 0x8d, 0x9d, 0x4f, - 0x60, 0x48, 0xdb, 0x38, 0x4a, 0xf4, 0xe2, 0xa3, 0xf9, 0xd0, 0x55, - 0xd5, 0x63, 0xd0, [1635874880.500243][4577:4582] CHIP:DMG: ] - [1635874880.500315][4577:4582] CHIP:DMG: 0x2 = 45896, - [1635874880.500384][4577:4582] CHIP:DMG: 0x3 = 0, - [1635874880.500450][4577:4582] CHIP:DMG: 0x4 = 2, - [1635874880.500504][4577:4582] CHIP:DMG: 0x5 = ', - [1635874880.500562][4577:4582] CHIP:DMG: }, - [1635874880.500619][4577:4582] CHIP:DMG: ], - [1635874880.500671][4577:4582] CHIP:DMG: DataElementVersion = 0x0, - [1635874880.500722][4577:4582] CHIP:DMG: }, + [1635874880.499305][4577:4582] CHIP:DMG: { + [1635874880.499369][4577:4582] CHIP:DMG: 0x0 = 1, + [1635874880.499429][4577:4582] CHIP:DMG: 0x1 = [ + [1635874880.499514][4577:4582] CHIP:DMG: 0x4, 0x9e, 0x26, 0x54, 0x2, 0x45, 0x18, 0xca, 0x68, 0x9c, 0xa0, 0x77, 0xef, 0xb4, 0x37, 0x0, 0xce, 0xb7, 0x15, 0x8d, 0x4a, 0xc7, 0x6a, 0x67, 0x31, 0xf2, 0xba, 0x52, 0x8f, 0xb9, 0xfd, 0x93, 0xed, 0xc0, 0xdc, 0xce, 0xf7, 0x9d, 0x3, 0x3b, 0xc8, 0x63, 0 + [1635874880.499583][4577:4582] CHIP:DMG: ] + [1635874880.499656][4577:4582] CHIP:DMG: 0x2 = 30024, + [1635874880.499726][4577:4582] CHIP:DMG: 0x3 = 0, + [1635874880.499798][4577:4582] CHIP:DMG: 0x4 = 1, + [1635874880.499854][4577:4582] CHIP:DMG: 0x5 = "", + [1635874880.499912][4577:4582] CHIP:DMG: }, + [1635874880.499967][4577:4582] CHIP:DMG: { + [1635874880.500024][4577:4582] CHIP:DMG: 0x0 = 2, + [1635874880.500082][4577:4582] CHIP:DMG: 0x1 = [ + [1635874880.500165][4577:4582] CHIP:DMG: 0x4, 0x5b, 0x93, 0x38, 0xab, 0x50, 0x6, 0x85, 0xc0, 0x50, 0xfe, 0x7d, 0x6c, 0xeb, 0x9d, 0xbd, 0x55, 0x90, 0x5e, 0x4f, 0x54, 0xed, 0x94, 0x21, 0xc0, 0x8d, 0x9d, 0x4f, 0x60, 0x48, 0xdb, 0x38, 0x4a, 0xf4, 0xe2, 0xa3, 0xf9, 0xd0, 0x55, 0xd5, 0x63, 0xd0, + [1635874880.500243][4577:4582] CHIP:DMG: ] + [1635874880.500315][4577:4582] CHIP:DMG: 0x2 = 45896, + [1635874880.500384][4577:4582] CHIP:DMG: 0x3 = 0, + [1635874880.500450][4577:4582] CHIP:DMG: 0x4 = 2, + [1635874880.500504][4577:4582] CHIP:DMG: 0x5 = "", + [1635874880.500562][4577:4582] CHIP:DMG: }, + [1635874880.500619][4577:4582] CHIP:DMG: ], + [1635874880.500671][4577:4582] CHIP:DMG: DataElementVersion = 0x0, + [1635874880.500722][4577:4582] CHIP:DMG: }, [1635874880.500794][4577:4582] CHIP:DMG: - [1635874880.500838][4577:4582] CHIP:DMG: ], + [1635874880.500838][4577:4582] CHIP:DMG: ], [1635874880.500902][4577:4582] CHIP:DMG: [1635874880.500945][4577:4582] CHIP:DMG: } [1635874880.501124][4577:4582] CHIP:ZCL: ReadAttributesResponse: - [1635874880.501165][4577:4582] CHIP:ZCL: ClusterId: 0x0000_003E - [1635874880.501209][4577:4582] CHIP:ZCL: attributeId: 0x0000_0001 - [1635874880.501250][4577:4582] CHIP:ZCL: status: Success (0x0000) - [1635874880.501285][4577:4582] CHIP:ZCL: attribute TLV Type: 0x16 - [1635874880.501348][4577:4582] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635874880.501165][4577:4582] CHIP:ZCL: ClusterId: 0x0000_003E + [1635874880.501209][4577:4582] CHIP:ZCL: attributeId: 0x0000_0001 + [1635874880.501250][4577:4582] CHIP:ZCL: status: Success (0x0000) + [1635874880.501285][4577:4582] CHIP:ZCL: attribute TLV Type: 0x16 + [1635874880.501348][4577:4582] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635874880.501510][4577:4582] CHIP:TOO: FabricDescriptor[1]: - [1635874880.501556][4577:4582] CHIP:TOO: fabricIndex: 1 - [1635874880.501594][4577:4582] CHIP:ZCL: RootPublicKey: 65 - [1635874880.501632][4577:4582] CHIP:TOO: vendorId: 30024 - [1635874880.501666][4577:4582] CHIP:TOO: fabricId: 0 - [1635874880.501703][4577:4582] CHIP:TOO: nodeId: 1 - [1635874880.501739][4577:4582] CHIP:ZCL: Label: + [1635874880.501556][4577:4582] CHIP:TOO: fabricIndex: 1 + [1635874880.501594][4577:4582] CHIP:ZCL: RootPublicKey: 65 + [1635874880.501632][4577:4582] CHIP:TOO: vendorId: 30024 + [1635874880.501666][4577:4582] CHIP:TOO: fabricId: 0 + [1635874880.501703][4577:4582] CHIP:TOO: nodeId: 1 + [1635874880.501739][4577:4582] CHIP:ZCL: Label: [1635874880.501792][4577:4582] CHIP:TOO: FabricDescriptor[2]: - [1635874880.501832][4577:4582] CHIP:TOO: fabricIndex: 2 - [1635874880.501865][4577:4582] CHIP:ZCL: RootPublicKey: 65 - [1635874880.501902][4577:4582] CHIP:TOO: vendorId: 45896 - [1635874880.501943][4577:4582] CHIP:TOO: fabricId: 0 - [1635874880.501980][4577:4582] CHIP:TOO: nodeId: 2" + [1635874880.501832][4577:4582] CHIP:TOO: fabricIndex: 2 + [1635874880.501865][4577:4582] CHIP:ZCL: RootPublicKey: 65 + [1635874880.501902][4577:4582] CHIP:TOO: vendorId: 45896 + [1635874880.501943][4577:4582] CHIP:TOO: fabricId: 0 + [1635874880.501980][4577:4582] CHIP:TOO: nodeId: 2 disabled: true - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" - verification: "Wait for the expiration of PIXIT_COMM_WIN seconds" + verification: | + Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "TH_CR1 re-opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 1st controller using chip tool, open commissioning window - using BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 1 0" + verification: | + On the 1st controller using chip tool, open commissioning window using BCM + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR3 opens a 2nd commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 3rd controller using chip tool, open commissioning window - using BCM before the timer expiry of the above step ./chip-tool - pairing administratorcommissioning open-basic-commissioning-window 500 - 1 0" + verification: | + On the 3rd controller using chip tool, open commissioning window using BCM before the timer expiry of the above step + + ./chip-tool pairing administratorcommissioning open-basic-commissioning-window 500 1 0 disabled: true - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" - verification: "Wait for the expiration of PIXIT_COMM_WIN seconds" + verification: | + Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "On 1st controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + On 1st controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635875084.555953][4590:4595] CHIP:DMG: ReportData = [1635875084.555986][4590:4595] CHIP:DMG: { - [1635875084.556021][4590:4595] CHIP:DMG: AttributeDataList = - [1635875084.556059][4590:4595] CHIP:DMG: [ - [1635875084.556105][4590:4595] CHIP:DMG: AttributeDataElement = - [1635875084.556141][4590:4595] CHIP:DMG: { - [1635875084.556179][4590:4595] CHIP:DMG: AttributePath = - [1635875084.556216][4590:4595] CHIP:DMG: { - [1635875084.556263][4590:4595] CHIP:DMG: NodeId = 0x1, - [1635875084.556304][4590:4595] CHIP:DMG: EndpointId = 0x0, - [1635875084.556359][4590:4595] CHIP:DMG: ClusterId = 0x3e, - [1635875084.556408][4590:4595] CHIP:DMG: FieldTag = 0x0000_0001, - [1635875084.556457][4590:4595] CHIP:DMG: } + [1635875084.556021][4590:4595] CHIP:DMG: AttributeDataList = + [1635875084.556059][4590:4595] CHIP:DMG: [ + [1635875084.556105][4590:4595] CHIP:DMG: AttributeDataElement = + [1635875084.556141][4590:4595] CHIP:DMG: { + [1635875084.556179][4590:4595] CHIP:DMG: AttributePath = + [1635875084.556216][4590:4595] CHIP:DMG: { + [1635875084.556263][4590:4595] CHIP:DMG: NodeId = 0x1, + [1635875084.556304][4590:4595] CHIP:DMG: EndpointId = 0x0, + [1635875084.556359][4590:4595] CHIP:DMG: ClusterId = 0x3e, + [1635875084.556408][4590:4595] CHIP:DMG: FieldTag = 0x0000_0001, + [1635875084.556457][4590:4595] CHIP:DMG: } [1635875084.556509][4590:4595] CHIP:DMG: - [1635875084.556553][4590:4595] CHIP:DMG: Data = [ + [1635875084.556553][4590:4595] CHIP:DMG: Data = [ [1635875084.556597][4590:4595] CHIP:DMG: - [1635875084.556642][4590:4595] CHIP:DMG: { - [1635875084.556698][4590:4595] CHIP:DMG: 0x0 = 1, - [1635875084.556752][4590:4595] CHIP:DMG: 0x1 = [ - [1635875084.556819][4590:4595] CHIP:DMG: 0x4, 0x9e, 0x26, 0x54, 0x2, - 0x45, 0x18, 0xca, 0x68, 0x9c, 0xa0, 0x77, 0xef, 0xb4, 0x37, 0x0, 0xce, - 0xb7, 0x15, 0x8d, 0x4a, 0xc7, 0x6a, 0x67, 0x31, 0xf2, 0xba, 0x52, - 0x8f, 0xb9, 0xfd, 0x93, 0xed, 0xc0, 0xdc, 0xce, 0xf7, 0x9d, 0x3, 0x3b, - 0xc8, 0x63, 0 [1635875084.556875][4590:4595] CHIP:DMG: ] - [1635875084.556933][4590:4595] CHIP:DMG: 0x2 = 30024, - [1635875084.556975][4590:4595] CHIP:DMG: 0x3 = 0, - [1635875084.557022][4590:4595] CHIP:DMG: 0x4 = 1, - [1635875084.557070][4590:4595] CHIP:DMG: 0x5 =', - [1635875084.557116][4590:4595] CHIP:DMG: }, - [1635875084.557168][4590:4595] CHIP:DMG: { - [1635875084.557237][4590:4595] CHIP:DMG: 0x0 = 2, - [1635875084.557295][4590:4595] CHIP:DMG: 0x1 = [ - [1635875084.557371][4590:4595] CHIP:DMG: 0x4, 0x5b, 0x93, 0x38, 0xab, - 0x50, 0x6, 0x85, 0xc0, 0x50, 0xfe, 0x7d, 0x6c, 0xeb, 0x9d, 0xbd, 0x55, - 0x90, 0x5e, 0x4f, 0x54, 0xed, 0x94, 0x21, 0xc0, 0x8d, 0x9d, 0x4f, - 0x60, 0x48, 0xdb, 0x38, 0x4a, 0xf4, 0xe2, 0xa3, 0xf9, 0xd0, 0x55, - 0xd5, 0x63, 0xd0, [1635875084.557477][4590:4595] CHIP:DMG: ] - [1635875084.557555][4590:4595] CHIP:DMG: 0x2 = 45896, - [1635875084.557629][4590:4595] CHIP:DMG: 0x3 = 0, - [1635875084.557701][4590:4595] CHIP:DMG: 0x4 = 2, - [1635875084.557757][4590:4595] CHIP:DMG: 0x5 = ', - [1635875084.557828][4590:4595] CHIP:DMG: }, - [1635875084.557888][4590:4595] CHIP:DMG: ], - [1635875084.557948][4590:4595] CHIP:DMG: DataElementVersion = 0x0, - [1635875084.558002][4590:4595] CHIP:DMG: }, + [1635875084.556642][4590:4595] CHIP:DMG: { + [1635875084.556698][4590:4595] CHIP:DMG: 0x0 = 1, + [1635875084.556752][4590:4595] CHIP:DMG: 0x1 = [ + [1635875084.556819][4590:4595] CHIP:DMG: 0x4, 0x9e, 0x26, 0x54, 0x2, 0x45, 0x18, 0xca, 0x68, 0x9c, 0xa0, 0x77, 0xef, 0xb4, 0x37, 0x0, 0xce, 0xb7, 0x15, 0x8d, 0x4a, 0xc7, 0x6a, 0x67, 0x31, 0xf2, 0xba, 0x52, 0x8f, 0xb9, 0xfd, 0x93, 0xed, 0xc0, 0xdc, 0xce, 0xf7, 0x9d, 0x3, 0x3b, 0xc8, 0x63, 0 + [1635875084.556875][4590:4595] CHIP:DMG: ] + [1635875084.556933][4590:4595] CHIP:DMG: 0x2 = 30024, + [1635875084.556975][4590:4595] CHIP:DMG: 0x3 = 0, + [1635875084.557022][4590:4595] CHIP:DMG: 0x4 = 1, + [1635875084.557070][4590:4595] CHIP:DMG: 0x5 = "", + [1635875084.557116][4590:4595] CHIP:DMG: }, + [1635875084.557168][4590:4595] CHIP:DMG: { + [1635875084.557237][4590:4595] CHIP:DMG: 0x0 = 2, + [1635875084.557295][4590:4595] CHIP:DMG: 0x1 = [ + [1635875084.557371][4590:4595] CHIP:DMG: 0x4, 0x5b, 0x93, 0x38, 0xab, 0x50, 0x6, 0x85, 0xc0, 0x50, 0xfe, 0x7d, 0x6c, 0xeb, 0x9d, 0xbd, 0x55, 0x90, 0x5e, 0x4f, 0x54, 0xed, 0x94, 0x21, 0xc0, 0x8d, 0x9d, 0x4f, 0x60, 0x48, 0xdb, 0x38, 0x4a, 0xf4, 0xe2, 0xa3, 0xf9, 0xd0, 0x55, 0xd5, 0x63, 0xd0, + [1635875084.557477][4590:4595] CHIP:DMG: ] + [1635875084.557555][4590:4595] CHIP:DMG: 0x2 = 45896, + [1635875084.557629][4590:4595] CHIP:DMG: 0x3 = 0, + [1635875084.557701][4590:4595] CHIP:DMG: 0x4 = 2, + [1635875084.557757][4590:4595] CHIP:DMG: 0x5 = "", + [1635875084.557828][4590:4595] CHIP:DMG: }, + [1635875084.557888][4590:4595] CHIP:DMG: ], + [1635875084.557948][4590:4595] CHIP:DMG: DataElementVersion = 0x0, + [1635875084.558002][4590:4595] CHIP:DMG: }, [1635875084.558070][4590:4595] CHIP:DMG: - [1635875084.558115][4590:4595] CHIP:DMG: ], + [1635875084.558115][4590:4595] CHIP:DMG: ], [1635875084.558179][4590:4595] CHIP:DMG: [1635875084.558222][4590:4595] CHIP:DMG: } [1635875084.558385][4590:4595] CHIP:ZCL: ReadAttributesResponse: - [1635875084.558426][4590:4595] CHIP:ZCL: ClusterId: 0x0000_003E - [1635875084.558469][4590:4595] CHIP:ZCL: attributeId: 0x0000_0001 - [1635875084.558508][4590:4595] CHIP:ZCL: status: Success (0x0000) - [1635875084.558543][4590:4595] CHIP:ZCL: attribute TLV Type: 0x16 - [1635875084.558609][4590:4595] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635875084.558426][4590:4595] CHIP:ZCL: ClusterId: 0x0000_003E + [1635875084.558469][4590:4595] CHIP:ZCL: attributeId: 0x0000_0001 + [1635875084.558508][4590:4595] CHIP:ZCL: status: Success (0x0000) + [1635875084.558543][4590:4595] CHIP:ZCL: attribute TLV Type: 0x16 + [1635875084.558609][4590:4595] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635875084.558730][4590:4595] CHIP:TOO: FabricDescriptor[1]: - [1635875084.558772][4590:4595] CHIP:TOO: fabricIndex: 1 - [1635875084.558808][4590:4595] CHIP:ZCL: RootPublicKey: 65 - [1635875084.558844][4590:4595] CHIP:TOO: vendorId: 30024 - [1635875084.558887][4590:4595] CHIP:TOO: fabricId: 0 - [1635875084.558923][4590:4595] CHIP:TOO: nodeId: 1 - [1635875084.558954][4590:4595] CHIP:ZCL: Label: + [1635875084.558772][4590:4595] CHIP:TOO: fabricIndex: 1 + [1635875084.558808][4590:4595] CHIP:ZCL: RootPublicKey: 65 + [1635875084.558844][4590:4595] CHIP:TOO: vendorId: 30024 + [1635875084.558887][4590:4595] CHIP:TOO: fabricId: 0 + [1635875084.558923][4590:4595] CHIP:TOO: nodeId: 1 + [1635875084.558954][4590:4595] CHIP:ZCL: Label: [1635875084.559004][4590:4595] CHIP:TOO: FabricDescriptor[2]: - [1635875084.559044][4590:4595] CHIP:TOO: fabricIndex: 2 - [1635875084.559076][4590:4595] CHIP:ZCL: RootPublicKey: 65 - [1635875084.559111][4590:4595] CHIP:TOO: vendorId: 45896 - [1635875084.559143][4590:4595] CHIP:TOO: fabricId: 0 - [1635875084.559178][4590:4595] CHIP:TOO: nodeId: 2" + [1635875084.559044][4590:4595] CHIP:TOO: fabricIndex: 2 + [1635875084.559076][4590:4595] CHIP:ZCL: RootPublicKey: 65 + [1635875084.559111][4590:4595] CHIP:TOO: vendorId: 45896 + [1635875084.559143][4590:4595] CHIP:TOO: fabricId: 0 + [1635875084.559178][4590:4595] CHIP:TOO: nodeId: 2 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 1st controller using chip tool, open commissioning window - using BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 1 0 [1635922853.458816][9456:9461] - CHIP:DMG: InvokeCommand = [1635922853.458865][9456:9461] CHIP:DMG: { - [1635922853.458903][9456:9461] CHIP:DMG: CommandList = - [1635922853.458951][9456:9461] CHIP:DMG: [ - [1635922853.459031][9456:9461] CHIP:DMG: CommandDataIB = - [1635922853.459086][9456:9461] CHIP:DMG: { - [1635922853.459130][9456:9461] CHIP:DMG: CommandPathIB = - [1635922853.459184][9456:9461] CHIP:DMG: { - [1635922853.459235][9456:9461] CHIP:DMG: EndpointId = 0x0, - [1635922853.459291][9456:9461] CHIP:DMG: ClusterId = 0x3c, - [1635922853.459348][9456:9461] CHIP:DMG: CommandId = 0x1, - [1635922853.459400][9456:9461] CHIP:DMG: }, + verification: | + On the 1st controller using chip tool, open commissioning window using BCM + + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + [1635922853.458816][9456:9461] CHIP:DMG: InvokeCommand = + [1635922853.458865][9456:9461] CHIP:DMG: { + [1635922853.458903][9456:9461] CHIP:DMG: CommandList = + [1635922853.458951][9456:9461] CHIP:DMG: [ + [1635922853.459031][9456:9461] CHIP:DMG: CommandDataIB = + [1635922853.459086][9456:9461] CHIP:DMG: { + [1635922853.459130][9456:9461] CHIP:DMG: CommandPathIB = + [1635922853.459184][9456:9461] CHIP:DMG: { + [1635922853.459235][9456:9461] CHIP:DMG: EndpointId = 0x0, + [1635922853.459291][9456:9461] CHIP:DMG: ClusterId = 0x3c, + [1635922853.459348][9456:9461] CHIP:DMG: CommandId = 0x1, + [1635922853.459400][9456:9461] CHIP:DMG: }, [1635922853.459458][9456:9461] CHIP:DMG: - [1635922853.459507][9456:9461] CHIP:DMG: StatusIB = - [1635922853.459560][9456:9461] CHIP:DMG: { - [1635922853.459612][9456:9461] CHIP:DMG: status = 0x0, - [1635922853.459664][9456:9461] CHIP:DMG: }, + [1635922853.459507][9456:9461] CHIP:DMG: StatusIB = + [1635922853.459560][9456:9461] CHIP:DMG: { + [1635922853.459612][9456:9461] CHIP:DMG: status = 0x0, + [1635922853.459664][9456:9461] CHIP:DMG: }, [1635922853.459718][9456:9461] CHIP:DMG: - [1635922853.459766][9456:9461] CHIP:DMG: }, + [1635922853.459766][9456:9461] CHIP:DMG: }, [1635922853.459831][9456:9461] CHIP:DMG: - [1635922853.459889][9456:9461] CHIP:DMG: ], + [1635922853.459889][9456:9461] CHIP:DMG: ], [1635922853.459951][9456:9461] CHIP:DMG: [1635922853.460004][9456:9461] CHIP:DMG: } - [1635922853.460101][9456:9461] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635922853.460166][9456:9461] CHIP:TOO: Default Success - Response" + [1635922853.460101][9456:9461] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635922853.460166][9456:9461] CHIP:TOO: Default Success Response disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR2 opens a second commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 2nd controller using chip tool, open commissioning window - using BCM before timer expiry from above step ./chip-tool - administratorcommissioning open-basic-commissioning-window 100 1 0" + verification: | + On the 2nd controller using chip tool, open commissioning window using BCM before timer expiry from above step + + + ./chip-tool administratorcommissioning open-basic-commissioning-window 100 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_14.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_14.yaml index 617b50368a9adc..9f7e7b75e95440 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_14.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_14.yaml @@ -23,413 +23,405 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using your DUT controller (use above - instructions) ," + verification: | + 1. Provision the device using your DUT controller (use above instructions) , disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using ECM and TH_CR3 Commissions with TH_CE" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example is using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] On 2nd controller - using chip tool connect using manual code ./chip-tool pairing - manualcode 1 35484132896" + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example is using chip tool as controller + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] + + + + On 2nd controller using chip tool connect using manual code + + ./chip-tool pairing manualcode 1 35484132896 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using ECM and TH_CR2 Commissions with TH_CE" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example is using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] On 3rd controller - using chip tool connect using manual code ./chip-tool pairing - manualcode 1 35484132896" + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example is using chip tool as controller + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] + + + + On 3rd controller using chip tool connect using manual code + + ./chip-tool pairing manualcode 1 35484132896 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example is using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510]" + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example is using chip tool as controller + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, DUT_CR1 opens a 2nd commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller, open commissioning window using ECM before - the timer expiry from the above step Below is the example is using - chip tool as controller ./chip-tool pairing open-commissioning-window - 1 1 100 1000 3840 [1635874557.409509][4549:4554] CHIP:SC: Success - status report received. Session was established - [1635874557.409553][4549:4554] CHIP:IN: New secure session created for - device 0x0000000000000001, key 76!! [1635874557.409649][4549:4554] - CHIP:CTL: OpenCommissioningWindow for device ID 1 + verification: | + On your DUT controller, open commissioning window using ECM before the timer expiry from the above step + + Below is the example is using chip tool as controller + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] - [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message - 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) - on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510]" + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "On your DUT controller using chip tool read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + On your DUT controller using chip tool read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635924252.914294][9545:9550] CHIP:DMG: ReportData = [1635924252.914337][9545:9550] CHIP:DMG: { - [1635924252.914370][9545:9550] CHIP:DMG: AttributeDataList = - [1635924252.914409][9545:9550] CHIP:DMG: [ - [1635924252.914446][9545:9550] CHIP:DMG: AttributeDataElement = - [1635924252.914490][9545:9550] CHIP:DMG: { - [1635924252.914524][9545:9550] CHIP:DMG: AttributePath = - [1635924252.914570][9545:9550] CHIP:DMG: { - [1635924252.914610][9545:9550] CHIP:DMG: NodeId = 0x1, - [1635924252.914667][9545:9550] CHIP:DMG: EndpointId = 0x0, - [1635924252.914724][9545:9550] CHIP:DMG: ClusterId = 0x3e, - [1635924252.914780][9545:9550] CHIP:DMG: FieldTag = 0x0000_0001, - [1635924252.914828][9545:9550] CHIP:DMG: } + [1635924252.914370][9545:9550] CHIP:DMG: AttributeDataList = + [1635924252.914409][9545:9550] CHIP:DMG: [ + [1635924252.914446][9545:9550] CHIP:DMG: AttributeDataElement = + [1635924252.914490][9545:9550] CHIP:DMG: { + [1635924252.914524][9545:9550] CHIP:DMG: AttributePath = + [1635924252.914570][9545:9550] CHIP:DMG: { + [1635924252.914610][9545:9550] CHIP:DMG: NodeId = 0x1, + [1635924252.914667][9545:9550] CHIP:DMG: EndpointId = 0x0, + [1635924252.914724][9545:9550] CHIP:DMG: ClusterId = 0x3e, + [1635924252.914780][9545:9550] CHIP:DMG: FieldTag = 0x0000_0001, + [1635924252.914828][9545:9550] CHIP:DMG: } [1635924252.914878][9545:9550] CHIP:DMG: - [1635924252.914919][9545:9550] CHIP:DMG: Data = [ + [1635924252.914919][9545:9550] CHIP:DMG: Data = [ [1635924252.914966][9545:9550] CHIP:DMG: - [1635924252.915012][9545:9550] CHIP:DMG: { - [1635924252.915063][9545:9550] CHIP:DMG: 0x0 = 1, - [1635924252.915112][9545:9550] CHIP:DMG: 0x1 = [ - [1635924252.915180][9545:9550] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, - 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, - 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, - 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, - 0x53, 0x63 [1635924252.915248][9545:9550] CHIP:DMG: ] - [1635924252.915296][9545:9550] CHIP:DMG: 0x2 = 50504, - [1635924252.915345][9545:9550] CHIP:DMG: 0x3 = 0, - [1635924252.915392][9545:9550] CHIP:DMG: 0x4 = 1, - [1635924252.915445][9545:9550] CHIP:DMG: 0x5 = ', - [1635924252.915518][9545:9550] CHIP:DMG: }, - [1635924252.915573][9545:9550] CHIP:DMG: { - [1635924252.915622][9545:9550] CHIP:DMG: 0x0 = 2, - [1635924252.915693][9545:9550] CHIP:DMG: 0x1 = [ - [1635924252.915790][9545:9550] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, - 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, - 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, - 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, - 0xac, 0x81, 0x92, [1635924252.915870][9545:9550] CHIP:DMG: ] - [1635924252.915943][9545:9550] CHIP:DMG: 0x2 = 33608, - [1635924252.915996][9545:9550] CHIP:DMG: 0x3 = 0, - [1635924252.916047][9545:9550] CHIP:DMG: 0x4 = 2, - [1635924252.916098][9545:9550] CHIP:DMG: 0x5 = ', - [1635924252.916150][9545:9550] CHIP:DMG: }, - [1635924252.916205][9545:9550] CHIP:DMG: ], - [1635924252.916257][9545:9550] CHIP:DMG: DataElementVersion = 0x0, - [1635924252.916315][9545:9550] CHIP:DMG: }, + [1635924252.915012][9545:9550] CHIP:DMG: { + [1635924252.915063][9545:9550] CHIP:DMG: 0x0 = 1, + [1635924252.915112][9545:9550] CHIP:DMG: 0x1 = [ + [1635924252.915180][9545:9550] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635924252.915248][9545:9550] CHIP:DMG: ] + [1635924252.915296][9545:9550] CHIP:DMG: 0x2 = 50504, + [1635924252.915345][9545:9550] CHIP:DMG: 0x3 = 0, + [1635924252.915392][9545:9550] CHIP:DMG: 0x4 = 1, + [1635924252.915445][9545:9550] CHIP:DMG: 0x5 = "", + [1635924252.915518][9545:9550] CHIP:DMG: }, + [1635924252.915573][9545:9550] CHIP:DMG: { + [1635924252.915622][9545:9550] CHIP:DMG: 0x0 = 2, + [1635924252.915693][9545:9550] CHIP:DMG: 0x1 = [ + [1635924252.915790][9545:9550] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635924252.915870][9545:9550] CHIP:DMG: ] + [1635924252.915943][9545:9550] CHIP:DMG: 0x2 = 33608, + [1635924252.915996][9545:9550] CHIP:DMG: 0x3 = 0, + [1635924252.916047][9545:9550] CHIP:DMG: 0x4 = 2, + [1635924252.916098][9545:9550] CHIP:DMG: 0x5 = "", + [1635924252.916150][9545:9550] CHIP:DMG: }, + [1635924252.916205][9545:9550] CHIP:DMG: ], + [1635924252.916257][9545:9550] CHIP:DMG: DataElementVersion = 0x0, + [1635924252.916315][9545:9550] CHIP:DMG: }, [1635924252.916383][9545:9550] CHIP:DMG: - [1635924252.916427][9545:9550] CHIP:DMG: ], + [1635924252.916427][9545:9550] CHIP:DMG: ], [1635924252.916492][9545:9550] CHIP:DMG: [1635924252.916534][9545:9550] CHIP:DMG: } [1635924252.916707][9545:9550] CHIP:ZCL: ReadAttributesResponse: - [1635924252.916750][9545:9550] CHIP:ZCL: ClusterId: 0x0000_003E - [1635924252.916795][9545:9550] CHIP:ZCL: attributeId: 0x0000_0001 - [1635924252.916836][9545:9550] CHIP:ZCL: status: Success (0x0000) - [1635924252.916882][9545:9550] CHIP:ZCL: attribute TLV Type: 0x16 - [1635924252.916947][9545:9550] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635924252.916750][9545:9550] CHIP:ZCL: ClusterId: 0x0000_003E + [1635924252.916795][9545:9550] CHIP:ZCL: attributeId: 0x0000_0001 + [1635924252.916836][9545:9550] CHIP:ZCL: status: Success (0x0000) + [1635924252.916882][9545:9550] CHIP:ZCL: attribute TLV Type: 0x16 + [1635924252.916947][9545:9550] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635924252.917171][9545:9550] CHIP:TOO: FabricDescriptor[1]: - [1635924252.917214][9545:9550] CHIP:TOO: fabricIndex: 1 - [1635924252.917252][9545:9550] CHIP:ZCL: RootPublicKey: 65 - [1635924252.917289][9545:9550] CHIP:TOO: vendorId: 50504 - [1635924252.917322][9545:9550] CHIP:TOO: fabricId: 0 - [1635924252.917357][9545:9550] CHIP:TOO: nodeId: 1 - [1635924252.917389][9545:9550] CHIP:ZCL: Label: + [1635924252.917214][9545:9550] CHIP:TOO: fabricIndex: 1 + [1635924252.917252][9545:9550] CHIP:ZCL: RootPublicKey: 65 + [1635924252.917289][9545:9550] CHIP:TOO: vendorId: 50504 + [1635924252.917322][9545:9550] CHIP:TOO: fabricId: 0 + [1635924252.917357][9545:9550] CHIP:TOO: nodeId: 1 + [1635924252.917389][9545:9550] CHIP:ZCL: Label: [1635924252.917485][9545:9550] CHIP:TOO: FabricDescriptor[2]: - [1635924252.917518][9545:9550] CHIP:TOO: fabricIndex: 2 - [1635924252.917548][9545:9550] CHIP:ZCL: RootPublicKey: 65 - [1635924252.917577][9545:9550] CHIP:TOO: vendorId: 33608 - [1635924252.917606][9545:9550] CHIP:TOO: fabricId: 0 - [1635924252.917636][9545:9550] CHIP:TOO: nodeId: 2" + [1635924252.917518][9545:9550] CHIP:TOO: fabricIndex: 2 + [1635924252.917548][9545:9550] CHIP:ZCL: RootPublicKey: 65 + [1635924252.917577][9545:9550] CHIP:TOO: vendorId: 33608 + [1635924252.917606][9545:9550] CHIP:TOO: fabricId: 0 + [1635924252.917636][9545:9550] CHIP:TOO: nodeId: 2 disabled: true - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" - verification: "Wait for the expiration of PIXIT_COMM_WIN seconds" + verification: | + Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "DUT_CR1 re-opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller, open commissioning window using BCM Below is - the example when using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On your DUT controller, open commissioning window using BCM + + Below is the example when using chip tool as controller + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + + 1635924383.110602][9561:9566] CHIP:DMG: InvokeCommand = [1635924383.110672][9561:9566] CHIP:DMG: { - [1635924383.110732][9561:9566] CHIP:DMG: CommandList = - [1635924383.110796][9561:9566] CHIP:DMG: [ - [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = - [1635924383.110940][9561:9566] CHIP:DMG: { - [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = - [1635924383.111070][9561:9566] CHIP:DMG: { - [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, - [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, - [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, - [1635924383.111365][9561:9566] CHIP:DMG: }, + [1635924383.110732][9561:9566] CHIP:DMG: CommandList = + [1635924383.110796][9561:9566] CHIP:DMG: [ + [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = + [1635924383.110940][9561:9566] CHIP:DMG: { + [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = + [1635924383.111070][9561:9566] CHIP:DMG: { + [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, + [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, + [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, + [1635924383.111365][9561:9566] CHIP:DMG: }, [1635924383.111442][9561:9566] CHIP:DMG: - [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = - [1635924383.111573][9561:9566] CHIP:DMG: { - [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, - [1635924383.111729][9561:9566] CHIP:DMG: }, + [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = + [1635924383.111573][9561:9566] CHIP:DMG: { + [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, + [1635924383.111729][9561:9566] CHIP:DMG: }, [1635924383.111807][9561:9566] CHIP:DMG: - [1635924383.111877][9561:9566] CHIP:DMG: }, + [1635924383.111877][9561:9566] CHIP:DMG: }, [1635924383.111952][9561:9566] CHIP:DMG: - [1635924383.112011][9561:9566] CHIP:DMG: ], + [1635924383.112011][9561:9566] CHIP:DMG: ], [1635924383.112073][9561:9566] CHIP:DMG: [1635924383.112126][9561:9566] CHIP:DMG: } - [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924383.112285][9561:9566] CHIP:TOO: Default Success - Response" + [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924383.112285][9561:9566] CHIP:TOO: Default Success Response disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR3 opens a 2nd commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 3rd controller using chip tool, open commissioning window - using BCM before the timer expiry from above step ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On the 3rd controller using chip tool, open commissioning window using BCM before the timer expiry from above step + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + + 1635924383.110602][9561:9566] CHIP:DMG: InvokeCommand = [1635924383.110672][9561:9566] CHIP:DMG: { - [1635924383.110732][9561:9566] CHIP:DMG: CommandList = - [1635924383.110796][9561:9566] CHIP:DMG: [ - [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = - [1635924383.110940][9561:9566] CHIP:DMG: { - [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = - [1635924383.111070][9561:9566] CHIP:DMG: { - [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, - [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, - [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, - [1635924383.111365][9561:9566] CHIP:DMG: }, + [1635924383.110732][9561:9566] CHIP:DMG: CommandList = + [1635924383.110796][9561:9566] CHIP:DMG: [ + [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = + [1635924383.110940][9561:9566] CHIP:DMG: { + [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = + [1635924383.111070][9561:9566] CHIP:DMG: { + [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, + [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, + [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, + [1635924383.111365][9561:9566] CHIP:DMG: }, [1635924383.111442][9561:9566] CHIP:DMG: - [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = - [1635924383.111573][9561:9566] CHIP:DMG: { - [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, - [1635924383.111729][9561:9566] CHIP:DMG: }, + [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = + [1635924383.111573][9561:9566] CHIP:DMG: { + [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, + [1635924383.111729][9561:9566] CHIP:DMG: }, [1635924383.111807][9561:9566] CHIP:DMG: - [1635924383.111877][9561:9566] CHIP:DMG: }, + [1635924383.111877][9561:9566] CHIP:DMG: }, [1635924383.111952][9561:9566] CHIP:DMG: - [1635924383.112011][9561:9566] CHIP:DMG: ], + [1635924383.112011][9561:9566] CHIP:DMG: ], [1635924383.112073][9561:9566] CHIP:DMG: [1635924383.112126][9561:9566] CHIP:DMG: } - [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924383.112285][9561:9566] CHIP:TOO: Default Success - Response" + [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924383.112285][9561:9566] CHIP:TOO: Default Success Response disabled: true - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" - verification: "Wait for the expiration of PIXIT_COMM_WIN seconds" + verification: | + Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "on your DUT controller using chip tool read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + on your DUT controller using chip tool read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635924252.914294][9545:9550] CHIP:DMG: ReportData = [1635924252.914337][9545:9550] CHIP:DMG: { - [1635924252.914370][9545:9550] CHIP:DMG: AttributeDataList = - [1635924252.914409][9545:9550] CHIP:DMG: [ - [1635924252.914446][9545:9550] CHIP:DMG: AttributeDataElement = - [1635924252.914490][9545:9550] CHIP:DMG: { - [1635924252.914524][9545:9550] CHIP:DMG: AttributePath = - [1635924252.914570][9545:9550] CHIP:DMG: { - [1635924252.914610][9545:9550] CHIP:DMG: NodeId = 0x1, - [1635924252.914667][9545:9550] CHIP:DMG: EndpointId = 0x0, - [1635924252.914724][9545:9550] CHIP:DMG: ClusterId = 0x3e, - [1635924252.914780][9545:9550] CHIP:DMG: FieldTag = 0x0000_0001, - [1635924252.914828][9545:9550] CHIP:DMG: } + [1635924252.914370][9545:9550] CHIP:DMG: AttributeDataList = + [1635924252.914409][9545:9550] CHIP:DMG: [ + [1635924252.914446][9545:9550] CHIP:DMG: AttributeDataElement = + [1635924252.914490][9545:9550] CHIP:DMG: { + [1635924252.914524][9545:9550] CHIP:DMG: AttributePath = + [1635924252.914570][9545:9550] CHIP:DMG: { + [1635924252.914610][9545:9550] CHIP:DMG: NodeId = 0x1, + [1635924252.914667][9545:9550] CHIP:DMG: EndpointId = 0x0, + [1635924252.914724][9545:9550] CHIP:DMG: ClusterId = 0x3e, + [1635924252.914780][9545:9550] CHIP:DMG: FieldTag = 0x0000_0001, + [1635924252.914828][9545:9550] CHIP:DMG: } [1635924252.914878][9545:9550] CHIP:DMG: - [1635924252.914919][9545:9550] CHIP:DMG: Data = [ + [1635924252.914919][9545:9550] CHIP:DMG: Data = [ [1635924252.914966][9545:9550] CHIP:DMG: - [1635924252.915012][9545:9550] CHIP:DMG: { - [1635924252.915063][9545:9550] CHIP:DMG: 0x0 = 1, - [1635924252.915112][9545:9550] CHIP:DMG: 0x1 = [ - [1635924252.915180][9545:9550] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, - 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, - 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, - 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, - 0x53, 0x63 [1635924252.915248][9545:9550] CHIP:DMG: ] - [1635924252.915296][9545:9550] CHIP:DMG: 0x2 = 50504, - [1635924252.915345][9545:9550] CHIP:DMG: 0x3 = 0, - [1635924252.915392][9545:9550] CHIP:DMG: 0x4 = 1, - [1635924252.915445][9545:9550] CHIP:DMG: 0x5 = ' ', - [1635924252.915518][9545:9550] CHIP:DMG: }, - [1635924252.915573][9545:9550] CHIP:DMG: { - [1635924252.915622][9545:9550] CHIP:DMG: 0x0 = 2, - [1635924252.915693][9545:9550] CHIP:DMG: 0x1 = [ - [1635924252.915790][9545:9550] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, - 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, - 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, - 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, - 0xac, 0x81, 0x92, [1635924252.915870][9545:9550] CHIP:DMG: ] - [1635924252.915943][9545:9550] CHIP:DMG: 0x2 = 33608, - [1635924252.915996][9545:9550] CHIP:DMG: 0x3 = 0, - [1635924252.916047][9545:9550] CHIP:DMG: 0x4 = 2, - [1635924252.916098][9545:9550] CHIP:DMG: 0x5 = ' ', - [1635924252.916150][9545:9550] CHIP:DMG: }, - [1635924252.916205][9545:9550] CHIP:DMG: ], - [1635924252.916257][9545:9550] CHIP:DMG: DataElementVersion = 0x0, - [1635924252.916315][9545:9550] CHIP:DMG: }, + [1635924252.915012][9545:9550] CHIP:DMG: { + [1635924252.915063][9545:9550] CHIP:DMG: 0x0 = 1, + [1635924252.915112][9545:9550] CHIP:DMG: 0x1 = [ + [1635924252.915180][9545:9550] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635924252.915248][9545:9550] CHIP:DMG: ] + [1635924252.915296][9545:9550] CHIP:DMG: 0x2 = 50504, + [1635924252.915345][9545:9550] CHIP:DMG: 0x3 = 0, + [1635924252.915392][9545:9550] CHIP:DMG: 0x4 = 1, + [1635924252.915445][9545:9550] CHIP:DMG: 0x5 = "", + [1635924252.915518][9545:9550] CHIP:DMG: }, + [1635924252.915573][9545:9550] CHIP:DMG: { + [1635924252.915622][9545:9550] CHIP:DMG: 0x0 = 2, + [1635924252.915693][9545:9550] CHIP:DMG: 0x1 = [ + [1635924252.915790][9545:9550] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635924252.915870][9545:9550] CHIP:DMG: ] + [1635924252.915943][9545:9550] CHIP:DMG: 0x2 = 33608, + [1635924252.915996][9545:9550] CHIP:DMG: 0x3 = 0, + [1635924252.916047][9545:9550] CHIP:DMG: 0x4 = 2, + [1635924252.916098][9545:9550] CHIP:DMG: 0x5 = "", + [1635924252.916150][9545:9550] CHIP:DMG: }, + [1635924252.916205][9545:9550] CHIP:DMG: ], + [1635924252.916257][9545:9550] CHIP:DMG: DataElementVersion = 0x0, + [1635924252.916315][9545:9550] CHIP:DMG: }, [1635924252.916383][9545:9550] CHIP:DMG: - [1635924252.916427][9545:9550] CHIP:DMG: ], + [1635924252.916427][9545:9550] CHIP:DMG: ], [1635924252.916492][9545:9550] CHIP:DMG: [1635924252.916534][9545:9550] CHIP:DMG: } [1635924252.916707][9545:9550] CHIP:ZCL: ReadAttributesResponse: - [1635924252.916750][9545:9550] CHIP:ZCL: ClusterId: 0x0000_003E - [1635924252.916795][9545:9550] CHIP:ZCL: attributeId: 0x0000_0001 - [1635924252.916836][9545:9550] CHIP:ZCL: status: Success (0x0000) - [1635924252.916882][9545:9550] CHIP:ZCL: attribute TLV Type: 0x16 - 1635924252.916947][9545:9550] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635924252.916750][9545:9550] CHIP:ZCL: ClusterId: 0x0000_003E + [1635924252.916795][9545:9550] CHIP:ZCL: attributeId: 0x0000_0001 + [1635924252.916836][9545:9550] CHIP:ZCL: status: Success (0x0000) + [1635924252.916882][9545:9550] CHIP:ZCL: attribute TLV Type: 0x16 + 1635924252.916947][9545:9550] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635924252.917171][9545:9550] CHIP:TOO: FabricDescriptor[1]: - [1635924252.917214][9545:9550] CHIP:TOO: fabricIndex: 1 - [1635924252.917252][9545:9550] CHIP:ZCL: RootPublicKey: 65 - [1635924252.917289][9545:9550] CHIP:TOO: vendorId: 50504 - [1635924252.917322][9545:9550] CHIP:TOO: fabricId: 0 - [1635924252.917357][9545:9550] CHIP:TOO: nodeId: 1 - [1635924252.917389][9545:9550] CHIP:ZCL: Label: + [1635924252.917214][9545:9550] CHIP:TOO: fabricIndex: 1 + [1635924252.917252][9545:9550] CHIP:ZCL: RootPublicKey: 65 + [1635924252.917289][9545:9550] CHIP:TOO: vendorId: 50504 + [1635924252.917322][9545:9550] CHIP:TOO: fabricId: 0 + [1635924252.917357][9545:9550] CHIP:TOO: nodeId: 1 + [1635924252.917389][9545:9550] CHIP:ZCL: Label: [1635924252.917485][9545:9550] CHIP:TOO: FabricDescriptor[2]: - [1635924252.917518][9545:9550] CHIP:TOO: fabricIndex: 2 - [1635924252.917548][9545:9550] CHIP:ZCL: RootPublicKey: 65 - [1635924252.917577][9545:9550] CHIP:TOO: vendorId: 33608 - [1635924252.917606][9545:9550] CHIP:TOO: fabricId: 0 - [1635924252.917636][9545:9550] CHIP:TOO: nodeId: 2" + [1635924252.917518][9545:9550] CHIP:TOO: fabricIndex: 2 + [1635924252.917548][9545:9550] CHIP:ZCL: RootPublicKey: 65 + [1635924252.917577][9545:9550] CHIP:TOO: vendorId: 33608 + [1635924252.917606][9545:9550] CHIP:TOO: fabricId: 0 + [1635924252.917636][9545:9550] CHIP:TOO: nodeId: 2 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller, open commissioning window using BCM Below is - the example when using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On your DUT controller, open commissioning window using BCM + + Below is the example when using chip tool as controller + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + + 1635924383.110602][9561:9566] CHIP:DMG: InvokeCommand = [1635924383.110672][9561:9566] CHIP:DMG: { - [1635924383.110732][9561:9566] CHIP:DMG: CommandList = - [1635924383.110796][9561:9566] CHIP:DMG: [ - [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = - [1635924383.110940][9561:9566] CHIP:DMG: { - [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = - [1635924383.111070][9561:9566] CHIP:DMG: { - [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, - [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, - [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, - [1635924383.111365][9561:9566] CHIP:DMG: }, + [1635924383.110732][9561:9566] CHIP:DMG: CommandList = + [1635924383.110796][9561:9566] CHIP:DMG: [ + [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = + [1635924383.110940][9561:9566] CHIP:DMG: { + [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = + [1635924383.111070][9561:9566] CHIP:DMG: { + [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, + [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, + [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, + [1635924383.111365][9561:9566] CHIP:DMG: }, [1635924383.111442][9561:9566] CHIP:DMG: - [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = - [1635924383.111573][9561:9566] CHIP:DMG: { - [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, - [1635924383.111729][9561:9566] CHIP:DMG: }, + [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = + [1635924383.111573][9561:9566] CHIP:DMG: { + [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, + [1635924383.111729][9561:9566] CHIP:DMG: }, [1635924383.111807][9561:9566] CHIP:DMG: - [1635924383.111877][9561:9566] CHIP:DMG: }, + [1635924383.111877][9561:9566] CHIP:DMG: }, [1635924383.111952][9561:9566] CHIP:DMG: - [1635924383.112011][9561:9566] CHIP:DMG: ], + [1635924383.112011][9561:9566] CHIP:DMG: ], [1635924383.112073][9561:9566] CHIP:DMG: [1635924383.112126][9561:9566] CHIP:DMG: } - [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924383.112285][9561:9566] CHIP:TOO: Default Success - Response" + [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924383.112285][9561:9566] CHIP:TOO: Default Success Response disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR2 opens a second commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 2nd controller using chip tool, open commissioning window - using BCM before the timer expiry from above step ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On the 2nd controller using chip tool, open commissioning window using BCM before the timer expiry from above step + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + + 1635924383.110602][9561:9566] CHIP:DMG: InvokeCommand = [1635924383.110672][9561:9566] CHIP:DMG: { - [1635924383.110732][9561:9566] CHIP:DMG: CommandList = - [1635924383.110796][9561:9566] CHIP:DMG: [ - [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = - [1635924383.110940][9561:9566] CHIP:DMG: { - [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = - [1635924383.111070][9561:9566] CHIP:DMG: { - [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, - [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, - [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, - [1635924383.111365][9561:9566] CHIP:DMG: }, + [1635924383.110732][9561:9566] CHIP:DMG: CommandList = + [1635924383.110796][9561:9566] CHIP:DMG: [ + [1635924383.110877][9561:9566] CHIP:DMG: CommandDataIB = + [1635924383.110940][9561:9566] CHIP:DMG: { + [1635924383.110998][9561:9566] CHIP:DMG: CommandPathIB = + [1635924383.111070][9561:9566] CHIP:DMG: { + [1635924383.111143][9561:9566] CHIP:DMG: EndpointId = 0x0, + [1635924383.111219][9561:9566] CHIP:DMG: ClusterId = 0x3c, + [1635924383.111294][9561:9566] CHIP:DMG: CommandId = 0x1, + [1635924383.111365][9561:9566] CHIP:DMG: }, [1635924383.111442][9561:9566] CHIP:DMG: - [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = - [1635924383.111573][9561:9566] CHIP:DMG: { - [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, - [1635924383.111729][9561:9566] CHIP:DMG: }, + [1635924383.111506][9561:9566] CHIP:DMG: StatusIB = + [1635924383.111573][9561:9566] CHIP:DMG: { + [1635924383.111651][9561:9566] CHIP:DMG: status = 0x0, + [1635924383.111729][9561:9566] CHIP:DMG: }, [1635924383.111807][9561:9566] CHIP:DMG: - [1635924383.111877][9561:9566] CHIP:DMG: }, + [1635924383.111877][9561:9566] CHIP:DMG: }, [1635924383.111952][9561:9566] CHIP:DMG: - [1635924383.112011][9561:9566] CHIP:DMG: ], + [1635924383.112011][9561:9566] CHIP:DMG: ], [1635924383.112073][9561:9566] CHIP:DMG: [1635924383.112126][9561:9566] CHIP:DMG: } - [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924383.112285][9561:9566] CHIP:TOO: Default Success - Response" + [1635924383.112226][9561:9566] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924383.112285][9561:9566] CHIP:TOO: Default Success Response disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_15.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_15.yaml index 4ba17faa866f81..ebf7517be098d9 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_15.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_15.yaml @@ -23,390 +23,372 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st controller chip tool (use above - instructions) ," + verification: | + 1. Provision the device using 1st controller chip tool (use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using BCM and TH_CR3 Commissions with DUT_CE" - verification: - "On the 1st controller using chip tool, open commissioning window - using BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 1 0 [1635924941.016801][9606:9611] - CHIP:DMG: InvokeCommand = [1635924941.016871][9606:9611] CHIP:DMG: { - [1635924941.016926][9606:9611] CHIP:DMG: CommandList = - [1635924941.016987][9606:9611] CHIP:DMG: [ - [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = - [1635924941.017115][9606:9611] CHIP:DMG: { - [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = - [1635924941.017262][9606:9611] CHIP:DMG: { - [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, - [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, - [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, - [1635924941.017615][9606:9611] CHIP:DMG: }, + verification: | + On the 1st controller using chip tool, open commissioning window using BCM + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + [1635924941.016801][9606:9611] CHIP:DMG: InvokeCommand = + [1635924941.016871][9606:9611] CHIP:DMG: { + [1635924941.016926][9606:9611] CHIP:DMG: CommandList = + [1635924941.016987][9606:9611] CHIP:DMG: [ + [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = + [1635924941.017115][9606:9611] CHIP:DMG: { + [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = + [1635924941.017262][9606:9611] CHIP:DMG: { + [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, + [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, + [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, + [1635924941.017615][9606:9611] CHIP:DMG: }, [1635924941.017693][9606:9611] CHIP:DMG: - [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = - [1635924941.017834][9606:9611] CHIP:DMG: { - [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, - [1635924941.017992][9606:9611] CHIP:DMG: }, + [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = + [1635924941.017834][9606:9611] CHIP:DMG: { + [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, + [1635924941.017992][9606:9611] CHIP:DMG: }, [1635924941.018071][9606:9611] CHIP:DMG: - [1635924941.018141][9606:9611] CHIP:DMG: }, + [1635924941.018141][9606:9611] CHIP:DMG: }, [1635924941.018224][9606:9611] CHIP:DMG: - [1635924941.018283][9606:9611] CHIP:DMG: ], + [1635924941.018283][9606:9611] CHIP:DMG: ], [1635924941.018354][9606:9611] CHIP:DMG: [1635924941.018408][9606:9611] CHIP:DMG: } - [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924941.018574][9606:9611] CHIP:TOO: Default Success - Response On 3rd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924941.018574][9606:9611] CHIP:TOO: Default Success Response + + + On 3rd controller using chip tool connect to the accessory + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using BCM and TH_CR2 Commissions with DUT_CE" - verification: - "On the 2nd controller using chip tool, open commissioning window - using BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 1 0 [1635924941.016801][9606:9611] - CHIP:DMG: InvokeCommand = [1635924941.016871][9606:9611] CHIP:DMG: { - [1635924941.016926][9606:9611] CHIP:DMG: CommandList = - [1635924941.016987][9606:9611] CHIP:DMG: [ - [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = - [1635924941.017115][9606:9611] CHIP:DMG: { - [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = - [1635924941.017262][9606:9611] CHIP:DMG: { - [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, - [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, - [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, - [1635924941.017615][9606:9611] CHIP:DMG: }, + verification: | + On the 2nd controller using chip tool, open commissioning window using BCM + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + [1635924941.016801][9606:9611] CHIP:DMG: InvokeCommand = + [1635924941.016871][9606:9611] CHIP:DMG: { + [1635924941.016926][9606:9611] CHIP:DMG: CommandList = + [1635924941.016987][9606:9611] CHIP:DMG: [ + [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = + [1635924941.017115][9606:9611] CHIP:DMG: { + [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = + [1635924941.017262][9606:9611] CHIP:DMG: { + [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, + [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, + [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, + [1635924941.017615][9606:9611] CHIP:DMG: }, [1635924941.017693][9606:9611] CHIP:DMG: - [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = - [1635924941.017834][9606:9611] CHIP:DMG: { - [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, - [1635924941.017992][9606:9611] CHIP:DMG: }, + [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = + [1635924941.017834][9606:9611] CHIP:DMG: { + [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, + [1635924941.017992][9606:9611] CHIP:DMG: }, [1635924941.018071][9606:9611] CHIP:DMG: - [1635924941.018141][9606:9611] CHIP:DMG: }, + [1635924941.018141][9606:9611] CHIP:DMG: }, [1635924941.018224][9606:9611] CHIP:DMG: - [1635924941.018283][9606:9611] CHIP:DMG: ], + [1635924941.018283][9606:9611] CHIP:DMG: ], [1635924941.018354][9606:9611] CHIP:DMG: [1635924941.018408][9606:9611] CHIP:DMG: } - [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924941.018574][9606:9611] CHIP:TOO: Default Success - Response On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924941.018574][9606:9611] CHIP:TOO: Default Success Response + + + On 2nd controller using chip tool connect to the accessory + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On the 1st controller using chip tool, open commissioning window - using BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 1 0 [1635924941.016801][9606:9611] - CHIP:DMG: InvokeCommand = [1635924941.016871][9606:9611] CHIP:DMG: { - [1635924941.016926][9606:9611] CHIP:DMG: CommandList = - [1635924941.016987][9606:9611] CHIP:DMG: [ - [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = - [1635924941.017115][9606:9611] CHIP:DMG: { - [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = - [1635924941.017262][9606:9611] CHIP:DMG: { - [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, - [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, - [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, - [1635924941.017615][9606:9611] CHIP:DMG: }, + verification: | + On the 1st controller using chip tool, open commissioning window using BCM + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + [1635924941.016801][9606:9611] CHIP:DMG: InvokeCommand = + [1635924941.016871][9606:9611] CHIP:DMG: { + [1635924941.016926][9606:9611] CHIP:DMG: CommandList = + [1635924941.016987][9606:9611] CHIP:DMG: [ + [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = + [1635924941.017115][9606:9611] CHIP:DMG: { + [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = + [1635924941.017262][9606:9611] CHIP:DMG: { + [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, + [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, + [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, + [1635924941.017615][9606:9611] CHIP:DMG: }, [1635924941.017693][9606:9611] CHIP:DMG: - [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = - [1635924941.017834][9606:9611] CHIP:DMG: { - [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, - [1635924941.017992][9606:9611] CHIP:DMG: }, + [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = + [1635924941.017834][9606:9611] CHIP:DMG: { + [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, + [1635924941.017992][9606:9611] CHIP:DMG: }, [1635924941.018071][9606:9611] CHIP:DMG: - [1635924941.018141][9606:9611] CHIP:DMG: }, + [1635924941.018141][9606:9611] CHIP:DMG: }, [1635924941.018224][9606:9611] CHIP:DMG: - [1635924941.018283][9606:9611] CHIP:DMG: ], + [1635924941.018283][9606:9611] CHIP:DMG: ], [1635924941.018354][9606:9611] CHIP:DMG: [1635924941.018408][9606:9611] CHIP:DMG: } - [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924941.018574][9606:9611] CHIP:TOO: Default Success - Response" + [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924941.018574][9606:9611] CHIP:TOO: Default Success Response disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR1 opens a 2nd commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 1st controller using chip tool, open commissioning window - using ECM before timer expiry from above step ./chip-tool pairing - open-commissioning-window 1 1 200 1000 3840 - [1635925166.559181][9640:9645] CHIP:SC: Success status report - received. Session was established [1635925166.559219][9640:9645] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 26!! [1635925166.559345][9640:9645] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925166.566754][9640:9645] CHIP:DMG: ICR moving to - [AddingComm] [1635925166.566805][9640:9645] CHIP:DMG: ICR moving to - [AddedComma] [1635925166.566924][9640:9645] CHIP:IN: Prepared - encrypted message 0xaaaae1dc5d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 51860i with MessageCounter:0. - [1635925166.566974][9640:9645] CHIP:IN: Sending encrypted msg - 0xaaaae1dc5d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 12902053 msec [1635925166.567193][9640:9645] CHIP:DMG: - ICR moving to [CommandSen] [1635925166.567253][9640:9645] CHIP:CTL: - Manual pairing code: [36110946855] [1635925166.567321][9640:9645] - CHIP:CTL: SetupQRCode: [MT:00000CQM00C8H-6ON10] - [1635925166.567422][9640:9645] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916532 on exchange 51859i" + verification: | + On the 1st controller using chip tool, open commissioning window using ECM before timer expiry from above step + + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 + + [1635925166.559181][9640:9645] CHIP:SC: Success status report received. Session was established + [1635925166.559219][9640:9645] CHIP:IN: New secure session created for device 0x0000000000000001, key 26!! + [1635925166.559345][9640:9645] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925166.566754][9640:9645] CHIP:DMG: ICR moving to [AddingComm] + [1635925166.566805][9640:9645] CHIP:DMG: ICR moving to [AddedComma] + [1635925166.566924][9640:9645] CHIP:IN: Prepared encrypted message 0xaaaae1dc5d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 51860i with MessageCounter:0. + [1635925166.566974][9640:9645] CHIP:IN: Sending encrypted msg 0xaaaae1dc5d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 12902053 msec + [1635925166.567193][9640:9645] CHIP:DMG: ICR moving to [CommandSen] + [1635925166.567253][9640:9645] CHIP:CTL: Manual pairing code: [36110946855] + [1635925166.567321][9640:9645] CHIP:CTL: SetupQRCode: [MT:00000CQM00C8H-6ON10] + [1635925166.567422][9640:9645] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916532 on exchange 51859i disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "on 1st controller using chip tool read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + on 1st controller using chip tool read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635924252.914294][9545:9550] CHIP:DMG: ReportData = [1635924252.914337][9545:9550] CHIP:DMG: { - [1635924252.914370][9545:9550] CHIP:DMG: AttributeDataList = - [1635924252.914409][9545:9550] CHIP:DMG: [ - [1635924252.914446][9545:9550] CHIP:DMG: AttributeDataElement = - [1635924252.914490][9545:9550] CHIP:DMG: { - [1635924252.914524][9545:9550] CHIP:DMG: AttributePath = - [1635924252.914570][9545:9550] CHIP:DMG: { - [1635924252.914610][9545:9550] CHIP:DMG: NodeId = 0x1, - [1635924252.914667][9545:9550] CHIP:DMG: EndpointId = 0x0, - [1635924252.914724][9545:9550] CHIP:DMG: ClusterId = 0x3e, - [1635924252.914780][9545:9550] CHIP:DMG: FieldTag = 0x0000_0001, - [1635924252.914828][9545:9550] CHIP:DMG: } + [1635924252.914370][9545:9550] CHIP:DMG: AttributeDataList = + [1635924252.914409][9545:9550] CHIP:DMG: [ + [1635924252.914446][9545:9550] CHIP:DMG: AttributeDataElement = + [1635924252.914490][9545:9550] CHIP:DMG: { + [1635924252.914524][9545:9550] CHIP:DMG: AttributePath = + [1635924252.914570][9545:9550] CHIP:DMG: { + [1635924252.914610][9545:9550] CHIP:DMG: NodeId = 0x1, + [1635924252.914667][9545:9550] CHIP:DMG: EndpointId = 0x0, + [1635924252.914724][9545:9550] CHIP:DMG: ClusterId = 0x3e, + [1635924252.914780][9545:9550] CHIP:DMG: FieldTag = 0x0000_0001, + [1635924252.914828][9545:9550] CHIP:DMG: } [1635924252.914878][9545:9550] CHIP:DMG: - [1635924252.914919][9545:9550] CHIP:DMG: Data = [ + [1635924252.914919][9545:9550] CHIP:DMG: Data = [ [1635924252.914966][9545:9550] CHIP:DMG: - [1635924252.915012][9545:9550] CHIP:DMG: { - [1635924252.915063][9545:9550] CHIP:DMG: 0x0 = 1, - [1635924252.915112][9545:9550] CHIP:DMG: 0x1 = [ - [1635924252.915180][9545:9550] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, - 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, - 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, - 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, - 0x53, 0x63 [1635924252.915248][9545:9550] CHIP:DMG: ] - [1635924252.915296][9545:9550] CHIP:DMG: 0x2 = 50504, - [1635924252.915345][9545:9550] CHIP:DMG: 0x3 = 0, - [1635924252.915392][9545:9550] CHIP:DMG: 0x4 = 1, - [1635924252.915445][9545:9550] CHIP:DMG: 0x5 = ', - [1635924252.915518][9545:9550] CHIP:DMG: }, - [1635924252.915573][9545:9550] CHIP:DMG: { - [1635924252.915622][9545:9550] CHIP:DMG: 0x0 = 2, - [1635924252.915693][9545:9550] CHIP:DMG: 0x1 = [ - [1635924252.915790][9545:9550] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, - 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, - 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, - 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, - 0xac, 0x81, 0x92, [1635924252.915870][9545:9550] CHIP:DMG: ] - [1635924252.915943][9545:9550] CHIP:DMG: 0x2 = 33608, - [1635924252.915996][9545:9550] CHIP:DMG: 0x3 = 0, - [1635924252.916047][9545:9550] CHIP:DMG: 0x4 = 2, - [1635924252.916098][9545:9550] CHIP:DMG: 0x5 = ', - [1635924252.916150][9545:9550] CHIP:DMG: }, - [1635924252.916205][9545:9550] CHIP:DMG: ], - [1635924252.916257][9545:9550] CHIP:DMG: DataElementVersion = 0x0, - [1635924252.916315][9545:9550] CHIP:DMG: }, + [1635924252.915012][9545:9550] CHIP:DMG: { + [1635924252.915063][9545:9550] CHIP:DMG: 0x0 = 1, + [1635924252.915112][9545:9550] CHIP:DMG: 0x1 = [ + [1635924252.915180][9545:9550] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635924252.915248][9545:9550] CHIP:DMG: ] + [1635924252.915296][9545:9550] CHIP:DMG: 0x2 = 50504, + [1635924252.915345][9545:9550] CHIP:DMG: 0x3 = 0, + [1635924252.915392][9545:9550] CHIP:DMG: 0x4 = 1, + [1635924252.915445][9545:9550] CHIP:DMG: 0x5 = "", + [1635924252.915518][9545:9550] CHIP:DMG: }, + [1635924252.915573][9545:9550] CHIP:DMG: { + [1635924252.915622][9545:9550] CHIP:DMG: 0x0 = 2, + [1635924252.915693][9545:9550] CHIP:DMG: 0x1 = [ + [1635924252.915790][9545:9550] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635924252.915870][9545:9550] CHIP:DMG: ] + [1635924252.915943][9545:9550] CHIP:DMG: 0x2 = 33608, + [1635924252.915996][9545:9550] CHIP:DMG: 0x3 = 0, + [1635924252.916047][9545:9550] CHIP:DMG: 0x4 = 2, + [1635924252.916098][9545:9550] CHIP:DMG: 0x5 = "", + [1635924252.916150][9545:9550] CHIP:DMG: }, + [1635924252.916205][9545:9550] CHIP:DMG: ], + [1635924252.916257][9545:9550] CHIP:DMG: DataElementVersion = 0x0, + [1635924252.916315][9545:9550] CHIP:DMG: }, [1635924252.916383][9545:9550] CHIP:DMG: - [1635924252.916427][9545:9550] CHIP:DMG: ], + [1635924252.916427][9545:9550] CHIP:DMG: ], [1635924252.916492][9545:9550] CHIP:DMG: [1635924252.916534][9545:9550] CHIP:DMG: } [1635924252.916707][9545:9550] CHIP:ZCL: ReadAttributesResponse: - [1635924252.916750][9545:9550] CHIP:ZCL: ClusterId: 0x0000_003E - [1635924252.916795][9545:9550] CHIP:ZCL: attributeId: 0x0000_0001 - [1635924252.916836][9545:9550] CHIP:ZCL: status: Success (0x0000) - [1635924252.916882][9545:9550] CHIP:ZCL: attribute TLV Type: 0x16 - 1635924252.916947][9545:9550] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635924252.916750][9545:9550] CHIP:ZCL: ClusterId: 0x0000_003E + [1635924252.916795][9545:9550] CHIP:ZCL: attributeId: 0x0000_0001 + [1635924252.916836][9545:9550] CHIP:ZCL: status: Success (0x0000) + [1635924252.916882][9545:9550] CHIP:ZCL: attribute TLV Type: 0x16 + 1635924252.916947][9545:9550] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635924252.917171][9545:9550] CHIP:TOO: FabricDescriptor[1]: - [1635924252.917214][9545:9550] CHIP:TOO: fabricIndex: 1 - [1635924252.917252][9545:9550] CHIP:ZCL: RootPublicKey: 65 - [1635924252.917289][9545:9550] CHIP:TOO: vendorId: 50504 - [1635924252.917322][9545:9550] CHIP:TOO: fabricId: 0 - [1635924252.917357][9545:9550] CHIP:TOO: nodeId: 1 - [1635924252.917389][9545:9550] CHIP:ZCL: Label: + [1635924252.917214][9545:9550] CHIP:TOO: fabricIndex: 1 + [1635924252.917252][9545:9550] CHIP:ZCL: RootPublicKey: 65 + [1635924252.917289][9545:9550] CHIP:TOO: vendorId: 50504 + [1635924252.917322][9545:9550] CHIP:TOO: fabricId: 0 + [1635924252.917357][9545:9550] CHIP:TOO: nodeId: 1 + [1635924252.917389][9545:9550] CHIP:ZCL: Label: [1635924252.917485][9545:9550] CHIP:TOO: FabricDescriptor[2]: - [1635924252.917518][9545:9550] CHIP:TOO: fabricIndex: 2 - [1635924252.917548][9545:9550] CHIP:ZCL: RootPublicKey: 65 - [1635924252.917577][9545:9550] CHIP:TOO: vendorId: 33608 - [1635924252.917606][9545:9550] CHIP:TOO: fabricId: 0 - [1635924252.917636][9545:9550] CHIP:TOO: nodeId: 2" + [1635924252.917518][9545:9550] CHIP:TOO: fabricIndex: 2 + [1635924252.917548][9545:9550] CHIP:ZCL: RootPublicKey: 65 + [1635924252.917577][9545:9550] CHIP:TOO: vendorId: 33608 + [1635924252.917606][9545:9550] CHIP:TOO: fabricId: 0 + [1635924252.917636][9545:9550] CHIP:TOO: nodeId: 2 disabled: true - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" - verification: "Wait for the expiration of PIXIT_COMM_WIN seconds" + verification: | + Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "TH_CR1 re-opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 1st controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 200 1000 - 3840 [1635925391.224232][9653:9658] CHIP:SC: Success status report - received. Session was established [1635925391.224273][9653:9658] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 27!! [1635925391.224367][9653:9658] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925391.231805][9653:9658] CHIP:DMG: ICR moving to - [AddingComm] [1635925391.231864][9653:9658] CHIP:DMG: ICR moving to - [AddedComma] [1635925391.231996][9653:9658] CHIP:IN: Prepared - encrypted message 0xaaaae98fdd10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 61177i with MessageCounter:0. - [1635925391.232051][9653:9658] CHIP:IN: Sending encrypted msg - 0xaaaae98fdd10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13126718 msec [1635925391.232180][9653:9658] CHIP:DMG: - ICR moving to [CommandSen] [1635925391.232232][9653:9658] CHIP:CTL: - Manual pairing code: [35976646436] [1635925391.232299][9653:9658] - CHIP:CTL: SetupQRCode: [MT:00000CQM0061ZN63N10]" + verification: | + On the 1st controller using chip tool, open commissioning window using ECM + + + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 + + [1635925391.224232][9653:9658] CHIP:SC: Success status report received. Session was established + [1635925391.224273][9653:9658] CHIP:IN: New secure session created for device 0x0000000000000001, key 27!! + [1635925391.224367][9653:9658] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925391.231805][9653:9658] CHIP:DMG: ICR moving to [AddingComm] + [1635925391.231864][9653:9658] CHIP:DMG: ICR moving to [AddedComma] + [1635925391.231996][9653:9658] CHIP:IN: Prepared encrypted message 0xaaaae98fdd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 61177i with MessageCounter:0. + [1635925391.232051][9653:9658] CHIP:IN: Sending encrypted msg 0xaaaae98fdd10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13126718 msec + [1635925391.232180][9653:9658] CHIP:DMG: ICR moving to [CommandSen] + [1635925391.232232][9653:9658] CHIP:CTL: Manual pairing code: [35976646436] + [1635925391.232299][9653:9658] CHIP:CTL: SetupQRCode: [MT:00000CQM0061ZN63N10] disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR3 opens a 2nd commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 3rd controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 200 1000 - 3840 [1635925391.224232][9653:9658] CHIP:SC: Success status report - received. Session was established [1635925391.224273][9653:9658] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 27!! [1635925391.224367][9653:9658] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925391.231805][9653:9658] CHIP:DMG: ICR moving to - [AddingComm] [1635925391.231864][9653:9658] CHIP:DMG: ICR moving to - [AddedComma] [1635925391.231996][9653:9658] CHIP:IN: Prepared - encrypted message 0xaaaae98fdd10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 61177i with MessageCounter:0. - [1635925391.232051][9653:9658] CHIP:IN: Sending encrypted msg - 0xaaaae98fdd10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13126718 msec [1635925391.232180][9653:9658] CHIP:DMG: - ICR moving to [CommandSen] [1635925391.232232][9653:9658] CHIP:CTL: - Manual pairing code: [35976646436] [1635925391.232299][9653:9658] - CHIP:CTL: SetupQRCode: [MT:00000CQM0061ZN63N10]" + verification: | + On the 3rd controller using chip tool, open commissioning window using ECM + + + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 + + [1635925391.224232][9653:9658] CHIP:SC: Success status report received. Session was established + [1635925391.224273][9653:9658] CHIP:IN: New secure session created for device 0x0000000000000001, key 27!! + [1635925391.224367][9653:9658] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925391.231805][9653:9658] CHIP:DMG: ICR moving to [AddingComm] + [1635925391.231864][9653:9658] CHIP:DMG: ICR moving to [AddedComma] + [1635925391.231996][9653:9658] CHIP:IN: Prepared encrypted message 0xaaaae98fdd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 61177i with MessageCounter:0. + [1635925391.232051][9653:9658] CHIP:IN: Sending encrypted msg 0xaaaae98fdd10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13126718 msec + [1635925391.232180][9653:9658] CHIP:DMG: ICR moving to [CommandSen] + [1635925391.232232][9653:9658] CHIP:CTL: Manual pairing code: [35976646436] + [1635925391.232299][9653:9658] CHIP:CTL: SetupQRCode: [MT:00000CQM0061ZN63N10] disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "On 1st controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + On 1st controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635925479.101355][9664:9669] CHIP:DMG: ReportData = [1635925479.101389][9664:9669] CHIP:DMG: { - [1635925479.101465][9664:9669] CHIP:DMG: AttributeDataList = - [1635925479.101506][9664:9669] CHIP:DMG: [ - [1635925479.101542][9664:9669] CHIP:DMG: AttributeDataElement = - [1635925479.101602][9664:9669] CHIP:DMG: { - [1635925479.101656][9664:9669] CHIP:DMG: AttributePath = - [1635925479.101711][9664:9669] CHIP:DMG: { - [1635925479.101758][9664:9669] CHIP:DMG: NodeId = 0x1, - [1635925479.101808][9664:9669] CHIP:DMG: EndpointId = 0x0, - [1635925479.101857][9664:9669] CHIP:DMG: ClusterId = 0x3e, - [1635925479.101911][9664:9669] CHIP:DMG: FieldTag = 0x0000_0001, - [1635925479.101962][9664:9669] CHIP:DMG: } + [1635925479.101465][9664:9669] CHIP:DMG: AttributeDataList = + [1635925479.101506][9664:9669] CHIP:DMG: [ + [1635925479.101542][9664:9669] CHIP:DMG: AttributeDataElement = + [1635925479.101602][9664:9669] CHIP:DMG: { + [1635925479.101656][9664:9669] CHIP:DMG: AttributePath = + [1635925479.101711][9664:9669] CHIP:DMG: { + [1635925479.101758][9664:9669] CHIP:DMG: NodeId = 0x1, + [1635925479.101808][9664:9669] CHIP:DMG: EndpointId = 0x0, + [1635925479.101857][9664:9669] CHIP:DMG: ClusterId = 0x3e, + [1635925479.101911][9664:9669] CHIP:DMG: FieldTag = 0x0000_0001, + [1635925479.101962][9664:9669] CHIP:DMG: } [1635925479.102012][9664:9669] CHIP:DMG: - [1635925479.102057][9664:9669] CHIP:DMG: Data = [ + [1635925479.102057][9664:9669] CHIP:DMG: Data = [ [1635925479.102103][9664:9669] CHIP:DMG: - [1635925479.102149][9664:9669] CHIP:DMG: { - [1635925479.102199][9664:9669] CHIP:DMG: 0x0 = 1, - [1635925479.102256][9664:9669] CHIP:DMG: 0x1 = [ - [1635925479.102327][9664:9669] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, - 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, - 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, - 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, - 0x53, 0x63 [1635925479.102385][9664:9669] CHIP:DMG: ] - [1635925479.102435][9664:9669] CHIP:DMG: 0x2 = 50504, - [1635925479.102485][9664:9669] CHIP:DMG: 0x3 = 0, - [1635925479.102537][9664:9669] CHIP:DMG: 0x4 = 1, - [1635925479.102590][9664:9669] CHIP:DMG: 0x5 = ', - [1635925479.102660][9664:9669] CHIP:DMG: }, - [1635925479.102725][9664:9669] CHIP:DMG: { - [1635925479.102864][9664:9669] CHIP:DMG: 0x0 = 2, - [1635925479.102947][9664:9669] CHIP:DMG: 0x1 = [ - [1635925479.103056][9664:9669] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, - 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, - 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, - 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, - 0xac, 0x81, 0x92, [1635925479.103146][9664:9669] CHIP:DMG: ] - [1635925479.103207][9664:9669] CHIP:DMG: 0x2 = 33608, - [1635925479.103298][9664:9669] CHIP:DMG: 0x3 = 0, - [1635925479.103390][9664:9669] CHIP:DMG: 0x4 = 2, - [1635925479.103449][9664:9669] CHIP:DMG: 0x5 = ', - [1635925479.103528][9664:9669] CHIP:DMG: }, - [1635925479.103606][9664:9669] CHIP:DMG: ], - [1635925479.103660][9664:9669] CHIP:DMG: DataElementVersion = 0x0, - [1635925479.103727][9664:9669] CHIP:DMG: }, + [1635925479.102149][9664:9669] CHIP:DMG: { + [1635925479.102199][9664:9669] CHIP:DMG: 0x0 = 1, + [1635925479.102256][9664:9669] CHIP:DMG: 0x1 = [ + [1635925479.102327][9664:9669] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635925479.102385][9664:9669] CHIP:DMG: ] + [1635925479.102435][9664:9669] CHIP:DMG: 0x2 = 50504, + [1635925479.102485][9664:9669] CHIP:DMG: 0x3 = 0, + [1635925479.102537][9664:9669] CHIP:DMG: 0x4 = 1, + [1635925479.102590][9664:9669] CHIP:DMG: 0x5 = "", + [1635925479.102660][9664:9669] CHIP:DMG: }, + [1635925479.102725][9664:9669] CHIP:DMG: { + [1635925479.102864][9664:9669] CHIP:DMG: 0x0 = 2, + [1635925479.102947][9664:9669] CHIP:DMG: 0x1 = [ + [1635925479.103056][9664:9669] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635925479.103146][9664:9669] CHIP:DMG: ] + [1635925479.103207][9664:9669] CHIP:DMG: 0x2 = 33608, + [1635925479.103298][9664:9669] CHIP:DMG: 0x3 = 0, + [1635925479.103390][9664:9669] CHIP:DMG: 0x4 = 2, + [1635925479.103449][9664:9669] CHIP:DMG: 0x5 = "", + [1635925479.103528][9664:9669] CHIP:DMG: }, + [1635925479.103606][9664:9669] CHIP:DMG: ], + [1635925479.103660][9664:9669] CHIP:DMG: DataElementVersion = 0x0, + [1635925479.103727][9664:9669] CHIP:DMG: }, [1635925479.103797][9664:9669] CHIP:DMG: - [1635925479.103855][9664:9669] CHIP:DMG: ], + [1635925479.103855][9664:9669] CHIP:DMG: ], [1635925479.103918][9664:9669] CHIP:DMG: [1635925479.103959][9664:9669] CHIP:DMG: } [1635925479.104162][9664:9669] CHIP:ZCL: ReadAttributesResponse: - [1635925479.104205][9664:9669] CHIP:ZCL: ClusterId: 0x0000_003E - [1635925479.104266][9664:9669] CHIP:ZCL: attributeId: 0x0000_0001 - [1635925479.104324][9664:9669] CHIP:ZCL: status: Success (0x0000) - [1635925479.104360][9664:9669] CHIP:ZCL: attribute TLV Type: 0x16 - [1635925479.104424][9664:9669] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635925479.104205][9664:9669] CHIP:ZCL: ClusterId: 0x0000_003E + [1635925479.104266][9664:9669] CHIP:ZCL: attributeId: 0x0000_0001 + [1635925479.104324][9664:9669] CHIP:ZCL: status: Success (0x0000) + [1635925479.104360][9664:9669] CHIP:ZCL: attribute TLV Type: 0x16 + [1635925479.104424][9664:9669] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635925479.104563][9664:9669] CHIP:TOO: FabricDescriptor[1]: - [1635925479.104606][9664:9669] CHIP:TOO: fabricIndex: 1 - [1635925479.104644][9664:9669] CHIP:ZCL: RootPublicKey: 65 - [1635925479.104693][9664:9669] CHIP:TOO: vendorId: 50504 - [1635925479.104738][9664:9669] CHIP:TOO: fabricId: 0 - [1635925479.104775][9664:9669] CHIP:TOO: nodeId: 1 - [1635925479.104808][9664:9669] CHIP:ZCL: Label: + [1635925479.104606][9664:9669] CHIP:TOO: fabricIndex: 1 + [1635925479.104644][9664:9669] CHIP:ZCL: RootPublicKey: 65 + [1635925479.104693][9664:9669] CHIP:TOO: vendorId: 50504 + [1635925479.104738][9664:9669] CHIP:TOO: fabricId: 0 + [1635925479.104775][9664:9669] CHIP:TOO: nodeId: 1 + [1635925479.104808][9664:9669] CHIP:ZCL: Label: [1635925479.104858][9664:9669] CHIP:TOO: FabricDescriptor[2]: - [1635925479.104908][9664:9669] CHIP:TOO: fabricIndex: 2 - [1635925479.104949][9664:9669] CHIP:ZCL: RootPublicKey: 65 - [1635925479.104987][9664:9669] CHIP:TOO: vendorId: 33608 - [1635925479.105035][9664:9669] CHIP:TOO: fabricId: 0 - [1635925479.105068][9664:9669] CHIP:TOO: nodeId: 2" + [1635925479.104908][9664:9669] CHIP:TOO: fabricIndex: 2 + [1635925479.104949][9664:9669] CHIP:ZCL: RootPublicKey: 65 + [1635925479.104987][9664:9669] CHIP:TOO: vendorId: 33608 + [1635925479.105035][9664:9669] CHIP:TOO: fabricId: 0 + [1635925479.105068][9664:9669] CHIP:TOO: nodeId: 2 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 1st controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 - 3840 [1635925530.725036][9673:9678] CHIP:SC: Success status report - received. Session was established [1635925530.725071][9673:9678] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 29!! [1635925530.725168][9673:9678] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925530.732329][9673:9678] CHIP:DMG: ICR moving to - [AddingComm] [1635925530.732384][9673:9678] CHIP:DMG: ICR moving to - [AddedComma] [1635925530.732503][9673:9678] CHIP:IN: Prepared - encrypted message 0xaaab0b9c2d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 39062i with MessageCounter:0. - [1635925530.732559][9673:9678] CHIP:IN: Sending encrypted msg - 0xaaab0b9c2d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13266219 msec [1635925530.732681][9673:9678] CHIP:DMG: - ICR moving to [CommandSen] [1635925530.732737][9673:9678] CHIP:CTL: - Manual pairing code: [35484132896] [1635925530.732807][9673:9678] - CHIP:CTL: SetupQRCode: [MT:00000CQM0008YV45420]" + verification: | + On the 1st controller using chip tool, open commissioning window using ECM + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925530.725036][9673:9678] CHIP:SC: Success status report received. Session was established + [1635925530.725071][9673:9678] CHIP:IN: New secure session created for device 0x0000000000000001, key 29!! + [1635925530.725168][9673:9678] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925530.732329][9673:9678] CHIP:DMG: ICR moving to [AddingComm] + [1635925530.732384][9673:9678] CHIP:DMG: ICR moving to [AddedComma] + [1635925530.732503][9673:9678] CHIP:IN: Prepared encrypted message 0xaaab0b9c2d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 39062i with MessageCounter:0. + [1635925530.732559][9673:9678] CHIP:IN: Sending encrypted msg 0xaaab0b9c2d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13266219 msec + [1635925530.732681][9673:9678] CHIP:DMG: ICR moving to [CommandSen] + [1635925530.732737][9673:9678] CHIP:CTL: Manual pairing code: [35484132896] + [1635925530.732807][9673:9678] CHIP:CTL: SetupQRCode: [MT:00000CQM0008YV45420] disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR2 opens a second commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 2nd controller using chip tool, open commissioning window - using ECM and gets busy response ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635925530.725036][9673:9678] CHIP:SC: Success status report - received. Session was established [1635925530.725071][9673:9678] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 29!! [1635925530.725168][9673:9678] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925530.732329][9673:9678] CHIP:DMG: ICR moving to - [AddingComm] [1635925530.732384][9673:9678] CHIP:DMG: ICR moving to - [AddedComma] [1635925530.732503][9673:9678] CHIP:IN: Prepared - encrypted message 0xaaab0b9c2d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 39062i with MessageCounter:0. - [1635925530.732559][9673:9678] CHIP:IN: Sending encrypted msg - 0xaaab0b9c2d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13266219 msec [1635925530.732681][9673:9678] CHIP:DMG: - ICR moving to [CommandSen] [1635925530.732737][9673:9678] CHIP:CTL: - Manual pairing code: [35247660917] [1635925530.732807][9673:9678] - CHIP:CTL: SetupQRCode: [MT:00000CQM0008YV45420]" + verification: | + On the 2nd controller using chip tool, open commissioning window using ECM and gets busy response + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925530.725036][9673:9678] CHIP:SC: Success status report received. Session was established + [1635925530.725071][9673:9678] CHIP:IN: New secure session created for device 0x0000000000000001, key 29!! + [1635925530.725168][9673:9678] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925530.732329][9673:9678] CHIP:DMG: ICR moving to [AddingComm] + [1635925530.732384][9673:9678] CHIP:DMG: ICR moving to [AddedComma] + [1635925530.732503][9673:9678] CHIP:IN: Prepared encrypted message 0xaaab0b9c2d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 39062i with MessageCounter:0. + [1635925530.732559][9673:9678] CHIP:IN: Sending encrypted msg 0xaaab0b9c2d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13266219 msec + [1635925530.732681][9673:9678] CHIP:DMG: ICR moving to [CommandSen] + [1635925530.732737][9673:9678] CHIP:CTL: Manual pairing code: [35247660917] + [1635925530.732807][9673:9678] CHIP:CTL: SetupQRCode: [MT:00000CQM0008YV45420] disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml index b3690bc1844cfa..00b2d4cb6707de 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_16.yaml @@ -23,381 +23,354 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using your DUT controller (use above - instructions) ," + verification: | + 1. Provision the device using your DUT controller (use above instructions) , disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using BCM and TH_CR3 Commissions with TH_CE" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example while using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] On 3rd controller - using chip tool connect using manual code ./chip-tool pairing - manualcode 1 35484132896" + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example while using chip tool as controller + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] + + + On 3rd controller using chip tool connect using manual code + + ./chip-tool pairing manualcode 1 35484132896 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using BCM and TH_CR2 Commissions with TH_CE" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example while using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635874557.409509][4549:4554] CHIP:SC: Success status report - received. Session was established [1635874557.409553][4549:4554] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 76!! [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to - [AddingComm] [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to - [AddedComma] [1635874557.417215][4549:4554] CHIP:IN: Prepared - encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 5541i with MessageCounter:0. - [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg - 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 16129075 msec [1635874557.417449][4549:4554] CHIP:DMG: - ICR moving to [CommandSen] [1635874557.417505][4549:4554] CHIP:CTL: - Manual pairing code: [35484132896] [1635874557.417577][4549:4554] - CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] On 2nd controller - using chip tool connect using manual code ./chip-tool pairing - manualcode 1 35484132896" + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example while using chip tool as controller + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635874557.409509][4549:4554] CHIP:SC: Success status report received. Session was established + [1635874557.409553][4549:4554] CHIP:IN: New secure session created for device 0x0000000000000001, key 76!! + [1635874557.409649][4549:4554] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635874557.416929][4549:4554] CHIP:DMG: ICR moving to [AddingComm] + [1635874557.417092][4549:4554] CHIP:DMG: ICR moving to [AddedComma] + [1635874557.417215][4549:4554] CHIP:IN: Prepared encrypted message 0xaaaac5947d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 5541i with MessageCounter:0. + [1635874557.417271][4549:4554] CHIP:IN: Sending encrypted msg 0xaaaac5947d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 16129075 msec + [1635874557.417449][4549:4554] CHIP:DMG: ICR moving to [CommandSen] + [1635874557.417505][4549:4554] CHIP:CTL: Manual pairing code: [35484132896] + [1635874557.417577][4549:4554] CHIP:CTL: SetupQRCode: [MT:00000CQM00AT-F5A510] + + On 2nd controller using chip tool connect using manual code + ./chip-tool pairing manualcode 1 35484132896 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller, open commissioning window using BCM Below is - the example while using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On your DUT controller, open commissioning window using BCM + + Below is the example while using chip tool as controller + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635924941.016801][9606:9611] CHIP:DMG: InvokeCommand = [1635924941.016871][9606:9611] CHIP:DMG: { - [1635924941.016926][9606:9611] CHIP:DMG: CommandList = - [1635924941.016987][9606:9611] CHIP:DMG: [ - [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = - [1635924941.017115][9606:9611] CHIP:DMG: { - [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = - [1635924941.017262][9606:9611] CHIP:DMG: { - [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, - [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, - [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, - [1635924941.017615][9606:9611] CHIP:DMG: }, + [1635924941.016926][9606:9611] CHIP:DMG: CommandList = + [1635924941.016987][9606:9611] CHIP:DMG: [ + [1635924941.017047][9606:9611] CHIP:DMG: CommandDataIB = + [1635924941.017115][9606:9611] CHIP:DMG: { + [1635924941.017181][9606:9611] CHIP:DMG: CommandPathIB = + [1635924941.017262][9606:9611] CHIP:DMG: { + [1635924941.017342][9606:9611] CHIP:DMG: EndpointId = 0x0, + [1635924941.017465][9606:9611] CHIP:DMG: ClusterId = 0x3c, + [1635924941.017544][9606:9611] CHIP:DMG: CommandId = 0x1, + [1635924941.017615][9606:9611] CHIP:DMG: }, [1635924941.017693][9606:9611] CHIP:DMG: - [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = - [1635924941.017834][9606:9611] CHIP:DMG: { - [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, - [1635924941.017992][9606:9611] CHIP:DMG: }, + [1635924941.017758][9606:9611] CHIP:DMG: StatusIB = + [1635924941.017834][9606:9611] CHIP:DMG: { + [1635924941.017912][9606:9611] CHIP:DMG: status = 0x0, + [1635924941.017992][9606:9611] CHIP:DMG: }, [1635924941.018071][9606:9611] CHIP:DMG: - [1635924941.018141][9606:9611] CHIP:DMG: }, + [1635924941.018141][9606:9611] CHIP:DMG: }, [1635924941.018224][9606:9611] CHIP:DMG: - [1635924941.018283][9606:9611] CHIP:DMG: ], + [1635924941.018283][9606:9611] CHIP:DMG: ], [1635924941.018354][9606:9611] CHIP:DMG: [1635924941.018408][9606:9611] CHIP:DMG: } - [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635924941.018574][9606:9611] CHIP:TOO: Default Success - Response" + [1635924941.018506][9606:9611] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635924941.018574][9606:9611] CHIP:TOO: Default Success Response disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, DUT_CR1 opens a 2nd commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller, open commissioning window using ECM before - the timer expiry of the above step Below is the example while using - chip tool as controller ./chip-tool pairing open-commissioning-window - 1 1 100 1000 3840 [1635925972.865369][9735:9740] CHIP:SC: Success - status report received. Session was established - [1635925972.865469][9735:9740] CHIP:IN: New secure session created for - device 0x0000000000000001, key 40!! [1635925972.865568][9735:9740] - CHIP:CTL: OpenCommissioningWindow for device ID 1 + verification: | + On your DUT controller, open commissioning window using ECM before the timer expiry of the above step + + Below is the example while using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + + + [1635925972.865369][9735:9740] CHIP:SC: Success status report received. Session was established + [1635925972.865469][9735:9740] CHIP:IN: New secure session created for device 0x0000000000000001, key 40!! + [1635925972.865568][9735:9740] CHIP:CTL: OpenCommissioningWindow for device ID 1 [1635925972.872960][9735:9740] CHIP:DMG: ICR moving to [AddingComm] [1635925972.873019][9735:9740] CHIP:DMG: ICR moving to [AddedComma] - [1635925972.873146][9735:9740] CHIP:IN: Prepared encrypted message - 0xaaaafda39d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) - on exchange 60358i with MessageCounter:0. - [1635925972.873205][9735:9740] CHIP:IN: Sending encrypted msg - 0xaaaafda39d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13708359 msec [1635925972.873332][9735:9740] CHIP:DMG: - ICR moving to [CommandSen] [1635925972.873391][9735:9740] CHIP:CTL: - Manual pairing code: [35092514987] [1635925972.873482][9735:9740] - CHIP:CTL: SetupQRCode: [MT:00000CQM00I.KG0RJ00] - [1635925972.873554][9735:9740] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916552 on exchange 60357i" + [1635925972.873146][9735:9740] CHIP:IN: Prepared encrypted message 0xaaaafda39d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 60358i with MessageCounter:0. + [1635925972.873205][9735:9740] CHIP:IN: Sending encrypted msg 0xaaaafda39d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13708359 msec + [1635925972.873332][9735:9740] CHIP:DMG: ICR moving to [CommandSen] + [1635925972.873391][9735:9740] CHIP:CTL: Manual pairing code: [35092514987] + [1635925972.873482][9735:9740] CHIP:CTL: SetupQRCode: [MT:00000CQM00I.KG0RJ00] + [1635925972.873554][9735:9740] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916552 on exchange 60357i disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "On your DUT controller, read fabrics list Below is the command using - chip tool as controller ./chip-tool operationalcredentials read - fabrics-list 1 0 [1635926055.539463][10129:10134] CHIP:DMG: ReportData - = [1635926055.539502][10129:10134] CHIP:DMG: { - [1635926055.539535][10129:10134] CHIP:DMG: AttributeDataList = - [1635926055.539575][10129:10134] CHIP:DMG: [ - [1635926055.539625][10129:10134] CHIP:DMG: AttributeDataElement = - [1635926055.539673][10129:10134] CHIP:DMG: { - [1635926055.539745][10129:10134] CHIP:DMG: AttributePath = - [1635926055.539800][10129:10134] CHIP:DMG: { - [1635926055.539849][10129:10134] CHIP:DMG: NodeId = 0x1, - [1635926055.539917][10129:10134] CHIP:DMG: EndpointId = 0x0, - [1635926055.539969][10129:10134] CHIP:DMG: ClusterId = 0x3e, - [1635926055.540085][10129:10134] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926055.540187][10129:10134] CHIP:DMG: } + verification: | + On your DUT controller, read fabrics list + + Below is the command using chip tool as controller + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635926055.539463][10129:10134] CHIP:DMG: ReportData = + [1635926055.539502][10129:10134] CHIP:DMG: { + [1635926055.539535][10129:10134] CHIP:DMG: AttributeDataList = + [1635926055.539575][10129:10134] CHIP:DMG: [ + [1635926055.539625][10129:10134] CHIP:DMG: AttributeDataElement = + [1635926055.539673][10129:10134] CHIP:DMG: { + [1635926055.539745][10129:10134] CHIP:DMG: AttributePath = + [1635926055.539800][10129:10134] CHIP:DMG: { + [1635926055.539849][10129:10134] CHIP:DMG: NodeId = 0x1, + [1635926055.539917][10129:10134] CHIP:DMG: EndpointId = 0x0, + [1635926055.539969][10129:10134] CHIP:DMG: ClusterId = 0x3e, + [1635926055.540085][10129:10134] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926055.540187][10129:10134] CHIP:DMG: } [1635926055.540258][10129:10134] CHIP:DMG: - [1635926055.540305][10129:10134] CHIP:DMG: Data = [ + [1635926055.540305][10129:10134] CHIP:DMG: Data = [ [1635926055.540375][10129:10134] CHIP:DMG: - [1635926055.540423][10129:10134] CHIP:DMG: { - [1635926055.540490][10129:10134] CHIP:DMG: 0x0 = 1, - [1635926055.540546][10129:10134] CHIP:DMG: 0x1 = [ - [1635926055.540639][10129:10134] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926055.540729][10129:10134] CHIP:DMG: ] - [1635926055.540790][10129:10134] CHIP:DMG: 0x2 = 50504, - [1635926055.540862][10129:10134] CHIP:DMG: 0x3 = 0, - [1635926055.540916][10129:10134] CHIP:DMG: 0x4 = 1, - [1635926055.541001][10129:10134] CHIP:DMG: 0x5 = ', - [1635926055.541085][10129:10134] CHIP:DMG: }, - [1635926055.541159][10129:10134] CHIP:DMG: { - [1635926055.541233][10129:10134] CHIP:DMG: 0x0 = 2, - [1635926055.541292][10129:10134] CHIP:DMG: 0x1 = [ - [1635926055.541373][10129:10134] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926055.541472][10129:10134] CHIP:DMG: ] - [1635926055.541535][10129:10134] CHIP:DMG: 0x2 = 33608, - [1635926055.541588][10129:10134] CHIP:DMG: 0x3 = 0, - [1635926055.541657][10129:10134] CHIP:DMG: 0x4 = 2, - [1635926055.541719][10129:10134] CHIP:DMG: 0x5 = ', - [1635926055.541781][10129:10134] CHIP:DMG: }, - [1635926055.541852][10129:10134] CHIP:DMG: ], - [1635926055.541909][10129:10134] CHIP:DMG: DataElementVersion = 0x0, - [1635926055.541963][10129:10134] CHIP:DMG: }, + [1635926055.540423][10129:10134] CHIP:DMG: { + [1635926055.540490][10129:10134] CHIP:DMG: 0x0 = 1, + [1635926055.540546][10129:10134] CHIP:DMG: 0x1 = [ + [1635926055.540639][10129:10134] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926055.540729][10129:10134] CHIP:DMG: ] + [1635926055.540790][10129:10134] CHIP:DMG: 0x2 = 50504, + [1635926055.540862][10129:10134] CHIP:DMG: 0x3 = 0, + [1635926055.540916][10129:10134] CHIP:DMG: 0x4 = 1, + [1635926055.541001][10129:10134] CHIP:DMG: 0x5 = "", + [1635926055.541085][10129:10134] CHIP:DMG: }, + [1635926055.541159][10129:10134] CHIP:DMG: { + [1635926055.541233][10129:10134] CHIP:DMG: 0x0 = 2, + [1635926055.541292][10129:10134] CHIP:DMG: 0x1 = [ + [1635926055.541373][10129:10134] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926055.541472][10129:10134] CHIP:DMG: ] + [1635926055.541535][10129:10134] CHIP:DMG: 0x2 = 33608, + [1635926055.541588][10129:10134] CHIP:DMG: 0x3 = 0, + [1635926055.541657][10129:10134] CHIP:DMG: 0x4 = 2, + [1635926055.541719][10129:10134] CHIP:DMG: 0x5 = "", + [1635926055.541781][10129:10134] CHIP:DMG: }, + [1635926055.541852][10129:10134] CHIP:DMG: ], + [1635926055.541909][10129:10134] CHIP:DMG: DataElementVersion = 0x0, + [1635926055.541963][10129:10134] CHIP:DMG: }, [1635926055.542032][10129:10134] CHIP:DMG: - [1635926055.542074][10129:10134] CHIP:DMG: ], + [1635926055.542074][10129:10134] CHIP:DMG: ], [1635926055.542137][10129:10134] CHIP:DMG: [1635926055.542175][10129:10134] CHIP:DMG: } [1635926055.542385][10129:10134] CHIP:ZCL: ReadAttributesResponse: - [1635926055.542427][10129:10134] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926055.542484][10129:10134] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926055.542521][10129:10134] CHIP:ZCL: status: Success (0x0000) - [1635926055.542556][10129:10134] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926055.542626][10129:10134] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926055.542427][10129:10134] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926055.542484][10129:10134] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926055.542521][10129:10134] CHIP:ZCL: status: Success (0x0000) + [1635926055.542556][10129:10134] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926055.542626][10129:10134] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926055.542774][10129:10134] CHIP:TOO: FabricDescriptor[1]: - [1635926055.542816][10129:10134] CHIP:TOO: fabricIndex: 1 - [1635926055.542853][10129:10134] CHIP:ZCL: RootPublicKey: 65 - [1635926055.542906][10129:10134] CHIP:TOO: vendorId: 50504 - [1635926055.542938][10129:10134] CHIP:TOO: fabricId: 0 - [1635926055.542973][10129:10134] CHIP:TOO: nodeId: 1 - [1635926055.543010][10129:10134] CHIP:ZCL: Label: + [1635926055.542816][10129:10134] CHIP:TOO: fabricIndex: 1 + [1635926055.542853][10129:10134] CHIP:ZCL: RootPublicKey: 65 + [1635926055.542906][10129:10134] CHIP:TOO: vendorId: 50504 + [1635926055.542938][10129:10134] CHIP:TOO: fabricId: 0 + [1635926055.542973][10129:10134] CHIP:TOO: nodeId: 1 + [1635926055.543010][10129:10134] CHIP:ZCL: Label: [1635926055.543077][10129:10134] CHIP:TOO: FabricDescriptor[2]: - [1635926055.543117][10129:10134] CHIP:TOO: fabricIndex: 2 - [1635926055.543165][10129:10134] CHIP:ZCL: RootPublicKey: 65 - [1635926055.543228][10129:10134] CHIP:TOO: vendorId: 33608 - [1635926055.543263][10129:10134] CHIP:TOO: fabricId: 0 - [1635926055.543293][10129:10134] CHIP:TOO: nodeId: 2" + [1635926055.543117][10129:10134] CHIP:TOO: fabricIndex: 2 + [1635926055.543165][10129:10134] CHIP:ZCL: RootPublicKey: 65 + [1635926055.543228][10129:10134] CHIP:TOO: vendorId: 33608 + [1635926055.543263][10129:10134] CHIP:TOO: fabricId: 0 + [1635926055.543293][10129:10134] CHIP:TOO: nodeId: 2 disabled: true - label: "Wait for the expiration of PIXIT_COMM_WIN seconds" - verification: "Wait for the expiration of PIXIT_COMM_WIN seconds" + verification: | + Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "DUT_CR1 re-opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example while using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635926152.609542][10140:10145] CHIP:SC: Success status report - received. Session was established [1635926152.609582][10140:10145] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 42!! [1635926152.609695][10140:10145] CHIP:CTL: - OpenCommissioningWindow for device ID 1 + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example while using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635926152.609542][10140:10145] CHIP:SC: Success status report received. Session was established + [1635926152.609582][10140:10145] CHIP:IN: New secure session created for device 0x0000000000000001, key 42!! + [1635926152.609695][10140:10145] CHIP:CTL: OpenCommissioningWindow for device ID 1 [1635926152.617050][10140:10145] CHIP:DMG: ICR moving to [AddingComm] [1635926152.617103][10140:10145] CHIP:DMG: ICR moving to [AddedComma] - [1635926152.617228][10140:10145] CHIP:IN: Prepared encrypted message - 0xaaab02ca7d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) - on exchange 6544i with MessageCounter:0. - [1635926152.617286][10140:10145] CHIP:IN: Sending encrypted msg - 0xaaab02ca7d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13888103 msec [1635926152.617454][10140:10145] - CHIP:DMG: ICR moving to [CommandSen] [1635926152.617523][10140:10145] - CHIP:CTL: Manual pairing code: [35484132896] - [1635926152.617611][10140:10145] CHIP:CTL: SetupQRCode: - [MT:00000CQM00QHQP0JG00]" + [1635926152.617228][10140:10145] CHIP:IN: Prepared encrypted message 0xaaab02ca7d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 6544i with MessageCounter:0. + [1635926152.617286][10140:10145] CHIP:IN: Sending encrypted msg 0xaaab02ca7d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13888103 msec + [1635926152.617454][10140:10145] CHIP:DMG: ICR moving to [CommandSen] + [1635926152.617523][10140:10145] CHIP:CTL: Manual pairing code: [35484132896] + [1635926152.617611][10140:10145] CHIP:CTL: SetupQRCode: [MT:00000CQM00QHQP0JG00] disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR3 opens a 2nd commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 3rd controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 - 3840 [1635926152.609542][10140:10145] CHIP:SC: Success status report - received. Session was established [1635926152.609582][10140:10145] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 42!! [1635926152.609695][10140:10145] CHIP:CTL: - OpenCommissioningWindow for device ID 1 + verification: | + On the 3rd controller using chip tool, open commissioning window using ECM + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635926152.609542][10140:10145] CHIP:SC: Success status report received. Session was established + [1635926152.609582][10140:10145] CHIP:IN: New secure session created for device 0x0000000000000001, key 42!! + [1635926152.609695][10140:10145] CHIP:CTL: OpenCommissioningWindow for device ID 1 [1635926152.617050][10140:10145] CHIP:DMG: ICR moving to [AddingComm] [1635926152.617103][10140:10145] CHIP:DMG: ICR moving to [AddedComma] - [1635926152.617228][10140:10145] CHIP:IN: Prepared encrypted message - 0xaaab02ca7d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) - on exchange 6544i with MessageCounter:0. - [1635926152.617286][10140:10145] CHIP:IN: Sending encrypted msg - 0xaaab02ca7d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13888103 msec [1635926152.617454][10140:10145] - CHIP:DMG: ICR moving to [CommandSen] [1635926152.617523][10140:10145] - CHIP:CTL: Manual pairing code: [35484132896] - [1635926152.617611][10140:10145] CHIP:CTL: SetupQRCode: - [MT:00000CQM00QHQP0JG00]" + [1635926152.617228][10140:10145] CHIP:IN: Prepared encrypted message 0xaaab02ca7d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 6544i with MessageCounter:0. + [1635926152.617286][10140:10145] CHIP:IN: Sending encrypted msg 0xaaab02ca7d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13888103 msec + [1635926152.617454][10140:10145] CHIP:DMG: ICR moving to [CommandSen] + [1635926152.617523][10140:10145] CHIP:CTL: Manual pairing code: [35484132896] + [1635926152.617611][10140:10145] CHIP:CTL: SetupQRCode: [MT:00000CQM00QHQP0JG00] disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "On your DUT controller, read fabrics list Below is the command when - using chip tool controller ./chip-tool operationalcredentials read - fabrics-list 1 0 [1635926361.458197][10154:10159] CHIP:DMG: ReportData - = [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } + verification: | + On your DUT controller, read fabrics list + + Below is the command when using chip tool controller + + ./chip-tool operationalcredentials read fabrics-list 1 0 + + [1635926361.458197][10154:10159] CHIP:DMG: ReportData = + [1635926361.458231][10154:10159] CHIP:DMG: { + [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = + [1635926361.458319][10154:10159] CHIP:DMG: [ + [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = + [1635926361.458386][10154:10159] CHIP:DMG: { + [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = + [1635926361.458464][10154:10159] CHIP:DMG: { + [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, + [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, + [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, + [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926361.458779][10154:10159] CHIP:DMG: } [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ + [1635926361.458896][10154:10159] CHIP:DMG: Data = [ [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = ', - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = ', - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, + [1635926361.458992][10154:10159] CHIP:DMG: { + [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, + [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926361.459229][10154:10159] CHIP:DMG: ] + [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, + [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, + [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.459492][10154:10159] CHIP:DMG: }, + [1635926361.459552][10154:10159] CHIP:DMG: { + [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, + [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926361.459797][10154:10159] CHIP:DMG: ] + [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, + [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, + [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.460054][10154:10159] CHIP:DMG: }, + [1635926361.460114][10154:10159] CHIP:DMG: ], + [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, + [1635926361.460207][10154:10159] CHIP:DMG: }, [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], + [1635926361.460289][10154:10159] CHIP:DMG: ], [1635926361.460357][10154:10159] CHIP:DMG: [1635926361.460388][10154:10159] CHIP:DMG: } [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) + [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: + [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 + [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 + [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 + [1635926361.460961][10154:10159] CHIP:ZCL: Label: [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2" + [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 + [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 + [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example while using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635926434.941379][10165:10170] CHIP:SC: Success status report - received. Session was established [1635926434.941428][10165:10170] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 44!! [1635926434.941515][10165:10170] CHIP:CTL: - OpenCommissioningWindow for device ID 1 + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example while using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635926434.941379][10165:10170] CHIP:SC: Success status report received. Session was established + [1635926434.941428][10165:10170] CHIP:IN: New secure session created for device 0x0000000000000001, key 44!! + [1635926434.941515][10165:10170] CHIP:CTL: OpenCommissioningWindow for device ID 1 [1635926434.949324][10165:10170] CHIP:DMG: ICR moving to [AddingComm] [1635926434.949381][10165:10170] CHIP:DMG: ICR moving to [AddedComma] - [1635926434.949532][10165:10170] CHIP:IN: Prepared encrypted message - 0xaaaad95dbd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) - on exchange 19421i with MessageCounter:0. - [1635926434.949592][10165:10170] CHIP:IN: Sending encrypted msg - 0xaaaad95dbd10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 14170436 msec [1635926434.949727][10165:10170] - CHIP:DMG: ICR moving to [CommandSen] [1635926434.949788][10165:10170] - CHIP:CTL: Manual pairing code: [35484132896] - [1635926434.949865][10165:10170] CHIP:CTL: SetupQRCode: - [MT:00000CQM00OAX.7RA00]" + [1635926434.949532][10165:10170] CHIP:IN: Prepared encrypted message 0xaaaad95dbd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 19421i with MessageCounter:0. + [1635926434.949592][10165:10170] CHIP:IN: Sending encrypted msg 0xaaaad95dbd10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 14170436 msec + [1635926434.949727][10165:10170] CHIP:DMG: ICR moving to [CommandSen] + [1635926434.949788][10165:10170] CHIP:CTL: Manual pairing code: [35484132896] + [1635926434.949865][10165:10170] CHIP:CTL: SetupQRCode: [MT:00000CQM00OAX.7RA00] disabled: true - label: "Before the expiration of PIXIT_COMM_WIN seconds, TH_CR2 opens a second commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On the 2nd controller using chip tool, open commissioning window - using ECM ./chip-tool pairing open-commissioning-window 1 1 100 1000 - 3840 [1635926434.941379][10165:10170] CHIP:SC: Success status report - received. Session was established [1635926434.941428][10165:10170] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 44!! [1635926434.941515][10165:10170] CHIP:CTL: - OpenCommissioningWindow for device ID 1 + verification: | + On the 2nd controller using chip tool, open commissioning window using ECM + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635926434.941379][10165:10170] CHIP:SC: Success status report received. Session was established + [1635926434.941428][10165:10170] CHIP:IN: New secure session created for device 0x0000000000000001, key 44!! + [1635926434.941515][10165:10170] CHIP:CTL: OpenCommissioningWindow for device ID 1 [1635926434.949324][10165:10170] CHIP:DMG: ICR moving to [AddingComm] [1635926434.949381][10165:10170] CHIP:DMG: ICR moving to [AddedComma] - [1635926434.949532][10165:10170] CHIP:IN: Prepared encrypted message - 0xaaaad95dbd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) - on exchange 19421i with MessageCounter:0. - [1635926434.949592][10165:10170] CHIP:IN: Sending encrypted msg - 0xaaaad95dbd10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 14170436 msec [1635926434.949727][10165:10170] - CHIP:DMG: ICR moving to [CommandSen] [1635926434.949788][10165:10170] - CHIP:CTL: Manual pairing code: [35484132896] - [1635926434.949865][10165:10170] CHIP:CTL: SetupQRCode: - [MT:00000CQM00OAX.7RA00]" + [1635926434.949532][10165:10170] CHIP:IN: Prepared encrypted message 0xaaaad95dbd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 19421i with MessageCounter:0. + [1635926434.949592][10165:10170] CHIP:IN: Sending encrypted msg 0xaaaad95dbd10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 14170436 msec + [1635926434.949727][10165:10170] CHIP:DMG: ICR moving to [CommandSen] + [1635926434.949788][10165:10170] CHIP:CTL: Manual pairing code: [35484132896] + [1635926434.949865][10165:10170] CHIP:CTL: SetupQRCode: [MT:00000CQM00OAX.7RA00] disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_17.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_17.yaml index 615f15e9a6c627..979d0fa131f4ac 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_17.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_17.yaml @@ -14,7 +14,7 @@ name: 22.1.17. [TC-MF-1.17] Removing Fabrics from DUT and Fabric index enumeration - using ECM or BCM [DUT - Commissionee] + using ECM [DUT - Commissionee] config: nodeId: 0x12344321 @@ -22,169 +22,178 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CE to factory defaults" + verification: | + + disabled: true + - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st controller chip tool(use above - instructions) ," + verification: | + 1. Provision the device using 1st controller chip tool(use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller chip tool, open commissioning window ./chip-tool - pairing open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [36217551633] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i" + verification: | + On 1st controller chip tool, open commissioning window + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 36217551633 + disabled: true + + - label: "Repeat step3 to commission TH_CR3" + verification: | + disabled: true - label: "TH_CR3 starts a commissioning process with DUT_CE" - verification: - "On 3rd controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On 3rd controller using chip tool connect to the accessory + + + + ./chip-tool pairing manualcode 1 36217551633 disabled: true - label: "TH_CR2 reads the list of Fabrics on DUT_CE" - verification: - "On 2nd controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0" + verification: | + On 2nd controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 disabled: true - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to DUT_CE" - verification: - "on 2nd controller using chip tool, remove fabric with FabricIndex=2 - ./chip-tool operationalcredentials remove-fabric 2 1 0" + verification: | + on 2nd controller using chip tool, remove fabric with FabricIndex=2 + + ./chip-tool operationalcredentials remove-fabric 2 1 0 disabled: true - label: "TH_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" - verification: - "On 2nd controller, using chip-tool write attribute, Verify read - attribute returns the updated value written. ./chip-tool basic write - user-label te5new 1 0 [1635862117.716433][3691:3696] CHIP:DMG: - WriteResponse = [1635862117.716467][3691:3696] CHIP:DMG: { - [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = - [1635862117.716535][3691:3696] CHIP:DMG: [ - [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = - [1635862117.716608][3691:3696] CHIP:DMG: { - [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = - [1635862117.716689][3691:3696] CHIP:DMG: { - [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, - [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, - [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, - [1635862117.716914][3691:3696] CHIP:DMG: } + verification: | + On 2nd controller, using chip-tool write attribute, Verify read attribute returns the updated value written. + + ./chip-tool basic write user-label te5new 1 0 + + [1635862117.716433][3691:3696] CHIP:DMG: WriteResponse = + [1635862117.716467][3691:3696] CHIP:DMG: { + [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = + [1635862117.716535][3691:3696] CHIP:DMG: [ + [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = + [1635862117.716608][3691:3696] CHIP:DMG: { + [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = + [1635862117.716689][3691:3696] CHIP:DMG: { + [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, + [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, + [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, + [1635862117.716914][3691:3696] CHIP:DMG: } [1635862117.716962][3691:3696] CHIP:DMG: - [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = - [1635862117.717044][3691:3696] CHIP:DMG: { - [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, - [1635862117.717130][3691:3696] CHIP:DMG: }, + [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = + [1635862117.717044][3691:3696] CHIP:DMG: { + [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, + [1635862117.717130][3691:3696] CHIP:DMG: }, [1635862117.717173][3691:3696] CHIP:DMG: - [1635862117.717212][3691:3696] CHIP:DMG: }, + [1635862117.717212][3691:3696] CHIP:DMG: }, [1635862117.717256][3691:3696] CHIP:DMG: - [1635862117.717288][3691:3696] CHIP:DMG: ], + [1635862117.717288][3691:3696] CHIP:DMG: ], [1635862117.717330][3691:3696] CHIP:DMG: [1635862117.717362][3691:3696] CHIP:DMG: } [1635862117.717462][3691:3696] CHIP:ZCL: WriteResponse: - [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) + [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) [1635862117.717525][3691:3696] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635862186.734626][3701:3706] - CHIP:DMG: ReportData = [1635862186.734664][3701:3706] CHIP:DMG: { - [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = - [1635862186.734735][3701:3706] CHIP:DMG: [ - [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = - [1635862186.734809][3701:3706] CHIP:DMG: { - [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = - [1635862186.734895][3701:3706] CHIP:DMG: { - [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, - [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, - [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, - [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862186.735335][3701:3706] CHIP:DMG: } + + ./chip-tool basic read user-label 1 0 + [1635862186.734626][3701:3706] CHIP:DMG: ReportData = + [1635862186.734664][3701:3706] CHIP:DMG: { + [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = + [1635862186.734735][3701:3706] CHIP:DMG: [ + [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = + [1635862186.734809][3701:3706] CHIP:DMG: { + [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = + [1635862186.734895][3701:3706] CHIP:DMG: { + [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, + [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, + [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, + [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862186.735335][3701:3706] CHIP:DMG: } [1635862186.735383][3701:3706] CHIP:DMG: - [1635862186.735431][3701:3706] CHIP:DMG: Data = 'te5new', - [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, - [1635862186.735533][3701:3706] CHIP:DMG: }, + [1635862186.735431][3701:3706] CHIP:DMG: Data = "te5new", + [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, + [1635862186.735533][3701:3706] CHIP:DMG: }, [1635862186.735581][3701:3706] CHIP:DMG: - [1635862186.735617][3701:3706] CHIP:DMG: ], + [1635862186.735617][3701:3706] CHIP:DMG: ], [1635862186.735657][3701:3706] CHIP:DMG: [1635862186.735691][3701:3706] CHIP:DMG: } [1635862186.735799][3701:3706] CHIP:ZCL: ReadAttributesResponse: - [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) - [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute - Response: te5new" + [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 + [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) + [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c + [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "On 1st controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0" - disabled: true + verification: | + On 1st controller using chip tool, read fabrics list - - label: "" - verification: - "1. Verify if the DUT is broadcasting using $ avahi-browse -rt - _matter._tcp" + ./chip-tool operationalcredentials read fabrics-list 1 0 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller chip tool, open commissioning window ./chip-tool - pairing open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [36217551633] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i" + verification: | + On 1st controller chip tool, open commissioning window + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 36217551633 disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "On 1st controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0" + verification: | + On 1st controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_18.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_18.yaml index 9e48f9038e7a9c..aa8beffff49981 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_18.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_18.yaml @@ -14,7 +14,7 @@ name: 22.1.18. [TC-MF-1.18] Removing Fabrics from DUT and Fabric index enumeration - using ECM or BCM [DUT - Commissioner] + using BCM [DUT - Commissionee] config: nodeId: 0x12344321 @@ -22,189 +22,207 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CE to factory defaults" + verification: | + + disabled: true + - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st controller chip tool(use above - instructions) ," + verification: | + 1. Provision the device using 1st controller chip tool(use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On 1st controller chip tool, open commissioning window ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On 1st controller chip tool, open commissioning window + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635926620.928560][10177:10182] CHIP:DMG: InvokeCommand = [1635926620.928631][10177:10182] CHIP:DMG: { - [1635926620.928680][10177:10182] CHIP:DMG: CommandList = - [1635926620.928745][10177:10182] CHIP:DMG: [ - [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = - [1635926620.928866][10177:10182] CHIP:DMG: { - [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = - [1635926620.929041][10177:10182] CHIP:DMG: { - [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, - [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, - [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, - [1635926620.929434][10177:10182] CHIP:DMG: }, + [1635926620.928680][10177:10182] CHIP:DMG: CommandList = + [1635926620.928745][10177:10182] CHIP:DMG: [ + [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = + [1635926620.928866][10177:10182] CHIP:DMG: { + [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = + [1635926620.929041][10177:10182] CHIP:DMG: { + [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, + [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, + [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, + [1635926620.929434][10177:10182] CHIP:DMG: }, [1635926620.929516][10177:10182] CHIP:DMG: - [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = - [1635926620.929656][10177:10182] CHIP:DMG: { - [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, - [1635926620.929829][10177:10182] CHIP:DMG: }, + [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = + [1635926620.929656][10177:10182] CHIP:DMG: { + [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, + [1635926620.929829][10177:10182] CHIP:DMG: }, [1635926620.929919][10177:10182] CHIP:DMG: - [1635926620.929976][10177:10182] CHIP:DMG: }, + [1635926620.929976][10177:10182] CHIP:DMG: }, [1635926620.930070][10177:10182] CHIP:DMG: - [1635926620.930123][10177:10182] CHIP:DMG: ], + [1635926620.930123][10177:10182] CHIP:DMG: ], [1635926620.930182][10177:10182] CHIP:DMG: [1635926620.930226][10177:10182] CHIP:DMG: } - [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635926620.930412][10177:10182] CHIP:TOO: Default Success - Response" + [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635926620.930412][10177:10182] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 + disabled: true + + - label: "Repeat step3 to commission TH_CR3" + verification: | + disabled: true - label: "TH_CR3 starts a commissioning process with DUT_CE" - verification: - "On 3rd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On 3rd controller using chip tool connect to the accessory + + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR2 reads the list of Fabrics on DUT_CE" - verification: - "On 2nd controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0" + verification: | + On 2nd controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 disabled: true - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to DUT_CE" - verification: - "on 2nd controller using chip tool, remove fabric with FabricIndex=2 - ./chip-tool operationalcredentials remove-fabric 2 1 0" + verification: | + on 2nd controller using chip tool, remove fabric with FabricIndex=2 + + ./chip-tool operationalcredentials remove-fabric 2 1 0 disabled: true - label: "TH_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" - verification: - "On 2nd controller, using chip-tool write attribute, Verify read - attribute returns the updated value written. ./chip-tool basic write - user-label te5new 1 0 [1635862117.716433][3691:3696] CHIP:DMG: - WriteResponse = [1635862117.716467][3691:3696] CHIP:DMG: { - [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = - [1635862117.716535][3691:3696] CHIP:DMG: [ - [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = - [1635862117.716608][3691:3696] CHIP:DMG: { - [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = - [1635862117.716689][3691:3696] CHIP:DMG: { - [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, - [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, - [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, - [1635862117.716914][3691:3696] CHIP:DMG: } + verification: | + On 2nd controller, using chip-tool write attribute, Verify read attribute returns the updated value written. + + ./chip-tool basic write user-label te5new 1 0 + + [1635862117.716433][3691:3696] CHIP:DMG: WriteResponse = + [1635862117.716467][3691:3696] CHIP:DMG: { + [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = + [1635862117.716535][3691:3696] CHIP:DMG: [ + [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = + [1635862117.716608][3691:3696] CHIP:DMG: { + [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = + [1635862117.716689][3691:3696] CHIP:DMG: { + [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, + [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, + [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, + [1635862117.716914][3691:3696] CHIP:DMG: } [1635862117.716962][3691:3696] CHIP:DMG: - [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = - [1635862117.717044][3691:3696] CHIP:DMG: { - [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, - [1635862117.717130][3691:3696] CHIP:DMG: }, + [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = + [1635862117.717044][3691:3696] CHIP:DMG: { + [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, + [1635862117.717130][3691:3696] CHIP:DMG: }, [1635862117.717173][3691:3696] CHIP:DMG: - [1635862117.717212][3691:3696] CHIP:DMG: }, + [1635862117.717212][3691:3696] CHIP:DMG: }, [1635862117.717256][3691:3696] CHIP:DMG: - [1635862117.717288][3691:3696] CHIP:DMG: ], + [1635862117.717288][3691:3696] CHIP:DMG: ], [1635862117.717330][3691:3696] CHIP:DMG: [1635862117.717362][3691:3696] CHIP:DMG: } [1635862117.717462][3691:3696] CHIP:ZCL: WriteResponse: - [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) + [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) [1635862117.717525][3691:3696] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635862186.734626][3701:3706] - CHIP:DMG: ReportData = [1635862186.734664][3701:3706] CHIP:DMG: { - [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = - [1635862186.734735][3701:3706] CHIP:DMG: [ - [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = - [1635862186.734809][3701:3706] CHIP:DMG: { - [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = - [1635862186.734895][3701:3706] CHIP:DMG: { - [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, - [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, - [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, - [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862186.735335][3701:3706] CHIP:DMG: } + + ./chip-tool basic read user-label 1 0 + [1635862186.734626][3701:3706] CHIP:DMG: ReportData = + [1635862186.734664][3701:3706] CHIP:DMG: { + [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = + [1635862186.734735][3701:3706] CHIP:DMG: [ + [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = + [1635862186.734809][3701:3706] CHIP:DMG: { + [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = + [1635862186.734895][3701:3706] CHIP:DMG: { + [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, + [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, + [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, + [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862186.735335][3701:3706] CHIP:DMG: } [1635862186.735383][3701:3706] CHIP:DMG: - [1635862186.735431][3701:3706] CHIP:DMG: Data = 'te5new', - [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, - [1635862186.735533][3701:3706] CHIP:DMG: }, + [1635862186.735431][3701:3706] CHIP:DMG: Data = "te5new", + [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, + [1635862186.735533][3701:3706] CHIP:DMG: }, [1635862186.735581][3701:3706] CHIP:DMG: - [1635862186.735617][3701:3706] CHIP:DMG: ], + [1635862186.735617][3701:3706] CHIP:DMG: ], [1635862186.735657][3701:3706] CHIP:DMG: [1635862186.735691][3701:3706] CHIP:DMG: } [1635862186.735799][3701:3706] CHIP:ZCL: ReadAttributesResponse: - [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) - [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute - Response: te5new" + [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 + [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) + [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c + [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "On 1st controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0" - disabled: true + verification: | + On 1st controller using chip tool, read fabrics list - - label: "" - verification: - "1. Verify if the DUT is broadcasting using $ avahi-browse -rt - _matter._tcp" + ./chip-tool operationalcredentials read fabrics-list 1 0 disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On 1st controller chip tool, open commissioning window ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On 1st controller chip tool, open commissioning window + + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635926620.928560][10177:10182] CHIP:DMG: InvokeCommand = [1635926620.928631][10177:10182] CHIP:DMG: { - [1635926620.928680][10177:10182] CHIP:DMG: CommandList = - [1635926620.928745][10177:10182] CHIP:DMG: [ - [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = - [1635926620.928866][10177:10182] CHIP:DMG: { - [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = - [1635926620.929041][10177:10182] CHIP:DMG: { - [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, - [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, - [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, - [1635926620.929434][10177:10182] CHIP:DMG: }, + [1635926620.928680][10177:10182] CHIP:DMG: CommandList = + [1635926620.928745][10177:10182] CHIP:DMG: [ + [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = + [1635926620.928866][10177:10182] CHIP:DMG: { + [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = + [1635926620.929041][10177:10182] CHIP:DMG: { + [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, + [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, + [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, + [1635926620.929434][10177:10182] CHIP:DMG: }, [1635926620.929516][10177:10182] CHIP:DMG: - [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = - [1635926620.929656][10177:10182] CHIP:DMG: { - [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, - [1635926620.929829][10177:10182] CHIP:DMG: }, + [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = + [1635926620.929656][10177:10182] CHIP:DMG: { + [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, + [1635926620.929829][10177:10182] CHIP:DMG: }, [1635926620.929919][10177:10182] CHIP:DMG: - [1635926620.929976][10177:10182] CHIP:DMG: }, + [1635926620.929976][10177:10182] CHIP:DMG: }, [1635926620.930070][10177:10182] CHIP:DMG: - [1635926620.930123][10177:10182] CHIP:DMG: ], + [1635926620.930123][10177:10182] CHIP:DMG: ], [1635926620.930182][10177:10182] CHIP:DMG: [1635926620.930226][10177:10182] CHIP:DMG: } - [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635926620.930412][10177:10182] CHIP:TOO: Default Success - Response" + [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635926620.930412][10177:10182] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - verification: - "On 1st controller using chip tool, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0" + verification: | + On 1st controller using chip tool, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_19.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_19.yaml index 08b6dfdfbd4864..83eb5770d70298 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_19.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_19.yaml @@ -13,395 +13,397 @@ # limitations under the License. name: - 22.1.19. [TC-MF-1.19] max number of Commissioned Fabrics and - SupportedFabrics rollover using ECM or BCM [DUT - Commissionee] + 3.1.19. [TC-MF-1.19] Removing Fabrics from DUT and Fabric index enumeration + using ECM [DUT - Commissioner] config: - nodeId: 0x12344321 cluster: "Basic" endpoint: 0 - + nodeId: 305414945 tests: + - label: "Reset DUT_CR1 to factory defaults" + verification: | + + disabled: true + - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using DUT controller chip tool(use above - instructions) ," + verification: | + 1. Provision the device using DUT controller chip tool(use above instructions) , disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller chip tool, open commissioning window Below is - the example when using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [35484132896] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i ./chip-tool payload - parse-setup-payload 35484132896 CHIP:SPL: Parsing - decimalRepresentation: 35484132896 [1635692029.655951][3830:3830] - CHIP:SPL: CommissioningFlow: 0 [1635692029.655974][3830:3830] - CHIP:SPL: VendorID: 0 [1635692029.655994][3830:3830] CHIP:SPL: - Version: 0 [1635692029.656013][3830:3830] CHIP:SPL: ProductID: 0 + verification: | + On your DUT controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [35484132896] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i + + + + + ./chip-tool payload parse-setup-payload 35484132896 + + CHIP:SPL: Parsing decimalRepresentation: 35484132896 + [1635692029.655951][3830:3830] CHIP:SPL: CommissioningFlow: 0 + [1635692029.655974][3830:3830] CHIP:SPL: VendorID: 0 + [1635692029.655994][3830:3830] CHIP:SPL: Version: 0 + [1635692029.656013][3830:3830] CHIP:SPL: ProductID: 0 [1635692029.656032][3830:3830] CHIP:SPL: Discriminator: 3840 [1635692029.656051][3830:3830] CHIP:SPL: SetUpPINCode: 68539195 - [1635692029.656070][3830:3830] CHIP:SPL: RendezvousInformation: 0" + [1635692029.656070][3830:3830] CHIP:SPL: RendezvousInformation: 0 disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 35484132896" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 35484132896 + disabled: true + + - label: "Repeat step3 to commission TH_CR3" + verification: | + disabled: true - label: "TH_CR3 starts a commissioning process with TH_CE" - verification: - "On 3rd controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 35484132896" + verification: | + On 3rd controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 35484132896 disabled: true - label: "TH_CR2 reads the list of Fabrics on TH_CE" - verification: - "On 2nd controller, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + On 2nd controller, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635926361.458197][10154:10159] CHIP:DMG: ReportData = [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } + [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = + [1635926361.458319][10154:10159] CHIP:DMG: [ + [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = + [1635926361.458386][10154:10159] CHIP:DMG: { + [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = + [1635926361.458464][10154:10159] CHIP:DMG: { + [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, + [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, + [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, + [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926361.458779][10154:10159] CHIP:DMG: } [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ + [1635926361.458896][10154:10159] CHIP:DMG: Data = [ [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, + [1635926361.458992][10154:10159] CHIP:DMG: { + [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, + [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926361.459229][10154:10159] CHIP:DMG: ] + [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, + [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, + [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.459492][10154:10159] CHIP:DMG: }, + [1635926361.459552][10154:10159] CHIP:DMG: { + [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, + [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926361.459797][10154:10159] CHIP:DMG: ] + [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, + [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, + [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.460054][10154:10159] CHIP:DMG: }, + [1635926361.460114][10154:10159] CHIP:DMG: ], + [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, + [1635926361.460207][10154:10159] CHIP:DMG: }, [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], + [1635926361.460289][10154:10159] CHIP:DMG: ], [1635926361.460357][10154:10159] CHIP:DMG: [1635926361.460388][10154:10159] CHIP:DMG: } [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) + [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: + [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 + [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 + [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 + [1635926361.460961][10154:10159] CHIP:ZCL: Label: [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2" + [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 + [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 + [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 disabled: true - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to TH_CE" - verification: - "on 2nd controller using chip tool, remove fabric with FabricIndex=2 - ./chip-tool operationalcredentials remove-fabric 2 1 0" + verification: | + on 2nd controller using chip tool, remove fabric with FabricIndex=2 + + ./chip-tool operationalcredentials remove-fabric 2 1 0 disabled: true - label: "TH_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "On 2nd controller, using chip-tool write attribute, Verify read - attribute returns the updated value written. ./chip-tool basic write - node-label te5new 1 0 [1635862117.716433][3691:3696] CHIP:DMG: - WriteResponse = [1635862117.716467][3691:3696] CHIP:DMG: { - [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = - [1635862117.716535][3691:3696] CHIP:DMG: [ - [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = - [1635862117.716608][3691:3696] CHIP:DMG: { - [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = - [1635862117.716689][3691:3696] CHIP:DMG: { - [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, - [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, - [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, - [1635862117.716914][3691:3696] CHIP:DMG: } + verification: | + On 2nd controller, using chip-tool write attribute, Verify read attribute returns the updated value written. + + ./chip-tool basic write node-label te5new 1 0 + + [1635862117.716433][3691:3696] CHIP:DMG: WriteResponse = + [1635862117.716467][3691:3696] CHIP:DMG: { + [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = + [1635862117.716535][3691:3696] CHIP:DMG: [ + [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = + [1635862117.716608][3691:3696] CHIP:DMG: { + [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = + [1635862117.716689][3691:3696] CHIP:DMG: { + [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, + [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, + [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, + [1635862117.716914][3691:3696] CHIP:DMG: } [1635862117.716962][3691:3696] CHIP:DMG: - [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = - [1635862117.717044][3691:3696] CHIP:DMG: { - [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, - [1635862117.717130][3691:3696] CHIP:DMG: }, + [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = + [1635862117.717044][3691:3696] CHIP:DMG: { + [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, + [1635862117.717130][3691:3696] CHIP:DMG: }, [1635862117.717173][3691:3696] CHIP:DMG: - [1635862117.717212][3691:3696] CHIP:DMG: }, + [1635862117.717212][3691:3696] CHIP:DMG: }, [1635862117.717256][3691:3696] CHIP:DMG: - [1635862117.717288][3691:3696] CHIP:DMG: ], + [1635862117.717288][3691:3696] CHIP:DMG: ], [1635862117.717330][3691:3696] CHIP:DMG: [1635862117.717362][3691:3696] CHIP:DMG: } [1635862117.717462][3691:3696] CHIP:ZCL: WriteResponse: - [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) + [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) [1635862117.717525][3691:3696] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635862186.734626][3701:3706] - CHIP:DMG: ReportData = [1635862186.734664][3701:3706] CHIP:DMG: { - [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = - [1635862186.734735][3701:3706] CHIP:DMG: [ - [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = - [1635862186.734809][3701:3706] CHIP:DMG: { - [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = - [1635862186.734895][3701:3706] CHIP:DMG: { - [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, - [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, - [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, - [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862186.735335][3701:3706] CHIP:DMG: } + + ./chip-tool basic read user-label 1 0 + [1635862186.734626][3701:3706] CHIP:DMG: ReportData = + [1635862186.734664][3701:3706] CHIP:DMG: { + [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = + [1635862186.734735][3701:3706] CHIP:DMG: [ + [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = + [1635862186.734809][3701:3706] CHIP:DMG: { + [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = + [1635862186.734895][3701:3706] CHIP:DMG: { + [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, + [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, + [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, + [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862186.735335][3701:3706] CHIP:DMG: } [1635862186.735383][3701:3706] CHIP:DMG: - [1635862186.735431][3701:3706] CHIP:DMG: Data = te5new, - [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, - [1635862186.735533][3701:3706] CHIP:DMG: }, + [1635862186.735431][3701:3706] CHIP:DMG: Data = "te5new", + [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, + [1635862186.735533][3701:3706] CHIP:DMG: }, [1635862186.735581][3701:3706] CHIP:DMG: - [1635862186.735617][3701:3706] CHIP:DMG: ], + [1635862186.735617][3701:3706] CHIP:DMG: ], [1635862186.735657][3701:3706] CHIP:DMG: [1635862186.735691][3701:3706] CHIP:DMG: } [1635862186.735799][3701:3706] CHIP:ZCL: ReadAttributesResponse: - [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) - [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute - Response: te5new" + [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 + [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) + [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c + [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "On 1st controller, read fabrics list Below is the command using chip - tool controller ./chip-tool operationalcredentials read fabrics-list 1 - 0 [1635926361.458197][10154:10159] CHIP:DMG: ReportData = + verification: | + On 1st controller, read fabrics list + + Below is the command using chip tool controller + + ./chip-tool operationalcredentials read fabrics-list 1 0 + + [1635926361.458197][10154:10159] CHIP:DMG: ReportData = [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } + [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = + [1635926361.458319][10154:10159] CHIP:DMG: [ + [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = + [1635926361.458386][10154:10159] CHIP:DMG: { + [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = + [1635926361.458464][10154:10159] CHIP:DMG: { + [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, + [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, + [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, + [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926361.458779][10154:10159] CHIP:DMG: } [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ + [1635926361.458896][10154:10159] CHIP:DMG: Data = [ [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, + [1635926361.458992][10154:10159] CHIP:DMG: { + [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, + [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926361.459229][10154:10159] CHIP:DMG: ] + [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, + [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, + [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.459492][10154:10159] CHIP:DMG: }, + [1635926361.459552][10154:10159] CHIP:DMG: { + [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, + [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926361.459797][10154:10159] CHIP:DMG: ] + [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, + [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, + [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.460054][10154:10159] CHIP:DMG: }, + [1635926361.460114][10154:10159] CHIP:DMG: ], + [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, + [1635926361.460207][10154:10159] CHIP:DMG: }, [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], + [1635926361.460289][10154:10159] CHIP:DMG: ], [1635926361.460357][10154:10159] CHIP:DMG: [1635926361.460388][10154:10159] CHIP:DMG: } [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) + [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: + [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 + [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 + [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 + [1635926361.460961][10154:10159] CHIP:ZCL: Label: [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2" - disabled: true - - - label: "" - verification: - "1. Verify if the DUT is broadcasting using $ avahi-browse -rt - _matter._tcp" + [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 + [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 + [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller chip tool, open commissioning window Below is the - example when using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [36217551633] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i" + verification: | + On 1st controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 36217551633 disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "On 1st controller, read fabrics list Below is the command using chip - tool controller ./chip-tool operationalcredentials read fabrics-list 1 - 0 [1635926361.458197][10154:10159] CHIP:DMG: ReportData = + verification: | + On 1st controller, read fabrics list + + Below is the command using chip tool controller + + ./chip-tool operationalcredentials read fabrics-list 1 0 + + [1635926361.458197][10154:10159] CHIP:DMG: ReportData = [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } + [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = + [1635926361.458319][10154:10159] CHIP:DMG: [ + [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = + [1635926361.458386][10154:10159] CHIP:DMG: { + [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = + [1635926361.458464][10154:10159] CHIP:DMG: { + [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, + [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, + [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, + [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926361.458779][10154:10159] CHIP:DMG: } [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ + [1635926361.458896][10154:10159] CHIP:DMG: Data = [ [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, + [1635926361.458992][10154:10159] CHIP:DMG: { + [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, + [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926361.459229][10154:10159] CHIP:DMG: ] + [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, + [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, + [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.459492][10154:10159] CHIP:DMG: }, + [1635926361.459552][10154:10159] CHIP:DMG: { + [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, + [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926361.459797][10154:10159] CHIP:DMG: ] + [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, + [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, + [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.460054][10154:10159] CHIP:DMG: }, + [1635926361.460114][10154:10159] CHIP:DMG: ], + [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, + [1635926361.460207][10154:10159] CHIP:DMG: }, [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], + [1635926361.460289][10154:10159] CHIP:DMG: ], [1635926361.460357][10154:10159] CHIP:DMG: [1635926361.460388][10154:10159] CHIP:DMG: } [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) + [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: + [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 + [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 + [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 + [1635926361.460961][10154:10159] CHIP:ZCL: Label: [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2" + [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 + [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 + [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml index 752b3a160f58f5..1c1521d60bd177 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_2.yaml @@ -21,531 +21,527 @@ config: tests: - label: "TH_CR1 starts a commissioning process with TH_CE" - verification: "Provision the device using chip tool on first controller" + verification: | + Provision the device using chip tool on first controller disabled: true - label: "If (PICS_MF_BCM) TH_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM (Basic Commissioning Method)" - verification: - "On first controller, usinadministratorcommissioningg chip tool open - commissioning window. ./chip-tool administratorcommissioning - open-basic-commissioning-window 500 1 0 CHIP:DMG: InvokeCommand = + verification: | + On first controller, usinadministratorcommissioningg chip tool open commissioning window. + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + CHIP:DMG: InvokeCommand = [1635694087.587121][3208:3213] CHIP:DMG: { - [1635694087.587168][3208:3213] CHIP:DMG: CommandList = - [1635694087.587221][3208:3213] CHIP:DMG: [ - [1635694087.587272][3208:3213] CHIP:DMG: CommandDataIB = - [1635694087.587329][3208:3213] CHIP:DMG: { - [1635694087.587392][3208:3213] CHIP:DMG: CommandPathIB = - [1635694087.587458][3208:3213] CHIP:DMG: { - [1635694087.587524][3208:3213] CHIP:DMG: EndpointId = 0x0, - [1635694087.587596][3208:3213] CHIP:DMG: ClusterId = 0x3c, - [1635694087.587666][3208:3213] CHIP:DMG: CommandId = 0x1, - [1635694087.587731][3208:3213] CHIP:DMG: }, + [1635694087.587168][3208:3213] CHIP:DMG: CommandList = + [1635694087.587221][3208:3213] CHIP:DMG: [ + [1635694087.587272][3208:3213] CHIP:DMG: CommandDataIB = + [1635694087.587329][3208:3213] CHIP:DMG: { + [1635694087.587392][3208:3213] CHIP:DMG: CommandPathIB = + [1635694087.587458][3208:3213] CHIP:DMG: { + [1635694087.587524][3208:3213] CHIP:DMG: EndpointId = 0x0, + [1635694087.587596][3208:3213] CHIP:DMG: ClusterId = 0x3c, + [1635694087.587666][3208:3213] CHIP:DMG: CommandId = 0x1, + [1635694087.587731][3208:3213] CHIP:DMG: }, [1635694087.587803][3208:3213] CHIP:DMG: - [1635694087.587861][3208:3213] CHIP:DMG: StatusIB = - [1635694087.587933][3208:3213] CHIP:DMG: { - [1635694087.587997][3208:3213] CHIP:DMG: status = 0x0, - [1635694087.588067][3208:3213] CHIP:DMG: }, + [1635694087.587861][3208:3213] CHIP:DMG: StatusIB = + [1635694087.587933][3208:3213] CHIP:DMG: { + [1635694087.587997][3208:3213] CHIP:DMG: status = 0x0, + [1635694087.588067][3208:3213] CHIP:DMG: }, [1635694087.588134][3208:3213] CHIP:DMG: - [1635694087.588193][3208:3213] CHIP:DMG: }, + [1635694087.588193][3208:3213] CHIP:DMG: }, [1635694087.588256][3208:3213] CHIP:DMG: - [1635694087.588306][3208:3213] CHIP:DMG: ], + [1635694087.588306][3208:3213] CHIP:DMG: ], [1635694087.588366][3208:3213] CHIP:DMG: [1635694087.588412][3208:3213] CHIP:DMG: } - [1635694087.588497][3208:3213] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635694087.588555][3208:3213] CHIP:TOO: Default Success - Response [1635694087.588642][3208:3213] CHIP:DMG: ICR moving to - [AwaitingDe] [1635694087.588707][3208:3213] CHIP:EM: Sending - Standalone Ack for MessageCounter:1 on exchange 54781i" + [1635694087.588497][3208:3213] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635694087.588555][3208:3213] CHIP:TOO: Default Success Response + [1635694087.588642][3208:3213] CHIP:DMG: ICR moving to [AwaitingDe] + [1635694087.588707][3208:3213] CHIP:EM: Sending Standalone Ack for MessageCounter:1 on exchange 54781i disabled: true - label: "TH_CR1 reads the list of Fabrics on TH_CE" - verification: - "On first controller, using chip tool read fabricList ./chip-tool - operationalcredentials read fabrics-list 1 0 CHIP:DMG: ReportData = + verification: | + On first controller, using chip tool read fabricList + + ./chip-tool operationalcredentials read fabrics-list 1 0 + + CHIP:DMG: ReportData = [1635694137.957373][3218:3223] CHIP:DMG: { - [1635694137.957420][3218:3223] CHIP:DMG: AttributeDataList = - [1635694137.957460][3218:3223] CHIP:DMG: [ - [1635694137.957510][3218:3223] CHIP:DMG: AttributeDataElement = - [1635694137.957561][3218:3223] CHIP:DMG: { - [1635694137.957615][3218:3223] CHIP:DMG: AttributePath = - [1635694137.957681][3218:3223] CHIP:DMG: { - [1635694137.957727][3218:3223] CHIP:DMG: NodeId = 0x1, - [1635694137.957786][3218:3223] CHIP:DMG: EndpointId = 0x0, - [1635694137.957834][3218:3223] CHIP:DMG: ClusterId = 0x3e, - [1635694137.957895][3218:3223] CHIP:DMG: FieldTag = 0x0000_0001, - [1635694137.957939][3218:3223] CHIP:DMG: } + [1635694137.957420][3218:3223] CHIP:DMG: AttributeDataList = + [1635694137.957460][3218:3223] CHIP:DMG: [ + [1635694137.957510][3218:3223] CHIP:DMG: AttributeDataElement = + [1635694137.957561][3218:3223] CHIP:DMG: { + [1635694137.957615][3218:3223] CHIP:DMG: AttributePath = + [1635694137.957681][3218:3223] CHIP:DMG: { + [1635694137.957727][3218:3223] CHIP:DMG: NodeId = 0x1, + [1635694137.957786][3218:3223] CHIP:DMG: EndpointId = 0x0, + [1635694137.957834][3218:3223] CHIP:DMG: ClusterId = 0x3e, + [1635694137.957895][3218:3223] CHIP:DMG: FieldTag = 0x0000_0001, + [1635694137.957939][3218:3223] CHIP:DMG: } [1635694137.957998][3218:3223] CHIP:DMG: - [1635694137.958040][3218:3223] CHIP:DMG: Data = [ + [1635694137.958040][3218:3223] CHIP:DMG: Data = [ [1635694137.958096][3218:3223] CHIP:DMG: - [1635694137.958132][3218:3223] CHIP:DMG: { - [1635694137.958201][3218:3223] CHIP:DMG: 0x0 = 1, - [1635694137.958276][3218:3223] CHIP:DMG: 0x1 = [ - [1635694137.958356][3218:3223] CHIP:DMG: 0x4, 0x67, 0x23, 0x35, 0x8d, - 0xdf, 0x2, 0xdc, 0xe6, 0xe4, 0x3e, 0xfa, 0x1a, 0xb5, 0x99, 0xb8, 0x10, - 0x8b, 0x8c, 0x4d, 0x67, 0xa8, 0x4e, 0x6, 0x3e, 0x15, 0xa5, 0xf4, 0x37, - 0x99, 0xd2, 0x2e, 0x39, 0x4a, 0x6c, 0xd0, 0xc5, 0xd, 0xea, 0x46, 0x3, - 0x62, 0x [1635694137.958411][3218:3223] CHIP:DMG: ] - [1635694137.958481][3218:3223] CHIP:DMG: 0x2 = 30024, - [1635694137.958549][3218:3223] CHIP:DMG: 0x3 = 0, - [1635694137.958602][3218:3223] CHIP:DMG: 0x4 = 1, - [1635694137.958666][3218:3223] CHIP:DMG: 0x5 = , - [1635694137.958736][3218:3223] CHIP:DMG: }, - [1635694137.958783][3218:3223] CHIP:DMG: ], - [1635694137.958839][3218:3223] CHIP:DMG: DataElementVersion = 0x0, - [1635694137.958896][3218:3223] CHIP:DMG: }, + [1635694137.958132][3218:3223] CHIP:DMG: { + [1635694137.958201][3218:3223] CHIP:DMG: 0x0 = 1, + [1635694137.958276][3218:3223] CHIP:DMG: 0x1 = [ + [1635694137.958356][3218:3223] CHIP:DMG: 0x4, 0x67, 0x23, 0x35, 0x8d, 0xdf, 0x2, 0xdc, 0xe6, 0xe4, 0x3e, 0xfa, 0x1a, 0xb5, 0x99, 0xb8, 0x10, 0x8b, 0x8c, 0x4d, 0x67, 0xa8, 0x4e, 0x6, 0x3e, 0x15, 0xa5, 0xf4, 0x37, 0x99, 0xd2, 0x2e, 0x39, 0x4a, 0x6c, 0xd0, 0xc5, 0xd, 0xea, 0x46, 0x3, 0x62, 0x + [1635694137.958411][3218:3223] CHIP:DMG: ] + [1635694137.958481][3218:3223] CHIP:DMG: 0x2 = 30024, + [1635694137.958549][3218:3223] CHIP:DMG: 0x3 = 0, + [1635694137.958602][3218:3223] CHIP:DMG: 0x4 = 1, + [1635694137.958666][3218:3223] CHIP:DMG: 0x5 = "", + [1635694137.958736][3218:3223] CHIP:DMG: }, + [1635694137.958783][3218:3223] CHIP:DMG: ], + [1635694137.958839][3218:3223] CHIP:DMG: DataElementVersion = 0x0, + [1635694137.958896][3218:3223] CHIP:DMG: }, [1635694137.958959][3218:3223] CHIP:DMG: - [1635694137.959020][3218:3223] CHIP:DMG: ], + [1635694137.959020][3218:3223] CHIP:DMG: ], [1635694137.959084][3218:3223] CHIP:DMG: [1635694137.959118][3218:3223] CHIP:DMG: } [1635694137.959266][3218:3223] CHIP:ZCL: ReadAttributesResponse: - [1635694137.959313][3218:3223] CHIP:ZCL: ClusterId: 0x0000_003E - [1635694137.959349][3218:3223] CHIP:ZCL: attributeId: 0x0000_0001 - [1635694137.959380][3218:3223] CHIP:ZCL: status: Success (0x0000) - [1635694137.959410][3218:3223] CHIP:ZCL: attribute TLV Type: 0x16 - [1635694137.959467][3218:3223] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 1 entries + [1635694137.959313][3218:3223] CHIP:ZCL: ClusterId: 0x0000_003E + [1635694137.959349][3218:3223] CHIP:ZCL: attributeId: 0x0000_0001 + [1635694137.959380][3218:3223] CHIP:ZCL: status: Success (0x0000) + [1635694137.959410][3218:3223] CHIP:ZCL: attribute TLV Type: 0x16 + [1635694137.959467][3218:3223] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 1 entries [1635694137.959654][3218:3223] CHIP:TOO: FabricDescriptor[1]: - [1635694137.959707][3218:3223] CHIP:TOO: fabricIndex: 1 - [1635694137.959740][3218:3223] CHIP:ZCL: RootPublicKey: 65 - [1635694137.959772][3218:3223] CHIP:TOO: vendorId: 30024 - [1635694137.959803][3218:3223] CHIP:TOO: fabricId: 0 - [1635694137.959835][3218:3223] CHIP:TOO: nodeId: 1 - [1635694137.959866][3218:3223] CHIP:ZCL: Label: - [1635694137.960006][3218:3223] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 46522i" + [1635694137.959707][3218:3223] CHIP:TOO: fabricIndex: 1 + [1635694137.959740][3218:3223] CHIP:ZCL: RootPublicKey: 65 + [1635694137.959772][3218:3223] CHIP:TOO: vendorId: 30024 + [1635694137.959803][3218:3223] CHIP:TOO: fabricId: 0 + [1635694137.959835][3218:3223] CHIP:TOO: nodeId: 1 + [1635694137.959866][3218:3223] CHIP:ZCL: Label: + [1635694137.960006][3218:3223] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 46522i disabled: true - label: "DUT_CR2 starts a commissioning process with TH_CE" - verification: - "Using your DUT Controller connect to the accessory. Below is the - example when using chip tool as controller ./chip-tool pairing - onnetwork 1 20202021" + verification: | + Using your DUT Controller connect to the accessory. + + Below is the example when using chip tool as controller + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "Using your DUT controller write attribute and read attribute to and - from TH_CE Below is the example while using chip tool on second - controller, ./chip-tool basic write user-label te5new 2 0 + verification: | + Using your DUT controller write attribute and read attribute to and from TH_CE + + Below is the example while using chip tool on second controller, + ./chip-tool basic write user-label te5new 2 0 [1635861872.956332][5788:5793] CHIP:DMG: WriteResponse = [1635861872.956373][5788:5793] CHIP:DMG: { - [1635861872.956407][5788:5793] CHIP:DMG: AttributeStatusList = - [1635861872.956443][5788:5793] CHIP:DMG: [ - [1635861872.956511][5788:5793] CHIP:DMG: AttributeStatusIB = - [1635861872.956561][5788:5793] CHIP:DMG: { - [1635861872.956604][5788:5793] CHIP:DMG: AttributePath = - [1635861872.956653][5788:5793] CHIP:DMG: { - [1635861872.956704][5788:5793] CHIP:DMG: FieldTag = 0x0000_0005, - [1635861872.956753][5788:5793] CHIP:DMG: NodeId = 0x0, - [1635861872.956801][5788:5793] CHIP:DMG: ClusterId = 0x28, - [1635861872.956847][5788:5793] CHIP:DMG: EndpointId = 0x0, - [1635861872.956891][5788:5793] CHIP:DMG: } + [1635861872.956407][5788:5793] CHIP:DMG: AttributeStatusList = + [1635861872.956443][5788:5793] CHIP:DMG: [ + [1635861872.956511][5788:5793] CHIP:DMG: AttributeStatusIB = + [1635861872.956561][5788:5793] CHIP:DMG: { + [1635861872.956604][5788:5793] CHIP:DMG: AttributePath = + [1635861872.956653][5788:5793] CHIP:DMG: { + [1635861872.956704][5788:5793] CHIP:DMG: FieldTag = 0x0000_0005, + [1635861872.956753][5788:5793] CHIP:DMG: NodeId = 0x0, + [1635861872.956801][5788:5793] CHIP:DMG: ClusterId = 0x28, + [1635861872.956847][5788:5793] CHIP:DMG: EndpointId = 0x0, + [1635861872.956891][5788:5793] CHIP:DMG: } [1635861872.956940][5788:5793] CHIP:DMG: - [1635861872.956981][5788:5793] CHIP:DMG: StatusIB = - [1635861872.957034][5788:5793] CHIP:DMG: { - [1635861872.957079][5788:5793] CHIP:DMG: status = 0x0, - [1635861872.957119][5788:5793] CHIP:DMG: }, + [1635861872.956981][5788:5793] CHIP:DMG: StatusIB = + [1635861872.957034][5788:5793] CHIP:DMG: { + [1635861872.957079][5788:5793] CHIP:DMG: status = 0x0, + [1635861872.957119][5788:5793] CHIP:DMG: }, [1635861872.957172][5788:5793] CHIP:DMG: - [1635861872.957215][5788:5793] CHIP:DMG: }, + [1635861872.957215][5788:5793] CHIP:DMG: }, [1635861872.957265][5788:5793] CHIP:DMG: - [1635861872.957302][5788:5793] CHIP:DMG: ], + [1635861872.957302][5788:5793] CHIP:DMG: ], [1635861872.957349][5788:5793] CHIP:DMG: [1635861872.957379][5788:5793] CHIP:DMG: } [1635861872.957451][5788:5793] CHIP:ZCL: WriteResponse: - [1635861872.957485][5788:5793] CHIP:ZCL: status: Success (0x0000) + [1635861872.957485][5788:5793] CHIP:ZCL: status: Success (0x0000) [1635861872.957523][5788:5793] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635861971.232185][5799:5804] - CHIP:DMG: ReportData = [1635861971.232222][5799:5804] CHIP:DMG: { - [1635861971.232255][5799:5804] CHIP:DMG: AttributeDataList = - [1635861971.232296][5799:5804] CHIP:DMG: [ - [1635861971.232335][5799:5804] CHIP:DMG: AttributeDataElement = - [1635861971.232378][5799:5804] CHIP:DMG: { - [1635861971.232417][5799:5804] CHIP:DMG: AttributePath = - [1635861971.232508][5799:5804] CHIP:DMG: { - [1635861971.232555][5799:5804] CHIP:DMG: NodeId = 0x1, - [1635861971.232627][5799:5804] CHIP:DMG: EndpointId = 0x0, - [1635861971.232680][5799:5804] CHIP:DMG: ClusterId = 0x28, - [1635861971.232857][5799:5804] CHIP:DMG: FieldTag = 0x0000_0005, - [1635861971.232907][5799:5804] CHIP:DMG: } + + + ./chip-tool basic read user-label 1 0 + [1635861971.232185][5799:5804] CHIP:DMG: ReportData = + [1635861971.232222][5799:5804] CHIP:DMG: { + [1635861971.232255][5799:5804] CHIP:DMG: AttributeDataList = + [1635861971.232296][5799:5804] CHIP:DMG: [ + [1635861971.232335][5799:5804] CHIP:DMG: AttributeDataElement = + [1635861971.232378][5799:5804] CHIP:DMG: { + [1635861971.232417][5799:5804] CHIP:DMG: AttributePath = + [1635861971.232508][5799:5804] CHIP:DMG: { + [1635861971.232555][5799:5804] CHIP:DMG: NodeId = 0x1, + [1635861971.232627][5799:5804] CHIP:DMG: EndpointId = 0x0, + [1635861971.232680][5799:5804] CHIP:DMG: ClusterId = 0x28, + [1635861971.232857][5799:5804] CHIP:DMG: FieldTag = 0x0000_0005, + [1635861971.232907][5799:5804] CHIP:DMG: } [1635861971.232960][5799:5804] CHIP:DMG: - [1635861971.233009][5799:5804] CHIP:DMG: Data = te5new, - [1635861971.233097][5799:5804] CHIP:DMG: DataElementVersion = 0x0, - [1635861971.233135][5799:5804] CHIP:DMG: }, + [1635861971.233009][5799:5804] CHIP:DMG: Data = "te5new", + [1635861971.233097][5799:5804] CHIP:DMG: DataElementVersion = 0x0, + [1635861971.233135][5799:5804] CHIP:DMG: }, [1635861971.233180][5799:5804] CHIP:DMG: - [1635861971.233217][5799:5804] CHIP:DMG: ], + [1635861971.233217][5799:5804] CHIP:DMG: ], [1635861971.233260][5799:5804] CHIP:DMG: [1635861971.233290][5799:5804] CHIP:DMG: } [1635861971.233414][5799:5804] CHIP:ZCL: ReadAttributesResponse: - [1635861971.233449][5799:5804] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635861971.233484][5799:5804] CHIP:ZCL: attributeId: 0x0000_0005 - [1635861971.233517][5799:5804] CHIP:ZCL: status: Success (0x0000) - [1635861971.233551][5799:5804] CHIP:ZCL: attribute TLV Type: 0x0c - [1635861971.233587][5799:5804] CHIP:TOO: CharString attribute - Response: te5new" + [1635861971.233449][5799:5804] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635861971.233484][5799:5804] CHIP:ZCL: attributeId: 0x0000_0005 + [1635861971.233517][5799:5804] CHIP:ZCL: status: Success (0x0000) + [1635861971.233551][5799:5804] CHIP:ZCL: attribute TLV Type: 0x0c + [1635861971.233587][5799:5804] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "DUT_CR2 reads the list of Fabrics on TH_CE" - verification: - "On your DUT controller read fabricList Below is the example while - using chip tool on second controller, ./chip-tool - operationalcredentials read fabrics-list 2 0 + verification: | + On your DUT controller read fabricList + + Below is the example while using chip tool on second controller, + ./chip-tool operationalcredentials read fabrics-list 2 0 [1635862039.896395][5808:5813] CHIP:DMG: ReportData = [1635862039.896430][5808:5813] CHIP:DMG: { - [1635862039.896490][5808:5813] CHIP:DMG: AttributeDataList = - [1635862039.896532][5808:5813] CHIP:DMG: [ - [1635862039.896574][5808:5813] CHIP:DMG: AttributeDataElement = - [1635862039.896636][5808:5813] CHIP:DMG: { - [1635862039.896676][5808:5813] CHIP:DMG: AttributePath = - [1635862039.896740][5808:5813] CHIP:DMG: { - [1635862039.896803][5808:5813] CHIP:DMG: NodeId = 0x1, - [1635862039.896851][5808:5813] CHIP:DMG: EndpointId = 0x0, - [1635862039.896907][5808:5813] CHIP:DMG: ClusterId = 0x3e, - [1635862039.896977][5808:5813] CHIP:DMG: FieldTag = 0x0000_0001, - [1635862039.897021][5808:5813] CHIP:DMG: } + [1635862039.896490][5808:5813] CHIP:DMG: AttributeDataList = + [1635862039.896532][5808:5813] CHIP:DMG: [ + [1635862039.896574][5808:5813] CHIP:DMG: AttributeDataElement = + [1635862039.896636][5808:5813] CHIP:DMG: { + [1635862039.896676][5808:5813] CHIP:DMG: AttributePath = + [1635862039.896740][5808:5813] CHIP:DMG: { + [1635862039.896803][5808:5813] CHIP:DMG: NodeId = 0x1, + [1635862039.896851][5808:5813] CHIP:DMG: EndpointId = 0x0, + [1635862039.896907][5808:5813] CHIP:DMG: ClusterId = 0x3e, + [1635862039.896977][5808:5813] CHIP:DMG: FieldTag = 0x0000_0001, + [1635862039.897021][5808:5813] CHIP:DMG: } [1635862039.897084][5808:5813] CHIP:DMG: - [1635862039.897131][5808:5813] CHIP:DMG: Data = [ + [1635862039.897131][5808:5813] CHIP:DMG: Data = [ [1635862039.897190][5808:5813] CHIP:DMG: - [1635862039.897248][5808:5813] CHIP:DMG: { - [1635862039.897292][5808:5813] CHIP:DMG: 0x0 = 1, - [1635862039.897337][5808:5813] CHIP:DMG: 0x1 = [ - [1635862039.897426][5808:5813] CHIP:DMG: 0x4, 0x6f, 0x9b, 0xb2, 0xcb, - 0xc2, 0x9b, 0x9c, 0x23, 0xed, 0xb5, 0xde, 0x91, 0xa7, 0xb2, 0x53, 0xd, - 0x0, 0x4, 0x80, 0xe3, 0x6c, 0xa6, 0x2e, 0x1e, 0x9a, 0x24, 0x62, 0xcb, - 0xf, 0x9a, 0x58, 0x8b, 0x96, 0xab, 0x3f, 0x59, 0xfd, 0x92, 0x83, 0xf0, - 0x42, 0x [1635862039.897499][5808:5813] CHIP:DMG: ] - [1635862039.897677][5808:5813] CHIP:DMG: 0x2 = 13640, - [1635862039.897837][5808:5813] CHIP:DMG: 0x3 = 0, - [1635862039.897964][5808:5813] CHIP:DMG: 0x4 = 1, - [1635862039.898041][5808:5813] CHIP:DMG: 0x5 = , - [1635862039.898102][5808:5813] CHIP:DMG: }, - [1635862039.898159][5808:5813] CHIP:DMG: { - [1635862039.898235][5808:5813] CHIP:DMG: 0x0 = 2, - [1635862039.898289][5808:5813] CHIP:DMG: 0x1 = [ - [1635862039.898388][5808:5813] CHIP:DMG: 0x4, 0x83, 0xb3, 0x39, 0xe3, - 0x71, 0xc2, 0xd4, 0x5d, 0x6d, 0xc9, 0x86, 0xba, 0x66, 0xba, 0x6e, - 0x4e, 0x85, 0x3f, 0xd5, 0xbc, 0x26, 0x8b, 0x6, 0xc6, 0x3c, 0xb2, 0x6f, - 0xc0, 0xd1, 0x37, 0xb4, 0xb7, 0x6c, 0x80, 0x81, 0x73, 0x2c, 0xd0, - 0x16, 0xfc, 0x34, [1635862039.898592][5808:5813] CHIP:DMG: ] - [1635862039.898705][5808:5813] CHIP:DMG: 0x2 = 58184, - [1635862039.898783][5808:5813] CHIP:DMG: 0x3 = 0, - [1635862039.898864][5808:5813] CHIP:DMG: 0x4 = 1, - [1635862039.898921][5808:5813] CHIP:DMG: 0x5 = , - [1635862039.898997][5808:5813] CHIP:DMG: }, - [1635862039.899113][5808:5813] CHIP:DMG: ], - [1635862039.899195][5808:5813] CHIP:DMG: DataElementVersion = 0x0, - [1635862039.899254][5808:5813] CHIP:DMG: }, + [1635862039.897248][5808:5813] CHIP:DMG: { + [1635862039.897292][5808:5813] CHIP:DMG: 0x0 = 1, + [1635862039.897337][5808:5813] CHIP:DMG: 0x1 = [ + [1635862039.897426][5808:5813] CHIP:DMG: 0x4, 0x6f, 0x9b, 0xb2, 0xcb, 0xc2, 0x9b, 0x9c, 0x23, 0xed, 0xb5, 0xde, 0x91, 0xa7, 0xb2, 0x53, 0xd, 0x0, 0x4, 0x80, 0xe3, 0x6c, 0xa6, 0x2e, 0x1e, 0x9a, 0x24, 0x62, 0xcb, 0xf, 0x9a, 0x58, 0x8b, 0x96, 0xab, 0x3f, 0x59, 0xfd, 0x92, 0x83, 0xf0, 0x42, 0x + [1635862039.897499][5808:5813] CHIP:DMG: ] + [1635862039.897677][5808:5813] CHIP:DMG: 0x2 = 13640, + [1635862039.897837][5808:5813] CHIP:DMG: 0x3 = 0, + [1635862039.897964][5808:5813] CHIP:DMG: 0x4 = 1, + [1635862039.898041][5808:5813] CHIP:DMG: 0x5 = "", + [1635862039.898102][5808:5813] CHIP:DMG: }, + [1635862039.898159][5808:5813] CHIP:DMG: { + [1635862039.898235][5808:5813] CHIP:DMG: 0x0 = 2, + [1635862039.898289][5808:5813] CHIP:DMG: 0x1 = [ + [1635862039.898388][5808:5813] CHIP:DMG: 0x4, 0x83, 0xb3, 0x39, 0xe3, 0x71, 0xc2, 0xd4, 0x5d, 0x6d, 0xc9, 0x86, 0xba, 0x66, 0xba, 0x6e, 0x4e, 0x85, 0x3f, 0xd5, 0xbc, 0x26, 0x8b, 0x6, 0xc6, 0x3c, 0xb2, 0x6f, 0xc0, 0xd1, 0x37, 0xb4, 0xb7, 0x6c, 0x80, 0x81, 0x73, 0x2c, 0xd0, 0x16, 0xfc, 0x34, + [1635862039.898592][5808:5813] CHIP:DMG: ] + [1635862039.898705][5808:5813] CHIP:DMG: 0x2 = 58184, + [1635862039.898783][5808:5813] CHIP:DMG: 0x3 = 0, + [1635862039.898864][5808:5813] CHIP:DMG: 0x4 = 1, + [1635862039.898921][5808:5813] CHIP:DMG: 0x5 = "", + [1635862039.898997][5808:5813] CHIP:DMG: }, + [1635862039.899113][5808:5813] CHIP:DMG: ], + [1635862039.899195][5808:5813] CHIP:DMG: DataElementVersion = 0x0, + [1635862039.899254][5808:5813] CHIP:DMG: }, [1635862039.899340][5808:5813] CHIP:DMG: - [1635862039.899385][5808:5813] CHIP:DMG: ], + [1635862039.899385][5808:5813] CHIP:DMG: ], [1635862039.899478][5808:5813] CHIP:DMG: [1635862039.899521][5808:5813] CHIP:DMG: } [1635862039.899811][5808:5813] CHIP:ZCL: ReadAttributesResponse: - [1635862039.899873][5808:5813] CHIP:ZCL: ClusterId: 0x0000_003E - [1635862039.899918][5808:5813] CHIP:ZCL: attributeId: 0x0000_0001 - [1635862039.899958][5808:5813] CHIP:ZCL: status: Success (0x0000) - [1635862039.899994][5808:5813] CHIP:ZCL: attribute TLV Type: 0x16 - [1635862039.900060][5808:5813] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635862039.899873][5808:5813] CHIP:ZCL: ClusterId: 0x0000_003E + [1635862039.899918][5808:5813] CHIP:ZCL: attributeId: 0x0000_0001 + [1635862039.899958][5808:5813] CHIP:ZCL: status: Success (0x0000) + [1635862039.899994][5808:5813] CHIP:ZCL: attribute TLV Type: 0x16 + [1635862039.900060][5808:5813] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635862039.900357][5808:5813] CHIP:TOO: FabricDescriptor[1]: - [1635862039.900420][5808:5813] CHIP:TOO: fabricIndex: 1 - [1635862039.900480][5808:5813] CHIP:ZCL: RootPublicKey: 65 - [1635862039.900532][5808:5813] CHIP:TOO: vendorId: 13640 - [1635862039.900564][5808:5813] CHIP:TOO: fabricId: 0 - [1635862039.900602][5808:5813] CHIP:TOO: nodeId: 1 - [1635862039.900639][5808:5813] CHIP:ZCL: Label: + [1635862039.900420][5808:5813] CHIP:TOO: fabricIndex: 1 + [1635862039.900480][5808:5813] CHIP:ZCL: RootPublicKey: 65 + [1635862039.900532][5808:5813] CHIP:TOO: vendorId: 13640 + [1635862039.900564][5808:5813] CHIP:TOO: fabricId: 0 + [1635862039.900602][5808:5813] CHIP:TOO: nodeId: 1 + [1635862039.900639][5808:5813] CHIP:ZCL: Label: [1635862039.900697][5808:5813] CHIP:TOO: FabricDescriptor[2]: - [1635862039.900739][5808:5813] CHIP:TOO: fabricIndex: 2 - [1635862039.900793][5808:5813] CHIP:ZCL: RootPublicKey: 65 - [1635862039.900826][5808:5813] CHIP:TOO: vendorId: 58184 - [1635862039.900879][5808:5813] CHIP:TOO: fabricId: 0 - [1635862039.900953][5808:5813] CHIP:TOO: nodeId: 1" - disabled: true - - - label: "" - verification: - "1. Verify if the DUT is broadcasting using $ avahi-browse -rt - _matter._tcp" + [1635862039.900739][5808:5813] CHIP:TOO: fabricIndex: 2 + [1635862039.900793][5808:5813] CHIP:ZCL: RootPublicKey: 65 + [1635862039.900826][5808:5813] CHIP:TOO: vendorId: 58184 + [1635862039.900879][5808:5813] CHIP:TOO: fabricId: 0 + [1635862039.900953][5808:5813] CHIP:TOO: nodeId: 1 disabled: true - label: "TH_CR1 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE using CASE" - verification: - "On first controller, using chip-tool write attribute, Verify read - attribute returns the updated value written. ./chip-tool basic write - user-label te5new 1 0 [1635862117.716433][3691:3696] CHIP:DMG: - WriteResponse = [1635862117.716467][3691:3696] CHIP:DMG: { - [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = - [1635862117.716535][3691:3696] CHIP:DMG: [ - [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = - [1635862117.716608][3691:3696] CHIP:DMG: { - [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = - [1635862117.716689][3691:3696] CHIP:DMG: { - [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, - [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, - [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, - [1635862117.716914][3691:3696] CHIP:DMG: } + verification: | + On first controller, using chip-tool write attribute, Verify read attribute returns the updated value written. + + ./chip-tool basic write user-label te5new 1 0 + + [1635862117.716433][3691:3696] CHIP:DMG: WriteResponse = + [1635862117.716467][3691:3696] CHIP:DMG: { + [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = + [1635862117.716535][3691:3696] CHIP:DMG: [ + [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = + [1635862117.716608][3691:3696] CHIP:DMG: { + [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = + [1635862117.716689][3691:3696] CHIP:DMG: { + [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, + [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, + [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, + [1635862117.716914][3691:3696] CHIP:DMG: } [1635862117.716962][3691:3696] CHIP:DMG: - [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = - [1635862117.717044][3691:3696] CHIP:DMG: { - [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, - [1635862117.717130][3691:3696] CHIP:DMG: }, + [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = + [1635862117.717044][3691:3696] CHIP:DMG: { + [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, + [1635862117.717130][3691:3696] CHIP:DMG: }, [1635862117.717173][3691:3696] CHIP:DMG: - [1635862117.717212][3691:3696] CHIP:DMG: }, + [1635862117.717212][3691:3696] CHIP:DMG: }, [1635862117.717256][3691:3696] CHIP:DMG: - [1635862117.717288][3691:3696] CHIP:DMG: ], + [1635862117.717288][3691:3696] CHIP:DMG: ], [1635862117.717330][3691:3696] CHIP:DMG: [1635862117.717362][3691:3696] CHIP:DMG: } [1635862117.717462][3691:3696] CHIP:ZCL: WriteResponse: - [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) + [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) [1635862117.717525][3691:3696] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635862186.734626][3701:3706] - CHIP:DMG: ReportData = [1635862186.734664][3701:3706] CHIP:DMG: { - [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = - [1635862186.734735][3701:3706] CHIP:DMG: [ - [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = - [1635862186.734809][3701:3706] CHIP:DMG: { - [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = - [1635862186.734895][3701:3706] CHIP:DMG: { - [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, - [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, - [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, - [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862186.735335][3701:3706] CHIP:DMG: } + + ./chip-tool basic read user-label 1 0 + [1635862186.734626][3701:3706] CHIP:DMG: ReportData = + [1635862186.734664][3701:3706] CHIP:DMG: { + [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = + [1635862186.734735][3701:3706] CHIP:DMG: [ + [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = + [1635862186.734809][3701:3706] CHIP:DMG: { + [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = + [1635862186.734895][3701:3706] CHIP:DMG: { + [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, + [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, + [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, + [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862186.735335][3701:3706] CHIP:DMG: } [1635862186.735383][3701:3706] CHIP:DMG: - [1635862186.735431][3701:3706] CHIP:DMG: Data = te5new, - [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, - [1635862186.735533][3701:3706] CHIP:DMG: }, + [1635862186.735431][3701:3706] CHIP:DMG: Data = "te5new", + [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, + [1635862186.735533][3701:3706] CHIP:DMG: }, [1635862186.735581][3701:3706] CHIP:DMG: - [1635862186.735617][3701:3706] CHIP:DMG: ], + [1635862186.735617][3701:3706] CHIP:DMG: ], [1635862186.735657][3701:3706] CHIP:DMG: [1635862186.735691][3701:3706] CHIP:DMG: } [1635862186.735799][3701:3706] CHIP:ZCL: ReadAttributesResponse: - [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) - [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute - Response: te5new" + [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 + [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) + [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c + [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "Using your DUT controller write attribute and read attribute to and - from TH_CE Below is the example while using chip tool on second - controller, ./chip-tool basic write user-label te5new 2 0 + verification: | + Using your DUT controller write attribute and read attribute to and from TH_CE + + Below is the example while using chip tool on second controller, + ./chip-tool basic write user-label te5new 2 0 1635862254.426741][5821:5826] CHIP:DMG: WriteResponse = [1635862254.426777][5821:5826] CHIP:DMG: { - [1635862254.426807][5821:5826] CHIP:DMG: AttributeStatusList = - [1635862254.426842][5821:5826] CHIP:DMG: [ - [1635862254.426876][5821:5826] CHIP:DMG: AttributeStatusIB = - [1635862254.426919][5821:5826] CHIP:DMG: { - [1635862254.426953][5821:5826] CHIP:DMG: AttributePath = - [1635862254.427002][5821:5826] CHIP:DMG: { - [1635862254.427047][5821:5826] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862254.427085][5821:5826] CHIP:DMG: NodeId = 0x0, - [1635862254.427138][5821:5826] CHIP:DMG: ClusterId = 0x28, - [1635862254.427185][5821:5826] CHIP:DMG: EndpointId = 0x0, - [1635862254.427234][5821:5826] CHIP:DMG: } + [1635862254.426807][5821:5826] CHIP:DMG: AttributeStatusList = + [1635862254.426842][5821:5826] CHIP:DMG: [ + [1635862254.426876][5821:5826] CHIP:DMG: AttributeStatusIB = + [1635862254.426919][5821:5826] CHIP:DMG: { + [1635862254.426953][5821:5826] CHIP:DMG: AttributePath = + [1635862254.427002][5821:5826] CHIP:DMG: { + [1635862254.427047][5821:5826] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862254.427085][5821:5826] CHIP:DMG: NodeId = 0x0, + [1635862254.427138][5821:5826] CHIP:DMG: ClusterId = 0x28, + [1635862254.427185][5821:5826] CHIP:DMG: EndpointId = 0x0, + [1635862254.427234][5821:5826] CHIP:DMG: } [1635862254.427283][5821:5826] CHIP:DMG: - [1635862254.427321][5821:5826] CHIP:DMG: StatusIB = - [1635862254.427360][5821:5826] CHIP:DMG: { - [1635862254.427400][5821:5826] CHIP:DMG: status = 0x0, - [1635862254.427440][5821:5826] CHIP:DMG: }, + [1635862254.427321][5821:5826] CHIP:DMG: StatusIB = + [1635862254.427360][5821:5826] CHIP:DMG: { + [1635862254.427400][5821:5826] CHIP:DMG: status = 0x0, + [1635862254.427440][5821:5826] CHIP:DMG: }, [1635862254.427481][5821:5826] CHIP:DMG: - [1635862254.427516][5821:5826] CHIP:DMG: }, + [1635862254.427516][5821:5826] CHIP:DMG: }, [1635862254.427563][5821:5826] CHIP:DMG: - [1635862254.427597][5821:5826] CHIP:DMG: ], + [1635862254.427597][5821:5826] CHIP:DMG: ], [1635862254.427640][5821:5826] CHIP:DMG: [1635862254.427666][5821:5826] CHIP:DMG: } [1635862254.427733][5821:5826] CHIP:ZCL: WriteResponse: - [1635862254.427764][5821:5826] CHIP:ZCL: status: Success (0x0000) + [1635862254.427764][5821:5826] CHIP:ZCL: status: Success (0x0000) [1635862254.427798][5821:5826] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635862295.008057][5829:5834] - CHIP:DMG: ReportData = [1635862295.008128][5829:5834] CHIP:DMG: { - [1635862295.008167][5829:5834] CHIP:DMG: AttributeDataList = - [1635862295.008214][5829:5834] CHIP:DMG: [ - [1635862295.008256][5829:5834] CHIP:DMG: AttributeDataElement = - [1635862295.008310][5829:5834] CHIP:DMG: { - [1635862295.008402][5829:5834] CHIP:DMG: AttributePath = - [1635862295.008493][5829:5834] CHIP:DMG: { - [1635862295.008547][5829:5834] CHIP:DMG: NodeId = 0x1, - [1635862295.008601][5829:5834] CHIP:DMG: EndpointId = 0x0, - [1635862295.008654][5829:5834] CHIP:DMG: ClusterId = 0x28, - [1635862295.008706][5829:5834] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862295.008755][5829:5834] CHIP:DMG: } + + + ./chip-tool basic read user-label 1 0 + [1635862295.008057][5829:5834] CHIP:DMG: ReportData = + [1635862295.008128][5829:5834] CHIP:DMG: { + [1635862295.008167][5829:5834] CHIP:DMG: AttributeDataList = + [1635862295.008214][5829:5834] CHIP:DMG: [ + [1635862295.008256][5829:5834] CHIP:DMG: AttributeDataElement = + [1635862295.008310][5829:5834] CHIP:DMG: { + [1635862295.008402][5829:5834] CHIP:DMG: AttributePath = + [1635862295.008493][5829:5834] CHIP:DMG: { + [1635862295.008547][5829:5834] CHIP:DMG: NodeId = 0x1, + [1635862295.008601][5829:5834] CHIP:DMG: EndpointId = 0x0, + [1635862295.008654][5829:5834] CHIP:DMG: ClusterId = 0x28, + [1635862295.008706][5829:5834] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862295.008755][5829:5834] CHIP:DMG: } [1635862295.008810][5829:5834] CHIP:DMG: - [1635862295.008864][5829:5834] CHIP:DMG: Data = te5new, - [1635862295.008964][5829:5834] CHIP:DMG: DataElementVersion = 0x0, - [1635862295.009035][5829:5834] CHIP:DMG: }, + [1635862295.008864][5829:5834] CHIP:DMG: Data = "te5new", + [1635862295.008964][5829:5834] CHIP:DMG: DataElementVersion = 0x0, + [1635862295.009035][5829:5834] CHIP:DMG: }, [1635862295.009088][5829:5834] CHIP:DMG: - [1635862295.009130][5829:5834] CHIP:DMG: ], + [1635862295.009130][5829:5834] CHIP:DMG: ], [1635862295.009179][5829:5834] CHIP:DMG: [1635862295.009218][5829:5834] CHIP:DMG: } [1635862295.009334][5829:5834] CHIP:ZCL: ReadAttributesResponse: - [1635862295.009372][5829:5834] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862295.009412][5829:5834] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862295.009449][5829:5834] CHIP:ZCL: status: Success (0x0000) - [1635862295.009484][5829:5834] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862295.009545][5829:5834] CHIP:TOO: CharString attribute - Response: te5new" + [1635862295.009372][5829:5834] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635862295.009412][5829:5834] CHIP:ZCL: attributeId: 0x0000_0005 + [1635862295.009449][5829:5834] CHIP:ZCL: status: Success (0x0000) + [1635862295.009484][5829:5834] CHIP:ZCL: attribute TLV Type: 0x0c + [1635862295.009545][5829:5834] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "Turn off TH_CR1" - verification: - "No need to do anything as chip-tool process exits after each command" + verification: | + No need to do anything as chip-tool process exits after each command disabled: true - label: "DUT_CR2 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM (Basic Commissioning Method)" - verification: - "On your DUT controller using chip-tool open commissioning widow using - BCM. Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window - 500 2 0 [1635862360.234653][5838:5843] CHIP:DMG: InvokeCommand = + verification: | + On your DUT controller using chip-tool open commissioning widow using BCM. + + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 + [1635862360.234653][5838:5843] CHIP:DMG: InvokeCommand = [1635862360.234697][5838:5843] CHIP:DMG: { - [1635862360.234728][5838:5843] CHIP:DMG: CommandList = - [1635862360.234765][5838:5843] CHIP:DMG: [ - [1635862360.234801][5838:5843] CHIP:DMG: CommandDataIB = - [1635862360.234845][5838:5843] CHIP:DMG: { - [1635862360.234889][5838:5843] CHIP:DMG: CommandPathIB = - [1635862360.234935][5838:5843] CHIP:DMG: { - [1635862360.234978][5838:5843] CHIP:DMG: EndpointId = 0x0, - [1635862360.235022][5838:5843] CHIP:DMG: ClusterId = 0x3c, - [1635862360.235066][5838:5843] CHIP:DMG: CommandId = 0x1, - [1635862360.235106][5838:5843] CHIP:DMG: }, + [1635862360.234728][5838:5843] CHIP:DMG: CommandList = + [1635862360.234765][5838:5843] CHIP:DMG: [ + [1635862360.234801][5838:5843] CHIP:DMG: CommandDataIB = + [1635862360.234845][5838:5843] CHIP:DMG: { + [1635862360.234889][5838:5843] CHIP:DMG: CommandPathIB = + [1635862360.234935][5838:5843] CHIP:DMG: { + [1635862360.234978][5838:5843] CHIP:DMG: EndpointId = 0x0, + [1635862360.235022][5838:5843] CHIP:DMG: ClusterId = 0x3c, + [1635862360.235066][5838:5843] CHIP:DMG: CommandId = 0x1, + [1635862360.235106][5838:5843] CHIP:DMG: }, [1635862360.235151][5838:5843] CHIP:DMG: - [1635862360.235186][5838:5843] CHIP:DMG: StatusIB = - [1635862360.235242][5838:5843] CHIP:DMG: { - [1635862360.235282][5838:5843] CHIP:DMG: status = 0x0, - [1635862360.235334][5838:5843] CHIP:DMG: }, + [1635862360.235186][5838:5843] CHIP:DMG: StatusIB = + [1635862360.235242][5838:5843] CHIP:DMG: { + [1635862360.235282][5838:5843] CHIP:DMG: status = 0x0, + [1635862360.235334][5838:5843] CHIP:DMG: }, [1635862360.235386][5838:5843] CHIP:DMG: - [1635862360.235419][5838:5843] CHIP:DMG: }, + [1635862360.235419][5838:5843] CHIP:DMG: }, [1635862360.235461][5838:5843] CHIP:DMG: - [1635862360.235495][5838:5843] CHIP:DMG: ], + [1635862360.235495][5838:5843] CHIP:DMG: ], [1635862360.235536][5838:5843] CHIP:DMG: [1635862360.235571][5838:5843] CHIP:DMG: } - [1635862360.235630][5838:5843] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635862360.235666][5838:5843] CHIP:TOO: Default Success - Response" + [1635862360.235630][5838:5843] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635862360.235666][5838:5843] CHIP:TOO: Default Success Response disabled: true - label: "DUT_CR2 revokes the commissioning window on TH_CE using the Revoke Commissioning command" - verification: - "On your DUT controller using chip-tool run revoke command Below is - the example while using chip tool on second controller, ./chip-tool - administratorcommissioning revoke-commissioning 2 0 + verification: | + On your DUT controller using chip-tool run revoke command + + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning revoke-commissioning 2 0 [1635862419.049107][5846:5851] CHIP:DMG: InvokeCommand = [1635862419.049166][5846:5851] CHIP:DMG: { - [1635862419.049212][5846:5851] CHIP:DMG: CommandList = - [1635862419.049266][5846:5851] CHIP:DMG: [ - [1635862419.049317][5846:5851] CHIP:DMG: CommandDataIB = - [1635862419.049374][5846:5851] CHIP:DMG: { - [1635862419.049438][5846:5851] CHIP:DMG: CommandPathIB = - [1635862419.049517][5846:5851] CHIP:DMG: { - [1635862419.049596][5846:5851] CHIP:DMG: EndpointId = 0x0, - [1635862419.049679][5846:5851] CHIP:DMG: ClusterId = 0x3c, - [1635862419.049757][5846:5851] CHIP:DMG: CommandId = 0x2, - [1635862419.049829][5846:5851] CHIP:DMG: }, + [1635862419.049212][5846:5851] CHIP:DMG: CommandList = + [1635862419.049266][5846:5851] CHIP:DMG: [ + [1635862419.049317][5846:5851] CHIP:DMG: CommandDataIB = + [1635862419.049374][5846:5851] CHIP:DMG: { + [1635862419.049438][5846:5851] CHIP:DMG: CommandPathIB = + [1635862419.049517][5846:5851] CHIP:DMG: { + [1635862419.049596][5846:5851] CHIP:DMG: EndpointId = 0x0, + [1635862419.049679][5846:5851] CHIP:DMG: ClusterId = 0x3c, + [1635862419.049757][5846:5851] CHIP:DMG: CommandId = 0x2, + [1635862419.049829][5846:5851] CHIP:DMG: }, [1635862419.049908][5846:5851] CHIP:DMG: - [1635862419.049974][5846:5851] CHIP:DMG: StatusIB = - [1635862419.050045][5846:5851] CHIP:DMG: { - [1635862419.050116][5846:5851] CHIP:DMG: status = 0x0, - [1635862419.050197][5846:5851] CHIP:DMG: }, + [1635862419.049974][5846:5851] CHIP:DMG: StatusIB = + [1635862419.050045][5846:5851] CHIP:DMG: { + [1635862419.050116][5846:5851] CHIP:DMG: status = 0x0, + [1635862419.050197][5846:5851] CHIP:DMG: }, [1635862419.050277][5846:5851] CHIP:DMG: - [1635862419.050347][5846:5851] CHIP:DMG: }, + [1635862419.050347][5846:5851] CHIP:DMG: }, [1635862419.050427][5846:5851] CHIP:DMG: - [1635862419.050488][5846:5851] CHIP:DMG: ], + [1635862419.050488][5846:5851] CHIP:DMG: ], [1635862419.050559][5846:5851] CHIP:DMG: [1635862419.050619][5846:5851] CHIP:DMG: } - [1635862419.050716][5846:5851] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635862419.050785][5846:5851] CHIP:TOO: Default Success - Response" + [1635862419.050716][5846:5851] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635862419.050785][5846:5851] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR3 attempts to execute a PASE to starts a commissioning process with TH_CE" - verification: - "1. On third controller, using chip-tool connect to the accessory. - Connect attempt should fail, i.e ./chip-tool pairing onnetwork 1 - 20202021" + verification: | + 1. On third controller, using chip-tool connect to the accessory. Connect attempt should fail, i.e + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "Using your DUT controller, write attribute and read attribute to and - from TH_CE Below is the example while using chip tool on second - controller, ./chip-tool basic write user-label te5new 2 0 + verification: | + Using your DUT controller, write attribute and read attribute to and from TH_CE + + Below is the example while using chip tool on second controller, + ./chip-tool basic write user-label te5new 2 0 [1635864351.666441][5980:5985] CHIP:DMG: WriteResponse = [1635864351.666480][5980:5985] CHIP:DMG: { - [1635864351.666513][5980:5985] CHIP:DMG: AttributeStatusList = - [1635864351.666555][5980:5985] CHIP:DMG: [ - [1635864351.666588][5980:5985] CHIP:DMG: AttributeStatusIB = - [1635864351.666627][5980:5985] CHIP:DMG: { - [1635864351.666665][5980:5985] CHIP:DMG: AttributePath = - [1635864351.666714][5980:5985] CHIP:DMG: { - [1635864351.666764][5980:5985] CHIP:DMG: FieldTag = 0x0000_0005, - [1635864351.666815][5980:5985] CHIP:DMG: NodeId = 0x0, - [1635864351.666862][5980:5985] CHIP:DMG: ClusterId = 0x28, - [1635864351.666908][5980:5985] CHIP:DMG: EndpointId = 0x0, - [1635864351.666951][5980:5985] CHIP:DMG: } + [1635864351.666513][5980:5985] CHIP:DMG: AttributeStatusList = + [1635864351.666555][5980:5985] CHIP:DMG: [ + [1635864351.666588][5980:5985] CHIP:DMG: AttributeStatusIB = + [1635864351.666627][5980:5985] CHIP:DMG: { + [1635864351.666665][5980:5985] CHIP:DMG: AttributePath = + [1635864351.666714][5980:5985] CHIP:DMG: { + [1635864351.666764][5980:5985] CHIP:DMG: FieldTag = 0x0000_0005, + [1635864351.666815][5980:5985] CHIP:DMG: NodeId = 0x0, + [1635864351.666862][5980:5985] CHIP:DMG: ClusterId = 0x28, + [1635864351.666908][5980:5985] CHIP:DMG: EndpointId = 0x0, + [1635864351.666951][5980:5985] CHIP:DMG: } [1635864351.666999][5980:5985] CHIP:DMG: - [1635864351.667040][5980:5985] CHIP:DMG: StatusIB = - [1635864351.667082][5980:5985] CHIP:DMG: { - [1635864351.667125][5980:5985] CHIP:DMG: status = 0x0, - [1635864351.667171][5980:5985] CHIP:DMG: }, + [1635864351.667040][5980:5985] CHIP:DMG: StatusIB = + [1635864351.667082][5980:5985] CHIP:DMG: { + [1635864351.667125][5980:5985] CHIP:DMG: status = 0x0, + [1635864351.667171][5980:5985] CHIP:DMG: }, [1635864351.667218][5980:5985] CHIP:DMG: - [1635864351.667261][5980:5985] CHIP:DMG: }, + [1635864351.667261][5980:5985] CHIP:DMG: }, [1635864351.667307][5980:5985] CHIP:DMG: - [1635864351.667343][5980:5985] CHIP:DMG: ], + [1635864351.667343][5980:5985] CHIP:DMG: ], [1635864351.667388][5980:5985] CHIP:DMG: [1635864351.667418][5980:5985] CHIP:DMG: } [1635864351.667490][5980:5985] CHIP:ZCL: WriteResponse: - [1635864351.667524][5980:5985] CHIP:ZCL: status: Success (0x0000) + [1635864351.667524][5980:5985] CHIP:ZCL: status: Success (0x0000) [1635864351.667561][5980:5985] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 2 0 [1635864420.313679][5988:5993] - CHIP:DMG: ReportData = [1635864420.313742][5988:5993] CHIP:DMG: { - [1635864420.313777][5988:5993] CHIP:DMG: AttributeDataList = - [1635864420.313812][5988:5993] CHIP:DMG: [ - [1635864420.313849][5988:5993] CHIP:DMG: AttributeDataElement = - [1635864420.313911][5988:5993] CHIP:DMG: { - [1635864420.313970][5988:5993] CHIP:DMG: AttributePath = - [1635864420.314024][5988:5993] CHIP:DMG: { - [1635864420.314071][5988:5993] CHIP:DMG: NodeId = 0x2, - [1635864420.314114][5988:5993] CHIP:DMG: EndpointId = 0x0, - [1635864420.314166][5988:5993] CHIP:DMG: ClusterId = 0x28, - [1635864420.314215][5988:5993] CHIP:DMG: FieldTag = 0x0000_0005, - [1635864420.314264][5988:5993] CHIP:DMG: } + + ./chip-tool basic read user-label 2 0 + [1635864420.313679][5988:5993] CHIP:DMG: ReportData = + [1635864420.313742][5988:5993] CHIP:DMG: { + [1635864420.313777][5988:5993] CHIP:DMG: AttributeDataList = + [1635864420.313812][5988:5993] CHIP:DMG: [ + [1635864420.313849][5988:5993] CHIP:DMG: AttributeDataElement = + [1635864420.313911][5988:5993] CHIP:DMG: { + [1635864420.313970][5988:5993] CHIP:DMG: AttributePath = + [1635864420.314024][5988:5993] CHIP:DMG: { + [1635864420.314071][5988:5993] CHIP:DMG: NodeId = 0x2, + [1635864420.314114][5988:5993] CHIP:DMG: EndpointId = 0x0, + [1635864420.314166][5988:5993] CHIP:DMG: ClusterId = 0x28, + [1635864420.314215][5988:5993] CHIP:DMG: FieldTag = 0x0000_0005, + [1635864420.314264][5988:5993] CHIP:DMG: } [1635864420.314339][5988:5993] CHIP:DMG: - [1635864420.314417][5988:5993] CHIP:DMG: Data = te5new, - [1635864420.314480][5988:5993] CHIP:DMG: DataElementVersion = 0x0, - [1635864420.314542][5988:5993] CHIP:DMG: }, + [1635864420.314417][5988:5993] CHIP:DMG: Data = "te5new", + [1635864420.314480][5988:5993] CHIP:DMG: DataElementVersion = 0x0, + [1635864420.314542][5988:5993] CHIP:DMG: }, [1635864420.314589][5988:5993] CHIP:DMG: - [1635864420.314627][5988:5993] CHIP:DMG: ], + [1635864420.314627][5988:5993] CHIP:DMG: ], [1635864420.314669][5988:5993] CHIP:DMG: [1635864420.314703][5988:5993] CHIP:DMG: } [1635864420.314807][5988:5993] CHIP:ZCL: ReadAttributesResponse: - [1635864420.314841][5988:5993] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635864420.314876][5988:5993] CHIP:ZCL: attributeId: 0x0000_0005 - [1635864420.314908][5988:5993] CHIP:ZCL: status: Success (0x0000) - [1635864420.314940][5988:5993] CHIP:ZCL: attribute TLV Type: 0x0c - [1635864420.314975][5988:5993] CHIP:TOO: CharString attribute - Response: te5new" + [1635864420.314841][5988:5993] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635864420.314876][5988:5993] CHIP:ZCL: attributeId: 0x0000_0005 + [1635864420.314908][5988:5993] CHIP:ZCL: status: Success (0x0000) + [1635864420.314940][5988:5993] CHIP:ZCL: attribute TLV Type: 0x0c + [1635864420.314975][5988:5993] CHIP:TOO: CharString attribute Response: te5new disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_20.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_20.yaml index 1cb357b740b26f..93b1ce11dd58eb 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_20.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_20.yaml @@ -22,398 +22,403 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CR1 to factory defaults" + verification: | + + disabled: true + - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using DUT controller chip tool(use above - instructions) ," + verification: | + 1. Provision the device using DUT controller chip tool(use above instructions) , disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller chip tool, open commissioning window Below is - the example when using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On your DUT controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635926620.928560][10177:10182] CHIP:DMG: InvokeCommand = [1635926620.928631][10177:10182] CHIP:DMG: { - [1635926620.928680][10177:10182] CHIP:DMG: CommandList = - [1635926620.928745][10177:10182] CHIP:DMG: [ - [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = - [1635926620.928866][10177:10182] CHIP:DMG: { - [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = - [1635926620.929041][10177:10182] CHIP:DMG: { - [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, - [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, - [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, - [1635926620.929434][10177:10182] CHIP:DMG: }, + [1635926620.928680][10177:10182] CHIP:DMG: CommandList = + [1635926620.928745][10177:10182] CHIP:DMG: [ + [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = + [1635926620.928866][10177:10182] CHIP:DMG: { + [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = + [1635926620.929041][10177:10182] CHIP:DMG: { + [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, + [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, + [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, + [1635926620.929434][10177:10182] CHIP:DMG: }, [1635926620.929516][10177:10182] CHIP:DMG: - [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = - [1635926620.929656][10177:10182] CHIP:DMG: { - [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, - [1635926620.929829][10177:10182] CHIP:DMG: }, + [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = + [1635926620.929656][10177:10182] CHIP:DMG: { + [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, + [1635926620.929829][10177:10182] CHIP:DMG: }, [1635926620.929919][10177:10182] CHIP:DMG: - [1635926620.929976][10177:10182] CHIP:DMG: }, + [1635926620.929976][10177:10182] CHIP:DMG: }, [1635926620.930070][10177:10182] CHIP:DMG: - [1635926620.930123][10177:10182] CHIP:DMG: ], + [1635926620.930123][10177:10182] CHIP:DMG: ], [1635926620.930182][10177:10182] CHIP:DMG: [1635926620.930226][10177:10182] CHIP:DMG: } - [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635926620.930412][10177:10182] CHIP:TOO: Default Success - Response" + [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635926620.930412][10177:10182] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 + disabled: true + + - label: "Repeat step3 to commission TH_CR3" + verification: | + disabled: true - label: "TH_CR3 starts a commissioning process with TH_CE" - verification: - "On 3rd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On 3rd controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR2 reads the list of Fabrics on TH_CE" - verification: - "On 2nd controller, read fabrics list ./chip-tool - operationalcredentials read fabrics-list 1 0 + verification: | + On 2nd controller, read fabrics list + + ./chip-tool operationalcredentials read fabrics-list 1 0 + [1635926361.458197][10154:10159] CHIP:DMG: ReportData = [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } + [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = + [1635926361.458319][10154:10159] CHIP:DMG: [ + [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = + [1635926361.458386][10154:10159] CHIP:DMG: { + [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = + [1635926361.458464][10154:10159] CHIP:DMG: { + [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, + [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, + [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, + [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926361.458779][10154:10159] CHIP:DMG: } [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ + [1635926361.458896][10154:10159] CHIP:DMG: Data = [ [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, + [1635926361.458992][10154:10159] CHIP:DMG: { + [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, + [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926361.459229][10154:10159] CHIP:DMG: ] + [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, + [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, + [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.459492][10154:10159] CHIP:DMG: }, + [1635926361.459552][10154:10159] CHIP:DMG: { + [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, + [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926361.459797][10154:10159] CHIP:DMG: ] + [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, + [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, + [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.460054][10154:10159] CHIP:DMG: }, + [1635926361.460114][10154:10159] CHIP:DMG: ], + [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, + [1635926361.460207][10154:10159] CHIP:DMG: }, [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], + [1635926361.460289][10154:10159] CHIP:DMG: ], [1635926361.460357][10154:10159] CHIP:DMG: [1635926361.460388][10154:10159] CHIP:DMG: } [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) + [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: + [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 + [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 + [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 + [1635926361.460961][10154:10159] CHIP:ZCL: Label: [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2" + [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 + [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 + [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 disabled: true - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to TH_CE" - verification: - "on 2nd controller using chip tool, remove fabric with FabricIndex=2 - ./chip-tool operationalcredentials remove-fabric 2 1 0" + verification: | + on 2nd controller using chip tool, remove fabric with FabricIndex=2 + + ./chip-tool operationalcredentials remove-fabric 2 1 0 disabled: true - label: "TH_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "On 2nd controller, using chip-tool write attribute, Verify read - attribute returns the updated value written. ./chip-tool basic write - node-label te5new 1 0 [1635862117.716433][3691:3696] CHIP:DMG: - WriteResponse = [1635862117.716467][3691:3696] CHIP:DMG: { - [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = - [1635862117.716535][3691:3696] CHIP:DMG: [ - [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = - [1635862117.716608][3691:3696] CHIP:DMG: { - [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = - [1635862117.716689][3691:3696] CHIP:DMG: { - [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, - [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, - [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, - [1635862117.716914][3691:3696] CHIP:DMG: } + verification: | + On 2nd controller, using chip-tool write attribute, Verify read attribute returns the updated value written. + + ./chip-tool basic write node-label te5new 1 0 + + [1635862117.716433][3691:3696] CHIP:DMG: WriteResponse = + [1635862117.716467][3691:3696] CHIP:DMG: { + [1635862117.716497][3691:3696] CHIP:DMG: AttributeStatusList = + [1635862117.716535][3691:3696] CHIP:DMG: [ + [1635862117.716567][3691:3696] CHIP:DMG: AttributeStatusIB = + [1635862117.716608][3691:3696] CHIP:DMG: { + [1635862117.716647][3691:3696] CHIP:DMG: AttributePath = + [1635862117.716689][3691:3696] CHIP:DMG: { + [1635862117.716734][3691:3696] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862117.716781][3691:3696] CHIP:DMG: NodeId = 0x0, + [1635862117.716827][3691:3696] CHIP:DMG: ClusterId = 0x28, + [1635862117.716871][3691:3696] CHIP:DMG: EndpointId = 0x0, + [1635862117.716914][3691:3696] CHIP:DMG: } [1635862117.716962][3691:3696] CHIP:DMG: - [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = - [1635862117.717044][3691:3696] CHIP:DMG: { - [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, - [1635862117.717130][3691:3696] CHIP:DMG: }, + [1635862117.717002][3691:3696] CHIP:DMG: StatusIB = + [1635862117.717044][3691:3696] CHIP:DMG: { + [1635862117.717087][3691:3696] CHIP:DMG: status = 0x0, + [1635862117.717130][3691:3696] CHIP:DMG: }, [1635862117.717173][3691:3696] CHIP:DMG: - [1635862117.717212][3691:3696] CHIP:DMG: }, + [1635862117.717212][3691:3696] CHIP:DMG: }, [1635862117.717256][3691:3696] CHIP:DMG: - [1635862117.717288][3691:3696] CHIP:DMG: ], + [1635862117.717288][3691:3696] CHIP:DMG: ], [1635862117.717330][3691:3696] CHIP:DMG: [1635862117.717362][3691:3696] CHIP:DMG: } [1635862117.717462][3691:3696] CHIP:ZCL: WriteResponse: - [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) + [1635862117.717493][3691:3696] CHIP:ZCL: status: Success (0x0000) [1635862117.717525][3691:3696] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635862186.734626][3701:3706] - CHIP:DMG: ReportData = [1635862186.734664][3701:3706] CHIP:DMG: { - [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = - [1635862186.734735][3701:3706] CHIP:DMG: [ - [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = - [1635862186.734809][3701:3706] CHIP:DMG: { - [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = - [1635862186.734895][3701:3706] CHIP:DMG: { - [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, - [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, - [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, - [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, - [1635862186.735335][3701:3706] CHIP:DMG: } + + ./chip-tool basic read user-label 1 0 + [1635862186.734626][3701:3706] CHIP:DMG: ReportData = + [1635862186.734664][3701:3706] CHIP:DMG: { + [1635862186.734694][3701:3706] CHIP:DMG: AttributeDataList = + [1635862186.734735][3701:3706] CHIP:DMG: [ + [1635862186.734771][3701:3706] CHIP:DMG: AttributeDataElement = + [1635862186.734809][3701:3706] CHIP:DMG: { + [1635862186.734847][3701:3706] CHIP:DMG: AttributePath = + [1635862186.734895][3701:3706] CHIP:DMG: { + [1635862186.735070][3701:3706] CHIP:DMG: NodeId = 0x1, + [1635862186.735150][3701:3706] CHIP:DMG: EndpointId = 0x0, + [1635862186.735220][3701:3706] CHIP:DMG: ClusterId = 0x28, + [1635862186.735291][3701:3706] CHIP:DMG: FieldTag = 0x0000_0005, + [1635862186.735335][3701:3706] CHIP:DMG: } [1635862186.735383][3701:3706] CHIP:DMG: - [1635862186.735431][3701:3706] CHIP:DMG: Data = te5new, - [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, - [1635862186.735533][3701:3706] CHIP:DMG: }, + [1635862186.735431][3701:3706] CHIP:DMG: Data = "te5new", + [1635862186.735473][3701:3706] CHIP:DMG: DataElementVersion = 0x0, + [1635862186.735533][3701:3706] CHIP:DMG: }, [1635862186.735581][3701:3706] CHIP:DMG: - [1635862186.735617][3701:3706] CHIP:DMG: ], + [1635862186.735617][3701:3706] CHIP:DMG: ], [1635862186.735657][3701:3706] CHIP:DMG: [1635862186.735691][3701:3706] CHIP:DMG: } [1635862186.735799][3701:3706] CHIP:ZCL: ReadAttributesResponse: - [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 - [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) - [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c - [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute - Response: te5new" + [1635862186.735832][3701:3706] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635862186.735868][3701:3706] CHIP:ZCL: attributeId: 0x0000_0005 + [1635862186.735901][3701:3706] CHIP:ZCL: status: Success (0x0000) + [1635862186.735932][3701:3706] CHIP:ZCL: attribute TLV Type: 0x0c + [1635862186.735967][3701:3706] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "On 1st controller, read fabrics list Below is the command using chip - tool controller ./chip-tool operationalcredentials read fabrics-list 1 - 0 [1635926361.458197][10154:10159] CHIP:DMG: ReportData = + verification: | + On 1st controller, read fabrics list + + Below is the command using chip tool controller + + ./chip-tool operationalcredentials read fabrics-list 1 0 + + [1635926361.458197][10154:10159] CHIP:DMG: ReportData = [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } + [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = + [1635926361.458319][10154:10159] CHIP:DMG: [ + [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = + [1635926361.458386][10154:10159] CHIP:DMG: { + [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = + [1635926361.458464][10154:10159] CHIP:DMG: { + [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, + [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, + [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, + [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926361.458779][10154:10159] CHIP:DMG: } [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ + [1635926361.458896][10154:10159] CHIP:DMG: Data = [ [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, + [1635926361.458992][10154:10159] CHIP:DMG: { + [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, + [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926361.459229][10154:10159] CHIP:DMG: ] + [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, + [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, + [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.459492][10154:10159] CHIP:DMG: }, + [1635926361.459552][10154:10159] CHIP:DMG: { + [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, + [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926361.459797][10154:10159] CHIP:DMG: ] + [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, + [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, + [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.460054][10154:10159] CHIP:DMG: }, + [1635926361.460114][10154:10159] CHIP:DMG: ], + [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, + [1635926361.460207][10154:10159] CHIP:DMG: }, [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], + [1635926361.460289][10154:10159] CHIP:DMG: ], [1635926361.460357][10154:10159] CHIP:DMG: [1635926361.460388][10154:10159] CHIP:DMG: } [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) + [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: + [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 + [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 + [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 + [1635926361.460961][10154:10159] CHIP:ZCL: Label: [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2" - disabled: true - - - label: "" - verification: - "1. Verify if the DUT is broadcasting using $ avahi-browse -rt - _matter._tcp" + [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 + [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 + [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On 1st controller chip tool, open commissioning window Below is the - example when using chip tool as controller For BCM, ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On 1st controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + For BCM, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635926620.928560][10177:10182] CHIP:DMG: InvokeCommand = [1635926620.928631][10177:10182] CHIP:DMG: { - [1635926620.928680][10177:10182] CHIP:DMG: CommandList = - [1635926620.928745][10177:10182] CHIP:DMG: [ - [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = - [1635926620.928866][10177:10182] CHIP:DMG: { - [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = - [1635926620.929041][10177:10182] CHIP:DMG: { - [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, - [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, - [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, - [1635926620.929434][10177:10182] CHIP:DMG: }, + [1635926620.928680][10177:10182] CHIP:DMG: CommandList = + [1635926620.928745][10177:10182] CHIP:DMG: [ + [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = + [1635926620.928866][10177:10182] CHIP:DMG: { + [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = + [1635926620.929041][10177:10182] CHIP:DMG: { + [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, + [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, + [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, + [1635926620.929434][10177:10182] CHIP:DMG: }, [1635926620.929516][10177:10182] CHIP:DMG: - [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = - [1635926620.929656][10177:10182] CHIP:DMG: { - [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, - [1635926620.929829][10177:10182] CHIP:DMG: }, + [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = + [1635926620.929656][10177:10182] CHIP:DMG: { + [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, + [1635926620.929829][10177:10182] CHIP:DMG: }, [1635926620.929919][10177:10182] CHIP:DMG: - [1635926620.929976][10177:10182] CHIP:DMG: }, + [1635926620.929976][10177:10182] CHIP:DMG: }, [1635926620.930070][10177:10182] CHIP:DMG: - [1635926620.930123][10177:10182] CHIP:DMG: ], + [1635926620.930123][10177:10182] CHIP:DMG: ], [1635926620.930182][10177:10182] CHIP:DMG: [1635926620.930226][10177:10182] CHIP:DMG: } - [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635926620.930412][10177:10182] CHIP:TOO: Default Success - Response" + [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635926620.930412][10177:10182] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On 2nd controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - verification: - "On 1st controller, read fabrics list Below is the command using chip - tool controller ./chip-tool operationalcredentials read fabrics-list 1 - 0 [1635926361.458197][10154:10159] CHIP:DMG: ReportData = + verification: | + On 1st controller, read fabrics list + + Below is the command using chip tool controller + + ./chip-tool operationalcredentials read fabrics-list 1 0 + + [1635926361.458197][10154:10159] CHIP:DMG: ReportData = [1635926361.458231][10154:10159] CHIP:DMG: { - [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = - [1635926361.458319][10154:10159] CHIP:DMG: [ - [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = - [1635926361.458386][10154:10159] CHIP:DMG: { - [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = - [1635926361.458464][10154:10159] CHIP:DMG: { - [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, - [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, - [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, - [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, - [1635926361.458779][10154:10159] CHIP:DMG: } + [1635926361.458285][10154:10159] CHIP:DMG: AttributeDataList = + [1635926361.458319][10154:10159] CHIP:DMG: [ + [1635926361.458352][10154:10159] CHIP:DMG: AttributeDataElement = + [1635926361.458386][10154:10159] CHIP:DMG: { + [1635926361.458421][10154:10159] CHIP:DMG: AttributePath = + [1635926361.458464][10154:10159] CHIP:DMG: { + [1635926361.458523][10154:10159] CHIP:DMG: NodeId = 0x1, + [1635926361.458600][10154:10159] CHIP:DMG: EndpointId = 0x0, + [1635926361.458662][10154:10159] CHIP:DMG: ClusterId = 0x3e, + [1635926361.458734][10154:10159] CHIP:DMG: FieldTag = 0x0000_0001, + [1635926361.458779][10154:10159] CHIP:DMG: } [1635926361.458839][10154:10159] CHIP:DMG: - [1635926361.458896][10154:10159] CHIP:DMG: Data = [ + [1635926361.458896][10154:10159] CHIP:DMG: Data = [ [1635926361.458951][10154:10159] CHIP:DMG: - [1635926361.458992][10154:10159] CHIP:DMG: { - [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, - [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, - 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, - 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, - 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, - 0x1, 0x53, 0x63 [1635926361.459229][10154:10159] CHIP:DMG: ] - [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, - [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, - [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.459492][10154:10159] CHIP:DMG: }, - [1635926361.459552][10154:10159] CHIP:DMG: { - [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, - [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ - [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, - 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, - 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, - 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, - 0xf3, 0xac, 0x81, 0x92, [1635926361.459797][10154:10159] CHIP:DMG: ] - [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, - [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, - [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, - [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = , - [1635926361.460054][10154:10159] CHIP:DMG: }, - [1635926361.460114][10154:10159] CHIP:DMG: ], - [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, - [1635926361.460207][10154:10159] CHIP:DMG: }, + [1635926361.458992][10154:10159] CHIP:DMG: { + [1635926361.459054][10154:10159] CHIP:DMG: 0x0 = 1, + [1635926361.459100][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459161][10154:10159] CHIP:DMG: 0x4, 0xd6, 0x7d, 0xf1, 0x70, 0x4, 0x8, 0xb0, 0x4b, 0x2b, 0x86, 0xc, 0xe4, 0x28, 0xfa, 0xaa, 0xd5, 0x61, 0x92, 0xf4, 0x53, 0x2, 0xe9, 0xa2, 0x91, 0x17, 0x67, 0x89, 0xe7, 0xdc, 0x81, 0x18, 0x11, 0xe4, 0x41, 0x88, 0xbd, 0xdc, 0x6, 0xee, 0x1, 0x53, 0x63 + [1635926361.459229][10154:10159] CHIP:DMG: ] + [1635926361.459302][10154:10159] CHIP:DMG: 0x2 = 50504, + [1635926361.459341][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459405][10154:10159] CHIP:DMG: 0x4 = 1, + [1635926361.459451][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.459492][10154:10159] CHIP:DMG: }, + [1635926361.459552][10154:10159] CHIP:DMG: { + [1635926361.459626][10154:10159] CHIP:DMG: 0x0 = 2, + [1635926361.459690][10154:10159] CHIP:DMG: 0x1 = [ + [1635926361.459751][10154:10159] CHIP:DMG: 0x4, 0x79, 0x31, 0x7e, 0x45, 0x90, 0x63, 0xd2, 0x1e, 0x54, 0x63, 0x38, 0x11, 0x6b, 0xb4, 0xd0, 0xcc, 0x5e, 0xad, 0x1d, 0xfe, 0xbb, 0xa6, 0xb3, 0xbf, 0x41, 0x25, 0x47, 0x1f, 0x26, 0x0, 0x5a, 0x80, 0xed, 0xdf, 0x98, 0xcc, 0xe7, 0xf3, 0xac, 0x81, 0x92, + [1635926361.459797][10154:10159] CHIP:DMG: ] + [1635926361.459860][10154:10159] CHIP:DMG: 0x2 = 33608, + [1635926361.459924][10154:10159] CHIP:DMG: 0x3 = 0, + [1635926361.459968][10154:10159] CHIP:DMG: 0x4 = 2, + [1635926361.460011][10154:10159] CHIP:DMG: 0x5 = "", + [1635926361.460054][10154:10159] CHIP:DMG: }, + [1635926361.460114][10154:10159] CHIP:DMG: ], + [1635926361.460169][10154:10159] CHIP:DMG: DataElementVersion = 0x0, + [1635926361.460207][10154:10159] CHIP:DMG: }, [1635926361.460257][10154:10159] CHIP:DMG: - [1635926361.460289][10154:10159] CHIP:DMG: ], + [1635926361.460289][10154:10159] CHIP:DMG: ], [1635926361.460357][10154:10159] CHIP:DMG: [1635926361.460388][10154:10159] CHIP:DMG: } [1635926361.460535][10154:10159] CHIP:ZCL: ReadAttributesResponse: - [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E - [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 - [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) - [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 - [1635926361.460694][10154:10159] CHIP:TOO: - OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries + [1635926361.460566][10154:10159] CHIP:ZCL: ClusterId: 0x0000_003E + [1635926361.460599][10154:10159] CHIP:ZCL: attributeId: 0x0000_0001 + [1635926361.460625][10154:10159] CHIP:ZCL: status: Success (0x0000) + [1635926361.460648][10154:10159] CHIP:ZCL: attribute TLV Type: 0x16 + [1635926361.460694][10154:10159] CHIP:TOO: OnOperationalCredentialsFabricsListListAttributeResponse: 2 entries [1635926361.460788][10154:10159] CHIP:TOO: FabricDescriptor[1]: - [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 - [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 - [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 - [1635926361.460961][10154:10159] CHIP:ZCL: Label: + [1635926361.460821][10154:10159] CHIP:TOO: fabricIndex: 1 + [1635926361.460844][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.460866][10154:10159] CHIP:TOO: vendorId: 50504 + [1635926361.460888][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.460910][10154:10159] CHIP:TOO: nodeId: 1 + [1635926361.460961][10154:10159] CHIP:ZCL: Label: [1635926361.461002][10154:10159] CHIP:TOO: FabricDescriptor[2]: - [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 - [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 - [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 - [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 - [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2" + [1635926361.461031][10154:10159] CHIP:TOO: fabricIndex: 2 + [1635926361.461059][10154:10159] CHIP:ZCL: RootPublicKey: 65 + [1635926361.461092][10154:10159] CHIP:TOO: vendorId: 33608 + [1635926361.461119][10154:10159] CHIP:TOO: fabricId: 0 + [1635926361.461143][10154:10159] CHIP:TOO: nodeId: 2 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_21.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_21.yaml index c83970e145be72..8dcd6fb666c3c5 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_21.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_21.yaml @@ -22,58 +22,65 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CE to factory defaults" + verification: | + + disabled: true + - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st controller chip tool(use above - instructions) ," + verification: | + 1. Provision the device using 1st controller chip tool(use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller chip tool, open commissioning window Below is the - example when using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [36217551633] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i" + verification: | + On 1st controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - label: "THn starts a commissioning process with DUT_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 36217551633 disabled: true - label: "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on DUT_CE" - verification: "Repeat step 3 until CommissionedFabrics=SupportedFabrics" + verification: | + Repeat step 3 until CommissionedFabrics=SupportedFabrics disabled: true - label: "THn starts a commissioning process with DUT_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 36217551633 disabled: true - label: "TH_CR1 removes FabricIndex1" - verification: - "on 1st controller using chip tool, remove fabric with FabricIndex=1 - ./chip-tool operationalcredentials remove-fabric 1 1 0" + verification: | + on 1st controller using chip tool, remove fabric with FabricIndex=1 + + ./chip-tool operationalcredentials remove-fabric 1 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_22.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_22.yaml index 99d5a4230e2171..4725111af16b0c 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_22.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_22.yaml @@ -22,68 +22,79 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CE to factory defaults" + verification: | + + disabled: true + - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st controller chip tool(use above - instructions) ," + verification: | + 1. Provision the device using 1st controller chip tool(use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On 1st controller chip tool, open commissioning window Below is the - example when using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On 1st controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635926620.928560][10177:10182] CHIP:DMG: InvokeCommand = [1635926620.928631][10177:10182] CHIP:DMG: { - [1635926620.928680][10177:10182] CHIP:DMG: CommandList = - [1635926620.928745][10177:10182] CHIP:DMG: [ - [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = - [1635926620.928866][10177:10182] CHIP:DMG: { - [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = - [1635926620.929041][10177:10182] CHIP:DMG: { - [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, - [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, - [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, - [1635926620.929434][10177:10182] CHIP:DMG: }, + [1635926620.928680][10177:10182] CHIP:DMG: CommandList = + [1635926620.928745][10177:10182] CHIP:DMG: [ + [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = + [1635926620.928866][10177:10182] CHIP:DMG: { + [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = + [1635926620.929041][10177:10182] CHIP:DMG: { + [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, + [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, + [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, + [1635926620.929434][10177:10182] CHIP:DMG: }, [1635926620.929516][10177:10182] CHIP:DMG: - [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = - [1635926620.929656][10177:10182] CHIP:DMG: { - [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, - [1635926620.929829][10177:10182] CHIP:DMG: }, + [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = + [1635926620.929656][10177:10182] CHIP:DMG: { + [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, + [1635926620.929829][10177:10182] CHIP:DMG: }, [1635926620.929919][10177:10182] CHIP:DMG: - [1635926620.929976][10177:10182] CHIP:DMG: }, + [1635926620.929976][10177:10182] CHIP:DMG: }, [1635926620.930070][10177:10182] CHIP:DMG: - [1635926620.930123][10177:10182] CHIP:DMG: ], + [1635926620.930123][10177:10182] CHIP:DMG: ], [1635926620.930182][10177:10182] CHIP:DMG: [1635926620.930226][10177:10182] CHIP:DMG: } - [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635926620.930412][10177:10182] CHIP:TOO: Default Success - Response" + [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635926620.930412][10177:10182] CHIP:TOO: Default Success Response disabled: true - label: "THn starts a commissioning process with DUT_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on DUT_CE" - verification: "Repeat step 3 until CommissionedFabrics=SupportedFabrics" + verification: | + Repeat step 3 until CommissionedFabrics=SupportedFabrics disabled: true - label: "THn starts a commissioning process with DUT_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR1 removes FabricIndex1" - verification: - "on 1st controller using chip tool, remove fabric with FabricIndex=1 - ./chip-tool operationalcredentials remove-fabric 1 1 0" + verification: | + on 1st controller using chip tool, remove fabric with FabricIndex=1 + + ./chip-tool operationalcredentials remove-fabric 1 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_23.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_23.yaml index e85791509b9d23..8c21d653496a70 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_23.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_23.yaml @@ -22,61 +22,67 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CR1 to factory defaults" + verification: | + + disabled: true + - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using your DUT controller(use above - instructions) ," + verification: | + 1. Provision the device using your DUT controller(use above instructions) , disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller chip tool, open commissioning window Below is - the example when using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [36217551633] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i" + verification: | + On your DUT controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - label: "THn starts a commissioning process with TH_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 36217551633 disabled: true - label: "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE" - verification: - "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an - index value of SupportedFabrics on TH_CE" + verification: | + Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE disabled: true - label: "THn starts a commissioning process with TH_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing manualcode 1 36217551633" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing manualcode 1 36217551633 disabled: true - label: "DUT_CR1 removes FabricIndex2" - verification: - "on your DUT controller, remove fabric with FabricIndex=2 Below is the - example when using chip tool as controller ./chip-tool - operationalcredentials remove-fabric 2 1 0" + verification: | + on your DUT controller, remove fabric with FabricIndex=2 + + Below is the example when using chip tool as controller + + ./chip-tool operationalcredentials remove-fabric 2 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_24.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_24.yaml index 18ef1e03fe18dd..e56d4a9b67c43d 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_24.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_24.yaml @@ -22,71 +22,81 @@ config: endpoint: 0 tests: + - label: "Reset DUT_CR1 to factory defaults" + verification: | + + disabled: true + - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using your DUT controller(use above - instructions) ," + verification: | + 1. Provision the device using your DUT controller(use above instructions) , disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller chip tool, open commissioning window Below is - the example when using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On your DUT controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635926620.928560][10177:10182] CHIP:DMG: InvokeCommand = [1635926620.928631][10177:10182] CHIP:DMG: { - [1635926620.928680][10177:10182] CHIP:DMG: CommandList = - [1635926620.928745][10177:10182] CHIP:DMG: [ - [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = - [1635926620.928866][10177:10182] CHIP:DMG: { - [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = - [1635926620.929041][10177:10182] CHIP:DMG: { - [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, - [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, - [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, - [1635926620.929434][10177:10182] CHIP:DMG: }, + [1635926620.928680][10177:10182] CHIP:DMG: CommandList = + [1635926620.928745][10177:10182] CHIP:DMG: [ + [1635926620.928799][10177:10182] CHIP:DMG: CommandDataIB = + [1635926620.928866][10177:10182] CHIP:DMG: { + [1635926620.928963][10177:10182] CHIP:DMG: CommandPathIB = + [1635926620.929041][10177:10182] CHIP:DMG: { + [1635926620.929107][10177:10182] CHIP:DMG: EndpointId = 0x0, + [1635926620.929223][10177:10182] CHIP:DMG: ClusterId = 0x3c, + [1635926620.929308][10177:10182] CHIP:DMG: CommandId = 0x1, + [1635926620.929434][10177:10182] CHIP:DMG: }, [1635926620.929516][10177:10182] CHIP:DMG: - [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = - [1635926620.929656][10177:10182] CHIP:DMG: { - [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, - [1635926620.929829][10177:10182] CHIP:DMG: }, + [1635926620.929580][10177:10182] CHIP:DMG: StatusIB = + [1635926620.929656][10177:10182] CHIP:DMG: { + [1635926620.929755][10177:10182] CHIP:DMG: status = 0x0, + [1635926620.929829][10177:10182] CHIP:DMG: }, [1635926620.929919][10177:10182] CHIP:DMG: - [1635926620.929976][10177:10182] CHIP:DMG: }, + [1635926620.929976][10177:10182] CHIP:DMG: }, [1635926620.930070][10177:10182] CHIP:DMG: - [1635926620.930123][10177:10182] CHIP:DMG: ], + [1635926620.930123][10177:10182] CHIP:DMG: ], [1635926620.930182][10177:10182] CHIP:DMG: [1635926620.930226][10177:10182] CHIP:DMG: } - [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635926620.930412][10177:10182] CHIP:TOO: Default Success - Response" + [1635926620.930325][10177:10182] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635926620.930412][10177:10182] CHIP:TOO: Default Success Response disabled: true - label: "THn starts a commissioning process with TH_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE" - verification: - "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an - index value of SupportedFabrics on TH_CE" + verification: | + Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE disabled: true - label: "THn starts a commissioning process with TH_CE" - verification: - "On nth controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On nth controller using chip tool connect to the accessory + + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "DUT_CR1 removes FabricIndex2" - verification: - "on your DUT controller, remove fabric with FabricIndex=2 Below is the - example when using chip tool as controller ./chip-tool - operationalcredentials remove-fabric 2 1 0" + verification: | + on your DUT controller, remove fabric with FabricIndex=2 + + Below is the example when using chip tool as controller + + ./chip-tool operationalcredentials remove-fabric 2 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml index 890870bd7ddb0d..7d3ed2f627e6a1 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_25.yaml @@ -23,37 +23,41 @@ config: tests: - label: "Reset DUT_CE to factory defaults" - verification: "" + verification: | + disabled: true - label: "TH_CR1 starts a commissioning process with DUT_CE using BCM" - verification: - "1. Provision the device using 1st controller chip tool(use above - instructions) , " + verification: | + 1. Provision the device using 1st controller chip tool(use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE with a value of 15 minutes" - verification: - "On 1st controller chip tool, open commissioning window For BCM, - ./chip-tool administratorcommissioning open-basic-commissioning-window - 900 1 0" + verification: | + On 1st controller chip tool, open commissioning window + + For BCM, + ./chip-tool administratorcommissioning open-basic-commissioning-window 900 1 0 disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE with a value of 901 seconds" - verification: - "On 1st controller chip tool, open commissioning window For BCM, - ./chip-tool administratorcommissioning open-basic-commissioning-window - 901 1 0" + verification: | + On 1st controller chip tool, open commissioning window + + For BCM, + ./chip-tool administratorcommissioning open-basic-commissioning-window 901 1 0 disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml index f2ba6cbbed4e04..e72957b3c528a0 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_26.yaml @@ -22,72 +22,67 @@ config: endpoint: 0 tests: - - label: "PICS" - verification: "" - disabled: true - - label: "TH_CR1 starts a commissioning process with DUT_CE using ECM" - verification: - "1. Provision the device using 1st controller chip tool(use above - instructions) , " + verification: | + 1. Provision the device using 1st controller chip tool(use above instructions) , disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE with a value of 15 minutes" - verification: - "On 1st controller chip tool, open commissioning window Below is the - example when using chip tool as controller For ECM, ./chip-tool - pairing open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [35484132896] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i" + verification: | + On 1st controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + + For ECM, + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [35484132896] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE with a value of 901 seconds" - verification: - "On 1st controller chip tool, open commissioning window Below is the - example when using chip tool as controller For ECM, ./chip-tool - pairing open-commissioning-window 1 1 100 1000 3840 - [1635925713.966786][9695:9700] CHIP:SC: Success status report - received. Session was established [1635925713.966839][9695:9700] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 33!! [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to - [AddingComm] [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to - [AddedComma] [1635925713.972815][9695:9700] CHIP:IN: Prepared - encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg - 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 13449459 msec [1635925713.973006][9695:9700] CHIP:DMG: - ICR moving to [CommandSen] [1635925713.973061][9695:9700] CHIP:CTL: - Manual pairing code: [36217551633] [1635925713.973120][9695:9700] - CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for - MessageCounter:1964916542 on exchange 31055i" + verification: | + On 1st controller chip tool, open commissioning window + + Below is the example when using chip tool as controller + + + For ECM, + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established + [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! + [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] + [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] + [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. + [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec + [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] + [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [36217551633] + [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] + [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true 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 9137bc99cf2c43..52e8cf86d9ad14 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 @@ -23,37 +23,43 @@ config: tests: - label: "Reset DUT_CR to factory defaults" - verification: "" + verification: | + disabled: true - label: "DUT_CR starts a commissioning process with TH_CE using BCM" - verification: - "1. Provision the device using your DUT controller(use above - instructions) , " + verification: | + 1. Provision the device using your DUT controller(use above instructions) , disabled: true - label: "DUT_CR opens a commissioning window on TH_CE with a value of 15 minutes" - verification: - "On your DUT controller, open commissioning window using BCM, Below is - an example when using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 900 1 0" + verification: | + On your DUT controller, open commissioning window using BCM, + + Below is an example when using chip tool as controller + + ./chip-tool administratorcommissioning open-basic-commissioning-window 900 1 0 disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true - label: "DUT_CR opens a commissioning window on TH_CE with a value of 901 seconds" - verification: - "On your DUT controller, open commissioning window using BCM, Below is - an example when using chip tool as controller ./chip-tool - administratorcommissioning open-basic-commissioning-window 901 1 0" + verification: | + On your DUT controller, open commissioning window using BCM, + + Below is an example when using chip tool as controller + + ./chip-tool administratorcommissioning open-basic-commissioning-window 901 1 0 disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true 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 7a51346e8db46d..d440963428dca8 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 @@ -23,37 +23,43 @@ config: tests: - label: "Reset DUT_CR to factory defaults" - verification: "" + verification: | + disabled: true - label: "DUT_CR starts a commissioning process with TH_CE using ECM" - verification: - "1. Provision the device using your DUT controller(use above - instructions) , " + verification: | + 1. Provision the device using your DUT controller(use above instructions) , disabled: true - label: "DUT_CR opens a commissioning window on TH_CE with a value of 15 minutes" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example when using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 900 1000 3840" + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example when using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 900 1000 3840 disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true - label: "DUT_CR opens a commissioning window on TH_CE with a value of 901 seconds" - verification: - "On your DUT controller, open commissioning window using ECM Below is - the example when using chip tool as controller ./chip-tool pairing - open-commissioning-window 1 1 901 1000 3840" + verification: | + On your DUT controller, open commissioning window using ECM + + Below is the example when using chip tool as controller + + ./chip-tool pairing open-commissioning-window 1 1 901 1000 3840 disabled: true - label: "Wait for commissioning Window to Timeout" - verification: "Wait for commissioning Window to Timeout" + verification: | + Wait for commissioning Window to Timeout disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_5.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_5.yaml index cbbc509e812fe6..cf89a40042f37f 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_5.yaml @@ -23,248 +23,223 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using first python controller on the raspi - (use above instructions)" + verification: | + 1. Provision the device using first python controller on the raspi (use above instructions) disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller using chip-tool, send the open-commissioning-window - CMD for ECM. -t stands for timeout value, -o for - OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for - descriminator -i for iteration count. Ref to cmd help. ./chip-tool - pairing open-commissioning-window 1 1 200 1000 3840 + verification: | + On 1st controller using chip-tool, send the open-commissioning-window CMD for ECM. -t stands for timeout value, -o for OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for descriminator -i for iteration count. Ref to cmd help. + + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 [1635864513.699433][3850:3855] CHIP:DMG: ICR moving to [CommandSen] - [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: - [36177160937] [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: - [MT:00000CQM00YZN476420] [1635864513.699636][3850:3855] CHIP:EM: - Sending Standalone Ack for MessageCounter:2599714227 on exchange - 60688i [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext - message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and - protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. - [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg - 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at - monotonic time: 6085358 msec [1635864513.699834][3850:3855] CHIP:EM: - Flushed pending ack for MessageCounter:2599714227 on exchange 60688i - The setup pin code is extracted from the manual pairing code in the - log and that will be used when pairing the 2nd admin controller." + [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: [36177160937] + [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: [MT:00000CQM00YZN476420] + [1635864513.699636][3850:3855] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714227 on exchange 60688i + [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at monotonic time: 6085358 msec + [1635864513.699834][3850:3855] CHIP:EM: Flushed pending ack for MessageCounter:2599714227 on exchange 60688i + + The setup pin code is extracted from the manual pairing code in the log and that will be used when pairing the 2nd admin controller. disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE after PIXIT_COMM_WIN + 10 seconds" - verification: - "1. On 2nd controller using chip-tool connect using manual code - generated by 1st controller. Below is the example when using chip tool - as controller (considering 36177160937 as the manual code generated by - 1st controller) ./chip-tool pairing manualcode 1 36177160937" + verification: | + 1. On 2nd controller using chip-tool connect using manual code generated by 1st controller. + Below is the example when using chip tool as controller (considering 36177160937 as the manual code generated by 1st controller) + ./chip-tool pairing manualcode 1 36177160937 disabled: true - label: "TH_CR1 opens a new commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller using chip-tool, send the open-commissioning-window - CMD for ECM. -t stands for timeout value, -o for - OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for - descriminator -i for iteration count. Ref to cmd help. ./chip-tool - pairing open-commissioning-window 1 1 200 1000 3840 + verification: | + On 1st controller using chip-tool, send the open-commissioning-window CMD for ECM. -t stands for timeout value, -o for OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for descriminator -i for iteration count. Ref to cmd help. + + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 [1635864513.699433][3850:3855] CHIP:DMG: ICR moving to [CommandSen] - [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: - [36177160937] [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: - [MT:00000CQM00YZN476420] [1635864513.699636][3850:3855] CHIP:EM: - Sending Standalone Ack for MessageCounter:2599714227 on exchange - 60688i [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext - message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and - protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. - [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg - 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at - monotonic time: 6085358 msec [1635864513.699834][3850:3855] CHIP:EM: - Flushed pending ack for MessageCounter:2599714227 on exchange 60688i - The setup pin code is extracted from the manual pairing code in the - log and that will be used when pairing the 2nd admin controller." + [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: [36177160937] + [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: [MT:00000CQM00YZN476420] + [1635864513.699636][3850:3855] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714227 on exchange 60688i + [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at monotonic time: 6085358 msec + [1635864513.699834][3850:3855] CHIP:EM: Flushed pending ack for MessageCounter:2599714227 on exchange 60688i + + The setup pin code is extracted from the manual pairing code in the log and that will be used when pairing the 2nd admin controller. disabled: true - label: "TH_CR1 revokes the commissioning window on DUT_CE using RevokeCommissioning command" - verification: - "On 1st controller using chip tool, send revoke commissioning command - to DUT_CE ./chip-tool administratorcommissioning revoke-commissioning - 1 0 [1635866684.242002][4030:4035] CHIP:DMG: InvokeCommand = + verification: | + On 1st controller using chip tool, send revoke commissioning command to DUT_CE + + ./chip-tool administratorcommissioning revoke-commissioning 1 0 + + [1635866684.242002][4030:4035] CHIP:DMG: InvokeCommand = [1635866684.242033][4030:4035] CHIP:DMG: { - [1635866684.242059][4030:4035] CHIP:DMG: CommandList = - [1635866684.242091][4030:4035] CHIP:DMG: [ - [1635866684.242122][4030:4035] CHIP:DMG: CommandDataIB = - [1635866684.242156][4030:4035] CHIP:DMG: { - [1635866684.242188][4030:4035] CHIP:DMG: CommandPathIB = - [1635866684.242225][4030:4035] CHIP:DMG: { - [1635866684.242262][4030:4035] CHIP:DMG: EndpointId = 0x0, - [1635866684.242300][4030:4035] CHIP:DMG: ClusterId = 0x3c, - [1635866684.242339][4030:4035] CHIP:DMG: CommandId = 0x2, - [1635866684.242375][4030:4035] CHIP:DMG: }, + [1635866684.242059][4030:4035] CHIP:DMG: CommandList = + [1635866684.242091][4030:4035] CHIP:DMG: [ + [1635866684.242122][4030:4035] CHIP:DMG: CommandDataIB = + [1635866684.242156][4030:4035] CHIP:DMG: { + [1635866684.242188][4030:4035] CHIP:DMG: CommandPathIB = + [1635866684.242225][4030:4035] CHIP:DMG: { + [1635866684.242262][4030:4035] CHIP:DMG: EndpointId = 0x0, + [1635866684.242300][4030:4035] CHIP:DMG: ClusterId = 0x3c, + [1635866684.242339][4030:4035] CHIP:DMG: CommandId = 0x2, + [1635866684.242375][4030:4035] CHIP:DMG: }, [1635866684.242415][4030:4035] CHIP:DMG: - [1635866684.242447][4030:4035] CHIP:DMG: StatusIB = - [1635866684.242496][4030:4035] CHIP:DMG: { - [1635866684.242547][4030:4035] CHIP:DMG: status = 0x0, - [1635866684.242594][4030:4035] CHIP:DMG: }, + [1635866684.242447][4030:4035] CHIP:DMG: StatusIB = + [1635866684.242496][4030:4035] CHIP:DMG: { + [1635866684.242547][4030:4035] CHIP:DMG: status = 0x0, + [1635866684.242594][4030:4035] CHIP:DMG: }, [1635866684.242663][4030:4035] CHIP:DMG: - [1635866684.242700][4030:4035] CHIP:DMG: }, + [1635866684.242700][4030:4035] CHIP:DMG: }, [1635866684.242746][4030:4035] CHIP:DMG: - [1635866684.242781][4030:4035] CHIP:DMG: ], + [1635866684.242781][4030:4035] CHIP:DMG: ], [1635866684.242824][4030:4035] CHIP:DMG: [1635866684.242857][4030:4035] CHIP:DMG: } - [1635866684.242915][4030:4035] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635866684.242956][4030:4035] CHIP:TOO: Default Success - Response" + [1635866684.242915][4030:4035] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635866684.242956][4030:4035] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "1. On 2nd controller using chip-tool connect using manual code - generated by 1st controller. Below is the example when using chip tool - as controller (considering 36177160937 as the manual code generated by - 1st controller) ./chip-tool pairing manualcode 1 36177160937" + verification: | + 1. On 2nd controller using chip-tool connect using manual code generated by 1st controller. + Below is the example when using chip tool as controller (considering 36177160937 as the manual code generated by 1st controller) + ./chip-tool pairing manualcode 1 36177160937 disabled: true - label: "TH_CR1 revokes the commissioning window on DUT_CE using RevokeCommissioning command" - verification: - "On 1st controller using chip tool, send revoke commissioning command - to DUT_CE ./chip-tool administratorcommissioning revoke-commissioning - 1 0 [1635867701.392315][4074:4079] CHIP:DMG: InvokeCommand = + verification: | + On 1st controller using chip tool, send revoke commissioning command to DUT_CE + + + ./chip-tool administratorcommissioning revoke-commissioning 1 0 + [1635867701.392315][4074:4079] CHIP:DMG: InvokeCommand = [1635867701.392357][4074:4079] CHIP:DMG: { - [1635867701.392389][4074:4079] CHIP:DMG: CommandList = - [1635867701.392427][4074:4079] CHIP:DMG: [ - [1635867701.392463][4074:4079] CHIP:DMG: CommandDataIB = - [1635867701.392535][4074:4079] CHIP:DMG: { - [1635867701.392593][4074:4079] CHIP:DMG: CommandPathIB = - [1635867701.392664][4074:4079] CHIP:DMG: { - [1635867701.392723][4074:4079] CHIP:DMG: EndpointId = 0x0, - [1635867701.392777][4074:4079] CHIP:DMG: ClusterId = 0x3c, - [1635867701.392877][4074:4079] CHIP:DMG: CommandId = 0x2, - [1635867701.393046][4074:4079] CHIP:DMG: }, + [1635867701.392389][4074:4079] CHIP:DMG: CommandList = + [1635867701.392427][4074:4079] CHIP:DMG: [ + [1635867701.392463][4074:4079] CHIP:DMG: CommandDataIB = + [1635867701.392535][4074:4079] CHIP:DMG: { + [1635867701.392593][4074:4079] CHIP:DMG: CommandPathIB = + [1635867701.392664][4074:4079] CHIP:DMG: { + [1635867701.392723][4074:4079] CHIP:DMG: EndpointId = 0x0, + [1635867701.392777][4074:4079] CHIP:DMG: ClusterId = 0x3c, + [1635867701.392877][4074:4079] CHIP:DMG: CommandId = 0x2, + [1635867701.393046][4074:4079] CHIP:DMG: }, [1635867701.393108][4074:4079] CHIP:DMG: - [1635867701.393149][4074:4079] CHIP:DMG: StatusIB = - [1635867701.393214][4074:4079] CHIP:DMG: { - [1635867701.393253][4074:4079] CHIP:DMG: status = 0x0, - [1635867701.393316][4074:4079] CHIP:DMG: }, + [1635867701.393149][4074:4079] CHIP:DMG: StatusIB = + [1635867701.393214][4074:4079] CHIP:DMG: { + [1635867701.393253][4074:4079] CHIP:DMG: status = 0x0, + [1635867701.393316][4074:4079] CHIP:DMG: }, [1635867701.393378][4074:4079] CHIP:DMG: - [1635867701.393444][4074:4079] CHIP:DMG: }, + [1635867701.393444][4074:4079] CHIP:DMG: }, [1635867701.393510][4074:4079] CHIP:DMG: - [1635867701.393548][4074:4079] CHIP:DMG: ], + [1635867701.393548][4074:4079] CHIP:DMG: ], [1635867701.393612][4074:4079] CHIP:DMG: [1635867701.393649][4074:4079] CHIP:DMG: } - [1635867701.393706][4074:4079] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635867701.393751][4074:4079] CHIP:TOO: Default Success - Response" + [1635867701.393706][4074:4079] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635867701.393751][4074:4079] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR1 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" - verification: - "On 1st controller, using chip tool, write and read Basic Information - Clusters NodeLabel mandatory attribute of DUT_CE ./chip-tool basic - write user-label te5new 1 0 [1635867759.827129][4081:4086] CHIP:DMG: - WriteResponse = [1635867759.827159][4081:4086] CHIP:DMG: { - [1635867759.827186][4081:4086] CHIP:DMG: AttributeStatusList = - [1635867759.827221][4081:4086] CHIP:DMG: [ - [1635867759.827253][4081:4086] CHIP:DMG: AttributeStatusIB = - [1635867759.827291][4081:4086] CHIP:DMG: { - [1635867759.827325][4081:4086] CHIP:DMG: AttributePath = - [1635867759.827387][4081:4086] CHIP:DMG: { - [1635867759.827446][4081:4086] CHIP:DMG: FieldTag = 0x0000_0005, - [1635867759.827491][4081:4086] CHIP:DMG: NodeId = 0x0, - [1635867759.827554][4081:4086] CHIP:DMG: ClusterId = 0x28, - [1635867759.827616][4081:4086] CHIP:DMG: EndpointId = 0x0, - [1635867759.827655][4081:4086] CHIP:DMG: } + verification: | + On 1st controller, using chip tool, write and read Basic Information Cluster’s NodeLabel mandatory attribute of DUT_CE + + + ./chip-tool basic write user-label te5new 1 0 + [1635867759.827129][4081:4086] CHIP:DMG: WriteResponse = + [1635867759.827159][4081:4086] CHIP:DMG: { + [1635867759.827186][4081:4086] CHIP:DMG: AttributeStatusList = + [1635867759.827221][4081:4086] CHIP:DMG: [ + [1635867759.827253][4081:4086] CHIP:DMG: AttributeStatusIB = + [1635867759.827291][4081:4086] CHIP:DMG: { + [1635867759.827325][4081:4086] CHIP:DMG: AttributePath = + [1635867759.827387][4081:4086] CHIP:DMG: { + [1635867759.827446][4081:4086] CHIP:DMG: FieldTag = 0x0000_0005, + [1635867759.827491][4081:4086] CHIP:DMG: NodeId = 0x0, + [1635867759.827554][4081:4086] CHIP:DMG: ClusterId = 0x28, + [1635867759.827616][4081:4086] CHIP:DMG: EndpointId = 0x0, + [1635867759.827655][4081:4086] CHIP:DMG: } [1635867759.827716][4081:4086] CHIP:DMG: - [1635867759.827759][4081:4086] CHIP:DMG: StatusIB = - [1635867759.827828][4081:4086] CHIP:DMG: { - [1635867759.827866][4081:4086] CHIP:DMG: status = 0x0, - [1635867759.827924][4081:4086] CHIP:DMG: }, + [1635867759.827759][4081:4086] CHIP:DMG: StatusIB = + [1635867759.827828][4081:4086] CHIP:DMG: { + [1635867759.827866][4081:4086] CHIP:DMG: status = 0x0, + [1635867759.827924][4081:4086] CHIP:DMG: }, [1635867759.827980][4081:4086] CHIP:DMG: - [1635867759.828017][4081:4086] CHIP:DMG: }, + [1635867759.828017][4081:4086] CHIP:DMG: }, [1635867759.828059][4081:4086] CHIP:DMG: - [1635867759.828092][4081:4086] CHIP:DMG: ], + [1635867759.828092][4081:4086] CHIP:DMG: ], [1635867759.828131][4081:4086] CHIP:DMG: [1635867759.828161][4081:4086] CHIP:DMG: } [1635867759.828250][4081:4086] CHIP:ZCL: WriteResponse: - [1635867759.828299][4081:4086] CHIP:ZCL: status: Success (0x0000) + [1635867759.828299][4081:4086] CHIP:ZCL: status: Success (0x0000) [1635867759.828334][4081:4086] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635867798.990540][4089:4094] - CHIP:DMG: { [1635867798.990575][4089:4094] CHIP:DMG: AttributeDataList - = [1635867798.990614][4089:4094] CHIP:DMG: [ - [1635867798.990651][4089:4094] CHIP:DMG: AttributeDataElement = - [1635867798.990698][4089:4094] CHIP:DMG: { - [1635867798.990741][4089:4094] CHIP:DMG: AttributePath = - [1635867798.990783][4089:4094] CHIP:DMG: { - [1635867798.990840][4089:4094] CHIP:DMG: NodeId = 0x1, - [1635867798.990883][4089:4094] CHIP:DMG: EndpointId = 0x0, - [1635867798.990949][4089:4094] CHIP:DMG: ClusterId = 0x28, - [1635867798.991022][4089:4094] CHIP:DMG: FieldTag = 0x0000_0005, - [1635867798.991083][4089:4094] CHIP:DMG: } + + + ./chip-tool basic read user-label 1 0 + [1635867798.990540][4089:4094] CHIP:DMG: { + [1635867798.990575][4089:4094] CHIP:DMG: AttributeDataList = + [1635867798.990614][4089:4094] CHIP:DMG: [ + [1635867798.990651][4089:4094] CHIP:DMG: AttributeDataElement = + [1635867798.990698][4089:4094] CHIP:DMG: { + [1635867798.990741][4089:4094] CHIP:DMG: AttributePath = + [1635867798.990783][4089:4094] CHIP:DMG: { + [1635867798.990840][4089:4094] CHIP:DMG: NodeId = 0x1, + [1635867798.990883][4089:4094] CHIP:DMG: EndpointId = 0x0, + [1635867798.990949][4089:4094] CHIP:DMG: ClusterId = 0x28, + [1635867798.991022][4089:4094] CHIP:DMG: FieldTag = 0x0000_0005, + [1635867798.991083][4089:4094] CHIP:DMG: } [1635867798.991164][4089:4094] CHIP:DMG: - [1635867798.991225][4089:4094] CHIP:DMG: Data = 'te5new', - [1635867798.991280][4089:4094] CHIP:DMG: DataElementVersion = 0x0, - [1635867798.991338][4089:4094] CHIP:DMG: }, + [1635867798.991225][4089:4094] CHIP:DMG: Data = "te5new", + [1635867798.991280][4089:4094] CHIP:DMG: DataElementVersion = 0x0, + [1635867798.991338][4089:4094] CHIP:DMG: }, [1635867798.991407][4089:4094] CHIP:DMG: - [1635867798.991459][4089:4094] CHIP:DMG: ], + [1635867798.991459][4089:4094] CHIP:DMG: ], [1635867798.991521][4089:4094] CHIP:DMG: [1635867798.991569][4089:4094] CHIP:DMG: } [1635867798.991711][4089:4094] CHIP:ZCL: ReadAttributesResponse: - [1635867798.991758][4089:4094] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635867798.991809][4089:4094] CHIP:ZCL: attributeId: 0x0000_0005 - [1635867798.991856][4089:4094] CHIP:ZCL: status: Success (0x0000) - [1635867798.991901][4089:4094] CHIP:ZCL: attribute TLV Type: 0x0c - [1635867798.991953][4089:4094] CHIP:TOO: CharString attribute - Response: te5new" + [1635867798.991758][4089:4094] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635867798.991809][4089:4094] CHIP:ZCL: attributeId: 0x0000_0005 + [1635867798.991856][4089:4094] CHIP:ZCL: status: Success (0x0000) + [1635867798.991901][4089:4094] CHIP:ZCL: attribute TLV Type: 0x0c + [1635867798.991953][4089:4094] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "TH_CR1 opens a new commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller using chip-tool, send the open-commissioning-window - CMD for ECM. -t stands for timeout value, -o for - OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for - descriminator -i for iteration count. Ref to cmd help. ./chip-tool - pairing open-commissioning-window 1 1 200 1000 3840 + verification: | + On 1st controller using chip-tool, send the open-commissioning-window CMD for ECM. -t stands for timeout value, -o for OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for descriminator -i for iteration count. Ref to cmd help. + + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 [1635864513.699433][3850:3855] CHIP:DMG: ICR moving to [CommandSen] - [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: - [36177160937] [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: - [MT:00000CQM00YZN476420] [1635864513.699636][3850:3855] CHIP:EM: - Sending Standalone Ack for MessageCounter:2599714227 on exchange - 60688i [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext - message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and - protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. - [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg - 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at - monotonic time: 6085358 msec [1635864513.699834][3850:3855] CHIP:EM: - Flushed pending ack for MessageCounter:2599714227 on exchange 60688i - The setup pin code is extracted from the manual pairing code in the - log and that will be used when pairing the 2nd admin controller." + [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: [36177160937] + [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: [MT:00000CQM00YZN476420] + [1635864513.699636][3850:3855] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714227 on exchange 60688i + [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at monotonic time: 6085358 msec + [1635864513.699834][3850:3855] CHIP:EM: Flushed pending ack for MessageCounter:2599714227 on exchange 60688i + + The setup pin code is extracted from the manual pairing code in the log and that will be used when pairing the 2nd admin controller. disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "1. On 2nd controller using chip-tool connect using manual code - generated by 1st controller. Below is the example when using chip tool - as controller (considering 36177160937 as the manual code generated by - 1st controller) ./chip-tool pairing manualcode 1 36177160937" + verification: | + 1. On 2nd controller using chip-tool connect using manual code generated by 1st controller. + Below is the example when using chip tool as controller (considering 36177160937 as the manual code generated by 1st controller) + ./chip-tool pairing manualcode 1 36177160937 disabled: true - label: "TH_CR3 starts a commissioning process with DUT_CE" - verification: - "1. On 3rd controller using chip-tool connect using manual code - generated by 1st controller. Below is the example when using chip tool - as controller (considering 36177160937 as the manual code generated by - 1st controller) ./chip-tool pairing manualcode 1 36177160937" + verification: | + 1. On 3rd controller using chip-tool connect using manual code generated by 1st controller. + Below is the example when using chip tool as controller (considering 36177160937 as the manual code generated by 1st controller) + ./chip-tool pairing manualcode 1 36177160937 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_6.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_6.yaml index 5558c26f5305d2..bfdf80cd95f5c8 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_6.yaml @@ -23,245 +23,252 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st python controller on the raspi (use - above instructions) " + verification: | + 1. Provision the device using 1st python controller on the raspi (use above instructions) disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On 1st controller, using chip tool open commissioning window using - BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 100 1 0 [1635870657.145515][4221:4226] - CHIP:DMG: InvokeCommand = [1635870657.145582][4221:4226] CHIP:DMG: { - [1635870657.145629][4221:4226] CHIP:DMG: CommandList = - [1635870657.145686][4221:4226] CHIP:DMG: [ - [1635870657.145740][4221:4226] CHIP:DMG: CommandDataIB = - [1635870657.145808][4221:4226] CHIP:DMG: { - [1635870657.145872][4221:4226] CHIP:DMG: CommandPathIB = - [1635870657.145944][4221:4226] CHIP:DMG: { - [1635870657.146010][4221:4226] CHIP:DMG: EndpointId = 0x0, - [1635870657.146086][4221:4226] CHIP:DMG: ClusterId = 0x3c, - [1635870657.146161][4221:4226] CHIP:DMG: CommandId = 0x1, - [1635870657.146232][4221:4226] CHIP:DMG: }, + verification: | + On 1st controller, using chip tool open commissioning window using BCM + + + ./chip-tool administratorcommissioning open-basic-commissioning-window 100 1 0 + + [1635870657.145515][4221:4226] CHIP:DMG: InvokeCommand = + [1635870657.145582][4221:4226] CHIP:DMG: { + [1635870657.145629][4221:4226] CHIP:DMG: CommandList = + [1635870657.145686][4221:4226] CHIP:DMG: [ + [1635870657.145740][4221:4226] CHIP:DMG: CommandDataIB = + [1635870657.145808][4221:4226] CHIP:DMG: { + [1635870657.145872][4221:4226] CHIP:DMG: CommandPathIB = + [1635870657.145944][4221:4226] CHIP:DMG: { + [1635870657.146010][4221:4226] CHIP:DMG: EndpointId = 0x0, + [1635870657.146086][4221:4226] CHIP:DMG: ClusterId = 0x3c, + [1635870657.146161][4221:4226] CHIP:DMG: CommandId = 0x1, + [1635870657.146232][4221:4226] CHIP:DMG: }, [1635870657.146310][4221:4226] CHIP:DMG: - [1635870657.146367][4221:4226] CHIP:DMG: StatusIB = - [1635870657.146436][4221:4226] CHIP:DMG: { - [1635870657.146503][4221:4226] CHIP:DMG: status = 0x0, - [1635870657.146566][4221:4226] CHIP:DMG: }, + [1635870657.146367][4221:4226] CHIP:DMG: StatusIB = + [1635870657.146436][4221:4226] CHIP:DMG: { + [1635870657.146503][4221:4226] CHIP:DMG: status = 0x0, + [1635870657.146566][4221:4226] CHIP:DMG: }, [1635870657.146637][4221:4226] CHIP:DMG: - [1635870657.146700][4221:4226] CHIP:DMG: }, + [1635870657.146700][4221:4226] CHIP:DMG: }, [1635870657.146769][4221:4226] CHIP:DMG: - [1635870657.146828][4221:4226] CHIP:DMG: ], + [1635870657.146828][4221:4226] CHIP:DMG: ], [1635870657.146898][4221:4226] CHIP:DMG: [1635870657.146952][4221:4226] CHIP:DMG: } - [1635870657.147042][4221:4226] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635870657.147102][4221:4226] CHIP:TOO: Default Success - Response" + [1635870657.147042][4221:4226] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635870657.147102][4221:4226] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE after PIXIT_COMM_WIN + 10 seconds" - verification: - "On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 2nd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR1 opens a new commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On 1st controller, using chip tool open commissioning window using - BCM ./chip-tool administratorcommissioning - open-basic-commissioning-window 100 1 0" + verification: | + On 1st controller, using chip tool open commissioning window using BCM + + ./chip-tool administratorcommissioning open-basic-commissioning-window 100 1 0 disabled: true - label: "TH_CR1 revokes the commissioning window on DUT_CE using RevokeCommissioning command" - verification: - "On 1st controller, using chip tool send revoke commissioning + verification: | + On 1st controller, using chip tool send revoke commissioning + + ./chip-tool administratorcommissioning revoke-commissioning 1 0 + [1635870803.030626][4234:4239] CHIP:DMG: InvokeCommand = [1635870803.030664][4234:4239] CHIP:DMG: { - [1635870803.030696][4234:4239] CHIP:DMG: CommandList = - [1635870803.030735][4234:4239] CHIP:DMG: [ - [1635870803.030768][4234:4239] CHIP:DMG: CommandDataIB = - [1635870803.030821][4234:4239] CHIP:DMG: { - [1635870803.030868][4234:4239] CHIP:DMG: CommandPathIB = - [1635870803.030922][4234:4239] CHIP:DMG: { - [1635870803.030965][4234:4239] CHIP:DMG: EndpointId = 0x0, - [1635870803.031020][4234:4239] CHIP:DMG: ClusterId = 0x3c, - [1635870803.031062][4234:4239] CHIP:DMG: CommandId = 0x2, - [1635870803.031113][4234:4239] CHIP:DMG: }, + [1635870803.030696][4234:4239] CHIP:DMG: CommandList = + [1635870803.030735][4234:4239] CHIP:DMG: [ + [1635870803.030768][4234:4239] CHIP:DMG: CommandDataIB = + [1635870803.030821][4234:4239] CHIP:DMG: { + [1635870803.030868][4234:4239] CHIP:DMG: CommandPathIB = + [1635870803.030922][4234:4239] CHIP:DMG: { + [1635870803.030965][4234:4239] CHIP:DMG: EndpointId = 0x0, + [1635870803.031020][4234:4239] CHIP:DMG: ClusterId = 0x3c, + [1635870803.031062][4234:4239] CHIP:DMG: CommandId = 0x2, + [1635870803.031113][4234:4239] CHIP:DMG: }, [1635870803.031158][4234:4239] CHIP:DMG: - [1635870803.031204][4234:4239] CHIP:DMG: StatusIB = - [1635870803.031245][4234:4239] CHIP:DMG: { - [1635870803.031304][4234:4239] CHIP:DMG: status = 0x0, - [1635870803.031345][4234:4239] CHIP:DMG: }, + [1635870803.031204][4234:4239] CHIP:DMG: StatusIB = + [1635870803.031245][4234:4239] CHIP:DMG: { + [1635870803.031304][4234:4239] CHIP:DMG: status = 0x0, + [1635870803.031345][4234:4239] CHIP:DMG: }, [1635870803.031533][4234:4239] CHIP:DMG: - [1635870803.031592][4234:4239] CHIP:DMG: }, + [1635870803.031592][4234:4239] CHIP:DMG: }, [1635870803.031644][4234:4239] CHIP:DMG: - [1635870803.031695][4234:4239] CHIP:DMG: ], + [1635870803.031695][4234:4239] CHIP:DMG: ], [1635870803.031739][4234:4239] CHIP:DMG: [1635870803.031785][4234:4239] CHIP:DMG: } - [1635870803.031848][4234:4239] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635870803.031903][4234:4239] CHIP:TOO: Default Success - Response" + [1635870803.031848][4234:4239] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635870803.031903][4234:4239] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 2nd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR1 revokes the commissioning window on DUT_CE using RevokeCommissioning command" - verification: - "On 1st controller, using chip tool send revoke commissioning + verification: | + On 1st controller, using chip tool send revoke commissioning + ./chip-tool administratorcommissioning revoke-commissioning 1 0 [1635870856.382876][4241:4246] CHIP:DMG: InvokeCommand = [1635870856.382942][4241:4246] CHIP:DMG: { - [1635870856.382975][4241:4246] CHIP:DMG: CommandList = - [1635870856.383010][4241:4246] CHIP:DMG: [ - [1635870856.383062][4241:4246] CHIP:DMG: CommandDataIB = - [1635870856.383102][4241:4246] CHIP:DMG: { - [1635870856.383136][4241:4246] CHIP:DMG: CommandPathIB = - [1635870856.383215][4241:4246] CHIP:DMG: { - [1635870856.383259][4241:4246] CHIP:DMG: EndpointId = 0x0, - [1635870856.383329][4241:4246] CHIP:DMG: ClusterId = 0x3c, - [1635870856.383390][4241:4246] CHIP:DMG: CommandId = 0x2, - [1635870856.383445][4241:4246] CHIP:DMG: }, + [1635870856.382975][4241:4246] CHIP:DMG: CommandList = + [1635870856.383010][4241:4246] CHIP:DMG: [ + [1635870856.383062][4241:4246] CHIP:DMG: CommandDataIB = + [1635870856.383102][4241:4246] CHIP:DMG: { + [1635870856.383136][4241:4246] CHIP:DMG: CommandPathIB = + [1635870856.383215][4241:4246] CHIP:DMG: { + [1635870856.383259][4241:4246] CHIP:DMG: EndpointId = 0x0, + [1635870856.383329][4241:4246] CHIP:DMG: ClusterId = 0x3c, + [1635870856.383390][4241:4246] CHIP:DMG: CommandId = 0x2, + [1635870856.383445][4241:4246] CHIP:DMG: }, [1635870856.383490][4241:4246] CHIP:DMG: - [1635870856.383540][4241:4246] CHIP:DMG: StatusIB = - [1635870856.383644][4241:4246] CHIP:DMG: { - [1635870856.383697][4241:4246] CHIP:DMG: status = 0x0, - [1635870856.383756][4241:4246] CHIP:DMG: }, + [1635870856.383540][4241:4246] CHIP:DMG: StatusIB = + [1635870856.383644][4241:4246] CHIP:DMG: { + [1635870856.383697][4241:4246] CHIP:DMG: status = 0x0, + [1635870856.383756][4241:4246] CHIP:DMG: }, [1635870856.383813][4241:4246] CHIP:DMG: - [1635870856.383847][4241:4246] CHIP:DMG: }, + [1635870856.383847][4241:4246] CHIP:DMG: }, [1635870856.383892][4241:4246] CHIP:DMG: - [1635870856.383923][4241:4246] CHIP:DMG: ], + [1635870856.383923][4241:4246] CHIP:DMG: ], [1635870856.383978][4241:4246] CHIP:DMG: [1635870856.384011][4241:4246] CHIP:DMG: } - [1635870856.384106][4241:4246] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635870856.384182][4241:4246] CHIP:TOO: Default Success - Response" + [1635870856.384106][4241:4246] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635870856.384182][4241:4246] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR1 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" - verification: - "On 1st controller, using chip tool, write and read Basic Information - Clusters NodeLabel mandatory attribute of DUT_CE ./chip-tool basic - write user-label te5new 1 0 [1635870913.073437][4249:4254] CHIP:DMG: - WriteResponse = [1635870913.073477][4249:4254] CHIP:DMG: { - [1635870913.073510][4249:4254] CHIP:DMG: AttributeStatusList = - [1635870913.073548][4249:4254] CHIP:DMG: [ - [1635870913.073583][4249:4254] CHIP:DMG: AttributeStatusIB = - [1635870913.073630][4249:4254] CHIP:DMG: { - [1635870913.073669][4249:4254] CHIP:DMG: AttributePath = - [1635870913.073715][4249:4254] CHIP:DMG: { - [1635870913.073763][4249:4254] CHIP:DMG: FieldTag = 0x0000_0005, - [1635870913.073816][4249:4254] CHIP:DMG: NodeId = 0x0, - [1635870913.073867][4249:4254] CHIP:DMG: ClusterId = 0x28, - [1635870913.073915][4249:4254] CHIP:DMG: EndpointId = 0x0, - [1635870913.073961][4249:4254] CHIP:DMG: } + verification: | + On 1st controller, using chip tool, write and read Basic Information Clusters NodeLabel mandatory attribute of DUT_CE + + + ./chip-tool basic write user-label te5new 1 0 + [1635870913.073437][4249:4254] CHIP:DMG: WriteResponse = + [1635870913.073477][4249:4254] CHIP:DMG: { + [1635870913.073510][4249:4254] CHIP:DMG: AttributeStatusList = + [1635870913.073548][4249:4254] CHIP:DMG: [ + [1635870913.073583][4249:4254] CHIP:DMG: AttributeStatusIB = + [1635870913.073630][4249:4254] CHIP:DMG: { + [1635870913.073669][4249:4254] CHIP:DMG: AttributePath = + [1635870913.073715][4249:4254] CHIP:DMG: { + [1635870913.073763][4249:4254] CHIP:DMG: FieldTag = 0x0000_0005, + [1635870913.073816][4249:4254] CHIP:DMG: NodeId = 0x0, + [1635870913.073867][4249:4254] CHIP:DMG: ClusterId = 0x28, + [1635870913.073915][4249:4254] CHIP:DMG: EndpointId = 0x0, + [1635870913.073961][4249:4254] CHIP:DMG: } [1635870913.074011][4249:4254] CHIP:DMG: - [1635870913.074055][4249:4254] CHIP:DMG: StatusIB = - [1635870913.074101][4249:4254] CHIP:DMG: { - [1635870913.074147][4249:4254] CHIP:DMG: status = 0x0, - [1635870913.074192][4249:4254] CHIP:DMG: }, + [1635870913.074055][4249:4254] CHIP:DMG: StatusIB = + [1635870913.074101][4249:4254] CHIP:DMG: { + [1635870913.074147][4249:4254] CHIP:DMG: status = 0x0, + [1635870913.074192][4249:4254] CHIP:DMG: }, [1635870913.074238][4249:4254] CHIP:DMG: - [1635870913.074279][4249:4254] CHIP:DMG: }, + [1635870913.074279][4249:4254] CHIP:DMG: }, [1635870913.074326][4249:4254] CHIP:DMG: - [1635870913.074361][4249:4254] CHIP:DMG: ], + [1635870913.074361][4249:4254] CHIP:DMG: ], [1635870913.074403][4249:4254] CHIP:DMG: [1635870913.074436][4249:4254] CHIP:DMG: } [1635870913.074511][4249:4254] CHIP:ZCL: WriteResponse: - [1635870913.074545][4249:4254] CHIP:ZCL: status: Success (0x0000) + [1635870913.074545][4249:4254] CHIP:ZCL: status: Success (0x0000) [1635870913.074582][4249:4254] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635870953.693980][4257:4262] - CHIP:DMG: ReportData = [1635870953.694013][4257:4262] CHIP:DMG: { - [1635870953.694042][4257:4262] CHIP:DMG: AttributeDataList = - [1635870953.694080][4257:4262] CHIP:DMG: [ - [1635870953.694113][4257:4262] CHIP:DMG: AttributeDataElement = - [1635870953.694159][4257:4262] CHIP:DMG: { - [1635870953.694194][4257:4262] CHIP:DMG: AttributePath = - [1635870953.694240][4257:4262] CHIP:DMG: { - [1635870953.694279][4257:4262] CHIP:DMG: NodeId = 0x1, - [1635870953.694336][4257:4262] CHIP:DMG: EndpointId = 0x0, - [1635870953.694387][4257:4262] CHIP:DMG: ClusterId = 0x28, - [1635870953.694437][4257:4262] CHIP:DMG: FieldTag = 0x0000_0005, - [1635870953.694489][4257:4262] CHIP:DMG: } + + + ./chip-tool basic read user-label 1 0 + + [1635870953.693980][4257:4262] CHIP:DMG: ReportData = + [1635870953.694013][4257:4262] CHIP:DMG: { + [1635870953.694042][4257:4262] CHIP:DMG: AttributeDataList = + [1635870953.694080][4257:4262] CHIP:DMG: [ + [1635870953.694113][4257:4262] CHIP:DMG: AttributeDataElement = + [1635870953.694159][4257:4262] CHIP:DMG: { + [1635870953.694194][4257:4262] CHIP:DMG: AttributePath = + [1635870953.694240][4257:4262] CHIP:DMG: { + [1635870953.694279][4257:4262] CHIP:DMG: NodeId = 0x1, + [1635870953.694336][4257:4262] CHIP:DMG: EndpointId = 0x0, + [1635870953.694387][4257:4262] CHIP:DMG: ClusterId = 0x28, + [1635870953.694437][4257:4262] CHIP:DMG: FieldTag = 0x0000_0005, + [1635870953.694489][4257:4262] CHIP:DMG: } [1635870953.694541][4257:4262] CHIP:DMG: - [1635870953.694713][4257:4262] CHIP:DMG: Data = 'te5new', - [1635870953.694759][4257:4262] CHIP:DMG: DataElementVersion = 0x0, - [1635870953.694803][4257:4262] CHIP:DMG: }, + [1635870953.694713][4257:4262] CHIP:DMG: Data = "te5new", + [1635870953.694759][4257:4262] CHIP:DMG: DataElementVersion = 0x0, + [1635870953.694803][4257:4262] CHIP:DMG: }, [1635870953.694849][4257:4262] CHIP:DMG: - [1635870953.694885][4257:4262] CHIP:DMG: ], + [1635870953.694885][4257:4262] CHIP:DMG: ], [1635870953.694924][4257:4262] CHIP:DMG: [1635870953.694957][4257:4262] CHIP:DMG: } [1635870953.695061][4257:4262] CHIP:ZCL: ReadAttributesResponse: - [1635870953.695094][4257:4262] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635870953.695129][4257:4262] CHIP:ZCL: attributeId: 0x0000_0005 - [1635870953.695161][4257:4262] CHIP:ZCL: status: Success (0x0000) - [1635870953.695191][4257:4262] CHIP:ZCL: attribute TLV Type: 0x0c - [1635870953.695221][4257:4262] CHIP:TOO: CharString attribute - Response: te5new" + [1635870953.695094][4257:4262] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635870953.695129][4257:4262] CHIP:ZCL: attributeId: 0x0000_0005 + [1635870953.695161][4257:4262] CHIP:ZCL: status: Success (0x0000) + [1635870953.695191][4257:4262] CHIP:ZCL: attribute TLV Type: 0x0c + [1635870953.695221][4257:4262] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "TH_CR1 opens a new commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On first controller using chip-tool open commissioning widow using - BCM. ./chip-tool administratorcommissioning - open-basic-commissioning-window 100 1 0 [1635871001.349078][4265:4270] - CHIP:DMG: InvokeCommand = [1635871001.349113][4265:4270] CHIP:DMG: { - [1635871001.349172][4265:4270] CHIP:DMG: CommandList = - [1635871001.349208][4265:4270] CHIP:DMG: [ - [1635871001.349244][4265:4270] CHIP:DMG: CommandDataIB = - [1635871001.349306][4265:4270] CHIP:DMG: { - [1635871001.349346][4265:4270] CHIP:DMG: CommandPathIB = - [1635871001.349386][4265:4270] CHIP:DMG: { - [1635871001.349490][4265:4270] CHIP:DMG: EndpointId = 0x0, - [1635871001.349585][4265:4270] CHIP:DMG: ClusterId = 0x3c, - [1635871001.349627][4265:4270] CHIP:DMG: CommandId = 0x1, - [1635871001.349692][4265:4270] CHIP:DMG: }, + verification: | + On first controller using chip-tool open commissioning widow using BCM. + ./chip-tool administratorcommissioning open-basic-commissioning-window 100 1 0 + [1635871001.349078][4265:4270] CHIP:DMG: InvokeCommand = + [1635871001.349113][4265:4270] CHIP:DMG: { + [1635871001.349172][4265:4270] CHIP:DMG: CommandList = + [1635871001.349208][4265:4270] CHIP:DMG: [ + [1635871001.349244][4265:4270] CHIP:DMG: CommandDataIB = + [1635871001.349306][4265:4270] CHIP:DMG: { + [1635871001.349346][4265:4270] CHIP:DMG: CommandPathIB = + [1635871001.349386][4265:4270] CHIP:DMG: { + [1635871001.349490][4265:4270] CHIP:DMG: EndpointId = 0x0, + [1635871001.349585][4265:4270] CHIP:DMG: ClusterId = 0x3c, + [1635871001.349627][4265:4270] CHIP:DMG: CommandId = 0x1, + [1635871001.349692][4265:4270] CHIP:DMG: }, [1635871001.349782][4265:4270] CHIP:DMG: - [1635871001.349841][4265:4270] CHIP:DMG: StatusIB = - [1635871001.349886][4265:4270] CHIP:DMG: { - [1635871001.349928][4265:4270] CHIP:DMG: status = 0x0, - [1635871001.349977][4265:4270] CHIP:DMG: }, + [1635871001.349841][4265:4270] CHIP:DMG: StatusIB = + [1635871001.349886][4265:4270] CHIP:DMG: { + [1635871001.349928][4265:4270] CHIP:DMG: status = 0x0, + [1635871001.349977][4265:4270] CHIP:DMG: }, [1635871001.350022][4265:4270] CHIP:DMG: - [1635871001.350058][4265:4270] CHIP:DMG: }, + [1635871001.350058][4265:4270] CHIP:DMG: }, [1635871001.350098][4265:4270] CHIP:DMG: - [1635871001.350133][4265:4270] CHIP:DMG: ], + [1635871001.350133][4265:4270] CHIP:DMG: ], [1635871001.350173][4265:4270] CHIP:DMG: [1635871001.350205][4265:4270] CHIP:DMG: } - [1635871001.350267][4265:4270] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635871001.350308][4265:4270] CHIP:TOO: Default Success - Response" + [1635871001.350267][4265:4270] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635871001.350308][4265:4270] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - verification: - "On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 2nd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR3 starts a commissioning process with DUT_CE" - verification: - "On the 3rd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 3rd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml index c40fcf6d61da97..dff29d0062272a 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_7.yaml @@ -23,252 +23,254 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using DUT_CR1 controller on the raspi." + verification: | + 1. Provision the device using DUT_CR1 controller on the raspi. disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller open commissioning widow using ECM. Below is - the example while using chip tool as controller, ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635871058.908790][4273:4278] CHIP:SC: Success status report - received. Session was established [1635871058.908827][4273:4278] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 47!! [1635871058.908924][4273:4278] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635871058.916166][4273:4278] CHIP:DMG: ICR moving to - [AddingComm] [1635871058.916223][4273:4278] CHIP:DMG: ICR moving to - [AddedComma] [1635871058.916362][4273:4278] CHIP:IN: Prepared - encrypted message 0xaaaac41dfd10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 21937i with MessageCounter:0. - [1635871058.916421][4273:4278] CHIP:IN: Sending encrypted msg - 0xaaaac41dfd10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 12630575 msec [1635871058.916549][4273:4278] CHIP:DMG: - ICR moving to [CommandSen] [1635871058.916607][4273:4278] CHIP:CTL: - Manual pairing code: [36366524220] [1635871058.916679][4273:4278] - CHIP:CTL: SetupQRCode: [MT:00000CQM0088GL3XV00] - [1635871058.916745][4273:4278] CHIP:EM: Sending Standalone Ack for - MessageCounter:2599714279 on exchange 21936i" + verification: | + On your DUT controller open commissioning widow using ECM. + + Below is the example while using chip tool as controller, + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635871058.908790][4273:4278] CHIP:SC: Success status report received. Session was established + [1635871058.908827][4273:4278] CHIP:IN: New secure session created for device 0x0000000000000001, key 47!! + [1635871058.908924][4273:4278] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635871058.916166][4273:4278] CHIP:DMG: ICR moving to [AddingComm] + [1635871058.916223][4273:4278] CHIP:DMG: ICR moving to [AddedComma] + [1635871058.916362][4273:4278] CHIP:IN: Prepared encrypted message 0xaaaac41dfd10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 21937i with MessageCounter:0. + [1635871058.916421][4273:4278] CHIP:IN: Sending encrypted msg 0xaaaac41dfd10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 12630575 msec + [1635871058.916549][4273:4278] CHIP:DMG: ICR moving to [CommandSen] + [1635871058.916607][4273:4278] CHIP:CTL: Manual pairing code: [36366524220] + [1635871058.916679][4273:4278] CHIP:CTL: SetupQRCode: [MT:00000CQM0088GL3XV00] + [1635871058.916745][4273:4278] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714279 on exchange 21936i disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE after PIXIT_COMM_WIN + 10 seconds" - verification: - "On the 2nd controller using chip-tool , connect using manual code - generated by DUT Controller Below is the example when using chip tool - as controller (considering 36366524220 as the manual code generated by - DUT controller) ./chip-tool pairing manualcode 1 36366524220" + verification: | + On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller + + + Below is the example when using chip tool as controller (considering 36366524220 as the manual code generated by DUT controller) + ./chip-tool pairing manualcode 1 36366524220 disabled: true - label: "DUT_CR1 opens a new commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller open commissioning widow using ECM. Below is - the example while using chip tool as controller, ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635871112.112515][4282:4287] CHIP:SC: Success status report - received. Session was established [1635871112.112550][4282:4287] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 48!! [1635871112.112641][4282:4287] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635871112.120013][4282:4287] CHIP:DMG: ICR moving to - [AddingComm] [1635871112.120068][4282:4287] CHIP:DMG: ICR moving to - [AddedComma] [1635871112.120191][4282:4287] CHIP:IN: Prepared - encrypted message 0xaaaadbfe6d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 11039i with MessageCounter:0. - [1635871112.120249][4282:4287] CHIP:IN: Sending encrypted msg - 0xaaaadbfe6d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 12683778 msec [1635871112.120453][4282:4287] CHIP:DMG: - ICR moving to [CommandSen] [1635871112.120505][4282:4287] CHIP:CTL: - Manual pairing code: [34921141778] [1635871112.120573][4282:4287] - CHIP:CTL: SetupQRCode: [MT:00000CQM00GKG14-G10] - [1635871112.120636][4282:4287] CHIP:EM: Sending Standalone Ack for - MessageCounter:2599714281 on exchange 11038i" + verification: | + On your DUT controller open commissioning widow using ECM. + + Below is the example while using chip tool as controller, + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + + [1635871112.112515][4282:4287] CHIP:SC: Success status report received. Session was established + [1635871112.112550][4282:4287] CHIP:IN: New secure session created for device 0x0000000000000001, key 48!! + [1635871112.112641][4282:4287] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635871112.120013][4282:4287] CHIP:DMG: ICR moving to [AddingComm] + [1635871112.120068][4282:4287] CHIP:DMG: ICR moving to [AddedComma] + [1635871112.120191][4282:4287] CHIP:IN: Prepared encrypted message 0xaaaadbfe6d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 11039i with MessageCounter:0. + [1635871112.120249][4282:4287] CHIP:IN: Sending encrypted msg 0xaaaadbfe6d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 12683778 msec + [1635871112.120453][4282:4287] CHIP:DMG: ICR moving to [CommandSen] + [1635871112.120505][4282:4287] CHIP:CTL: Manual pairing code: [34921141778] + [1635871112.120573][4282:4287] CHIP:CTL: SetupQRCode: [MT:00000CQM00GKG14-G10] + [1635871112.120636][4282:4287] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714281 on exchange 11038i disabled: true - label: "DUT_CR1 revokes the commissioning window on TH_CE using RevokeCommissioning command" - verification: - "On First controller revoke commissioning Below is the example while - using chip tool as controller, ./chip-tool administratorcommissioning - revoke-commissioning 1 0 [1635871162.467911][4291:4296] CHIP:DMG: - InvokeCommand = [1635871162.467970][4291:4296] CHIP:DMG: { - [1635871162.468019][4291:4296] CHIP:DMG: CommandList = - [1635871162.468085][4291:4296] CHIP:DMG: [ - [1635871162.468151][4291:4296] CHIP:DMG: CommandDataIB = - [1635871162.468221][4291:4296] CHIP:DMG: { - [1635871162.468287][4291:4296] CHIP:DMG: CommandPathIB = - [1635871162.468367][4291:4296] CHIP:DMG: { - [1635871162.468447][4291:4296] CHIP:DMG: EndpointId = 0x0, - [1635871162.468541][4291:4296] CHIP:DMG: ClusterId = 0x3c, - [1635871162.468620][4291:4296] CHIP:DMG: CommandId = 0x2, - [1635871162.468708][4291:4296] CHIP:DMG: }, + verification: | + On First controller revoke commissioning + + Below is the example while using chip tool as controller, + + ./chip-tool administratorcommissioning revoke-commissioning 1 0 + [1635871162.467911][4291:4296] CHIP:DMG: InvokeCommand = + [1635871162.467970][4291:4296] CHIP:DMG: { + [1635871162.468019][4291:4296] CHIP:DMG: CommandList = + [1635871162.468085][4291:4296] CHIP:DMG: [ + [1635871162.468151][4291:4296] CHIP:DMG: CommandDataIB = + [1635871162.468221][4291:4296] CHIP:DMG: { + [1635871162.468287][4291:4296] CHIP:DMG: CommandPathIB = + [1635871162.468367][4291:4296] CHIP:DMG: { + [1635871162.468447][4291:4296] CHIP:DMG: EndpointId = 0x0, + [1635871162.468541][4291:4296] CHIP:DMG: ClusterId = 0x3c, + [1635871162.468620][4291:4296] CHIP:DMG: CommandId = 0x2, + [1635871162.468708][4291:4296] CHIP:DMG: }, [1635871162.468793][4291:4296] CHIP:DMG: - [1635871162.468861][4291:4296] CHIP:DMG: StatusIB = - [1635871162.468938][4291:4296] CHIP:DMG: { - [1635871162.469002][4291:4296] CHIP:DMG: status = 0x0, - [1635871162.469088][4291:4296] CHIP:DMG: }, + [1635871162.468861][4291:4296] CHIP:DMG: StatusIB = + [1635871162.468938][4291:4296] CHIP:DMG: { + [1635871162.469002][4291:4296] CHIP:DMG: status = 0x0, + [1635871162.469088][4291:4296] CHIP:DMG: }, [1635871162.469160][4291:4296] CHIP:DMG: - [1635871162.469222][4291:4296] CHIP:DMG: }, + [1635871162.469222][4291:4296] CHIP:DMG: }, [1635871162.469297][4291:4296] CHIP:DMG: - [1635871162.469350][4291:4296] CHIP:DMG: ], + [1635871162.469350][4291:4296] CHIP:DMG: ], [1635871162.469478][4291:4296] CHIP:DMG: [1635871162.469535][4291:4296] CHIP:DMG: } - [1635871162.469634][4291:4296] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635871162.469704][4291:4296] CHIP:TOO: Default Success - Response" + [1635871162.469634][4291:4296] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635871162.469704][4291:4296] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On the 2nd controller using chip-tool , connect using manual code - generated by DUT Controller Below is the example when using chip tool - as controller (considering 34921141778 as the manual code generated by - DUT controller) ./chip-tool pairing manualcode 1 34921141778" + verification: | + On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller + + + Below is the example when using chip tool as controller (considering 34921141778 as the manual code generated by DUT controller) + ./chip-tool pairing manualcode 1 34921141778 disabled: true - label: "DUT_CR1 revokes the commissioning window on TH_CE using RevokeCommissioning command" - verification: - "On your DUT controller revoke commissioning Below is the example - while using chip tool as controller, ./chip-tool - administratorcommissioning revoke-commissioning 1 0 + verification: | + On your DUT controller revoke commissioning + + Below is the example while using chip tool as controller, + + ./chip-tool administratorcommissioning revoke-commissioning 1 0 + [1635871227.659965][4299:4304] CHIP:DMG: InvokeCommand = [1635871227.659996][4299:4304] CHIP:DMG: { - [1635871227.660024][4299:4304] CHIP:DMG: CommandList = - [1635871227.660059][4299:4304] CHIP:DMG: [ - [1635871227.660091][4299:4304] CHIP:DMG: CommandDataIB = - [1635871227.660129][4299:4304] CHIP:DMG: { - [1635871227.660164][4299:4304] CHIP:DMG: CommandPathIB = - [1635871227.660236][4299:4304] CHIP:DMG: { - [1635871227.660317][4299:4304] CHIP:DMG: EndpointId = 0x0, - [1635871227.660382][4299:4304] CHIP:DMG: ClusterId = 0x3c, - [1635871227.660424][4299:4304] CHIP:DMG: CommandId = 0x2, - [1635871227.660483][4299:4304] CHIP:DMG: }, + [1635871227.660024][4299:4304] CHIP:DMG: CommandList = + [1635871227.660059][4299:4304] CHIP:DMG: [ + [1635871227.660091][4299:4304] CHIP:DMG: CommandDataIB = + [1635871227.660129][4299:4304] CHIP:DMG: { + [1635871227.660164][4299:4304] CHIP:DMG: CommandPathIB = + [1635871227.660236][4299:4304] CHIP:DMG: { + [1635871227.660317][4299:4304] CHIP:DMG: EndpointId = 0x0, + [1635871227.660382][4299:4304] CHIP:DMG: ClusterId = 0x3c, + [1635871227.660424][4299:4304] CHIP:DMG: CommandId = 0x2, + [1635871227.660483][4299:4304] CHIP:DMG: }, [1635871227.660550][4299:4304] CHIP:DMG: - [1635871227.660587][4299:4304] CHIP:DMG: StatusIB = - [1635871227.660648][4299:4304] CHIP:DMG: { - [1635871227.660708][4299:4304] CHIP:DMG: status = 0x0, - [1635871227.660744][4299:4304] CHIP:DMG: }, + [1635871227.660587][4299:4304] CHIP:DMG: StatusIB = + [1635871227.660648][4299:4304] CHIP:DMG: { + [1635871227.660708][4299:4304] CHIP:DMG: status = 0x0, + [1635871227.660744][4299:4304] CHIP:DMG: }, [1635871227.660803][4299:4304] CHIP:DMG: - [1635871227.660852][4299:4304] CHIP:DMG: }, + [1635871227.660852][4299:4304] CHIP:DMG: }, [1635871227.660937][4299:4304] CHIP:DMG: - [1635871227.660976][4299:4304] CHIP:DMG: ], + [1635871227.660976][4299:4304] CHIP:DMG: ], [1635871227.661015][4299:4304] CHIP:DMG: [1635871227.661046][4299:4304] CHIP:DMG: } - [1635871227.661104][4299:4304] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635871227.661181][4299:4304] CHIP:TOO: Default Success - Response" + [1635871227.661104][4299:4304] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635871227.661181][4299:4304] CHIP:TOO: Default Success Response disabled: true - label: "DUT_CR1 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "On your DUT controller write and read Basic Information Clusters - NodeLabel mandatory attribute of TH_CE Below is the example while - using chip tool as controller, ./chip-tool basic write node-label - te5new 1 0 [1635871273.030352][4308:4313] CHIP:DMG: { - [1635871273.030381][4308:4313] CHIP:DMG: AttributeStatusList = - [1635871273.030446][4308:4313] CHIP:DMG: [ - [1635871273.030516][4308:4313] CHIP:DMG: AttributeStatusIB = - [1635871273.030590][4308:4313] CHIP:DMG: { - [1635871273.030639][4308:4313] CHIP:DMG: AttributePath = - [1635871273.030709][4308:4313] CHIP:DMG: { - [1635871273.030778][4308:4313] CHIP:DMG: FieldTag = 0x0000_0005, - [1635871273.030832][4308:4313] CHIP:DMG: NodeId = 0x0, - [1635871273.030903][4308:4313] CHIP:DMG: ClusterId = 0x28, - [1635871273.031010][4308:4313] CHIP:DMG: EndpointId = 0x0, - [1635871273.031055][4308:4313] CHIP:DMG: } + verification: | + On your DUT controller write and read Basic Information Cluster NodeLabel mandatory attribute of TH_CE + + Below is the example while using chip tool as controller, + + ./chip-tool basic write node-label te5new 1 0 + [1635871273.030352][4308:4313] CHIP:DMG: { + [1635871273.030381][4308:4313] CHIP:DMG: AttributeStatusList = + [1635871273.030446][4308:4313] CHIP:DMG: [ + [1635871273.030516][4308:4313] CHIP:DMG: AttributeStatusIB = + [1635871273.030590][4308:4313] CHIP:DMG: { + [1635871273.030639][4308:4313] CHIP:DMG: AttributePath = + [1635871273.030709][4308:4313] CHIP:DMG: { + [1635871273.030778][4308:4313] CHIP:DMG: FieldTag = 0x0000_0005, + [1635871273.030832][4308:4313] CHIP:DMG: NodeId = 0x0, + [1635871273.030903][4308:4313] CHIP:DMG: ClusterId = 0x28, + [1635871273.031010][4308:4313] CHIP:DMG: EndpointId = 0x0, + [1635871273.031055][4308:4313] CHIP:DMG: } [1635871273.031103][4308:4313] CHIP:DMG: - [1635871273.031145][4308:4313] CHIP:DMG: StatusIB = - [1635871273.031187][4308:4313] CHIP:DMG: { - [1635871273.031230][4308:4313] CHIP:DMG: status = 0x0, - [1635871273.031272][4308:4313] CHIP:DMG: }, + [1635871273.031145][4308:4313] CHIP:DMG: StatusIB = + [1635871273.031187][4308:4313] CHIP:DMG: { + [1635871273.031230][4308:4313] CHIP:DMG: status = 0x0, + [1635871273.031272][4308:4313] CHIP:DMG: }, [1635871273.031322][4308:4313] CHIP:DMG: - [1635871273.031476][4308:4313] CHIP:DMG: }, + [1635871273.031476][4308:4313] CHIP:DMG: }, [1635871273.031529][4308:4313] CHIP:DMG: - [1635871273.031565][4308:4313] CHIP:DMG: ], + [1635871273.031565][4308:4313] CHIP:DMG: ], [1635871273.031608][4308:4313] CHIP:DMG: [1635871273.031642][4308:4313] CHIP:DMG: } [1635871273.031716][4308:4313] CHIP:ZCL: WriteResponse: - [1635871273.031745][4308:4313] CHIP:ZCL: status: Success (0x0000) + [1635871273.031745][4308:4313] CHIP:ZCL: status: Success (0x0000) [1635871273.031780][4308:4313] CHIP:TOO: Default Success Response - ./chip-tool basic read node-label 1 0 [1635871312.835941][4314:4319] - CHIP:DMG: ReportData = [1635871312.835978][4314:4319] CHIP:DMG: { - [1635871312.836007][4314:4319] CHIP:DMG: AttributeDataList = - [1635871312.836045][4314:4319] CHIP:DMG: [ - [1635871312.836085][4314:4319] CHIP:DMG: AttributeDataElement = - [1635871312.836126][4314:4319] CHIP:DMG: { - [1635871312.836164][4314:4319] CHIP:DMG: AttributePath = - [1635871312.836204][4314:4319] CHIP:DMG: { - [1635871312.836246][4314:4319] CHIP:DMG: NodeId = 0x1, - [1635871312.836296][4314:4319] CHIP:DMG: EndpointId = 0x0, - [1635871312.836345][4314:4319] CHIP:DMG: ClusterId = 0x28, - [1635871312.836395][4314:4319] CHIP:DMG: FieldTag = 0x0000_0005, - [1635871312.836440][4314:4319] CHIP:DMG: } + + + ./chip-tool basic read node-label 1 0 + [1635871312.835941][4314:4319] CHIP:DMG: ReportData = + [1635871312.835978][4314:4319] CHIP:DMG: { + [1635871312.836007][4314:4319] CHIP:DMG: AttributeDataList = + [1635871312.836045][4314:4319] CHIP:DMG: [ + [1635871312.836085][4314:4319] CHIP:DMG: AttributeDataElement = + [1635871312.836126][4314:4319] CHIP:DMG: { + [1635871312.836164][4314:4319] CHIP:DMG: AttributePath = + [1635871312.836204][4314:4319] CHIP:DMG: { + [1635871312.836246][4314:4319] CHIP:DMG: NodeId = 0x1, + [1635871312.836296][4314:4319] CHIP:DMG: EndpointId = 0x0, + [1635871312.836345][4314:4319] CHIP:DMG: ClusterId = 0x28, + [1635871312.836395][4314:4319] CHIP:DMG: FieldTag = 0x0000_0005, + [1635871312.836440][4314:4319] CHIP:DMG: } [1635871312.836491][4314:4319] CHIP:DMG: - [1635871312.836543][4314:4319] CHIP:DMG: Data = 'te5new', - [1635871312.836588][4314:4319] CHIP:DMG: DataElementVersion = 0x0, - [1635871312.836632][4314:4319] CHIP:DMG: }, + [1635871312.836543][4314:4319] CHIP:DMG: Data = "te5new", + [1635871312.836588][4314:4319] CHIP:DMG: DataElementVersion = 0x0, + [1635871312.836632][4314:4319] CHIP:DMG: }, [1635871312.836678][4314:4319] CHIP:DMG: - [1635871312.836709][4314:4319] CHIP:DMG: ], + [1635871312.836709][4314:4319] CHIP:DMG: ], [1635871312.836752][4314:4319] CHIP:DMG: [1635871312.836785][4314:4319] CHIP:DMG: } [1635871312.836891][4314:4319] CHIP:ZCL: ReadAttributesResponse: - [1635871312.836923][4314:4319] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635871312.836958][4314:4319] CHIP:ZCL: attributeId: 0x0000_0005 - [1635871312.836990][4314:4319] CHIP:ZCL: status: Success (0x0000) - [1635871312.837017][4314:4319] CHIP:ZCL: attribute TLV Type: 0x0c - [1635871312.837050][4314:4319] CHIP:TOO: CharString attribute - Response: te5new" + [1635871312.836923][4314:4319] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635871312.836958][4314:4319] CHIP:ZCL: attributeId: 0x0000_0005 + [1635871312.836990][4314:4319] CHIP:ZCL: status: Success (0x0000) + [1635871312.837017][4314:4319] CHIP:ZCL: attribute TLV Type: 0x0c + [1635871312.837050][4314:4319] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "DUT_CR1 opens a new commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On your DUT controller open commissioning widow using ECM. Below is - the example while using chip tool as controller, ./chip-tool pairing - open-commissioning-window 1 1 100 1000 3840 - [1635871373.773447][4322:4328] CHIP:SC: Success status report - received. Session was established [1635871373.773517][4322:4328] - CHIP:IN: New secure session created for device 0x0000000000000001, key - 54!! [1635871373.773611][4322:4328] CHIP:CTL: OpenCommissioningWindow - for device ID 1 [1635871373.780891][4322:4328] CHIP:DMG: ICR moving to - [AddingComm] [1635871373.780942][4322:4328] CHIP:DMG: ICR moving to - [AddedComma] [1635871373.781067][4322:4328] CHIP:IN: Prepared - encrypted message 0xaaaae2653d10 to 0x0000000000000001 of type 0x8 and - protocolId (0, 1) on exchange 62089i with MessageCounter:0. - [1635871373.781124][4322:4328] CHIP:IN: Sending encrypted msg - 0xaaaae2653d10 with MessageCounter:0 to 0x0000000000000001 at - monotonic time: 12945439 msec [1635871373.781269][4322:4328] CHIP:DMG: - ICR moving to [CommandSen] [1635871373.781329][4322:4328] CHIP:CTL: - Manual pairing code: [35256543344] [1635871373.781482][4322:4328] - CHIP:CTL: SetupQRCode: [MT:00000CQM00CIWV01J10] - [1635871373.781558][4322:4328] CHIP:EM: Sending Standalone Ack for - MessageCounter:2599714291 on exchange 62088i" + verification: | + On your DUT controller open commissioning widow using ECM. + + Below is the example while using chip tool as controller, + + ./chip-tool pairing open-commissioning-window 1 1 100 1000 3840 + + [1635871373.773447][4322:4328] CHIP:SC: Success status report received. Session was established + [1635871373.773517][4322:4328] CHIP:IN: New secure session created for device 0x0000000000000001, key 54!! + [1635871373.773611][4322:4328] CHIP:CTL: OpenCommissioningWindow for device ID 1 + [1635871373.780891][4322:4328] CHIP:DMG: ICR moving to [AddingComm] + [1635871373.780942][4322:4328] CHIP:DMG: ICR moving to [AddedComma] + [1635871373.781067][4322:4328] CHIP:IN: Prepared encrypted message 0xaaaae2653d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 62089i with MessageCounter:0. + [1635871373.781124][4322:4328] CHIP:IN: Sending encrypted msg 0xaaaae2653d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 12945439 msec + [1635871373.781269][4322:4328] CHIP:DMG: ICR moving to [CommandSen] + [1635871373.781329][4322:4328] CHIP:CTL: Manual pairing code: [35256543344] + [1635871373.781482][4322:4328] CHIP:CTL: SetupQRCode: [MT:00000CQM00CIWV01J10] + [1635871373.781558][4322:4328] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714291 on exchange 62088i disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On the 2nd controller using chip-tool , connect using manual code - generated by DUT Controller Below is the example when using chip tool - as controller (considering 35256543344 as the manual code generated by - DUT controller) ./chip-tool pairing manualcode 1 35256543344" + verification: | + On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller + + + Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) + ./chip-tool pairing manualcode 1 35256543344 disabled: true - label: "TH_CR3 starts a commissioning process with TH_CE" - verification: - "On the 3rd controller using chip-tool , connect using manual code - generated by DUT Controller Below is the example when using chip tool - as controller (considering 35256543344 as the manual code generated by - DUT controller) ./chip-tool pairing manualcode 1 35256543344" + verification: | + On the 3rd controller using chip-tool , connect using manual code generated by DUT Controller + + + Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) + ./chip-tool pairing manualcode 1 35256543344 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_8.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_8.yaml index 68ba31dd059c21..fb1d17df6f6b7e 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_8.yaml @@ -23,249 +23,263 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" - verification: - "1. Provision the device using DUT_CR1 controller on the raspi." + verification: | + 1. Provision the device using DUT_CR1 controller on the raspi. disabled: true - label: "DUT_CR1 opens a commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller open commissioning widow using BCM. Below is - the example while using chip tool as controller, ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On your DUT controller open commissioning widow using BCM. + + Below is the example while using chip tool as controller, + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + [1635871562.958905][4336:4341] CHIP:DMG: InvokeCommand = [1635871562.958976][4336:4341] CHIP:DMG: { - [1635871562.959031][4336:4341] CHIP:DMG: CommandList = - [1635871562.959095][4336:4341] CHIP:DMG: [ - [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = - [1635871562.959225][4336:4341] CHIP:DMG: { - [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = - [1635871562.959368][4336:4341] CHIP:DMG: { - [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, - [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, - [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, - [1635871562.959698][4336:4341] CHIP:DMG: }, + [1635871562.959031][4336:4341] CHIP:DMG: CommandList = + [1635871562.959095][4336:4341] CHIP:DMG: [ + [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = + [1635871562.959225][4336:4341] CHIP:DMG: { + [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = + [1635871562.959368][4336:4341] CHIP:DMG: { + [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, + [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, + [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, + [1635871562.959698][4336:4341] CHIP:DMG: }, [1635871562.959776][4336:4341] CHIP:DMG: - [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = - [1635871562.959911][4336:4341] CHIP:DMG: { - [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, - [1635871562.960064][4336:4341] CHIP:DMG: }, + [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = + [1635871562.959911][4336:4341] CHIP:DMG: { + [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, + [1635871562.960064][4336:4341] CHIP:DMG: }, [1635871562.960313][4336:4341] CHIP:DMG: - [1635871562.960459][4336:4341] CHIP:DMG: }, + [1635871562.960459][4336:4341] CHIP:DMG: }, [1635871562.960544][4336:4341] CHIP:DMG: - [1635871562.960604][4336:4341] CHIP:DMG: ], + [1635871562.960604][4336:4341] CHIP:DMG: ], [1635871562.960668][4336:4341] CHIP:DMG: [1635871562.960723][4336:4341] CHIP:DMG: } - [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635871562.960894][4336:4341] CHIP:TOO: Default Success - Response" + [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635871562.960894][4336:4341] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE after PIXIT_COMM_WIN + 10 seconds" - verification: - "On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 2nd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "DUT_CR1 opens a new commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller open commissioning widow using BCM. Below is - the example while using chip tool as controller, ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0" + verification: | + On your DUT controller open commissioning widow using BCM. + + Below is the example while using chip tool as controller, + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 disabled: true - label: "DUT_CR1 revokes the commissioning window on TH_CE using RevokeCommissioning command" - verification: - "On your DUT controller revoke commissioning Below is the example - while using chip tool as controller, ./chip-tool - administratorcommissioning revoke-commissioning 1 0 + verification: | + On your DUT controller revoke commissioning + + Below is the example while using chip tool as controller, + + ./chip-tool administratorcommissioning revoke-commissioning 1 0 [1635871889.934826][4370:4375] CHIP:DMG: InvokeCommand = [1635871889.934895][4370:4375] CHIP:DMG: { - [1635871889.934950][4370:4375] CHIP:DMG: CommandList = - [1635871889.935012][4370:4375] CHIP:DMG: [ - [1635871889.935072][4370:4375] CHIP:DMG: CommandDataIB = - [1635871889.935136][4370:4375] CHIP:DMG: { - [1635871889.935199][4370:4375] CHIP:DMG: CommandPathIB = - [1635871889.935352][4370:4375] CHIP:DMG: { - [1635871889.935493][4370:4375] CHIP:DMG: EndpointId = 0x0, - [1635871889.935566][4370:4375] CHIP:DMG: ClusterId = 0x3c, - [1635871889.935680][4370:4375] CHIP:DMG: CommandId = 0x2, - [1635871889.935788][4370:4375] CHIP:DMG: }, + [1635871889.934950][4370:4375] CHIP:DMG: CommandList = + [1635871889.935012][4370:4375] CHIP:DMG: [ + [1635871889.935072][4370:4375] CHIP:DMG: CommandDataIB = + [1635871889.935136][4370:4375] CHIP:DMG: { + [1635871889.935199][4370:4375] CHIP:DMG: CommandPathIB = + [1635871889.935352][4370:4375] CHIP:DMG: { + [1635871889.935493][4370:4375] CHIP:DMG: EndpointId = 0x0, + [1635871889.935566][4370:4375] CHIP:DMG: ClusterId = 0x3c, + [1635871889.935680][4370:4375] CHIP:DMG: CommandId = 0x2, + [1635871889.935788][4370:4375] CHIP:DMG: }, [1635871889.935867][4370:4375] CHIP:DMG: - [1635871889.935930][4370:4375] CHIP:DMG: StatusIB = - [1635871889.935992][4370:4375] CHIP:DMG: { - [1635871889.936059][4370:4375] CHIP:DMG: status = 0x0, - [1635871889.936165][4370:4375] CHIP:DMG: }, + [1635871889.935930][4370:4375] CHIP:DMG: StatusIB = + [1635871889.935992][4370:4375] CHIP:DMG: { + [1635871889.936059][4370:4375] CHIP:DMG: status = 0x0, + [1635871889.936165][4370:4375] CHIP:DMG: }, [1635871889.936283][4370:4375] CHIP:DMG: - [1635871889.936378][4370:4375] CHIP:DMG: }, + [1635871889.936378][4370:4375] CHIP:DMG: }, [1635871889.936455][4370:4375] CHIP:DMG: - [1635871889.936514][4370:4375] CHIP:DMG: ], + [1635871889.936514][4370:4375] CHIP:DMG: ], [1635871889.936604][4370:4375] CHIP:DMG: [1635871889.936655][4370:4375] CHIP:DMG: } - [1635871889.936753][4370:4375] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635871889.936820][4370:4375] CHIP:TOO: Default Success - Response" + [1635871889.936753][4370:4375] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635871889.936820][4370:4375] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 2nd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "DUT_CR1 revokes the commissioning window on TH_CE using RevokeCommissioning command" - verification: - "On your DUT controller revoke commissioning Below is the example - while using chip tool as controller, ./chip-tool - administratorcommissioning revoke-commissioning 1 0 + verification: | + On your DUT controller revoke commissioning + + Below is the example while using chip tool as controller, + + ./chip-tool administratorcommissioning revoke-commissioning 1 0 [1635871889.934826][4370:4375] CHIP:DMG: InvokeCommand = [1635871889.934895][4370:4375] CHIP:DMG: { - [1635871889.934950][4370:4375] CHIP:DMG: CommandList = - [1635871889.935012][4370:4375] CHIP:DMG: [ - [1635871889.935072][4370:4375] CHIP:DMG: CommandDataIB = - [1635871889.935136][4370:4375] CHIP:DMG: { - [1635871889.935199][4370:4375] CHIP:DMG: CommandPathIB = - [1635871889.935352][4370:4375] CHIP:DMG: { - [1635871889.935493][4370:4375] CHIP:DMG: EndpointId = 0x0, - [1635871889.935566][4370:4375] CHIP:DMG: ClusterId = 0x3c, - [1635871889.935680][4370:4375] CHIP:DMG: CommandId = 0x2, - [1635871889.935788][4370:4375] CHIP:DMG: }, + [1635871889.934950][4370:4375] CHIP:DMG: CommandList = + [1635871889.935012][4370:4375] CHIP:DMG: [ + [1635871889.935072][4370:4375] CHIP:DMG: CommandDataIB = + [1635871889.935136][4370:4375] CHIP:DMG: { + [1635871889.935199][4370:4375] CHIP:DMG: CommandPathIB = + [1635871889.935352][4370:4375] CHIP:DMG: { + [1635871889.935493][4370:4375] CHIP:DMG: EndpointId = 0x0, + [1635871889.935566][4370:4375] CHIP:DMG: ClusterId = 0x3c, + [1635871889.935680][4370:4375] CHIP:DMG: CommandId = 0x2, + [1635871889.935788][4370:4375] CHIP:DMG: }, [1635871889.935867][4370:4375] CHIP:DMG: - [1635871889.935930][4370:4375] CHIP:DMG: StatusIB = - [1635871889.935992][4370:4375] CHIP:DMG: { - [1635871889.936059][4370:4375] CHIP:DMG: status = 0x0, - [1635871889.936165][4370:4375] CHIP:DMG: }, + [1635871889.935930][4370:4375] CHIP:DMG: StatusIB = + [1635871889.935992][4370:4375] CHIP:DMG: { + [1635871889.936059][4370:4375] CHIP:DMG: status = 0x0, + [1635871889.936165][4370:4375] CHIP:DMG: }, [1635871889.936283][4370:4375] CHIP:DMG: - [1635871889.936378][4370:4375] CHIP:DMG: }, + [1635871889.936378][4370:4375] CHIP:DMG: }, [1635871889.936455][4370:4375] CHIP:DMG: - [1635871889.936514][4370:4375] CHIP:DMG: ], + [1635871889.936514][4370:4375] CHIP:DMG: ], [1635871889.936604][4370:4375] CHIP:DMG: [1635871889.936655][4370:4375] CHIP:DMG: } - [1635871889.936753][4370:4375] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 - Status=0x0 [1635871889.936820][4370:4375] CHIP:TOO: Default Success - Response" + [1635871889.936753][4370:4375] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 + [1635871889.936820][4370:4375] CHIP:TOO: Default Success Response disabled: true - label: "DUT_CR1 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of TH_CE" - verification: - "Using your DUT controller write attribute and read attribute to and - from TH_CE Below is the example while using chip tool on first - controller, ./chip-tool basic write user-label te5new 1 0 + verification: | + Using your DUT controller write attribute and read attribute to and from TH_CE + + Below is the example while using chip tool on first controller, + + ./chip-tool basic write user-label te5new 1 0 [1635872071.971166][4380:4385] CHIP:DMG: WriteResponse = [1635872071.971206][4380:4385] CHIP:DMG: { - [1635872071.971243][4380:4385] CHIP:DMG: AttributeStatusList = - [1635872071.971305][4380:4385] CHIP:DMG: [ - [1635872071.971363][4380:4385] CHIP:DMG: AttributeStatusIB = - [1635872071.971410][4380:4385] CHIP:DMG: { - [1635872071.971451][4380:4385] CHIP:DMG: AttributePath = - [1635872071.971490][4380:4385] CHIP:DMG: { - [1635872071.971544][4380:4385] CHIP:DMG: FieldTag = 0x0000_0005, - [1635872071.971595][4380:4385] CHIP:DMG: NodeId = 0x0, - [1635872071.971636][4380:4385] CHIP:DMG: ClusterId = 0x28, - [1635872071.971692][4380:4385] CHIP:DMG: EndpointId = 0x0, - [1635872071.971740][4380:4385] CHIP:DMG: } + [1635872071.971243][4380:4385] CHIP:DMG: AttributeStatusList = + [1635872071.971305][4380:4385] CHIP:DMG: [ + [1635872071.971363][4380:4385] CHIP:DMG: AttributeStatusIB = + [1635872071.971410][4380:4385] CHIP:DMG: { + [1635872071.971451][4380:4385] CHIP:DMG: AttributePath = + [1635872071.971490][4380:4385] CHIP:DMG: { + [1635872071.971544][4380:4385] CHIP:DMG: FieldTag = 0x0000_0005, + [1635872071.971595][4380:4385] CHIP:DMG: NodeId = 0x0, + [1635872071.971636][4380:4385] CHIP:DMG: ClusterId = 0x28, + [1635872071.971692][4380:4385] CHIP:DMG: EndpointId = 0x0, + [1635872071.971740][4380:4385] CHIP:DMG: } [1635872071.971792][4380:4385] CHIP:DMG: - [1635872071.971833][4380:4385] CHIP:DMG: StatusIB = - [1635872071.971881][4380:4385] CHIP:DMG: { - [1635872071.971935][4380:4385] CHIP:DMG: status = 0x0, - [1635872071.971986][4380:4385] CHIP:DMG: }, + [1635872071.971833][4380:4385] CHIP:DMG: StatusIB = + [1635872071.971881][4380:4385] CHIP:DMG: { + [1635872071.971935][4380:4385] CHIP:DMG: status = 0x0, + [1635872071.971986][4380:4385] CHIP:DMG: }, [1635872071.972041][4380:4385] CHIP:DMG: - [1635872071.972083][4380:4385] CHIP:DMG: }, + [1635872071.972083][4380:4385] CHIP:DMG: }, [1635872071.972130][4380:4385] CHIP:DMG: - [1635872071.972165][4380:4385] CHIP:DMG: ], + [1635872071.972165][4380:4385] CHIP:DMG: ], [1635872071.972209][4380:4385] CHIP:DMG: [1635872071.972241][4380:4385] CHIP:DMG: } [1635872071.972315][4380:4385] CHIP:ZCL: WriteResponse: - [1635872071.972350][4380:4385] CHIP:ZCL: status: Success (0x0000) + [1635872071.972350][4380:4385] CHIP:ZCL: status: Success (0x0000) [1635872071.972385][4380:4385] CHIP:TOO: Default Success Response - ./chip-tool basic read user-label 1 0 [1635872323.755223][4396:4401] - CHIP:DMG: ReportData = [1635872323.755265][4396:4401] CHIP:DMG: { - [1635872323.755297][4396:4401] CHIP:DMG: AttributeDataList = - [1635872323.755343][4396:4401] CHIP:DMG: [ - [1635872323.755379][4396:4401] CHIP:DMG: AttributeDataElement = - [1635872323.755424][4396:4401] CHIP:DMG: { - [1635872323.755470][4396:4401] CHIP:DMG: AttributePath = - [1635872323.755523][4396:4401] CHIP:DMG: { - [1635872323.755578][4396:4401] CHIP:DMG: NodeId = 0x1, - [1635872323.755631][4396:4401] CHIP:DMG: EndpointId = 0x0, - [1635872323.755683][4396:4401] CHIP:DMG: ClusterId = 0x28, - [1635872323.755730][4396:4401] CHIP:DMG: FieldTag = 0x0000_0005, - [1635872323.755774][4396:4401] CHIP:DMG: } + + + ./chip-tool basic read user-label 1 0 + + [1635872323.755223][4396:4401] CHIP:DMG: ReportData = + [1635872323.755265][4396:4401] CHIP:DMG: { + [1635872323.755297][4396:4401] CHIP:DMG: AttributeDataList = + [1635872323.755343][4396:4401] CHIP:DMG: [ + [1635872323.755379][4396:4401] CHIP:DMG: AttributeDataElement = + [1635872323.755424][4396:4401] CHIP:DMG: { + [1635872323.755470][4396:4401] CHIP:DMG: AttributePath = + [1635872323.755523][4396:4401] CHIP:DMG: { + [1635872323.755578][4396:4401] CHIP:DMG: NodeId = 0x1, + [1635872323.755631][4396:4401] CHIP:DMG: EndpointId = 0x0, + [1635872323.755683][4396:4401] CHIP:DMG: ClusterId = 0x28, + [1635872323.755730][4396:4401] CHIP:DMG: FieldTag = 0x0000_0005, + [1635872323.755774][4396:4401] CHIP:DMG: } [1635872323.755821][4396:4401] CHIP:DMG: - [1635872323.755869][4396:4401] CHIP:DMG: Data = te5new, - [1635872323.755911][4396:4401] CHIP:DMG: DataElementVersion = 0x0, - [1635872323.755951][4396:4401] CHIP:DMG: }, + [1635872323.755869][4396:4401] CHIP:DMG: Data = "te5new", + [1635872323.755911][4396:4401] CHIP:DMG: DataElementVersion = 0x0, + [1635872323.755951][4396:4401] CHIP:DMG: }, [1635872323.756000][4396:4401] CHIP:DMG: - [1635872323.756036][4396:4401] CHIP:DMG: ], + [1635872323.756036][4396:4401] CHIP:DMG: ], [1635872323.756078][4396:4401] CHIP:DMG: [1635872323.756111][4396:4401] CHIP:DMG: } [1635872323.756212][4396:4401] CHIP:ZCL: ReadAttributesResponse: - [1635872323.756245][4396:4401] CHIP:ZCL: ClusterId: 0x0000_0028 - [1635872323.756279][4396:4401] CHIP:ZCL: attributeId: 0x0000_0005 - [1635872323.756311][4396:4401] CHIP:ZCL: status: Success (0x0000) - [1635872323.756342][4396:4401] CHIP:ZCL: attribute TLV Type: 0x0c - [1635872323.756373][4396:4401] CHIP:TOO: CharString attribute - Response: te5new" + [1635872323.756245][4396:4401] CHIP:ZCL: ClusterId: 0x0000_0028 + [1635872323.756279][4396:4401] CHIP:ZCL: attributeId: 0x0000_0005 + [1635872323.756311][4396:4401] CHIP:ZCL: status: Success (0x0000) + [1635872323.756342][4396:4401] CHIP:ZCL: attribute TLV Type: 0x0c + [1635872323.756373][4396:4401] CHIP:TOO: CharString attribute Response: te5new disabled: true - label: "DUT_CR1 opens a new commissioning window on TH_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - verification: - "On your DUT controller open commissioning widow using BCM. Below is - the example while using chip tool as controller, ./chip-tool - administratorcommissioning open-basic-commissioning-window 500 1 0 + verification: | + On your DUT controller open commissioning widow using BCM. + + Below is the example while using chip tool as controller, + + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 + + [1635871562.958905][4336:4341] CHIP:DMG: InvokeCommand = [1635871562.958976][4336:4341] CHIP:DMG: { - [1635871562.959031][4336:4341] CHIP:DMG: CommandList = - [1635871562.959095][4336:4341] CHIP:DMG: [ - [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = - [1635871562.959225][4336:4341] CHIP:DMG: { - [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = - [1635871562.959368][4336:4341] CHIP:DMG: { - [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, - [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, - [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, - [1635871562.959698][4336:4341] CHIP:DMG: }, + [1635871562.959031][4336:4341] CHIP:DMG: CommandList = + [1635871562.959095][4336:4341] CHIP:DMG: [ + [1635871562.959161][4336:4341] CHIP:DMG: CommandDataIB = + [1635871562.959225][4336:4341] CHIP:DMG: { + [1635871562.959290][4336:4341] CHIP:DMG: CommandPathIB = + [1635871562.959368][4336:4341] CHIP:DMG: { + [1635871562.959434][4336:4341] CHIP:DMG: EndpointId = 0x0, + [1635871562.959530][4336:4341] CHIP:DMG: ClusterId = 0x3c, + [1635871562.959625][4336:4341] CHIP:DMG: CommandId = 0x1, + [1635871562.959698][4336:4341] CHIP:DMG: }, [1635871562.959776][4336:4341] CHIP:DMG: - [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = - [1635871562.959911][4336:4341] CHIP:DMG: { - [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, - [1635871562.960064][4336:4341] CHIP:DMG: }, + [1635871562.959841][4336:4341] CHIP:DMG: StatusIB = + [1635871562.959911][4336:4341] CHIP:DMG: { + [1635871562.959980][4336:4341] CHIP:DMG: status = 0x0, + [1635871562.960064][4336:4341] CHIP:DMG: }, [1635871562.960313][4336:4341] CHIP:DMG: - [1635871562.960459][4336:4341] CHIP:DMG: }, + [1635871562.960459][4336:4341] CHIP:DMG: }, [1635871562.960544][4336:4341] CHIP:DMG: - [1635871562.960604][4336:4341] CHIP:DMG: ], + [1635871562.960604][4336:4341] CHIP:DMG: ], [1635871562.960668][4336:4341] CHIP:DMG: [1635871562.960723][4336:4341] CHIP:DMG: } - [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response - Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 - Status=0x0 [1635871562.960894][4336:4341] CHIP:TOO: Default Success - Response" + [1635871562.960824][4336:4341] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 + [1635871562.960894][4336:4341] CHIP:TOO: Default Success Response disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - verification: - "On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 2nd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true - label: "TH_CR3 starts a commissioning process with TH_CE" - verification: - "On the 3rd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021" + verification: | + On the 3rd controller using chip-tool , connect to the accessory + + ./chip-tool pairing onnetwork 1 20202021 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MF_1_9.yaml b/src/app/tests/suites/certification/Test_TC_MF_1_9.yaml index 8b10ae6763d753..e9bf49f0ded942 100644 --- a/src/app/tests/suites/certification/Test_TC_MF_1_9.yaml +++ b/src/app/tests/suites/certification/Test_TC_MF_1_9.yaml @@ -23,47 +23,41 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" - verification: - "1. Provision the device using 1st python controller on the raspi (use - above instructions) " + verification: | + 1. Provision the device using 1st python controller on the raspi (use above instructions) disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - verification: - "On 1st controller, using chip-tool, send the - open-commissioning-window CMD for ECM. -t stands for timeout value, -o - for OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for - descriminator -i for iteration count. Ref to cmd help. ./chip-tool - pairing open-commissioning-window 1 1 200 1000 3840 + verification: | + On 1st controller, using chip-tool, send the open-commissioning-window CMD for ECM. -t stands for timeout value, -o for OriginalSetupCode/TokenWithRandomPIN/TokenWithProvidedPIN , -d for descriminator -i for iteration count. Ref to cmd help. + + ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 + [1635864513.699433][3850:3855] CHIP:DMG: ICR moving to [CommandSen] - [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: - [36177160937] [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: - [MT:00000CQM00YZN476420] [1635864513.699636][3850:3855] CHIP:EM: - Sending Standalone Ack for MessageCounter:2599714227 on exchange - 60688i [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext - message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and - protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. - [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg - 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at - monotonic time: 6085358 msec [1635864513.699834][3850:3855] CHIP:EM: - Flushed pending ack for MessageCounter:2599714227 on exchange 60688i - The setup pin code is extracted from the manual pairing code in the - log and that will be used when pairing the 2nd admin controller." + [1635864513.699489][3850:3855] CHIP:CTL: Manual pairing code: [36177160937] + [1635864513.699566][3850:3855] CHIP:CTL: SetupQRCode: [MT:00000CQM00YZN476420] + [1635864513.699636][3850:3855] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714227 on exchange 60688i + [1635864513.699685][3850:3855] CHIP:IN: Prepared plaintext message 0xffff8a7cd960 to 0x0000000000000000 of type 0x10 and protocolId (0, 0) on exchange 60688i with MessageCounter:3019982536. + [1635864513.699737][3850:3855] CHIP:IN: Sending plaintext msg 0xffff8a7cd960 with MessageCounter:3019982536 to 0x0000000000000000 at monotonic time: 6085358 msec + [1635864513.699834][3850:3855] CHIP:EM: Flushed pending ack for MessageCounter:2599714227 on exchange 60688i + + The setup pin code is extracted from the manual pairing code in the log and that will be used when pairing the 2nd admin controller. disabled: true - label: "Set up a TH_CR2 to start attempting to do PASE to DUT_CE and failing 20 times. This can be done using an invalid passcode" - verification: - "1. On 2nd controller using chip-tool connect using wrong manual code. - Repeat the step for 20 times. ./chip-tool pairing manualcode 1 - 36177160938 (With wrong manual code)" + verification: | + 1. On 2nd controller using chip-tool connect using wrong manual code. Repeat the step for 20 times. + + ./chip-tool pairing manualcode 1 36177160938 (With wrong manual code) disabled: true - label: "TH_CR2 starts a 21st commissioning process" - verification: - "1. On 2nd controller using chip tool connect using correct passcode. - ./chip-tool pairing manualcode 1 36177160937 (correct passcode)" + verification: | + 1. On 2nd controller using chip tool connect using correct passcode. + + ./chip-tool pairing manualcode 1 36177160937 (correct passcode) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml index 4bdfb155fdb6c8..689c2cb5b6963f 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml @@ -21,162 +21,159 @@ config: tests: - label: "TH reads the SupportedModes attribute from DUT" - verification: - "./chip-tool modeselect read supported-modes 1 1 - [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries - [1645776742.669546][4661:4666] CHIP:TOO: [1]: { - [1645776742.669588][4661:4666] CHIP:TOO: Label: Black - [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 - [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669661][4661:4666] CHIP:TOO: } - [1645776742.669692][4661:4666] CHIP:TOO: [2]: { - [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino - [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 - [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669779][4661:4666] CHIP:TOO: } - [1645776742.669808][4661:4666] CHIP:TOO: [3]: { - [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso - [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 - [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669896][4661:4666] CHIP:TOO: }" + verification: | + ./chip-tool modeselect read supported-modes 1 1 + [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries + [1645776742.669546][4661:4666] CHIP:TOO: [1]: { + [1645776742.669588][4661:4666] CHIP:TOO: Label: Black + [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 + [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669661][4661:4666] CHIP:TOO: } + [1645776742.669692][4661:4666] CHIP:TOO: [2]: { + [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino + [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 + [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669779][4661:4666] CHIP:TOO: } + [1645776742.669808][4661:4666] CHIP:TOO: [3]: { + [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso + [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 + [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669896][4661:4666] CHIP:TOO: } disabled: true - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 + verification: | + ./chip-tool modeselect read current-mode 1 1 [1645776767.610097][4667:4672] CHIP:DMG: ReportDataMessage = [1645776767.610129][4667:4672] CHIP:DMG: { - [1645776767.610155][4667:4672] CHIP:DMG: AttributeReportIBs = - [1645776767.610190][4667:4672] CHIP:DMG: [ - [1645776767.610217][4667:4672] CHIP:DMG: AttributeReportIB = - [1645776767.610258][4667:4672] CHIP:DMG: { - [1645776767.610289][4667:4672] CHIP:DMG: AttributeDataIB = - [1645776767.610331][4667:4672] CHIP:DMG: { - [1645776767.610367][4667:4672] CHIP:DMG: DataVersion = 0xe164a616, - [1645776767.610404][4667:4672] CHIP:DMG: AttributePathIB = - [1645776767.610442][4667:4672] CHIP:DMG: { - [1645776767.610481][4667:4672] CHIP:DMG: Endpoint = 0x1, - [1645776767.610526][4667:4672] CHIP:DMG: Cluster = 0x50, - [1645776767.610577][4667:4672] CHIP:DMG: Attribute = 0x0000_0000, - [1645776767.610611][4667:4672] CHIP:DMG: } + [1645776767.610155][4667:4672] CHIP:DMG: AttributeReportIBs = + [1645776767.610190][4667:4672] CHIP:DMG: [ + [1645776767.610217][4667:4672] CHIP:DMG: AttributeReportIB = + [1645776767.610258][4667:4672] CHIP:DMG: { + [1645776767.610289][4667:4672] CHIP:DMG: AttributeDataIB = + [1645776767.610331][4667:4672] CHIP:DMG: { + [1645776767.610367][4667:4672] CHIP:DMG: DataVersion = 0xe164a616, + [1645776767.610404][4667:4672] CHIP:DMG: AttributePathIB = + [1645776767.610442][4667:4672] CHIP:DMG: { + [1645776767.610481][4667:4672] CHIP:DMG: Endpoint = 0x1, + [1645776767.610526][4667:4672] CHIP:DMG: Cluster = 0x50, + [1645776767.610577][4667:4672] CHIP:DMG: Attribute = 0x0000_0000, + [1645776767.610611][4667:4672] CHIP:DMG: } [1645776767.610654][4667:4672] CHIP:DMG: - [1645776767.610697][4667:4672] CHIP:DMG: Data = 0, - [1645776767.610734][4667:4672] CHIP:DMG: }, + [1645776767.610697][4667:4672] CHIP:DMG: Data = 0, + [1645776767.610734][4667:4672] CHIP:DMG: }, [1645776767.610773][4667:4672] CHIP:DMG: - [1645776767.610803][4667:4672] CHIP:DMG: }, + [1645776767.610803][4667:4672] CHIP:DMG: }, [1645776767.610840][4667:4672] CHIP:DMG: - [1645776767.610866][4667:4672] CHIP:DMG: ], + [1645776767.610866][4667:4672] CHIP:DMG: ], [1645776767.610901][4667:4672] CHIP:DMG: - [1645776767.610929][4667:4672] CHIP:DMG: SuppressResponse = true, - [1645776767.610958][4667:4672] CHIP:DMG: InteractionModelRevision = 1 + [1645776767.610929][4667:4672] CHIP:DMG: SuppressResponse = true, + [1645776767.610958][4667:4672] CHIP:DMG: InteractionModelRevision = 1 [1645776767.610983][4667:4672] CHIP:DMG: } - [1645776767.611140][4667:4672] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469718 - [1645776767.611214][4667:4672] CHIP:TOO: CurrentMode: 0" + [1645776767.611140][4667:4672] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469718 + [1645776767.611214][4667:4672] CHIP:TOO: CurrentMode: 0 disabled: true - label: "TH reads the OnMode attribute from the DUT" - verification: - "./chip-tool modeselect read on-mode 1 1 + verification: | + ./chip-tool modeselect read on-mode 1 1 [1645776797.703167][4674:4679] CHIP:DMG: ReportDataMessage = [1645776797.703202][4674:4679] CHIP:DMG: { - [1645776797.703230][4674:4679] CHIP:DMG: AttributeReportIBs = - [1645776797.703270][4674:4679] CHIP:DMG: [ - [1645776797.703297][4674:4679] CHIP:DMG: AttributeReportIB = - [1645776797.703336][4674:4679] CHIP:DMG: { - [1645776797.703368][4674:4679] CHIP:DMG: AttributeDataIB = - [1645776797.703415][4674:4679] CHIP:DMG: { - [1645776797.703453][4674:4679] CHIP:DMG: DataVersion = 0xe164a616, - [1645776797.703494][4674:4679] CHIP:DMG: AttributePathIB = - [1645776797.703531][4674:4679] CHIP:DMG: { - [1645776797.703576][4674:4679] CHIP:DMG: Endpoint = 0x1, - [1645776797.703625][4674:4679] CHIP:DMG: Cluster = 0x50, - [1645776797.703675][4674:4679] CHIP:DMG: Attribute = 0x0000_0002, - [1645776797.703719][4674:4679] CHIP:DMG: } + [1645776797.703230][4674:4679] CHIP:DMG: AttributeReportIBs = + [1645776797.703270][4674:4679] CHIP:DMG: [ + [1645776797.703297][4674:4679] CHIP:DMG: AttributeReportIB = + [1645776797.703336][4674:4679] CHIP:DMG: { + [1645776797.703368][4674:4679] CHIP:DMG: AttributeDataIB = + [1645776797.703415][4674:4679] CHIP:DMG: { + [1645776797.703453][4674:4679] CHIP:DMG: DataVersion = 0xe164a616, + [1645776797.703494][4674:4679] CHIP:DMG: AttributePathIB = + [1645776797.703531][4674:4679] CHIP:DMG: { + [1645776797.703576][4674:4679] CHIP:DMG: Endpoint = 0x1, + [1645776797.703625][4674:4679] CHIP:DMG: Cluster = 0x50, + [1645776797.703675][4674:4679] CHIP:DMG: Attribute = 0x0000_0002, + [1645776797.703719][4674:4679] CHIP:DMG: } [1645776797.703758][4674:4679] CHIP:DMG: - [1645776797.703794][4674:4679] CHIP:DMG: Data = 0, - [1645776797.703834][4674:4679] CHIP:DMG: }, + [1645776797.703794][4674:4679] CHIP:DMG: Data = 0, + [1645776797.703834][4674:4679] CHIP:DMG: }, [1645776797.703878][4674:4679] CHIP:DMG: - [1645776797.703911][4674:4679] CHIP:DMG: }, + [1645776797.703911][4674:4679] CHIP:DMG: }, [1645776797.703952][4674:4679] CHIP:DMG: - [1645776797.703981][4674:4679] CHIP:DMG: ], + [1645776797.703981][4674:4679] CHIP:DMG: ], [1645776797.704018][4674:4679] CHIP:DMG: - [1645776797.704049][4674:4679] CHIP:DMG: SuppressResponse = true, - [1645776797.704080][4674:4679] CHIP:DMG: InteractionModelRevision = 1 + [1645776797.704049][4674:4679] CHIP:DMG: SuppressResponse = true, + [1645776797.704080][4674:4679] CHIP:DMG: InteractionModelRevision = 1 [1645776797.704108][4674:4679] CHIP:DMG: } - [1645776797.704270][4674:4679] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0002 DataVersion: 3781469718 - [1645776797.704349][4674:4679] CHIP:TOO: OnMode: 0" + [1645776797.704270][4674:4679] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002DataVersion: 3781469718 + [1645776797.704349][4674:4679] CHIP:TOO: OnMode: 0 disabled: true - label: "TH reads the StartUpMode attribute from the DUT" - verification: - "./chip-tool modeselect read start-up-mode 1 1 + verification: | + ./chip-tool modeselect read start-up-mode 1 1 [1645776818.699192][4682:4687] CHIP:DMG: ReportDataMessage = [1645776818.699226][4682:4687] CHIP:DMG: { - [1645776818.699255][4682:4687] CHIP:DMG: AttributeReportIBs = - [1645776818.699292][4682:4687] CHIP:DMG: [ - [1645776818.699322][4682:4687] CHIP:DMG: AttributeReportIB = - [1645776818.699369][4682:4687] CHIP:DMG: { - [1645776818.699404][4682:4687] CHIP:DMG: AttributeDataIB = - [1645776818.699451][4682:4687] CHIP:DMG: { - [1645776818.699496][4682:4687] CHIP:DMG: DataVersion = 0xe164a616, - [1645776818.699536][4682:4687] CHIP:DMG: AttributePathIB = - [1645776818.699574][4682:4687] CHIP:DMG: { - [1645776818.699623][4682:4687] CHIP:DMG: Endpoint = 0x1, - [1645776818.699667][4682:4687] CHIP:DMG: Cluster = 0x50, - [1645776818.699712][4682:4687] CHIP:DMG: Attribute = 0x0000_0003, - [1645776818.699748][4682:4687] CHIP:DMG: } + [1645776818.699255][4682:4687] CHIP:DMG: AttributeReportIBs = + [1645776818.699292][4682:4687] CHIP:DMG: [ + [1645776818.699322][4682:4687] CHIP:DMG: AttributeReportIB = + [1645776818.699369][4682:4687] CHIP:DMG: { + [1645776818.699404][4682:4687] CHIP:DMG: AttributeDataIB = + [1645776818.699451][4682:4687] CHIP:DMG: { + [1645776818.699496][4682:4687] CHIP:DMG: DataVersion = 0xe164a616, + [1645776818.699536][4682:4687] CHIP:DMG: AttributePathIB = + [1645776818.699574][4682:4687] CHIP:DMG: { + [1645776818.699623][4682:4687] CHIP:DMG: Endpoint = 0x1, + [1645776818.699667][4682:4687] CHIP:DMG: Cluster = 0x50, + [1645776818.699712][4682:4687] CHIP:DMG: Attribute = 0x0000_0003, + [1645776818.699748][4682:4687] CHIP:DMG: } [1645776818.699787][4682:4687] CHIP:DMG: - [1645776818.699825][4682:4687] CHIP:DMG: Data = 0, - [1645776818.699860][4682:4687] CHIP:DMG: }, + [1645776818.699825][4682:4687] CHIP:DMG: Data = 0, + [1645776818.699860][4682:4687] CHIP:DMG: }, [1645776818.699898][4682:4687] CHIP:DMG: - [1645776818.699932][4682:4687] CHIP:DMG: }, + [1645776818.699932][4682:4687] CHIP:DMG: }, [1645776818.699970][4682:4687] CHIP:DMG: - [1645776818.699999][4682:4687] CHIP:DMG: ], + [1645776818.699999][4682:4687] CHIP:DMG: ], [1645776818.700035][4682:4687] CHIP:DMG: - [1645776818.700065][4682:4687] CHIP:DMG: SuppressResponse = true, - [1645776818.700095][4682:4687] CHIP:DMG: InteractionModelRevision = 1 + [1645776818.700065][4682:4687] CHIP:DMG: SuppressResponse = true, + [1645776818.700095][4682:4687] CHIP:DMG: InteractionModelRevision = 1 [1645776818.700127][4682:4687] CHIP:DMG: } - [1645776818.700294][4682:4687] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0003 DataVersion: 3781469718 - [1645776818.700374][4682:4687] CHIP:TOO: StartUpMode: 0" + [1645776818.700294][4682:4687] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003DataVersion: 3781469718 + [1645776818.700374][4682:4687] CHIP:TOO: StartUpMode: 0 disabled: true - label: "TH reads the Description attribute from the DUT" - verification: - "./chip-tool modeselect read description 1 1 + verification: | + ./chip-tool modeselect read description 1 1 [1645776853.154340][4691:4696] CHIP:DMG: ReportDataMessage = [1645776853.154374][4691:4696] CHIP:DMG: { - [1645776853.154402][4691:4696] CHIP:DMG: AttributeReportIBs = - [1645776853.154440][4691:4696] CHIP:DMG: [ - [1645776853.154470][4691:4696] CHIP:DMG: AttributeReportIB = - [1645776853.154514][4691:4696] CHIP:DMG: { - [1645776853.154569][4691:4696] CHIP:DMG: AttributeDataIB = - [1645776853.154633][4691:4696] CHIP:DMG: { - [1645776853.154678][4691:4696] CHIP:DMG: DataVersion = 0xe164a616, - [1645776853.154750][4691:4696] CHIP:DMG: AttributePathIB = - [1645776853.154813][4691:4696] CHIP:DMG: { - [1645776853.154875][4691:4696] CHIP:DMG: Endpoint = 0x1, - [1645776853.154950][4691:4696] CHIP:DMG: Cluster = 0x50, - [1645776853.155011][4691:4696] CHIP:DMG: Attribute = 0x0000_0004, - [1645776853.155068][4691:4696] CHIP:DMG: } + [1645776853.154402][4691:4696] CHIP:DMG: AttributeReportIBs = + [1645776853.154440][4691:4696] CHIP:DMG: [ + [1645776853.154470][4691:4696] CHIP:DMG: AttributeReportIB = + [1645776853.154514][4691:4696] CHIP:DMG: { + [1645776853.154569][4691:4696] CHIP:DMG: AttributeDataIB = + [1645776853.154633][4691:4696] CHIP:DMG: { + [1645776853.154678][4691:4696] CHIP:DMG: DataVersion = 0xe164a616, + [1645776853.154750][4691:4696] CHIP:DMG: AttributePathIB = + [1645776853.154813][4691:4696] CHIP:DMG: { + [1645776853.154875][4691:4696] CHIP:DMG: Endpoint = 0x1, + [1645776853.154950][4691:4696] CHIP:DMG: Cluster = 0x50, + [1645776853.155011][4691:4696] CHIP:DMG: Attribute = 0x0000_0004, + [1645776853.155068][4691:4696] CHIP:DMG: } [1645776853.155139][4691:4696] CHIP:DMG: - [1645776853.155182][4691:4696] CHIP:DMG: Data = Coffee, - [1645776853.155250][4691:4696] CHIP:DMG: }, + [1645776853.155182][4691:4696] CHIP:DMG: Data = "Coffee", + [1645776853.155250][4691:4696] CHIP:DMG: }, [1645776853.155318][4691:4696] CHIP:DMG: - [1645776853.155351][4691:4696] CHIP:DMG: }, + [1645776853.155351][4691:4696] CHIP:DMG: }, [1645776853.155411][4691:4696] CHIP:DMG: - [1645776853.155441][4691:4696] CHIP:DMG: ], + [1645776853.155441][4691:4696] CHIP:DMG: ], [1645776853.155478][4691:4696] CHIP:DMG: - [1645776853.155531][4691:4696] CHIP:DMG: SuppressResponse = true, - [1645776853.155563][4691:4696] CHIP:DMG: InteractionModelRevision = 1 + [1645776853.155531][4691:4696] CHIP:DMG: SuppressResponse = true, + [1645776853.155563][4691:4696] CHIP:DMG: InteractionModelRevision = 1 [1645776853.155591][4691:4696] CHIP:DMG: } - [1645776853.155757][4691:4696] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0004 DataVersion: 3781469718 - [1645776853.155812][4691:4696] CHIP:TOO: Description: Coffee" + [1645776853.155757][4691:4696] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0004DataVersion: 3781469718 + [1645776853.155812][4691:4696] CHIP:TOO: Description: Coffee disabled: true - label: "TH reads the StandardNamespace attribute from the DUT" - verification: "Not supported by chip-tool" + verification: | + Not supported by chip-tool disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml b/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml index ce52b3599d6ae3..7456569cb93365 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml @@ -21,132 +21,132 @@ config: tests: - label: "TH reads the SupportedModes attribute from the DUT" - verification: - "./chip-tool modeselect read supported-modes 1 1 - [1645776884.203383][4698:4703] CHIP:TOO: SupportedModes: 3 entries - [1645776884.203448][4698:4703] CHIP:TOO: [1]: { - [1645776884.203473][4698:4703] CHIP:TOO: Label: Black - [1645776884.203497][4698:4703] CHIP:TOO: Mode: 0 - [1645776884.203520][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203544][4698:4703] CHIP:TOO: } - [1645776884.203574][4698:4703] CHIP:TOO: [2]: { - [1645776884.203597][4698:4703] CHIP:TOO: Label: Cappuccino - [1645776884.203619][4698:4703] CHIP:TOO: Mode: 4 - [1645776884.203641][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203663][4698:4703] CHIP:TOO: } - [1645776884.203691][4698:4703] CHIP:TOO: [3]: { - [1645776884.203714][4698:4703] CHIP:TOO: Label: Espresso - [1645776884.203735][4698:4703] CHIP:TOO: Mode: 7 - [1645776884.203757][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203779][4698:4703] CHIP:TOO: }" + verification: | + ./chip-tool modeselect read supported-modes 1 1 + [1645776884.203383][4698:4703] CHIP:TOO: SupportedModes: 3 entries + [1645776884.203448][4698:4703] CHIP:TOO: [1]: { + [1645776884.203473][4698:4703] CHIP:TOO: Label: Black + [1645776884.203497][4698:4703] CHIP:TOO: Mode: 0 + [1645776884.203520][4698:4703] CHIP:TOO: SemanticTag: 0 + [1645776884.203544][4698:4703] CHIP:TOO: } + [1645776884.203574][4698:4703] CHIP:TOO: [2]: { + [1645776884.203597][4698:4703] CHIP:TOO: Label: Cappuccino + [1645776884.203619][4698:4703] CHIP:TOO: Mode: 4 + [1645776884.203641][4698:4703] CHIP:TOO: SemanticTag: 0 + [1645776884.203663][4698:4703] CHIP:TOO: } + [1645776884.203691][4698:4703] CHIP:TOO: [3]: { + [1645776884.203714][4698:4703] CHIP:TOO: Label: Espresso + [1645776884.203735][4698:4703] CHIP:TOO: Mode: 7 + [1645776884.203757][4698:4703] CHIP:TOO: SemanticTag: 0 + [1645776884.203779][4698:4703] CHIP:TOO: } disabled: true - label: "TH sends a ChangeToMode command to the DUT with a integer from the list in step 1." - verification: - "./chip-tool modeselect change-to-mode 4 1 1 + verification: | + ./chip-tool modeselect change-to-mode 4 1 1 [1645776998.880151][4739:4744] CHIP:DMG: InvokeResponseMessage = [1645776998.880182][4739:4744] CHIP:DMG: { - [1645776998.880233][4739:4744] CHIP:DMG: suppressResponse = false, - [1645776998.880270][4739:4744] CHIP:DMG: InvokeResponseIBs = - [1645776998.880309][4739:4744] CHIP:DMG: [ - [1645776998.880340][4739:4744] CHIP:DMG: InvokeResponseIB = - [1645776998.880386][4739:4744] CHIP:DMG: { - [1645776998.880418][4739:4744] CHIP:DMG: CommandStatusIB = - [1645776998.880476][4739:4744] CHIP:DMG: { - [1645776998.880529][4739:4744] CHIP:DMG: CommandPathIB = - [1645776998.880586][4739:4744] CHIP:DMG: { - [1645776998.880671][4739:4744] CHIP:DMG: EndpointId = 0x1, - [1645776998.880734][4739:4744] CHIP:DMG: ClusterId = 0x50, - [1645776998.880778][4739:4744] CHIP:DMG: CommandId = 0x0, - [1645776998.880873][4739:4744] CHIP:DMG: }, - [1645776998.880924][4739:4744] CHIP:DMG:[1645776998.880987][4739:4744] - CHIP:DMG: StatusIB = [1645776998.881057][4739:4744] CHIP:DMG: { - [1645776998.881102][4739:4744] CHIP:DMG: status = 0x0, - [1645776998.881168][4739:4744] CHIP:DMG: }, + [1645776998.880233][4739:4744] CHIP:DMG: suppressResponse = false, + [1645776998.880270][4739:4744] CHIP:DMG: InvokeResponseIBs = + [1645776998.880309][4739:4744] CHIP:DMG: [ + [1645776998.880340][4739:4744] CHIP:DMG: InvokeResponseIB = + [1645776998.880386][4739:4744] CHIP:DMG: { + [1645776998.880418][4739:4744] CHIP:DMG: CommandStatusIB = + [1645776998.880476][4739:4744] CHIP:DMG: { + [1645776998.880529][4739:4744] CHIP:DMG: CommandPathIB = + [1645776998.880586][4739:4744] CHIP:DMG: { + [1645776998.880671][4739:4744] CHIP:DMG: EndpointId = 0x1, + [1645776998.880734][4739:4744] CHIP:DMG: ClusterId = 0x50, + [1645776998.880778][4739:4744] CHIP:DMG: CommandId = 0x0, + [1645776998.880873][4739:4744] CHIP:DMG: }, + [1645776998.880924][4739:4744] CHIP:DMG: + [1645776998.880987][4739:4744] CHIP:DMG: StatusIB = + [1645776998.881057][4739:4744] CHIP:DMG: { + [1645776998.881102][4739:4744] CHIP:DMG: status = 0x0, + [1645776998.881168][4739:4744] CHIP:DMG: }, [1645776998.881210][4739:4744] CHIP:DMG: - [1645776998.881245][4739:4744] CHIP:DMG: }, + [1645776998.881245][4739:4744] CHIP:DMG: }, [1645776998.881286][4739:4744] CHIP:DMG: - [1645776998.881320][4739:4744] CHIP:DMG: }, + [1645776998.881320][4739:4744] CHIP:DMG: }, [1645776998.881360][4739:4744] CHIP:DMG: - [1645776998.881388][4739:4744] CHIP:DMG: ], + [1645776998.881388][4739:4744] CHIP:DMG: ], [1645776998.881425][4739:4744] CHIP:DMG: - [1645776998.881454][4739:4744] CHIP:DMG: InteractionModelRevision = 1 - [1645776998.881482][4739:4744] CHIP:DMG: }," + [1645776998.881454][4739:4744] CHIP:DMG: InteractionModelRevision = 1 + [1645776998.881482][4739:4744] CHIP:DMG: }, disabled: true - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 - [1645777197.117853][4759:4764] CHIP:DMG: ReportDataMessage - =[1645777197.117885][4759:4764] CHIP:DMG: { - [1645777197.117910][4759:4764] CHIP:DMG: AttributeReportIBs = - [1645777197.117943][4759:4764] CHIP:DMG: [ - [1645777197.117969][4759:4764] CHIP:DMG: AttributeReportIB = - [1645777197.118004][4759:4764] CHIP:DMG: { - [1645777197.118036][4759:4764] CHIP:DMG: AttributeDataIB = - [1645777197.118068][4759:4764] CHIP:DMG: { - [1645777197.118100][4759:4764] CHIP:DMG: DataVersion = 0xe164a618, - [1645777197.118136][4759:4764] CHIP:DMG: AttributePathIB = - [1645777197.118167][4759:4764] CHIP:DMG: { - [1645777197.118198][4759:4764] CHIP:DMG: Endpoint = 0x1, - [1645777197.118232][4759:4764] CHIP:DMG: Cluster = 0x50, - [1645777197.118271][4759:4764] CHIP:DMG: Attribute = 0x0000_0000, - [1645777197.118302][4759:4764] CHIP:DMG: } - [1645777197.118336][4759:4764] CHIP:DMG:[1645777197.118369][4759:4764] - CHIP:DMG: Data = 4, [1645777197.118406][4759:4764] CHIP:DMG: }, + verification: | + ./chip-tool modeselect read current-mode 1 1 + [1645777197.117853][4759:4764] CHIP:DMG: ReportDataMessage = + [1645777197.117885][4759:4764] CHIP:DMG: { + [1645777197.117910][4759:4764] CHIP:DMG: AttributeReportIBs = + [1645777197.117943][4759:4764] CHIP:DMG: [ + [1645777197.117969][4759:4764] CHIP:DMG: AttributeReportIB = + [1645777197.118004][4759:4764] CHIP:DMG: { + [1645777197.118036][4759:4764] CHIP:DMG: AttributeDataIB = + [1645777197.118068][4759:4764] CHIP:DMG: { + [1645777197.118100][4759:4764] CHIP:DMG: DataVersion = 0xe164a618, + [1645777197.118136][4759:4764] CHIP:DMG: AttributePathIB = + [1645777197.118167][4759:4764] CHIP:DMG: { + [1645777197.118198][4759:4764] CHIP:DMG: Endpoint = 0x1, + [1645777197.118232][4759:4764] CHIP:DMG: Cluster = 0x50, + [1645777197.118271][4759:4764] CHIP:DMG: Attribute = 0x0000_0000, + [1645777197.118302][4759:4764] CHIP:DMG: } + [1645777197.118336][4759:4764] CHIP:DMG: + [1645777197.118369][4759:4764] CHIP:DMG: Data = 4, + [1645777197.118406][4759:4764] CHIP:DMG: }, [1645777197.118439][4759:4764] CHIP:DMG: - [1645777197.118469][4759:4764] CHIP:DMG: }, + [1645777197.118469][4759:4764] CHIP:DMG: }, [1645777197.118501][4759:4764] CHIP:DMG: - [1645777197.118526][4759:4764] CHIP:DMG: ], + [1645777197.118526][4759:4764] CHIP:DMG: ], [1645777197.118559][4759:4764] CHIP:DMG: - [1645777197.118585][4759:4764] CHIP:DMG: SuppressResponse = true, - [1645777197.118618][4759:4764] CHIP:DMG: InteractionModelRevision = 1 + [1645777197.118585][4759:4764] CHIP:DMG: SuppressResponse = true, + [1645777197.118618][4759:4764] CHIP:DMG: InteractionModelRevision = 1 [1645777197.118647][4759:4764] CHIP:DMG: } - [1645777197.118795][4759:4764] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469720 - [1645777197.118866][4759:4764] CHIP:TOO: CurrentMode: 4" + [1645777197.118795][4759:4764] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469720 + [1645777197.118866][4759:4764] CHIP:TOO: CurrentMode: 4 disabled: true - label: "TH sends a Change to Mode command to the DUT with a integer that is not in the list in step 1." - verification: - "./chip-tool modeselect change-to-mode 2 1 1 + verification: | + ./chip-tool modeselect change-to-mode 2 1 1 [1645777235.574575][4770:4775] CHIP:DMG: ICR moving to [ResponseRe] [1645777235.574631][4770:4775] CHIP:DMG: InvokeResponseMessage = [1645777235.574663][4770:4775] CHIP:DMG: { - [1645777235.574690][4770:4775] CHIP:DMG: suppressResponse = false, - [1645777235.574726][4770:4775] CHIP:DMG: InvokeResponseIBs = - [1645777235.574766][4770:4775] CHIP:DMG: [ - [1645777235.574804][4770:4775] CHIP:DMG: InvokeResponseIB = - [1645777235.574844][4770:4775] CHIP:DMG: { - [1645777235.574877][4770:4775] CHIP:DMG: CommandStatusIB = - [1645777235.574914][4770:4775] CHIP:DMG: { - [1645777235.574944][4770:4775] CHIP:DMG: CommandPathIB = - [1645777235.574991][4770:4775] CHIP:DMG: { - [1645777235.575031][4770:4775] CHIP:DMG: EndpointId = 0x1, - [1645777235.575066][4770:4775] CHIP:DMG: ClusterId = 0x50, - [1645777235.575100][4770:4775] CHIP:DMG: CommandId = 0x0, - [1645777235.575131][4770:4775] CHIP:DMG: }, + [1645777235.574690][4770:4775] CHIP:DMG: suppressResponse = false, + [1645777235.574726][4770:4775] CHIP:DMG: InvokeResponseIBs = + [1645777235.574766][4770:4775] CHIP:DMG: [ + [1645777235.574804][4770:4775] CHIP:DMG: InvokeResponseIB = + [1645777235.574844][4770:4775] CHIP:DMG: { + [1645777235.574877][4770:4775] CHIP:DMG: CommandStatusIB = + [1645777235.574914][4770:4775] CHIP:DMG: { + [1645777235.574944][4770:4775] CHIP:DMG: CommandPathIB = + [1645777235.574991][4770:4775] CHIP:DMG: { + [1645777235.575031][4770:4775] CHIP:DMG: EndpointId = 0x1, + [1645777235.575066][4770:4775] CHIP:DMG: ClusterId = 0x50, + [1645777235.575100][4770:4775] CHIP:DMG: CommandId = 0x0, + [1645777235.575131][4770:4775] CHIP:DMG: }, [1645777235.575174][4770:4775] CHIP:DMG: - [1645777235.575214][4770:4775] CHIP:DMG: StatusIB = - [1645777235.575257][4770:4775] CHIP:DMG: { - [1645777235.575301][4770:4775] CHIP:DMG: status = 0x87, - [1645777235.575341][4770:4775] CHIP:DMG: }, + [1645777235.575214][4770:4775] CHIP:DMG: StatusIB = + [1645777235.575257][4770:4775] CHIP:DMG: { + [1645777235.575301][4770:4775] CHIP:DMG: status = 0x87, + [1645777235.575341][4770:4775] CHIP:DMG: }, [1645777235.575386][4770:4775] CHIP:DMG: - [1645777235.575429][4770:4775] CHIP:DMG: }, + [1645777235.575429][4770:4775] CHIP:DMG: }, [1645777235.575472][4770:4775] CHIP:DMG: - [1645777235.575507][4770:4775] CHIP:DMG: }, + [1645777235.575507][4770:4775] CHIP:DMG: }, [1645777235.575549][4770:4775] CHIP:DMG: - [1645777235.575578][4770:4775] CHIP:DMG: ], + [1645777235.575578][4770:4775] CHIP:DMG: ], [1645777235.575615][4770:4775] CHIP:DMG: - [1645777235.575644][4770:4775] CHIP:DMG: InteractionModelRevision = 1 + [1645777235.575644][4770:4775] CHIP:DMG: InteractionModelRevision = 1 [1645777235.575675][4770:4775] CHIP:DMG: }, - [1645777235.575751][4770:4775] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 - Status=0x87 [1645777235.575793][4770:4775] CHIP:TOO: Error: IM Error - 0x00000587: General error: 0x87 *NOTE*: Chip-tool error is currently - incorrect" + [1645777235.575751][4770:4775] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x87 + [1645777235.575793][4770:4775] CHIP:TOO: Error: IM Error 0x00000587: General error: 0x87 + + *NOTE*: Chip-tool error is currently incorrect disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml index ad982d63522247..467c66c4e5feef 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml @@ -1,80 +1,79 @@ -# 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: 78.2.2. [TC-MOD-2.2] ChangeToMode Verification (DUT as Client) - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "DUT reads the SupportedModes attribute from the TH" - verification: - "./chip-tool modeselect read supported-modes 1 1 - [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries - [1645776742.669546][4661:4666] CHIP:TOO: [1]: - {[1645776742.669588][4661:4666] CHIP:TOO: Label: Black - [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 - [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669661][4661:4666] CHIP:TOO: } - [1645776742.669692][4661:4666] CHIP:TOO: [2]: { - [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino - [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 - [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669779][4661:4666] CHIP:TOO: } - [1645776742.669808][4661:4666] CHIP:TOO: [3]: { - [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso - [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 - [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669896][4661:4666] CHIP:TOO: }" - disabled: true - - - label: - "DUT sends a ChangeToMode command to the TH with a integer from the - list in step 1." - verification: "./chip-tool modeselect change-to-mode 4 1 1 - [1645778189.043893][4888:4893] CHIP:DMG: InvokeResponseMessage = - [1645778189.043924][4888:4893] CHIP:DMG: { - [1645778189.043953][4888:4893] CHIP:DMG: suppressResponse = false, - [1645778189.043986][4888:4893] CHIP:DMG: InvokeResponseIBs = - [1645778189.044027][4888:4893] CHIP:DMG: [ - [1645778189.044056][4888:4893] CHIP:DMG: InvokeResponseIB = - [1645778189.044100][4888:4893] CHIP:DMG: { - [1645778189.044132][4888:4893] CHIP:DMG: CommandStatusIB - =[1645778189.044171][4888:4893] CHIP:DMG: { - [1645778189.044203][4888:4893] CHIP:DMG: CommandPathIB = - [1645778189.044239][4888:4893] CHIP:DMG: { - [1645778189.044277][4888:4893] CHIP:DMG: EndpointId\ - = 0x1, [1645778189.044319][4888:4893] CHIP:DMG: ClusterId = 0x50, - [1645778189.044361][4888:4893] CHIP:DMG: CommandId = 0x0, - [1645778189.044394][4888:4893] CHIP:DMG: - },[1645778189.044435][4888:4893] CHIP:DMG: - [1645778189.044472][4888:4893] CHIP:DMG: StatusIB = - [1645778189.044519][4888:4893] CHIP:DMG: { - [1645778189.044558][4888:4893] CHIP:DMG: status = 0x0, - [1645778189.044603][4888:4893] CHIP:DMG: - },[1645778189.044650][4888:4893] CHIP:DMG: - [1645778189.044686][4888:4893] CHIP:DMG: }, - [1645778189.044724][4888:4893] CHIP:DMG: - [1645778189.044754][4888:4893] CHIP:DMG: }, - [1645778189.044793][4888:4893] CHIP:DMG: - [1645778189.044821][4888:4893] CHIP:DMG: ], - [1645778189.044896][4888:4893] CHIP:DMG: - [1645778189.044925][4888:4893] CHIP:DMG: InteractionModelRevision = 1 - [1645778189.044954][4888:4893] CHIP:DMG: }, - [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 - Status=0x0" - disabled: true +# 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: 78.2.2. [TC-MOD-2.2] ChangeToMode Verification (DUT as Client) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "DUT reads the SupportedModes attribute from the TH" + verification: | + ./chip-tool modeselect read supported-modes 1 1 + [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries + [1645776742.669546][4661:4666] CHIP:TOO: [1]: { + [1645776742.669588][4661:4666] CHIP:TOO: Label: Black + [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 + [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669661][4661:4666] CHIP:TOO: } + [1645776742.669692][4661:4666] CHIP:TOO: [2]: { + [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino + [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 + [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669779][4661:4666] CHIP:TOO: } + [1645776742.669808][4661:4666] CHIP:TOO: [3]: { + [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso + [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 + [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669896][4661:4666] CHIP:TOO: } + disabled: true + + - label: + "DUT sends a ChangeToMode command to the TH with a integer from the + list in step 1." + verification: | + ./chip-tool modeselect change-to-mode 4 1 1 + [1645778189.043893][4888:4893] CHIP:DMG: InvokeResponseMessage = + [1645778189.043924][4888:4893] CHIP:DMG: { + [1645778189.043953][4888:4893] CHIP:DMG: suppressResponse = false, + [1645778189.043986][4888:4893] CHIP:DMG: InvokeResponseIBs = + [1645778189.044027][4888:4893] CHIP:DMG: [ + [1645778189.044056][4888:4893] CHIP:DMG: InvokeResponseIB = + [1645778189.044100][4888:4893] CHIP:DMG: { + [1645778189.044132][4888:4893] CHIP:DMG: CommandStatusIB = + [1645778189.044171][4888:4893] CHIP:DMG: { + [1645778189.044203][4888:4893] CHIP:DMG: CommandPathIB = + [1645778189.044239][4888:4893] CHIP:DMG: { + [1645778189.044277][4888:4893] CHIP:DMG: EndpointId = 0x1, + [1645778189.044319][4888:4893] CHIP:DMG: ClusterId = 0x50, + [1645778189.044361][4888:4893] CHIP:DMG: CommandId = 0x0, + [1645778189.044394][4888:4893] CHIP:DMG: }, + [1645778189.044435][4888:4893] CHIP:DMG: + [1645778189.044472][4888:4893] CHIP:DMG: StatusIB = + [1645778189.044519][4888:4893] CHIP:DMG: { + [1645778189.044558][4888:4893] CHIP:DMG: status = 0x0, + [1645778189.044603][4888:4893] CHIP:DMG: }, + [1645778189.044650][4888:4893] CHIP:DMG: + [1645778189.044686][4888:4893] CHIP:DMG: }, + [1645778189.044724][4888:4893] CHIP:DMG: + [1645778189.044754][4888:4893] CHIP:DMG: }, + [1645778189.044793][4888:4893] CHIP:DMG: + [1645778189.044821][4888:4893] CHIP:DMG: ], + [1645778189.044896][4888:4893] CHIP:DMG: + [1645778189.044925][4888:4893] CHIP:DMG: InteractionModelRevision = 1 + [1645778189.044954][4888:4893] CHIP:DMG: }, + [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml index 20381f2bea7937..0335b64d546aef 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml @@ -21,242 +21,236 @@ config: tests: - label: "TH reads the OnMode attribute from the DUT" - verification: - "./chip-tool modeselect read on-mode 1 1 + verification: | + ./chip-tool modeselect read on-mode 1 1 [1645777342.720928][4783:4788] CHIP:DMG: ReportDataMessage = [1645777342.720955][4783:4788] CHIP:DMG: { - [1645777342.720976][4783:4788] CHIP:DMG: AttributeReportIBs = - [1645777342.721011][4783:4788] CHIP:DMG: [ - [1645777342.721035][4783:4788] CHIP:DMG: AttributeReportIB = - [1645777342.721072][4783:4788] CHIP:DMG: { - [1645777342.721100][4783:4788] CHIP:DMG: AttributeDataIB = - [1645777342.721134][4783:4788] CHIP:DMG: { - [1645777342.721167][4783:4788] CHIP:DMG: DataVersion = 0xe164a618, - [1645777342.721201][4783:4788] CHIP:DMG: AttributePathIB = - [1645777342.721235][4783:4788] CHIP:DMG: { - [1645777342.721271][4783:4788] CHIP:DMG: Endpoint = 0x1, - [1645777342.721307][4783:4788] CHIP:DMG: Cluster = 0x50, - [1645777342.721344][4783:4788] CHIP:DMG: Attribute = 0x0000_0002, - [1645777342.721378][4783:4788] CHIP:DMG: } + [1645777342.720976][4783:4788] CHIP:DMG: AttributeReportIBs = + [1645777342.721011][4783:4788] CHIP:DMG: [ + [1645777342.721035][4783:4788] CHIP:DMG: AttributeReportIB = + [1645777342.721072][4783:4788] CHIP:DMG: { + [1645777342.721100][4783:4788] CHIP:DMG: AttributeDataIB = + [1645777342.721134][4783:4788] CHIP:DMG: { + [1645777342.721167][4783:4788] CHIP:DMG: DataVersion = 0xe164a618, + [1645777342.721201][4783:4788] CHIP:DMG: AttributePathIB = + [1645777342.721235][4783:4788] CHIP:DMG: { + [1645777342.721271][4783:4788] CHIP:DMG: Endpoint = 0x1, + [1645777342.721307][4783:4788] CHIP:DMG: Cluster = 0x50, + [1645777342.721344][4783:4788] CHIP:DMG: Attribute = 0x0000_0002, + [1645777342.721378][4783:4788] CHIP:DMG: } [1645777342.721415][4783:4788] CHIP:DMG: - [1645777342.721452][4783:4788] CHIP:DMG: Data = 0, - [1645777342.721488][4783:4788] CHIP:DMG: }, + [1645777342.721452][4783:4788] CHIP:DMG: Data = 0, + [1645777342.721488][4783:4788] CHIP:DMG: }, [1645777342.721525][4783:4788] CHIP:DMG: - [1645777342.721555][4783:4788] CHIP:DMG: }, + [1645777342.721555][4783:4788] CHIP:DMG: }, [1645777342.721590][4783:4788] CHIP:DMG: - [1645777342.721615][4783:4788] CHIP:DMG: ], + [1645777342.721615][4783:4788] CHIP:DMG: ], [1645777342.721648][4783:4788] CHIP:DMG: - [1645777342.721672][4783:4788] CHIP:DMG: SuppressResponse = true, - [1645777342.721698][4783:4788] CHIP:DMG: InteractionModelRevision = 1 + [1645777342.721672][4783:4788] CHIP:DMG: SuppressResponse = true, + [1645777342.721698][4783:4788] CHIP:DMG: InteractionModelRevision = 1 [1645777342.721723][4783:4788] CHIP:DMG: } - [1645777342.721860][4783:4788] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0002 DataVersion: 3781469720 - [1645777342.721929][4783:4788] CHIP:TOO: OnMode: 0" + [1645777342.721860][4783:4788] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002DataVersion: 3781469720 + [1645777342.721929][4783:4788] CHIP:TOO: OnMode: 0 disabled: true - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 + verification: | + ./chip-tool modeselect read current-mode 1 1 [1645777371.981905][4789:4794] CHIP:DMG: ReportDataMessage = [1645777371.981941][4789:4794] CHIP:DMG: { - [1645777371.981974][4789:4794] CHIP:DMG: AttributeReportIBs = - [1645777371.982015][4789:4794] CHIP:DMG: [ - [1645777371.982046][4789:4794] CHIP:DMG: AttributeReportIB = - [1645777371.982092][4789:4794] CHIP:DMG: { - [1645777371.982128][4789:4794] CHIP:DMG: AttributeDataIB = - [1645777371.982174][4789:4794] CHIP:DMG: { - [1645777371.982218][4789:4794] CHIP:DMG: DataVersion = 0xe164a618, - [1645777371.982267][4789:4794] CHIP:DMG: AttributePathIB = - [1645777371.982310][4789:4794] CHIP:DMG: { - [1645777371.982363][4789:4794] CHIP:DMG: Endpoint = 0x1, - [1645777371.982419][4789:4794] CHIP:DMG: Cluster = 0x50, - [1645777371.982468][4789:4794] CHIP:DMG: Attribute = 0x0000_0000, - [1645777371.982512][4789:4794] CHIP:DMG: } + [1645777371.981974][4789:4794] CHIP:DMG: AttributeReportIBs = + [1645777371.982015][4789:4794] CHIP:DMG: [ + [1645777371.982046][4789:4794] CHIP:DMG: AttributeReportIB = + [1645777371.982092][4789:4794] CHIP:DMG: { + [1645777371.982128][4789:4794] CHIP:DMG: AttributeDataIB = + [1645777371.982174][4789:4794] CHIP:DMG: { + [1645777371.982218][4789:4794] CHIP:DMG: DataVersion = 0xe164a618, + [1645777371.982267][4789:4794] CHIP:DMG: AttributePathIB = + [1645777371.982310][4789:4794] CHIP:DMG: { + [1645777371.982363][4789:4794] CHIP:DMG: Endpoint = 0x1, + [1645777371.982419][4789:4794] CHIP:DMG: Cluster = 0x50, + [1645777371.982468][4789:4794] CHIP:DMG: Attribute = 0x0000_0000, + [1645777371.982512][4789:4794] CHIP:DMG: } [1645777371.982566][4789:4794] CHIP:DMG: - [1645777371.982612][4789:4794] CHIP:DMG: Data = 4, - [1645777371.982655][4789:4794] CHIP:DMG: }, + [1645777371.982612][4789:4794] CHIP:DMG: Data = 4, + [1645777371.982655][4789:4794] CHIP:DMG: }, [1645777371.982698][4789:4794] CHIP:DMG: - [1645777371.982734][4789:4794] CHIP:DMG: }, + [1645777371.982734][4789:4794] CHIP:DMG: }, [1645777371.982775][4789:4794] CHIP:DMG: - [1645777371.982809][4789:4794] CHIP:DMG: ], + [1645777371.982809][4789:4794] CHIP:DMG: ], [1645777371.982849][4789:4794] CHIP:DMG: - [1645777371.982882][4789:4794] CHIP:DMG: SuppressResponse = true, - [1645777371.982914][4789:4794] CHIP:DMG: InteractionModelRevision = 1 + [1645777371.982882][4789:4794] CHIP:DMG: SuppressResponse = true, + [1645777371.982914][4789:4794] CHIP:DMG: InteractionModelRevision = 1 [1645777371.982945][4789:4794] CHIP:DMG: } - [1645777371.983122][4789:4794] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469720 - [1645777371.983204][4789:4794] CHIP:TOO: CurrentMode: 4" + [1645777371.983122][4789:4794] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469720 + [1645777371.983204][4789:4794] CHIP:TOO: CurrentMode: 4 disabled: true - label: "If the OnMode and CurrentMode attributes have the same value, proceed to step 2c, Otherwise proceed to step 3a." - verification: "" + verification: | + disabled: true - label: "DUT reads the SupportedModes attribute from the TH" - verification: - "./chip-tool modeselect read supported-modes 1 1 - [1645776884.203383][4698:4703] CHIP:TOO: SupportedModes: 3 entries - [1645776884.203448][4698:4703] CHIP:TOO: [1]: { - [1645776884.203473][4698:4703] CHIP:TOO: Label: Black - [1645776884.203497][4698:4703] CHIP:TOO: Mode: 0 - [1645776884.203520][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203544][4698:4703] CHIP:TOO: } - [1645776884.203574][4698:4703] CHIP:TOO: [2]: { - [1645776884.203597][4698:4703] CHIP:TOO: Label: Cappuccino - [1645776884.203619][4698:4703] CHIP:TOO: Mode: 4 - [1645776884.203641][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203663][4698:4703] CHIP:TOO: } - [1645776884.203691][4698:4703] CHIP:TOO: [3]: { - [1645776884.203714][4698:4703] CHIP:TOO: Label: Espresso - [1645776884.203735][4698:4703] CHIP:TOO: Mode: 7 - [1645776884.203757][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203779][4698:4703] CHIP:TOO: }" + verification: | + ./chip-tool modeselect read supported-modes 1 1 + [1645776884.203383][4698:4703] CHIP:TOO: SupportedModes: 3 entries + [1645776884.203448][4698:4703] CHIP:TOO: [1]: { + [1645776884.203473][4698:4703] CHIP:TOO: Label: Black + [1645776884.203497][4698:4703] CHIP:TOO: Mode: 0 + [1645776884.203520][4698:4703] CHIP:TOO: SemanticTag: 0 + [1645776884.203544][4698:4703] CHIP:TOO: } + [1645776884.203574][4698:4703] CHIP:TOO: [2]: { + [1645776884.203597][4698:4703] CHIP:TOO: Label: Cappuccino + [1645776884.203619][4698:4703] CHIP:TOO: Mode: 4 + [1645776884.203641][4698:4703] CHIP:TOO: SemanticTag: 0 + [1645776884.203663][4698:4703] CHIP:TOO: } + [1645776884.203691][4698:4703] CHIP:TOO: [3]: { + [1645776884.203714][4698:4703] CHIP:TOO: Label: Espresso + [1645776884.203735][4698:4703] CHIP:TOO: Mode: 7 + [1645776884.203757][4698:4703] CHIP:TOO: SemanticTag: 0 + [1645776884.203779][4698:4703] CHIP:TOO: } disabled: true - label: "Select a value from the list in step 2c with a different value than the StartUpMode value read in step 1. TH sends a ChangeToMode command to the TH with the selected value." - verification: - "./chip-tool modeselect change-to-mode 7 1 1 + verification: | + ./chip-tool modeselect change-to-mode 7 1 1 [1645777419.710445][4798:4803] CHIP:DMG: InvokeResponseMessage = [1645777419.710472][4798:4803] CHIP:DMG: { - [1645777419.710504][4798:4803] CHIP:DMG: suppressResponse = false, - [1645777419.710536][4798:4803] CHIP:DMG: InvokeResponseIBs = - [1645777419.710577][4798:4803] CHIP:DMG: [ - [1645777419.710607][4798:4803] CHIP:DMG: InvokeResponseIB = - [1645777419.710649][4798:4803] CHIP:DMG: { - [1645777419.710678][4798:4803] CHIP:DMG: CommandStatusIB = - [1645777419.710714][4798:4803] CHIP:DMG: { - [1645777419.710751][4798:4803] CHIP:DMG: CommandPathIB = - [1645777419.710790][4798:4803] CHIP:DMG: { - [1645777419.710838][4798:4803] CHIP:DMG: EndpointId = 0x1, - [1645777419.710881][4798:4803] CHIP:DMG: ClusterId = 0x50, - [1645777419.710916][4798:4803] CHIP:DMG: CommandId = 0x0, - [1645777419.710963][4798:4803] CHIP:DMG: }, + [1645777419.710504][4798:4803] CHIP:DMG: suppressResponse = false, + [1645777419.710536][4798:4803] CHIP:DMG: InvokeResponseIBs = + [1645777419.710577][4798:4803] CHIP:DMG: [ + [1645777419.710607][4798:4803] CHIP:DMG: InvokeResponseIB = + [1645777419.710649][4798:4803] CHIP:DMG: { + [1645777419.710678][4798:4803] CHIP:DMG: CommandStatusIB = + [1645777419.710714][4798:4803] CHIP:DMG: { + [1645777419.710751][4798:4803] CHIP:DMG: CommandPathIB = + [1645777419.710790][4798:4803] CHIP:DMG: { + [1645777419.710838][4798:4803] CHIP:DMG: EndpointId = 0x1, + [1645777419.710881][4798:4803] CHIP:DMG: ClusterId = 0x50, + [1645777419.710916][4798:4803] CHIP:DMG: CommandId = 0x0, + [1645777419.710963][4798:4803] CHIP:DMG: }, [1645777419.711009][4798:4803] CHIP:DMG: - [1645777419.711046][4798:4803] CHIP:DMG: StatusIB = - [1645777419.711090][4798:4803] CHIP:DMG: { - [1645777419.711133][4798:4803] CHIP:DMG: status = 0x0, - [1645777419.711172][4798:4803] CHIP:DMG: }, + [1645777419.711046][4798:4803] CHIP:DMG: StatusIB = + [1645777419.711090][4798:4803] CHIP:DMG: { + [1645777419.711133][4798:4803] CHIP:DMG: status = 0x0, + [1645777419.711172][4798:4803] CHIP:DMG: }, [1645777419.711218][4798:4803] CHIP:DMG: - [1645777419.711260][4798:4803] CHIP:DMG: }, + [1645777419.711260][4798:4803] CHIP:DMG: }, [1645777419.711307][4798:4803] CHIP:DMG: - [1645777419.711340][4798:4803] CHIP:DMG: }, + [1645777419.711340][4798:4803] CHIP:DMG: }, [1645777419.711378][4798:4803] CHIP:DMG: - [1645777419.711406][4798:4803] CHIP:DMG: ], + [1645777419.711406][4798:4803] CHIP:DMG: ], [1645777419.711443][4798:4803] CHIP:DMG: - [1645777419.711472][4798:4803] CHIP:DMG: InteractionModelRevision = 1 + [1645777419.711472][4798:4803] CHIP:DMG: InteractionModelRevision = 1 [1645777419.711499][4798:4803] CHIP:DMG: }, - [1645777419.711572][4798:4803] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 - Status=0x0" + [1645777419.711572][4798:4803] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 disabled: true - label: "TH reads sends an Off command to the DUT" - verification: - "./chip-tool onoff off 1 1 [1645777463.883758][4807:4812] CHIP:DMG: - InvokeResponseMessage = [1645777463.883789][4807:4812] CHIP:DMG: { - [1645777463.883818][4807:4812] CHIP:DMG: suppressResponse = false, - [1645777463.883852][4807:4812] CHIP:DMG: InvokeResponseIBs = - [1645777463.883894][4807:4812] CHIP:DMG: [ - [1645777463.883924][4807:4812] CHIP:DMG: InvokeResponseIB = - [1645777463.883972][4807:4812] CHIP:DMG: { - [1645777463.884006][4807:4812] CHIP:DMG: CommandStatusIB = - [1645777463.884042][4807:4812] CHIP:DMG: { - [1645777463.884113][4807:4812] CHIP:DMG: CommandPathIB = - [1645777463.884160][4807:4812] CHIP:DMG: { - [1645777463.884231][4807:4812] CHIP:DMG: EndpointId = 0x1, - [1645777463.884300][4807:4812] CHIP:DMG: ClusterId = 0x6, - [1645777463.884335][4807:4812] CHIP:DMG: CommandId = 0x0, - [1645777463.884411][4807:4812] CHIP:DMG: }, + verification: | + ./chip-tool onoff off 1 1 + [1645777463.883758][4807:4812] CHIP:DMG: InvokeResponseMessage = + [1645777463.883789][4807:4812] CHIP:DMG: { + [1645777463.883818][4807:4812] CHIP:DMG: suppressResponse = false, + [1645777463.883852][4807:4812] CHIP:DMG: InvokeResponseIBs = + [1645777463.883894][4807:4812] CHIP:DMG: [ + [1645777463.883924][4807:4812] CHIP:DMG: InvokeResponseIB = + [1645777463.883972][4807:4812] CHIP:DMG: { + [1645777463.884006][4807:4812] CHIP:DMG: CommandStatusIB = + [1645777463.884042][4807:4812] CHIP:DMG: { + [1645777463.884113][4807:4812] CHIP:DMG: CommandPathIB = + [1645777463.884160][4807:4812] CHIP:DMG: { + [1645777463.884231][4807:4812] CHIP:DMG: EndpointId = 0x1, + [1645777463.884300][4807:4812] CHIP:DMG: ClusterId = 0x6, + [1645777463.884335][4807:4812] CHIP:DMG: CommandId = 0x0, + [1645777463.884411][4807:4812] CHIP:DMG: }, [1645777463.884460][4807:4812] CHIP:DMG: - [1645777463.884490][4807:4812] CHIP:DMG: StatusIB = - [1645777463.884554][4807:4812] CHIP:DMG: { - [1645777463.884591][4807:4812] CHIP:DMG: status = 0x0, - [1645777463.884658][4807:4812] CHIP:DMG: }, + [1645777463.884490][4807:4812] CHIP:DMG: StatusIB = + [1645777463.884554][4807:4812] CHIP:DMG: { + [1645777463.884591][4807:4812] CHIP:DMG: status = 0x0, + [1645777463.884658][4807:4812] CHIP:DMG: }, [1645777463.884692][4807:4812] CHIP:DMG: - [1645777463.884745][4807:4812] CHIP:DMG: }, + [1645777463.884745][4807:4812] CHIP:DMG: }, [1645777463.884788][4807:4812] CHIP:DMG: - [1645777463.884816][4807:4812] CHIP:DMG: }, + [1645777463.884816][4807:4812] CHIP:DMG: }, [1645777463.885035][4807:4812] CHIP:DMG: - [1645777463.885106][4807:4812] CHIP:DMG: ], + [1645777463.885106][4807:4812] CHIP:DMG: ], [1645777463.885165][4807:4812] CHIP:DMG: - [1645777463.885206][4807:4812] CHIP:DMG: InteractionModelRevision = 1 + [1645777463.885206][4807:4812] CHIP:DMG: InteractionModelRevision = 1 [1645777463.885239][4807:4812] CHIP:DMG: }, - [1645777463.885341][4807:4812] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0000 - Status=0x0" + [1645777463.885341][4807:4812] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0000 Status=0x0 disabled: true - label: "TH reads sends an On command to the DUT" - verification: - "./chip-tool onoff on 1 1 [1645777484.676451][4813:4818] CHIP:DMG: - InvokeResponseMessage = [1645777484.676481][4813:4818] CHIP:DMG: { - [1645777484.676509][4813:4818] CHIP:DMG: suppressResponse = false, - [1645777484.676536][4813:4818] CHIP:DMG: InvokeResponseIBs = - [1645777484.676569][4813:4818] CHIP:DMG: [ - [1645777484.676596][4813:4818] CHIP:DMG: InvokeResponseIB = - [1645777484.676640][4813:4818] CHIP:DMG: { - [1645777484.676671][4813:4818] CHIP:DMG: CommandStatusIB = - [1645777484.676710][4813:4818] CHIP:DMG: { - [1645777484.676746][4813:4818] CHIP:DMG: CommandPathIB = - [1645777484.676785][4813:4818] CHIP:DMG: { - [1645777484.676859][4813:4818] CHIP:DMG: EndpointId = 0x1, - [1645777484.676906][4813:4818] CHIP:DMG: ClusterId = 0x6, - [1645777484.676947][4813:4818] CHIP:DMG: CommandId = 0x1, - [1645777484.676986][4813:4818] CHIP:DMG: }, + verification: | + ./chip-tool onoff on 1 1 + [1645777484.676451][4813:4818] CHIP:DMG: InvokeResponseMessage = + [1645777484.676481][4813:4818] CHIP:DMG: { + [1645777484.676509][4813:4818] CHIP:DMG: suppressResponse = false, + [1645777484.676536][4813:4818] CHIP:DMG: InvokeResponseIBs = + [1645777484.676569][4813:4818] CHIP:DMG: [ + [1645777484.676596][4813:4818] CHIP:DMG: InvokeResponseIB = + [1645777484.676640][4813:4818] CHIP:DMG: { + [1645777484.676671][4813:4818] CHIP:DMG: CommandStatusIB = + [1645777484.676710][4813:4818] CHIP:DMG: { + [1645777484.676746][4813:4818] CHIP:DMG: CommandPathIB = + [1645777484.676785][4813:4818] CHIP:DMG: { + [1645777484.676859][4813:4818] CHIP:DMG: EndpointId = 0x1, + [1645777484.676906][4813:4818] CHIP:DMG: ClusterId = 0x6, + [1645777484.676947][4813:4818] CHIP:DMG: CommandId = 0x1, + [1645777484.676986][4813:4818] CHIP:DMG: }, [1645777484.677026][4813:4818] CHIP:DMG: - [1645777484.677055][4813:4818] CHIP:DMG: StatusIB = - [1645777484.677084][4813:4818] CHIP:DMG: { - [1645777484.677111][4813:4818] CHIP:DMG: status = 0x0, - [1645777484.677151][4813:4818] CHIP:DMG: }, + [1645777484.677055][4813:4818] CHIP:DMG: StatusIB = + [1645777484.677084][4813:4818] CHIP:DMG: { + [1645777484.677111][4813:4818] CHIP:DMG: status = 0x0, + [1645777484.677151][4813:4818] CHIP:DMG: }, [1645777484.677184][4813:4818] CHIP:DMG: - [1645777484.677219][4813:4818] CHIP:DMG: }, + [1645777484.677219][4813:4818] CHIP:DMG: }, [1645777484.677253][4813:4818] CHIP:DMG: - [1645777484.677283][4813:4818] CHIP:DMG: }, + [1645777484.677283][4813:4818] CHIP:DMG: }, [1645777484.677319][4813:4818] CHIP:DMG: - [1645777484.677344][4813:4818] CHIP:DMG: ], + [1645777484.677344][4813:4818] CHIP:DMG: ], [1645777484.677377][4813:4818] CHIP:DMG: - [1645777484.677403][4813:4818] CHIP:DMG: InteractionModelRevision = 1 + [1645777484.677403][4813:4818] CHIP:DMG: InteractionModelRevision = 1 [1645777484.677427][4813:4818] CHIP:DMG: }, - [1645777484.677492][4813:4818] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 - Status=0x0" + [1645777484.677492][4813:4818] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x0 disabled: true - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 + verification: | + ./chip-tool modeselect read current-mode 1 1 [1645777734.855000][4848:4853] CHIP:DMG: ReportDataMessage = [1645777734.855043][4848:4853] CHIP:DMG: { - [1645777734.855071][4848:4853] CHIP:DMG: AttributeReportIBs = - [1645777734.855109][4848:4853] CHIP:DMG: [ - [1645777734.855138][4848:4853] CHIP:DMG: AttributeReportIB = - [1645777734.855179][4848:4853] CHIP:DMG: { - [1645777734.855209][4848:4853] CHIP:DMG: AttributeDataIB = - [1645777734.855247][4848:4853] CHIP:DMG: { - [1645777734.855288][4848:4853] CHIP:DMG: DataVersion = 0xe164a619, - [1645777734.855326][4848:4853] CHIP:DMG: AttributePathIB = - [1645777734.855366][4848:4853] CHIP:DMG: { - [1645777734.855406][4848:4853] CHIP:DMG: Endpoint = 0x1, - [1645777734.855449][4848:4853] CHIP:DMG: Cluster = 0x50, - [1645777734.855491][4848:4853] CHIP:DMG: Attribute = 0x0000_0000, - [1645777734.855569][4848:4853] CHIP:DMG: } + [1645777734.855071][4848:4853] CHIP:DMG: AttributeReportIBs = + [1645777734.855109][4848:4853] CHIP:DMG: [ + [1645777734.855138][4848:4853] CHIP:DMG: AttributeReportIB = + [1645777734.855179][4848:4853] CHIP:DMG: { + [1645777734.855209][4848:4853] CHIP:DMG: AttributeDataIB = + [1645777734.855247][4848:4853] CHIP:DMG: { + [1645777734.855288][4848:4853] CHIP:DMG: DataVersion = 0xe164a619, + [1645777734.855326][4848:4853] CHIP:DMG: AttributePathIB = + [1645777734.855366][4848:4853] CHIP:DMG: { + [1645777734.855406][4848:4853] CHIP:DMG: Endpoint = 0x1, + [1645777734.855449][4848:4853] CHIP:DMG: Cluster = 0x50, + [1645777734.855491][4848:4853] CHIP:DMG: Attribute = 0x0000_0000, + [1645777734.855569][4848:4853] CHIP:DMG: } [1645777734.855606][4848:4853] CHIP:DMG: - [1645777734.855639][4848:4853] CHIP:DMG: Data = 0, - [1645777734.855696][4848:4853] CHIP:DMG: }, + [1645777734.855639][4848:4853] CHIP:DMG: Data = 0, + [1645777734.855696][4848:4853] CHIP:DMG: }, [1645777734.855744][4848:4853] CHIP:DMG: - [1645777734.855775][4848:4853] CHIP:DMG: }, + [1645777734.855775][4848:4853] CHIP:DMG: }, [1645777734.855811][4848:4853] CHIP:DMG: - [1645777734.855840][4848:4853] CHIP:DMG: ], + [1645777734.855840][4848:4853] CHIP:DMG: ], [1645777734.855876][4848:4853] CHIP:DMG: - [1645777734.855920][4848:4853] CHIP:DMG: SuppressResponse = true, - [1645777734.855968][4848:4853] CHIP:DMG: InteractionModelRevision = 1 + [1645777734.855920][4848:4853] CHIP:DMG: SuppressResponse = true, + [1645777734.855968][4848:4853] CHIP:DMG: InteractionModelRevision = 1 [1645777734.855993][4848:4853] CHIP:DMG: } - [1645777734.856233][4848:4853] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469721 - [1645777734.856345][4848:4853] CHIP:TOO: CurrentMode: 0" + [1645777734.856233][4848:4853] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 + [1645777734.856345][4848:4853] CHIP:TOO: CurrentMode: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml index 91cae11c037520..b7f25c00e4ec7c 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml @@ -21,174 +21,171 @@ config: tests: - label: "TH reads the StartUpMode attribute from the DUT" - verification: - "./chip-tool modeselect read start-up-mode 1 1 + verification: | + ./chip-tool modeselect read start-up-mode 1 1 [1645777708.405861][4841:4846] CHIP:DMG: ReportDataMessage = [1645777708.405890][4841:4846] CHIP:DMG: { - [1645777708.405912][4841:4846] CHIP:DMG: AttributeReportIBs = - [1645777708.405946][4841:4846] CHIP:DMG: [ - [1645777708.405970][4841:4846] CHIP:DMG: AttributeReportIB = - [1645777708.406025][4841:4846] CHIP:DMG: { - [1645777708.406075][4841:4846] CHIP:DMG: AttributeDataIB = - [1645777708.406119][4841:4846] CHIP:DMG: { - [1645777708.406166][4841:4846] CHIP:DMG: DataVersion = 0xe164a619, - [1645777708.406211][4841:4846] CHIP:DMG: AttributePathIB = - [1645777708.406245][4841:4846] CHIP:DMG: { - [1645777708.406282][4841:4846] CHIP:DMG: Endpoint = 0x1, - [1645777708.406319][4841:4846] CHIP:DMG: Cluster = 0x50, - [1645777708.406356][4841:4846] CHIP:DMG: Attribute = 0x0000_0003, - [1645777708.406392][4841:4846] CHIP:DMG: } + [1645777708.405912][4841:4846] CHIP:DMG: AttributeReportIBs = + [1645777708.405946][4841:4846] CHIP:DMG: [ + [1645777708.405970][4841:4846] CHIP:DMG: AttributeReportIB = + [1645777708.406025][4841:4846] CHIP:DMG: { + [1645777708.406075][4841:4846] CHIP:DMG: AttributeDataIB = + [1645777708.406119][4841:4846] CHIP:DMG: { + [1645777708.406166][4841:4846] CHIP:DMG: DataVersion = 0xe164a619, + [1645777708.406211][4841:4846] CHIP:DMG: AttributePathIB = + [1645777708.406245][4841:4846] CHIP:DMG: { + [1645777708.406282][4841:4846] CHIP:DMG: Endpoint = 0x1, + [1645777708.406319][4841:4846] CHIP:DMG: Cluster = 0x50, + [1645777708.406356][4841:4846] CHIP:DMG: Attribute = 0x0000_0003, + [1645777708.406392][4841:4846] CHIP:DMG: } [1645777708.406429][4841:4846] CHIP:DMG: - [1645777708.406464][4841:4846] CHIP:DMG: Data = 0, - [1645777708.406499][4841:4846] CHIP:DMG: }, + [1645777708.406464][4841:4846] CHIP:DMG: Data = 0, + [1645777708.406499][4841:4846] CHIP:DMG: }, [1645777708.406535][4841:4846] CHIP:DMG: - [1645777708.406563][4841:4846] CHIP:DMG: }, + [1645777708.406563][4841:4846] CHIP:DMG: }, [1645777708.406595][4841:4846] CHIP:DMG: - [1645777708.406620][4841:4846] CHIP:DMG: ], + [1645777708.406620][4841:4846] CHIP:DMG: ], [1645777708.406650][4841:4846] CHIP:DMG: - [1645777708.406674][4841:4846] CHIP:DMG: SuppressResponse = true, - [1645777708.406700][4841:4846] CHIP:DMG: InteractionModelRevision = 1 + [1645777708.406674][4841:4846] CHIP:DMG: SuppressResponse = true, + [1645777708.406700][4841:4846] CHIP:DMG: InteractionModelRevision = 1 [1645777708.406725][4841:4846] CHIP:DMG: } - [1645777708.406864][4841:4846] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0003 DataVersion: 3781469721 - [1645777708.406933][4841:4846] CHIP:TOO: StartUpMode: 0" + [1645777708.406864][4841:4846] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003DataVersion: 3781469721 + [1645777708.406933][4841:4846] CHIP:TOO: StartUpMode: 0 disabled: true - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 + verification: | + ./chip-tool modeselect read current-mode 1 1 [1645778146.170365][4876:4881] CHIP:DMG: ReportDataMessage = [1645778146.170407][4876:4881] CHIP:DMG: { - [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = - [1645778146.170482][4876:4881] CHIP:DMG: [ - [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = - [1645778146.170565][4876:4881] CHIP:DMG: { - [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = - [1645778146.170629][4876:4881] CHIP:DMG: { - [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, - [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = - [1645778146.170733][4876:4881] CHIP:DMG: { - [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, - [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, - [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, - [1645778146.170888][4876:4881] CHIP:DMG: } + [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = + [1645778146.170482][4876:4881] CHIP:DMG: [ + [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = + [1645778146.170565][4876:4881] CHIP:DMG: { + [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = + [1645778146.170629][4876:4881] CHIP:DMG: { + [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, + [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = + [1645778146.170733][4876:4881] CHIP:DMG: { + [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, + [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, + [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, + [1645778146.170888][4876:4881] CHIP:DMG: } [1645778146.170925][4876:4881] CHIP:DMG: - [1645778146.170988][4876:4881] CHIP:DMG: Data = 7, - [1645778146.171026][4876:4881] CHIP:DMG: }, + [1645778146.170988][4876:4881] CHIP:DMG: Data = 7, + [1645778146.171026][4876:4881] CHIP:DMG: }, [1645778146.171060][4876:4881] CHIP:DMG: - [1645778146.171090][4876:4881] CHIP:DMG: }, + [1645778146.171090][4876:4881] CHIP:DMG: }, [1645778146.171129][4876:4881] CHIP:DMG: - [1645778146.171154][4876:4881] CHIP:DMG: ], + [1645778146.171154][4876:4881] CHIP:DMG: ], [1645778146.171196][4876:4881] CHIP:DMG: - [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, - [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 + [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, + [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 [1645778146.171290][4876:4881] CHIP:DMG: } - [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469721 - [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 7" + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 + [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 7 disabled: true - label: "If the StartUpMode and CurrentMode attributes have the same value, proceed to step 2c, Otherwise proceed to step 3a." - verification: "" + verification: | + disabled: true - label: "DUT reads the SupportedModes attribute from the TH" - verification: - "./chip-tool modeselect read supported-modes 1 1 - [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries - [1645776742.669546][4661:4666] CHIP:TOO: [1]: { - [1645776742.669588][4661:4666] CHIP:TOO: Label: Black - [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 - [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669661][4661:4666] CHIP:TOO: } - [1645776742.669692][4661:4666] CHIP:TOO: [2]: { - [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino - [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 - [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669779][4661:4666] CHIP:TOO: } - [1645776742.669808][4661:4666] CHIP:TOO: [3]: { - [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso - [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 - [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669896][4661:4666] CHIP:TOO: }" + verification: | + ./chip-tool modeselect read supported-modes 1 1 + [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries + [1645776742.669546][4661:4666] CHIP:TOO: [1]: { + [1645776742.669588][4661:4666] CHIP:TOO: Label: Black + [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 + [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669661][4661:4666] CHIP:TOO: } + [1645776742.669692][4661:4666] CHIP:TOO: [2]: { + [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino + [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 + [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669779][4661:4666] CHIP:TOO: } + [1645776742.669808][4661:4666] CHIP:TOO: [3]: { + [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso + [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 + [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669896][4661:4666] CHIP:TOO: } disabled: true - label: "Select a value from the list in step 2c with a different value than the StartUpMode value read in step 1. TH sends a ChangeToMode command to the TH with the selected value." - verification: - "./chip-tool modeselect change-to-mode 4 1 1 + verification: | + ./chip-tool modeselect change-to-mode 4 1 1 [1645778189.043893][4888:4893] CHIP:DMG: InvokeResponseMessage = [1645778189.043924][4888:4893] CHIP:DMG: { - [1645778189.043953][4888:4893] CHIP:DMG: suppressResponse = false, - [1645778189.043986][4888:4893] CHIP:DMG: InvokeResponseIBs = - [1645778189.044027][4888:4893] CHIP:DMG: [ - [1645778189.044056][4888:4893] CHIP:DMG: InvokeResponseIB = - [1645778189.044100][4888:4893] CHIP:DMG: { - [1645778189.044132][4888:4893] CHIP:DMG: CommandStatusIB = - [1645778189.044171][4888:4893] CHIP:DMG: { - [1645778189.044203][4888:4893] CHIP:DMG: CommandPathIB = - [1645778189.044239][4888:4893] CHIP:DMG: { - [1645778189.044277][4888:4893] CHIP:DMG: EndpointId = 0x1, - [1645778189.044319][4888:4893] CHIP:DMG: ClusterId = 0x50, - [1645778189.044361][4888:4893] CHIP:DMG: CommandId = 0x0, - [1645778189.044394][4888:4893] CHIP:DMG: }, + [1645778189.043953][4888:4893] CHIP:DMG: suppressResponse = false, + [1645778189.043986][4888:4893] CHIP:DMG: InvokeResponseIBs = + [1645778189.044027][4888:4893] CHIP:DMG: [ + [1645778189.044056][4888:4893] CHIP:DMG: InvokeResponseIB = + [1645778189.044100][4888:4893] CHIP:DMG: { + [1645778189.044132][4888:4893] CHIP:DMG: CommandStatusIB = + [1645778189.044171][4888:4893] CHIP:DMG: { + [1645778189.044203][4888:4893] CHIP:DMG: CommandPathIB = + [1645778189.044239][4888:4893] CHIP:DMG: { + [1645778189.044277][4888:4893] CHIP:DMG: EndpointId = 0x1, + [1645778189.044319][4888:4893] CHIP:DMG: ClusterId = 0x50, + [1645778189.044361][4888:4893] CHIP:DMG: CommandId = 0x0, + [1645778189.044394][4888:4893] CHIP:DMG: }, [1645778189.044435][4888:4893] CHIP:DMG: - [1645778189.044472][4888:4893] CHIP:DMG: StatusIB = - [1645778189.044519][4888:4893] CHIP:DMG: { - [1645778189.044558][4888:4893] CHIP:DMG: status = 0x0, - [1645778189.044603][4888:4893] CHIP:DMG: }, + [1645778189.044472][4888:4893] CHIP:DMG: StatusIB = + [1645778189.044519][4888:4893] CHIP:DMG: { + [1645778189.044558][4888:4893] CHIP:DMG: status = 0x0, + [1645778189.044603][4888:4893] CHIP:DMG: }, [1645778189.044650][4888:4893] CHIP:DMG: - [1645778189.044686][4888:4893] CHIP:DMG: }, + [1645778189.044686][4888:4893] CHIP:DMG: }, [1645778189.044724][4888:4893] CHIP:DMG: - [1645778189.044754][4888:4893] CHIP:DMG: }, + [1645778189.044754][4888:4893] CHIP:DMG: }, [1645778189.044793][4888:4893] CHIP:DMG: - [1645778189.044821][4888:4893] CHIP:DMG: ], + [1645778189.044821][4888:4893] CHIP:DMG: ], [1645778189.044896][4888:4893] CHIP:DMG: - [1645778189.044925][4888:4893] CHIP:DMG: InteractionModelRevision = 1 + [1645778189.044925][4888:4893] CHIP:DMG: InteractionModelRevision = 1 [1645778189.044954][4888:4893] CHIP:DMG: }, - [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 - Status=0x0" + [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 disabled: true - label: "Physically power cycle the device." - verification: "" + verification: | + disabled: true - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 + verification: | + ./chip-tool modeselect read current-mode 1 1 [1645778146.170365][4876:4881] CHIP:DMG: ReportDataMessage = [1645778146.170407][4876:4881] CHIP:DMG: { - [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = - [1645778146.170482][4876:4881] CHIP:DMG: [ - [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = - [1645778146.170565][4876:4881] CHIP:DMG: { - [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = - [1645778146.170629][4876:4881] CHIP:DMG: { - [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, - [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = - [1645778146.170733][4876:4881] CHIP:DMG: { - [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, - [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, - [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, - [1645778146.170888][4876:4881] CHIP:DMG: } + [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = + [1645778146.170482][4876:4881] CHIP:DMG: [ + [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = + [1645778146.170565][4876:4881] CHIP:DMG: { + [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = + [1645778146.170629][4876:4881] CHIP:DMG: { + [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, + [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = + [1645778146.170733][4876:4881] CHIP:DMG: { + [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, + [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, + [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, + [1645778146.170888][4876:4881] CHIP:DMG: } [1645778146.170925][4876:4881] CHIP:DMG: - [1645778146.170988][4876:4881] CHIP:DMG: Data = 0, - [1645778146.171026][4876:4881] CHIP:DMG: }, + [1645778146.170988][4876:4881] CHIP:DMG: Data = 0, + [1645778146.171026][4876:4881] CHIP:DMG: }, [1645778146.171060][4876:4881] CHIP:DMG: - [1645778146.171090][4876:4881] CHIP:DMG: }, + [1645778146.171090][4876:4881] CHIP:DMG: }, [1645778146.171129][4876:4881] CHIP:DMG: - [1645778146.171154][4876:4881] CHIP:DMG: ], + [1645778146.171154][4876:4881] CHIP:DMG: ], [1645778146.171196][4876:4881] CHIP:DMG: - [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, - [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 + [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, + [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 [1645778146.171290][4876:4881] CHIP:DMG: } - [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469721 - [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 0" + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 + [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml index 2e88ab2b0665ed..1302347417b10c 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml @@ -1,195 +1,193 @@ -# 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: 78.3.3. [TC-MOD-3.3] OTA Mode Verification (DUT as Server) - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "TH reads the StartUpMode attribute from the DUT" - verification: - "./chip-tool modeselect read start-up-mode 1 1 - [1645778279.692171][4898:4903] CHIP:DMG: ReportDataMessage - =[1645778279.692198][4898:4903] CHIP:DMG: { - [1645778279.692219][4898:4903] CHIP:DMG: AttributeReportIBs = - [1645778279.692254][4898:4903] CHIP:DMG: [ - [1645778279.692278][4898:4903] CHIP:DMG: AttributeReportIB = - [1645778279.692309][4898:4903] CHIP:DMG: { - [1645778279.692336][4898:4903] CHIP:DMG: AttributeDataIB - =[1645778279.692368][4898:4903] CHIP:DMG: { - [1645778279.692403][4898:4903] CHIP:DMG: DataVersion = 0xe164a61a, - [1645778279.692429][4898:4903] CHIP:DMG: AttributePathIB = - [1645778279.692462][4898:4903] CHIP:DMG: { - [1645778279.692494][4898:4903] CHIP:DMG: Endpoint = 0x1, - [1645778279.692533][4898:4903] CHIP:DMG: Cluster = 0x50, - [1645778279.692570][4898:4903] CHIP:DMG: Attribute = 0x0000_0003, - [1645778279.692601][4898:4903] CHIP:DMG: } - [1645778279.692635][4898:4903] CHIP:DMG: - [1645778279.692671][4898:4903] CHIP:DMG: Data = 0, - [1645778279.692703][4898:4903] CHIP:DMG: - },[1645778279.692737][4898:4903] CHIP:DMG: - [1645778279.692764][4898:4903] CHIP:DMG: }, - [1645778279.692795][4898:4903] CHIP:DMG: - [1645778279.692818][4898:4903] CHIP:DMG: ], - [1645778279.692872][4898:4903] CHIP:DMG: - [1645778279.692897][4898:4903] CHIP:DMG: SuppressResponse = true, - [1645778279.692921][4898:4903] CHIP:DMG: InteractionModelRevision = 1 - [1645778279.692944][4898:4903] CHIP:DMG: } - [1645778279.693082][4898:4903] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0003 DataVersion: 3781469722 - [1645778279.693151][4898:4903] CHIP:TOO: StartUpMode: 0" - disabled: true - - - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 - [1645778146.170365][4876:4881] CHIP:DMG: ReportDataMessage - =[1645778146.170407][4876:4881] CHIP:DMG: { - [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = - [1645778146.170482][4876:4881] CHIP:DMG: [ - [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = - [1645778146.170565][4876:4881] CHIP:DMG: { - [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = - [1645778146.170629][4876:4881] CHIP:DMG: { - [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, - [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = - [1645778146.170733][4876:4881] CHIP:DMG: { - [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, - [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, - [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, - [1645778146.170888][4876:4881] CHIP:DMG: } - [1645778146.170925][4876:4881] CHIP:DMG:[1645778146.170988][4876:4881] - CHIP:DMG: Data = 7, [1645778146.171026][4876:4881] CHIP:DMG: - },[1645778146.171060][4876:4881] CHIP:DMG: - [1645778146.171090][4876:4881] CHIP:DMG: }, - [1645778146.171129][4876:4881] CHIP:DMG: - [1645778146.171154][4876:4881] CHIP:DMG: ], - [1645778146.171196][4876:4881] CHIP:DMG: - [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, - [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 - [1645778146.171290][4876:4881] CHIP:DMG: } - [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469721 - [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 7" - disabled: true - - - label: - "If the StartUpMode and CurrentMode attributes have the same value, - proceed to step 2c, Otherwise proceed to step 3a." - verification: "" - disabled: true - - - label: "DUT reads the SupportedModes attribute from the TH" - verification: - "./chip-tool modeselect read supported-modes 1 1 - [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries - [1645776742.669546][4661:4666] CHIP:TOO: [1]: - {[1645776742.669588][4661:4666] CHIP:TOO: Label: Black - [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 - [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669661][4661:4666] CHIP:TOO: } - [1645776742.669692][4661:4666] CHIP:TOO: [2]: { - [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino - [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 - [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: - 0[1645776742.669779][4661:4666] CHIP:TOO: } - [1645776742.669808][4661:4666] CHIP:TOO: [3]: { - [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso - [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 - [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 - [1645776742.669896][4661:4666] CHIP:TOO: }" - disabled: true - - - label: - "Select a value from the list in step 2c with a different value than - the StartUpMode value read in step 1. TH sends a ChangeToMode command - to the TH with the selected value." - verification: - "./chip-tool modeselect change-to-mode 4 1 1 - [1645778189.043893][4888:4893] CHIP:DMG: InvokeResponseMessage = - [1645778189.043924][4888:4893] CHIP:DMG: { - [1645778189.043953][4888:4893] CHIP:DMG: suppressResponse = - false,[1645778189.043986][4888:4893] CHIP:DMG: InvokeResponseIBs = - [1645778189.044027][4888:4893] CHIP:DMG: [ - [1645778189.044056][4888:4893] CHIP:DMG: InvokeResponseIB = - [1645778189.044100][4888:4893] CHIP:DMG: { - [1645778189.044132][4888:4893] CHIP:DMG: CommandStatusIB = - [1645778189.044171][4888:4893] CHIP:DMG: { - [1645778189.044203][4888:4893] CHIP:DMG: CommandPathIB = - [1645778189.044239][4888:4893] CHIP:DMG: { - [1645778189.044277][4888:4893] CHIP:DMG: EndpointId = 0x1, - [1645778189.044319][4888:4893] CHIP:DMG: ClusterId = 0x50, - [1645778189.044361][4888:4893] CHIP:DMG: CommandId = 0x0, - [1645778189.044394][4888:4893] CHIP:DMG: - },[1645778189.044435][4888:4893] CHIP:DMG: - [1645778189.044472][4888:4893] CHIP:DMG: StatusIB = - [1645778189.044519][4888:4893] CHIP:DMG: - {[1645778189.044558][4888:4893] CHIP:DMG: status = 0x0, - [1645778189.044603][4888:4893] CHIP:DMG: }, - [1645778189.044650][4888:4893] CHIP:DMG: - [1645778189.044686][4888:4893] CHIP:DMG: }, - [1645778189.044724][4888:4893] CHIP:DMG: - [1645778189.044754][4888:4893] CHIP:DMG: }, - [1645778189.044793][4888:4893] CHIP:DMG: - [1645778189.044821][4888:4893] CHIP:DMG: ], - [1645778189.044896][4888:4893] CHIP:DMG: - [1645778189.044925][4888:4893] CHIP:DMG: InteractionModelRevision = 1 - [1645778189.044954][4888:4893] CHIP:DMG: }, - [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response - Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 - Status=0x0" - disabled: true - - - label: - "Perform an OTA update on the device that requires a reboot. Allow for - the DUT to update and fully reboot." - verification: "" - disabled: true - - - label: "TH reads the CurrentMode attribute from the DUT" - verification: - "./chip-tool modeselect read current-mode 1 1 - [1645778146.170365][4876:4881] CHIP:DMG: ReportDataMessage = - [1645778146.170407][4876:4881] CHIP:DMG: { - [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = - [1645778146.170482][4876:4881] CHIP:DMG: [ - [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = - [1645778146.170565][4876:4881] CHIP:DMG: { - [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = - [1645778146.170629][4876:4881] CHIP:DMG: { - [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, - [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = - [1645778146.170733][4876:4881] CHIP:DMG: { - [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, - [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, - [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, - [1645778146.170888][4876:4881] CHIP:DMG: } - [1645778146.170925][4876:4881] CHIP:DMG: - [1645778146.170988][4876:4881] CHIP:DMG: Data = 4, - [1645778146.171026][4876:4881] CHIP:DMG: }, - [1645778146.171060][4876:4881] CHIP:DMG: - [1645778146.171090][4876:4881] CHIP:DMG: }, - [1645778146.171129][4876:4881] CHIP:DMG: - [1645778146.171154][4876:4881] CHIP:DMG: ], - [1645778146.171196][4876:4881] CHIP:DMG: - [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, - [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 - [1645778146.171290][4876:4881] CHIP:DMG: } - [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0050 Attribute 0x0000_0000 DataVersion: 3781469721 - [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 4" - disabled: true +# 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: 78.3.3. [TC-MOD-3.3] OTA Mode Verification (DUT as Server) + +config: + nodeId: 0x12344321 + cluster: "Basic" + endpoint: 0 + +tests: + - label: "TH reads the StartUpMode attribute from the DUT" + verification: | + ./chip-tool modeselect read start-up-mode 1 1 + [1645778279.692171][4898:4903] CHIP:DMG: ReportDataMessage = + [1645778279.692198][4898:4903] CHIP:DMG: { + [1645778279.692219][4898:4903] CHIP:DMG: AttributeReportIBs = + [1645778279.692254][4898:4903] CHIP:DMG: [ + [1645778279.692278][4898:4903] CHIP:DMG: AttributeReportIB = + [1645778279.692309][4898:4903] CHIP:DMG: { + [1645778279.692336][4898:4903] CHIP:DMG: AttributeDataIB = + [1645778279.692368][4898:4903] CHIP:DMG: { + [1645778279.692403][4898:4903] CHIP:DMG: DataVersion = 0xe164a61a, + [1645778279.692429][4898:4903] CHIP:DMG: AttributePathIB = + [1645778279.692462][4898:4903] CHIP:DMG: { + [1645778279.692494][4898:4903] CHIP:DMG: Endpoint = 0x1, + [1645778279.692533][4898:4903] CHIP:DMG: Cluster = 0x50, + [1645778279.692570][4898:4903] CHIP:DMG: Attribute = 0x0000_0003, + [1645778279.692601][4898:4903] CHIP:DMG: } + [1645778279.692635][4898:4903] CHIP:DMG: + [1645778279.692671][4898:4903] CHIP:DMG: Data = 0, + [1645778279.692703][4898:4903] CHIP:DMG: }, + [1645778279.692737][4898:4903] CHIP:DMG: + [1645778279.692764][4898:4903] CHIP:DMG: }, + [1645778279.692795][4898:4903] CHIP:DMG: + [1645778279.692818][4898:4903] CHIP:DMG: ], + [1645778279.692872][4898:4903] CHIP:DMG: + [1645778279.692897][4898:4903] CHIP:DMG: SuppressResponse = true, + [1645778279.692921][4898:4903] CHIP:DMG: InteractionModelRevision = 1 + [1645778279.692944][4898:4903] CHIP:DMG: } + [1645778279.693082][4898:4903] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003DataVersion: 3781469722 + [1645778279.693151][4898:4903] CHIP:TOO: StartUpMode: 0 + disabled: true + + - label: "TH reads the CurrentMode attribute from the DUT" + verification: | + ./chip-tool modeselect read current-mode 1 1 + [1645778146.170365][4876:4881] CHIP:DMG: ReportDataMessage = + [1645778146.170407][4876:4881] CHIP:DMG: { + [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = + [1645778146.170482][4876:4881] CHIP:DMG: [ + [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = + [1645778146.170565][4876:4881] CHIP:DMG: { + [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = + [1645778146.170629][4876:4881] CHIP:DMG: { + [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, + [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = + [1645778146.170733][4876:4881] CHIP:DMG: { + [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, + [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, + [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, + [1645778146.170888][4876:4881] CHIP:DMG: } + [1645778146.170925][4876:4881] CHIP:DMG: + [1645778146.170988][4876:4881] CHIP:DMG: Data = 7, + [1645778146.171026][4876:4881] CHIP:DMG: }, + [1645778146.171060][4876:4881] CHIP:DMG: + [1645778146.171090][4876:4881] CHIP:DMG: }, + [1645778146.171129][4876:4881] CHIP:DMG: + [1645778146.171154][4876:4881] CHIP:DMG: ], + [1645778146.171196][4876:4881] CHIP:DMG: + [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, + [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 + [1645778146.171290][4876:4881] CHIP:DMG: } + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 + [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 7 + disabled: true + + - label: + "If the StartUpMode and CurrentMode attributes have the same value, + proceed to step 2c, Otherwise proceed to step 3a." + verification: | + + disabled: true + + - label: "DUT reads the SupportedModes attribute from the TH" + verification: | + ./chip-tool modeselect read supported-modes 1 1 + [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries + [1645776742.669546][4661:4666] CHIP:TOO: [1]: { + [1645776742.669588][4661:4666] CHIP:TOO: Label: Black + [1645776742.669613][4661:4666] CHIP:TOO: Mode: 0 + [1645776742.669636][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669661][4661:4666] CHIP:TOO: } + [1645776742.669692][4661:4666] CHIP:TOO: [2]: { + [1645776742.669715][4661:4666] CHIP:TOO: Label: Cappuccino + [1645776742.669737][4661:4666] CHIP:TOO: Mode: 4 + [1645776742.669757][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669779][4661:4666] CHIP:TOO: } + [1645776742.669808][4661:4666] CHIP:TOO: [3]: { + [1645776742.669831][4661:4666] CHIP:TOO: Label: Espresso + [1645776742.669853][4661:4666] CHIP:TOO: Mode: 7 + [1645776742.669874][4661:4666] CHIP:TOO: SemanticTag: 0 + [1645776742.669896][4661:4666] CHIP:TOO: } + disabled: true + + - label: + "Select a value from the list in step 2c with a different value than + the StartUpMode value read in step 1. TH sends a ChangeToMode command + to the TH with the selected value." + verification: | + ./chip-tool modeselect change-to-mode 4 1 1 + [1645778189.043893][4888:4893] CHIP:DMG: InvokeResponseMessage = + [1645778189.043924][4888:4893] CHIP:DMG: { + [1645778189.043953][4888:4893] CHIP:DMG: suppressResponse = false, + [1645778189.043986][4888:4893] CHIP:DMG: InvokeResponseIBs = + [1645778189.044027][4888:4893] CHIP:DMG: [ + [1645778189.044056][4888:4893] CHIP:DMG: InvokeResponseIB = + [1645778189.044100][4888:4893] CHIP:DMG: { + [1645778189.044132][4888:4893] CHIP:DMG: CommandStatusIB = + [1645778189.044171][4888:4893] CHIP:DMG: { + [1645778189.044203][4888:4893] CHIP:DMG: CommandPathIB = + [1645778189.044239][4888:4893] CHIP:DMG: { + [1645778189.044277][4888:4893] CHIP:DMG: EndpointId = 0x1, + [1645778189.044319][4888:4893] CHIP:DMG: ClusterId = 0x50, + [1645778189.044361][4888:4893] CHIP:DMG: CommandId = 0x0, + [1645778189.044394][4888:4893] CHIP:DMG: }, + [1645778189.044435][4888:4893] CHIP:DMG: + [1645778189.044472][4888:4893] CHIP:DMG: StatusIB = + [1645778189.044519][4888:4893] CHIP:DMG: { + [1645778189.044558][4888:4893] CHIP:DMG: status = 0x0, + [1645778189.044603][4888:4893] CHIP:DMG: }, + [1645778189.044650][4888:4893] CHIP:DMG: + [1645778189.044686][4888:4893] CHIP:DMG: }, + [1645778189.044724][4888:4893] CHIP:DMG: + [1645778189.044754][4888:4893] CHIP:DMG: }, + [1645778189.044793][4888:4893] CHIP:DMG: + [1645778189.044821][4888:4893] CHIP:DMG: ], + [1645778189.044896][4888:4893] CHIP:DMG: + [1645778189.044925][4888:4893] CHIP:DMG: InteractionModelRevision = 1 + [1645778189.044954][4888:4893] CHIP:DMG: }, + [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 + disabled: true + + - label: + "Perform an OTA update on the device that requires a reboot. Allow for + the DUT to update and fully reboot." + verification: | + + disabled: true + + - label: "TH reads the CurrentMode attribute from the DUT" + verification: | + ./chip-tool modeselect read current-mode 1 1 + [1645778146.170365][4876:4881] CHIP:DMG: ReportDataMessage = + [1645778146.170407][4876:4881] CHIP:DMG: { + [1645778146.170431][4876:4881] CHIP:DMG: AttributeReportIBs = + [1645778146.170482][4876:4881] CHIP:DMG: [ + [1645778146.170527][4876:4881] CHIP:DMG: AttributeReportIB = + [1645778146.170565][4876:4881] CHIP:DMG: { + [1645778146.170593][4876:4881] CHIP:DMG: AttributeDataIB = + [1645778146.170629][4876:4881] CHIP:DMG: { + [1645778146.170664][4876:4881] CHIP:DMG: DataVersion = 0xe164a619, + [1645778146.170697][4876:4881] CHIP:DMG: AttributePathIB = + [1645778146.170733][4876:4881] CHIP:DMG: { + [1645778146.170776][4876:4881] CHIP:DMG: Endpoint = 0x1, + [1645778146.170815][4876:4881] CHIP:DMG: Cluster = 0x50, + [1645778146.170852][4876:4881] CHIP:DMG: Attribute = 0x0000_0000, + [1645778146.170888][4876:4881] CHIP:DMG: } + [1645778146.170925][4876:4881] CHIP:DMG: + [1645778146.170988][4876:4881] CHIP:DMG: Data = 4, + [1645778146.171026][4876:4881] CHIP:DMG: }, + [1645778146.171060][4876:4881] CHIP:DMG: + [1645778146.171090][4876:4881] CHIP:DMG: }, + [1645778146.171129][4876:4881] CHIP:DMG: + [1645778146.171154][4876:4881] CHIP:DMG: ], + [1645778146.171196][4876:4881] CHIP:DMG: + [1645778146.171235][4876:4881] CHIP:DMG: SuppressResponse = true, + [1645778146.171262][4876:4881] CHIP:DMG: InteractionModelRevision = 1 + [1645778146.171290][4876:4881] CHIP:DMG: } + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 + [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 4 + 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 d980d20b3e1179..a2ccc549b48840 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 @@ -23,20 +23,22 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH reads OccupancySensorType attribute from DUT" - verification: - "./chip-tool occupancysensing read occupancy-sensor-type 1 1 Endpoint: - 1 Cluster: 0x0000_0406 Attribute 0x0000_0001 DataVersion: 289401399 - [1646129490.492433][2997:3002] CHIP:TOO: occupancy sensor type: 0" + verification: | + ./chip-tool occupancysensing read occupancy-sensor-type 1 1 + + Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0001DataVersion: 289401399 + [1646129490.492433][2997:3002] CHIP:TOO: occupancy sensor type: 0 disabled: true - label: "TH reads OccupancySensorTypeBitmap attribute from DUT" - verification: - "./chip-tool occupancysensing read occupancy-sensor-type-bitmap 1 1 - Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0002 DataVersion: - 289401399 [1646129577.158531][3007:3013] CHIP:TOO: occupancy sensor - type bitmap: 1" + verification: | + ./chip-tool occupancysensing read occupancy-sensor-type-bitmap 1 1 + + Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0002DataVersion: 289401399 + [1646129577.158531][3007:3013] CHIP:TOO: occupancy sensor type bitmap: 1 disabled: true 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 d94989873fcd3e..c87251dfc00102 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 @@ -23,51 +23,51 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH reads OccupancySensorType attribute from DUT" - verification: - "./chip-tool occupancysensing read occupancy-sensor-type 1 1 + verification: | + ./chip-tool occupancysensing read occupancy-sensor-type 1 1 [1646207157.076863][2190:2190] CHIP:IM: Received Read request [1646207157.076920][2190:2190] CHIP:DMG: ReadRequestMessage = [1646207157.076949][2190:2190] CHIP:DMG: { - [1646207157.076974][2190:2190] CHIP:DMG: AttributePathIBs = - [1646207157.077003][2190:2190] CHIP:DMG: [ - [1646207157.077029][2190:2190] CHIP:DMG: AttributePathIB = - [1646207157.077074][2190:2190] CHIP:DMG: { - [1646207157.077125][2190:2190] CHIP:DMG: Endpoint = 0x1, - [1646207157.077165][2190:2190] CHIP:DMG: Cluster = 0x406, - [1646207157.077202][2190:2190] CHIP:DMG: Attribute = - 0x0000_0001,[1646207157.077239][2190:2190] CHIP:DMG: } + [1646207157.076974][2190:2190] CHIP:DMG: AttributePathIBs = + [1646207157.077003][2190:2190] CHIP:DMG: [ + [1646207157.077029][2190:2190] CHIP:DMG: AttributePathIB = + [1646207157.077074][2190:2190] CHIP:DMG: { + [1646207157.077125][2190:2190] CHIP:DMG: Endpoint = 0x1, + [1646207157.077165][2190:2190] CHIP:DMG: Cluster = 0x406, + [1646207157.077202][2190:2190] CHIP:DMG: Attribute = 0x0000_0001, + [1646207157.077239][2190:2190] CHIP:DMG: } [1646207157.077271][2190:2190] CHIP:DMG: - [1646207157.077299][2190:2190] CHIP:DMG: ], + [1646207157.077299][2190:2190] CHIP:DMG: ], [1646207157.077329][2190:2190] CHIP:DMG: - [1646207157.077358][2190:2190] CHIP:DMG: isFabricFiltered = false, - [1646207157.077393][2190:2190] CHIP:DMG: InteractionModelRevision = 1 + [1646207157.077358][2190:2190] CHIP:DMG: isFabricFiltered = false, + [1646207157.077393][2190:2190] CHIP:DMG: InteractionModelRevision = 1 [1646207157.077417][2190:2190] CHIP:DMG: }, - [1646207157.077486][2190:2190] CHIP:DMG: IM RH moving to - [GeneratingReports]" + [1646207157.077486][2190:2190] CHIP:DMG: IM RH moving to [GeneratingReports] disabled: true - label: "TH reads OccupancySensorTypeBitmap attribute from DUT" - verification: - "./chip-tool occupancysensing read occupancy-sensor-type-bitmap 1 1 + verification: | + ./chip-tool occupancysensing read occupancy-sensor-type-bitmap 1 1 [1646207177.525045][2190:2190] CHIP:IM: Received Read request [1646207177.525107][2190:2190] CHIP:DMG: ReadRequestMessage = [1646207177.525139][2190:2190] CHIP:DMG: { - [1646207177.525165][2190:2190] CHIP:DMG: AttributePathIBs = - [1646207177.525202][2190:2190] CHIP:DMG: [ - [1646207177.525232][2190:2190] CHIP:DMG: AttributePathIB = - [1646207177.525268][2190:2190] CHIP:DMG: { - [1646207177.525304][2190:2190] CHIP:DMG: Endpoint = 0x1, - [1646207177.525346][2190:2190] CHIP:DMG: Cluster = 0x406, - [1646207177.525385][2190:2190] CHIP:DMG: Attribute = 0x0000_0002, - [1646207177.525425][2190:2190] CHIP:DMG: } + [1646207177.525165][2190:2190] CHIP:DMG: AttributePathIBs = + [1646207177.525202][2190:2190] CHIP:DMG: [ + [1646207177.525232][2190:2190] CHIP:DMG: AttributePathIB = + [1646207177.525268][2190:2190] CHIP:DMG: { + [1646207177.525304][2190:2190] CHIP:DMG: Endpoint = 0x1, + [1646207177.525346][2190:2190] CHIP:DMG: Cluster = 0x406, + [1646207177.525385][2190:2190] CHIP:DMG: Attribute = 0x0000_0002, + [1646207177.525425][2190:2190] CHIP:DMG: } [1646207177.525461][2190:2190] CHIP:DMG: - [1646207177.525494][2190:2190] CHIP:DMG: ], + [1646207177.525494][2190:2190] CHIP:DMG: ], [1646207177.525529][2190:2190] CHIP:DMG: - [1646207177.525561][2190:2190] CHIP:DMG: isFabricFiltered = false, - [1646207177.525591][2190:2190] CHIP:DMG: InteractionModelRevision = 1 - [1646207177.525619][2190:2190] CHIP:DMG: }," + [1646207177.525561][2190:2190] CHIP:DMG: isFabricFiltered = false, + [1646207177.525591][2190:2190] CHIP:DMG: InteractionModelRevision = 1 + [1646207177.525619][2190:2190] CHIP:DMG: }, disabled: true 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 20322cfca0b5ce..4a15c1ad532023 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 @@ -21,23 +21,27 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH reads Occupancy attribute from DUT" - verification: - "./chip-tool occupancysensing read occupancy 1 1 Endpoint: 1 Cluster: - 0x0000_0406 Attribute 0x0000_0000 DataVersion: 289401399 - [1646130536.783615][3045:3050] CHIP:TOO: occupancy: 0" + verification: | + ./chip-tool occupancysensing read occupancy 1 1 + + Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0000DataVersion: 289401399 + [1646130536.783615][3045:3050] CHIP:TOO: occupancy: 0 disabled: true - label: "Operate on DUT to change the occupancy status" - verification: "" + verification: | + disabled: true - label: "after a few seconds, TH reads Occupancy attribute from DUT" - verification: - "./chip-tool occupancysensing read occupancy 1 1 Endpoint: 1 Cluster: - 0x0000_0406 Attribute 0x0000_0000 DataVersion: 289401399 - [1646130536.783615][3045:3050] CHIP:TOO: occupancy: 1" + verification: | + ./chip-tool occupancysensing read occupancy 1 1 + + Endpoint: 1 Cluster: 0x0000_0406 Attribute 0x0000_0000DataVersion: 289401399 + [1646130536.783615][3045:3050] CHIP:TOO: occupancy: 1 disabled: true 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 e6800a37aa61af..30ae5d5faa53be 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 @@ -21,107 +21,163 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH sends On command to DUT" - verification: "./chip-tool onoff on 1 1 StatusIB = { status = 0x00, }," + verification: | + ./chip-tool onoff on 1 1 + + StatusIB = + { + status = 0x00, + }, disabled: true - label: "TH writes a value of 0 to StartUpOnOff attribute of DUT" - verification: - "./chip-tool onoff write start-up-on-off 0 1 1 StatusIB = { status = - 0x00, }," + verification: | + ./chip-tool onoff write start-up-on-off 0 1 1 + + StatusIB = + { + status = 0x00, + }, disabled: true - label: "Power off DUT" - verification: "" + verification: | + disabled: true - label: "Power on DUT" - verification: "" + verification: | + disabled: true - label: "TH reads the OnOff attribute from the DUT" - verification: "./chip-tool onoff read on-off 1 1 OnOff: FALSE" + verification: | + ./chip-tool onoff read on-off 1 1 + + OnOff: FALSE disabled: true - label: "TH writes a value of 1 to StartUpOnOff attribute of DUT" - verification: - "./chip-tool onoff write start-up-on-off 1 1 1 StatusIB = { status = - 0x00, }," + verification: | + ./chip-tool onoff write start-up-on-off 1 1 1 + + StatusIB = + { + status = 0x00, + }, disabled: true - label: "Power off DUT" - verification: "" + verification: | + disabled: true - label: "Power on DUT" - verification: "" + verification: | + disabled: true - label: "TH reads the OnOff attribute from the DUT" - verification: "./chip-tool onoff read on-off 1 1 OnOff: TRUE" + verification: | + ./chip-tool onoff read on-off 1 1 + + OnOff: TRUE disabled: true - label: "TH writes a value of 2 to StartUpOnOff attribute of DUT" - verification: - "./chip-tool onoff write start-up-on-off 2 1 1 StatusIB = { status = - 0x00, }," + verification: | + ./chip-tool onoff write start-up-on-off 2 1 1 + + StatusIB = + { + status = 0x00, + }, disabled: true - label: "Power off DUT" - verification: "" + verification: | + disabled: true - label: "Power on DUT" - verification: "" + verification: | + disabled: true - label: "TH reads the OnOff attribute from the DUT" - verification: "./chip-tool onoff read on-off 1 1 OnOff: FALSE" + verification: | + ./chip-tool onoff read on-off 1 1 + + OnOff: FALSE disabled: true - label: "Power off DUT" - verification: "" + verification: | + disabled: true - label: "Power on DUT" - verification: "" + verification: | + disabled: true - label: "TH reads the OnOff attribute from the DUT" - verification: "./chip-tool onoff read on-off 1 1 OnOff: TRUE" + verification: | + ./chip-tool onoff read on-off 1 1 + + OnOff: TRUE disabled: true - label: "TH writes NULL to StartUpOnOff attribute of DUT" - verification: "(how to perform this in chip-tool?)" + verification: | + (how to perform this in chip-tool?) disabled: true - label: "Power off DUT" - verification: "" + verification: | + disabled: true - label: "Power on DUT" - verification: "" + verification: | + disabled: true - label: "TH reads the OnOff attribute from the DUT" - verification: "./chip-tool onoff read on-off 1 1 OnOff: TRUE" + verification: | + ./chip-tool onoff read on-off 1 1 + + OnOff: TRUE disabled: true - label: "TH sends Off command to DUT" - verification: "./chip-tool onoff off 1 1 StatusIB = { status = 0x00, }," + verification: | + ./chip-tool onoff off 1 1 + + StatusIB = + { + status = 0x00, + }, disabled: true - label: "Power off DUT" - verification: "" + verification: | + disabled: true - label: "Power on DUT" - verification: "" + verification: | + disabled: true - label: "TH reads the OnOff attribute from the DUT" - verification: "./chip-tool onoff read on-off 1 1 OnOff: FALSE" + verification: | + ./chip-tool onoff read on-off 1 1 + + OnOff: FALSE disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PRS_2_2.yaml b/src/app/tests/suites/certification/Test_TC_PRS_2_2.yaml index c5a645414d99d5..b8d38728997aa6 100644 --- a/src/app/tests/suites/certification/Test_TC_PRS_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_PRS_2_2.yaml @@ -21,19 +21,22 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH reads MeasuredValue attribute from DUT" - verification: - "./chip-tool pressuremeasurement read measured-value 1 1 Verify - response: cluster id: 0x0403 Attribute: 0" + verification: | + ./chip-tool pressuremeasurement read measured-value 1 1 + Verify response: cluster id: 0x0403 Attribute: 0 disabled: true - label: "Operate on device to change the pressure significantly" - verification: "" + verification: | + disabled: true - label: "after a few seconds, TH reads MeasuredValue attribute from DUT" - verification: "" + verification: | + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PRS_2_3.yaml b/src/app/tests/suites/certification/Test_TC_PRS_2_3.yaml index 3fdb6d6629470a..f13743e24fa66b 100644 --- a/src/app/tests/suites/certification/Test_TC_PRS_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_PRS_2_3.yaml @@ -21,40 +21,47 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH reads Tolerance attribute from DUT" - verification: "./chip-tool pressuremeasurement read tolerance 1 1" + verification: | + ./chip-tool pressuremeasurement read tolerance 1 1 disabled: true - label: "TH reads MeasuredValue attribute from DUT" - verification: - "./chip-tool pressuremeasurement read measured-value 1 1 - [1646049376.457970][12096:12101] CHIP:DMG: SuppressResponse = true, - [1646049376.458003][12096:12101] CHIP:DMG: InteractionModelRevision = - 1 [1646049376.458033][12096:12101] CHIP:DMG: } - [1646049376.458206][12096:12101] CHIP:TOO: Endpoint: 1 Cluster: - 0x0000_0403 Attribute 0x0000_0000 DataVersion: 781236764 - [1646049376.458395][12096:12101] CHIP:TOO: MeasuredValue: 0" + verification: | + ./chip-tool pressuremeasurement read measured-value 1 1 + [1646049376.457970][12096:12101] CHIP:DMG: SuppressResponse = true, + [1646049376.458003][12096:12101] CHIP:DMG: InteractionModelRevision = 1 + [1646049376.458033][12096:12101] CHIP:DMG: } + [1646049376.458206][12096:12101] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0403 Attribute 0x0000_0000 + DataVersion: 781236764 + [1646049376.458395][12096:12101] CHIP:TOO: MeasuredValue: 0 disabled: true - label: "TH reads MeasuredValue attribute from DUT" - verification: "" + verification: | + disabled: true - label: "TH reads Scale attribute from DUT" - verification: "./chip-tool pressuremeasurement read scale 1 1" + verification: | + ./chip-tool pressuremeasurement read scale 1 1 disabled: true - label: "TH reads ScaledValue attribute from DUT" - verification: "./chip-tool pressuremeasurement read scaled-value 1 1" + verification: | + ./chip-tool pressuremeasurement read scaled-value 1 1 disabled: true - label: "TH reads ScaledTolerance attribute from DUT" - verification: "./chip-tool pressuremeasurement read scaled-tolerance 1 1" + verification: | + ./chip-tool pressuremeasurement read scaled-tolerance 1 1 disabled: true - label: "TH reads ScaledValue attribute from DUT" - verification: "./chip-tool pressuremeasurement read scaled-value 1 1" + verification: | + ./chip-tool pressuremeasurement read scaled-value 1 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PSCFG_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PSCFG_1_1.yaml index 3110d5e3791a9d..35223f9df417b0 100644 --- a/src/app/tests/suites/certification/Test_TC_PSCFG_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PSCFG_1_1.yaml @@ -21,70 +21,80 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH reads the ClusterRevision attribute from the DUT" - verification: - "./chip-tool powersourceconfiguration read cluster-revision 1234 0 The - response should look like this: [1641813555.191189][38097:38102] - CHIP:DMG: ReportDataMessage = [1641813555.191325][38097:38102] - CHIP:DMG: { [1641813555.191381][38097:38102] CHIP:DMG: - AttributeReportIBs = [1641813555.191456][38097:38102] CHIP:DMG: [ - [1641813555.191627][38097:38102] CHIP:DMG: AttributeReportIB = - [1641813555.191842][38097:38102] CHIP:DMG: { - [1641813555.191910][38097:38102] CHIP:DMG: AttributeDataIB = - [1641813555.191979][38097:38102] CHIP:DMG: { - [1641813555.192062][38097:38102] CHIP:DMG: DataVersion = 0x0, - [1641813555.192134][38097:38102] CHIP:DMG: AttributePathIB = - [1641813555.192212][38097:38102] CHIP:DMG: { - [1641813555.192302][38097:38102] CHIP:DMG: Endpoint = 0x0, - [1641813555.192386][38097:38102] CHIP:DMG: Cluster = 0x2e, - [1641813555.192471][38097:38102] CHIP:DMG: Attribute = 0x0000_FFFD, - [1641813555.192545][38097:38102] CHIP:DMG: } + verification: | + ./chip-tool powersourceconfiguration read cluster-revision 1234 0 + + + The response should look like this: + + [1641813555.191189][38097:38102] CHIP:DMG: ReportDataMessage = + [1641813555.191325][38097:38102] CHIP:DMG: { + [1641813555.191381][38097:38102] CHIP:DMG: AttributeReportIBs = + [1641813555.191456][38097:38102] CHIP:DMG: [ + [1641813555.191627][38097:38102] CHIP:DMG: AttributeReportIB = + [1641813555.191842][38097:38102] CHIP:DMG: { + [1641813555.191910][38097:38102] CHIP:DMG: AttributeDataIB = + [1641813555.191979][38097:38102] CHIP:DMG: { + [1641813555.192062][38097:38102] CHIP:DMG: DataVersion = 0x0, + [1641813555.192134][38097:38102] CHIP:DMG: AttributePathIB = + [1641813555.192212][38097:38102] CHIP:DMG: { + [1641813555.192302][38097:38102] CHIP:DMG: Endpoint = 0x0, + [1641813555.192386][38097:38102] CHIP:DMG: Cluster = 0x2e, + [1641813555.192471][38097:38102] CHIP:DMG: Attribute = 0x0000_FFFD, + [1641813555.192545][38097:38102] CHIP:DMG: } [1641813555.192625][38097:38102] CHIP:DMG: - [1641813555.192697][38097:38102] CHIP:DMG: Data = 1, - [1641813555.192775][38097:38102] CHIP:DMG: }, + [1641813555.192697][38097:38102] CHIP:DMG: Data = 1, + [1641813555.192775][38097:38102] CHIP:DMG: }, [1641813555.192849][38097:38102] CHIP:DMG: - [1641813555.192913][38097:38102] CHIP:DMG: }, + [1641813555.192913][38097:38102] CHIP:DMG: }, [1641813555.192984][38097:38102] CHIP:DMG: - [1641813555.193044][38097:38102] CHIP:DMG: ], + [1641813555.193044][38097:38102] CHIP:DMG: ], [1641813555.193115][38097:38102] CHIP:DMG: - [1641813555.193173][38097:38102] CHIP:DMG: SuppressResponse = true, + [1641813555.193173][38097:38102] CHIP:DMG: SuppressResponse = true, [1641813555.193227][38097:38102] CHIP:DMG: } - [1641813555.193482][38097:38102] CHIP:TOO: - PowerSourceConfiguration.ClusterRevision response: 1" + [1641813555.193482][38097:38102] CHIP:TOO: PowerSourceConfiguration.ClusterRevision response: 1 disabled: true - label: "TH reads the AttributeList attribute from the DUT" - verification: - "./chip-tool powersourceconfiguration read attribute-list 1234 0 The - response should look like this: [CHIP:DMG: SuppressResponse = true, - [CHIP:DMG: } [CHIP:TOO: GeneralCommissioning.AttributeList response: 5 - entries [CHIP:TOO: [1]: 0 [CHIP:TOO: [2]: 65529 [CHIP:TOO: [3]: 65530 - [CHIP:TOO: [4]: 65531 [CHIP:TOO: [5]: 65533" + verification: | + ./chip-tool powersourceconfiguration read attribute-list 1234 0 + + The response should look like this: + + [CHIP:DMG: SuppressResponse = true, + [CHIP:DMG: } + [CHIP:TOO: GeneralCommissioning.AttributeList response: 5 entries + [CHIP:TOO: [1]: 0 + [CHIP:TOO: [2]: 65529 + [CHIP:TOO: [3]: 65530 + [CHIP:TOO: [4]: 65531 + [CHIP:TOO: [5]: 65533 disabled: true - label: "TH reads the AcceptedCommandList attribute from the DUT" - verification: - "./chip-tool powersourceconfiguration read - client-generated-command-list 1234 0 [...] - [1646048092.858800][36301:36306] CHIP:TOO: Endpoint: 0 Cluster: - 0x0000_002E Attribute 0x0000_FFF9 DataVersion: 502821112 - [1646048092.858890][36301:36306] CHIP:TOO: AcceptedCommandList: 0 - entries" + verification: | + ./chip-tool powersourceconfiguration read client-generated-command-list 1234 0 + + [...] + [1646048092.858800][36301:36306] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_FFF9DataVersion: 502821112 + [1646048092.858890][36301:36306] CHIP:TOO: AcceptedCommandList: 0 entries disabled: true - label: "TH reads the GeneratedCommandList attribute from the DUT" - verification: - "./chip-tool powersourceconfiguration read - server-generated-command-list 1234 0 [...] - [1646048186.753316][36310:36315] CHIP:TOO: Endpoint: 0 Cluster: - 0x0000_002E Attribute 0x0000_FFF8 DataVersion: 502821112 - [1646048186.753391][36310:36315] CHIP:TOO: GeneratedCommandList: 0 - entries" + verification: | + ./chip-tool powersourceconfiguration read server-generated-command-list 1234 0 + + [...] + [1646048186.753316][36310:36315] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_FFF8DataVersion: 502821112 + [1646048186.753391][36310:36315] CHIP:TOO: GeneratedCommandList: 0 entries disabled: true - label: "TH reads the EventList attribute from the DUT" - verification: "Not supported in SDK yet" + verification: | + Not supported in SDK yet 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 3ce8c55b8ae43d..2d5a587e6ecde5 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 @@ -21,60 +21,62 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH reads the Sources attribute from the DUT" - verification: - "./chip-tool powersourceconfiguration read sources 1234 0 The response - should look like this: [1641813530.468521][38091:38096] CHIP:EM: - Removed CHIP MessageCounter:11072693 from RetransTable on exchange - 57191i [1641813530.468647][38091:38096] CHIP:DMG: ReportDataMessage = + verification: | + ./chip-tool powersourceconfiguration read sources 1234 0 + + The response should look like this: + + [1641813530.468521][38091:38096] CHIP:EM: Removed CHIP MessageCounter:11072693 from RetransTable on exchange 57191i + [1641813530.468647][38091:38096] CHIP:DMG: ReportDataMessage = [1641813530.468713][38091:38096] CHIP:DMG: { - [1641813530.468767][38091:38096] CHIP:DMG: AttributeReportIBs = - [1641813530.468840][38091:38096] CHIP:DMG: [ - [1641813530.468900][38091:38096] CHIP:DMG: AttributeReportIB = - [1641813530.468976][38091:38096] CHIP:DMG: { - [1641813530.469073][38091:38096] CHIP:DMG: AttributeDataIB = - [1641813530.469316][38091:38096] CHIP:DMG: { - [1641813530.469549][38091:38096] CHIP:DMG: DataVersion = 0x0, - [1641813530.469657][38091:38096] CHIP:DMG: AttributePathIB = - [1641813530.469750][38091:38096] CHIP:DMG: { - [1641813530.469827][38091:38096] CHIP:DMG: Endpoint = 0x0, - [1641813530.469909][38091:38096] CHIP:DMG: Cluster = 0x2e, - [1641813530.469986][38091:38096] CHIP:DMG: Attribute = 0x0000_0000, - [1641813530.470055][38091:38096] CHIP:DMG: } + [1641813530.468767][38091:38096] CHIP:DMG: AttributeReportIBs = + [1641813530.468840][38091:38096] CHIP:DMG: [ + [1641813530.468900][38091:38096] CHIP:DMG: AttributeReportIB = + [1641813530.468976][38091:38096] CHIP:DMG: { + [1641813530.469073][38091:38096] CHIP:DMG: AttributeDataIB = + [1641813530.469316][38091:38096] CHIP:DMG: { + [1641813530.469549][38091:38096] CHIP:DMG: DataVersion = 0x0, + [1641813530.469657][38091:38096] CHIP:DMG: AttributePathIB = + [1641813530.469750][38091:38096] CHIP:DMG: { + [1641813530.469827][38091:38096] CHIP:DMG: Endpoint = 0x0, + [1641813530.469909][38091:38096] CHIP:DMG: Cluster = 0x2e, + [1641813530.469986][38091:38096] CHIP:DMG: Attribute = 0x0000_0000, + [1641813530.470055][38091:38096] CHIP:DMG: } [1641813530.470135][38091:38096] CHIP:DMG: - [1641813530.470210][38091:38096] CHIP:DMG: Data = [ + [1641813530.470210][38091:38096] CHIP:DMG: Data = [ [1641813530.470290][38091:38096] CHIP:DMG: - [1641813530.470362][38091:38096] CHIP:DMG: ], - [1641813530.470489][38091:38096] CHIP:DMG: }, + [1641813530.470362][38091:38096] CHIP:DMG: ], + [1641813530.470489][38091:38096] CHIP:DMG: }, [1641813530.470561][38091:38096] CHIP:DMG: - [1641813530.470627][38091:38096] CHIP:DMG: }, + [1641813530.470627][38091:38096] CHIP:DMG: }, [1641813530.470715][38091:38096] CHIP:DMG: - [1641813530.470771][38091:38096] CHIP:DMG: AttributeReportIB = - [1641813530.470844][38091:38096] CHIP:DMG: { - [1641813530.470907][38091:38096] CHIP:DMG: AttributeDataIB = - [1641813530.470977][38091:38096] CHIP:DMG: { - [1641813530.471050][38091:38096] CHIP:DMG: DataVersion = 0x0, - [1641813530.471115][38091:38096] CHIP:DMG: AttributePathIB = - [1641813530.471194][38091:38096] CHIP:DMG: { - [1641813530.471278][38091:38096] CHIP:DMG: Endpoint = 0x0, - [1641813530.471361][38091:38096] CHIP:DMG: Cluster = 0x2e, - [1641813530.471449][38091:38096] CHIP:DMG: Attribute = 0x0000_0000, - [1641813530.471530][38091:38096] CHIP:DMG: ListIndex = Null, - [1641813530.471602][38091:38096] CHIP:DMG: } + [1641813530.470771][38091:38096] CHIP:DMG: AttributeReportIB = + [1641813530.470844][38091:38096] CHIP:DMG: { + [1641813530.470907][38091:38096] CHIP:DMG: AttributeDataIB = + [1641813530.470977][38091:38096] CHIP:DMG: { + [1641813530.471050][38091:38096] CHIP:DMG: DataVersion = 0x0, + [1641813530.471115][38091:38096] CHIP:DMG: AttributePathIB = + [1641813530.471194][38091:38096] CHIP:DMG: { + [1641813530.471278][38091:38096] CHIP:DMG: Endpoint = 0x0, + [1641813530.471361][38091:38096] CHIP:DMG: Cluster = 0x2e, + [1641813530.471449][38091:38096] CHIP:DMG: Attribute = 0x0000_0000, + [1641813530.471530][38091:38096] CHIP:DMG: ListIndex = Null, + [1641813530.471602][38091:38096] CHIP:DMG: } [1641813530.471689][38091:38096] CHIP:DMG: - [1641813530.471768][38091:38096] CHIP:DMG: Data = 1, - [1641813530.471840][38091:38096] CHIP:DMG: }, + [1641813530.471768][38091:38096] CHIP:DMG: Data = 1, + [1641813530.471840][38091:38096] CHIP:DMG: }, [1641813530.471948][38091:38096] CHIP:DMG: - [1641813530.472011][38091:38096] CHIP:DMG: }, + [1641813530.472011][38091:38096] CHIP:DMG: }, [1641813530.472089][38091:38096] CHIP:DMG: - [1641813530.472143][38091:38096] CHIP:DMG: ], + [1641813530.472143][38091:38096] CHIP:DMG: ], [1641813530.472221][38091:38096] CHIP:DMG: - [1641813530.472273][38091:38096] CHIP:DMG: SuppressResponse = true, + [1641813530.472273][38091:38096] CHIP:DMG: SuppressResponse = true, [1641813530.472325][38091:38096] CHIP:DMG: } - [1641813530.472778][38091:38096] CHIP:TOO: - PowerSourceConfiguration.Sources response: 1 entries - [1641813530.472872][38091:38096] CHIP:TOO: [1]: 1" + [1641813530.472778][38091:38096] CHIP:TOO: PowerSourceConfiguration.Sources response: 1 entries + [1641813530.472872][38091:38096] CHIP:TOO: [1]: 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PS_2_2.yaml b/src/app/tests/suites/certification/Test_TC_PS_2_2.yaml index 9f8ba834bd16c1..fd9bbc7b085362 100644 --- a/src/app/tests/suites/certification/Test_TC_PS_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_PS_2_2.yaml @@ -21,91 +21,96 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "Bring the DUT into a state without any wired faults." - verification: "" + verification: | + disabled: true - label: "TH reads the ActiveWiredFaults attribute from the DUT" - verification: - "./apps/chip-tool powersource read active-wired-faults 12345 1" + verification: | + ./apps/chip-tool powersource read active-wired-faults 12345 1 disabled: true - label: "Set up subscription to WiredFaultChange event" - verification: - "./apps/chip-tool powersource subscribe-event-by-id 0 120 3600 1 54321 - 1" + verification: | + ./apps/chip-tool powersource subscribe-event-by-id 0 120 3600 1 54321 1 disabled: true - label: "Bring the DUT into a wired fault state." - verification: "" + verification: | + disabled: true - label: "TH reads the ActiveWiredFaults attribute from the DUT" - verification: - "./apps/chip-tool powersource read active-wired-faults 12345 1" + verification: | + ./apps/chip-tool powersource read active-wired-faults 12345 1 disabled: true - label: "Bring the DUT back into a clean state." - verification: "" + verification: | + disabled: true - label: "Bring the DUT into a state without any battery faults." - verification: "" + verification: | + disabled: true - label: "TH reads the ActiveBatFaults attribute from the DUT" - verification: - "./apps/chip-tool powersource read active-battery-faults 12345 1" + verification: | + ./apps/chip-tool powersource read active-battery-faults 12345 1 disabled: true - label: "Set up subscription to BatFaultChange event" - verification: - "./apps/chip-tool powersource subscribe-event-by-id 1 120 3600 1 54321 - 1" + verification: | + ./apps/chip-tool powersource subscribe-event-by-id 1 120 3600 1 54321 1 disabled: true - label: "Bring the DUT into a battery fault state." - verification: "" + verification: | + disabled: true - label: "TH reads the ActiveBatFaults attribute from the DUT" - verification: - "./apps/chip-tool powersource read active-battery-faults 12345 1" + verification: | + ./apps/chip-tool powersource read active-battery-faults 12345 1 disabled: true - label: "Bring the DUT back into a clean state." - verification: "" + verification: | + disabled: true - label: "Bring the DUT into a state without any charge faults." - verification: "" + verification: | + disabled: true - label: "TH reads the ActiveBatChargeFaults attribute from the DUT" - verification: - "./apps/chip-tool powersource read active-battery-charge-faults 12345 - 1" + verification: | + ./apps/chip-tool powersource read active-battery-charge-faults 12345 1 disabled: true - label: "Set up subscription to BatChargeFaultChange event" - verification: - "./apps/chip-tool powersource subscribe-event-by-id 2 120 3600 1 54321 - 1" + verification: | + ./apps/chip-tool powersource subscribe-event-by-id 2 120 3600 1 54321 1 disabled: true - label: "Bring the DUT into a charge fault state." - verification: "" + verification: | + disabled: true - label: "TH reads the ActiveBatChargeFaults attribute from the DUT" - verification: - "./apps/chip-tool powersource read active-battery-charge-faults 12345 - 1" + verification: | + ./apps/chip-tool powersource read active-battery-charge-faults 12345 1 disabled: true - label: "Bring the DUT back into a clean state." - verification: "" + verification: | + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_1_1.yaml b/src/app/tests/suites/certification/Test_TC_SU_1_1.yaml index 1f39dd69dc31d6..b9a0b65248e83f 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_1_1.yaml @@ -21,15 +21,17 @@ config: tests: - label: "Commission OTA-P/TH2 to DUT/same fabric as in test setup." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify on the OTA Requestor logs: - [1645743053311] [97809:20280821] CHIP: [SWU] OTA Requestor received - AnnounceOTAProvider [1645743053311] [97809:20280821] CHIP: [SWU] - FabricIndex: 1 [1645743053311] [97809:20280821] CHIP: [SWU] - ProviderNodeID: 0x0000000000000001 [1645743053311] [97809:20280821] - CHIP: [SWU] VendorID: 0x0 [1645743053311] [97809:20280821] CHIP: [SWU] - AnnouncementReason: 0 [1645743053311] [97809:20280821] CHIP: [SWU] - Endpoint: 0" + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Requestor logs: + + [1645743053311] [97809:20280821] CHIP: [SWU] OTA Requestor received AnnounceOTAProvider + [1645743053311] [97809:20280821] CHIP: [SWU] FabricIndex: 1 + [1645743053311] [97809:20280821] CHIP: [SWU] ProviderNodeID: 0x0000000000000001 + [1645743053311] [97809:20280821] CHIP: [SWU] VendorID: 0x0 + [1645743053311] [97809:20280821] CHIP: [SWU] AnnouncementReason: 0 + [1645743053311] [97809:20280821] CHIP: [SWU] Endpoint: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml index 80429afdbd89ac..edf3f9a3dbac65 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_1.yaml @@ -24,18 +24,21 @@ config: tests: - label: "TH2/Administrator sends an AnnounceOTAProvider command to the DUT." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 1 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify on the OTA Provider logs: - [1645743053317] [97806:20280749] CHIP: [ZCL] OTA Provider received - QueryImage [1645743053317] [97806:20280749] CHIP: [ZCL] VendorID: - 0xfff1 [1645743053317] [97806:20280749] CHIP: [ZCL] ProductID: 32769 - [1645743053317] [97806:20280749] CHIP: [ZCL] SoftwareVersion: 0 - [1645743053317] [97806:20280749] CHIP: [ZCL] ProtocolsSupported: [ - [1645743053317] [97806:20280749] CHIP: [ZCL] 0 [1645743053317] - [97806:20280749] CHIP: [ZCL] ] [1645743053317] [97806:20280749] CHIP: - [ZCL] HardwareVersion: 0 [1645743053317] [97806:20280749] CHIP: [ZCL] - Location: XX [1645743053317] [97806:20280749] CHIP: [ZCL] - RequestorCanConsent: 0" + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 1 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Provider logs: + + [1645743053317] [97806:20280749] CHIP: [ZCL] OTA Provider received QueryImage + [1645743053317] [97806:20280749] CHIP: [ZCL] VendorID: 0xfff1 + [1645743053317] [97806:20280749] CHIP: [ZCL] ProductID: 32769 + [1645743053317] [97806:20280749] CHIP: [ZCL] SoftwareVersion: 0 + [1645743053317] [97806:20280749] CHIP: [ZCL] ProtocolsSupported: [ + [1645743053317] [97806:20280749] CHIP: [ZCL] 0 + [1645743053317] [97806:20280749] CHIP: [ZCL] ] + [1645743053317] [97806:20280749] CHIP: [ZCL] HardwareVersion: 0 + [1645743053317] [97806:20280749] CHIP: [ZCL] Location: XX + [1645743053317] [97806:20280749] CHIP: [ZCL] RequestorCanConsent: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml index 4e4ae985d529f5..fe18edb78de94c 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_2.yaml @@ -27,54 +27,59 @@ tests: TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to 'UpdateAvailable'. Set ImageURI to the location where the image is located." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify that the transfer of the - software image happens all the way until the last Block is - acknowledged on the OTA Provider logs: [1645748688025] - [99779:20370762] CHIP: [BDX] OutputEvent type: AckEOFReceived - [1645748688025] [99779:20370762] CHIP: [BDX] Transfer completed, got - AckEOF" + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify that the transfer of the software image happens all the way until the last Block is acknowledged on the OTA Provider logs: + + [1645748688025] [99779:20370762] CHIP: [BDX] OutputEvent type: AckEOFReceived + [1645748688025] [99779:20370762] CHIP: [BDX] Transfer completed, got AckEOF disabled: true - label: "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available, Set DelayedActionTime to 10 minutes" - verification: - "Run the OTA Provider App using the command: ./chip-ota-provider-app - -f sw_image.txt -t 600 Check on the OTA-P/TH that the transfer of - file/image to DUT starts after 600 seconds." + verification: | + Run the OTA Provider App using the command: + ./chip-ota-provider-app -f sw_image.txt -t 600 + + Check on the OTA-P/TH that the transfer of file/image to DUT starts after 600 seconds. disabled: true - label: "DUT sends a QueryImage command to the TH/OTA-P.+ TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Busy/Not Available, Set DelayedActionTime to 10 minutes" - verification: - "Run the OTA Provider App using the command: ./chip-ota-provider-app - -q updateNotAvailable -t 600 Check on the OTA-P/TH that another - QueryImage command is not sent by the DUT before 600 seconds." + verification: | + Run the OTA Provider App using the command: + ./chip-ota-provider-app -q updateNotAvailable -t 600 + + Check on the OTA-P/TH that another QueryImage command is not sent by the DUT before 600 seconds. disabled: true - label: "DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available, Software Version should be set to an incorrect value." - verification: - "Run the OTA Provider App using the command: ./chip-ota-provider-app - -f sw_image.txt -s 0 Use any value for software image that is older or - same as the current version. Check on the OTA-P/TH that the DUT does - not start transferring the software image." + verification: | + Run the OTA Provider App using the command: + ./chip-ota-provider-app -f sw_image.txt -s 0 + + Use any value for software image that is older or same as the current version. + + Check on the OTA-P/TH that the DUT does not start transferring the software image. disabled: true - label: "IF (PICS_DT_RequestorCanConsent_True) DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available, UserConsentNeeded is set to True" - verification: - "Run the OTA Provider App using the command: ./chip-ota-provider-app - -f sw_image.txt -c Verify that the DUT obtains user consent before - transferring the image. This step is vendor specific." + verification: | + Run the OTA Provider App using the command: + ./chip-ota-provider-app -f sw_image.txt -c + + Verify that the DUT obtains user consent before transferring the image. This step is vendor specific. disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml index 99cd39a6459121..59c23d0bfba329 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_3.yaml @@ -24,7 +24,8 @@ tests: "IF (PICS_DT_RequestorCanConsent_True) DUT sends a QueryImage command to the TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available, UserConsentNeeded is set to True" - verification: "Same as 3.3.1. [TC-SU-2.2] #8" + verification: | + Same as 3.3.1. [TC-SU-2.2] #8 disabled: true - label: @@ -32,13 +33,13 @@ tests: TH/OTA-P. TH/OTA-P sends a QueryImageResponse back to DUT. QueryStatus is set to Available. Set ImageURI to the location where the image is located." - verification: "Same as 3.3.1. [TC-SU-2.2] #1" + verification: | + Same as 3.3.1. [TC-SU-2.2] #1 disabled: true - label: "IF (PICS_DT_Vendor_Specific) Perform the OTA Update on DUT using vendor specific mechanism." - verification: - "Use vendor specific steps to initiate OTA Update and verify that the - software image is transferred to the DUT" + verification: | + Use vendor specific steps to initiate OTA Update and verify that the software image is transferred to the DUT disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_4.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_4.yaml index 0ee7bde67c9597..c6578c0707561d 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_4.yaml @@ -28,10 +28,10 @@ tests: ImageURI to the location where the image is located.After the DUT transfers the image, the DUT should send ApplyUpdateRequest to the OTA-P." - verification: - "Verify that the OTA Provider show ApplyUpdateRequest message received - from DUT in the logs [1645743059327] [97806:20280748] CHIP: [ZCL] OTA - Provider received ApplyUpdateRequest [1645743059327] [97806:20280748] - CHIP: [ZCL] Update Token: 32 [1645743059327] [97806:20280748] CHIP: - [ZCL] New Version: 1" + verification: | + Verify that the OTA Provider show ApplyUpdateRequest message received from DUT in the logs + + [1645743059327] [97806:20280748] CHIP: [ZCL] OTA Provider received ApplyUpdateRequest + [1645743059327] [97806:20280748] CHIP: [ZCL] Update Token: 32 + [1645743059327] [97806:20280748] CHIP: [ZCL] New Version: 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml index 86d6fa7ad425c5..3479ae72b99b6c 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_5.yaml @@ -25,30 +25,26 @@ tests: - label: "OTA-P/TH sends the ApplyUpdateResponse Command to the DUT. Action field is set to 'Proceed' DelayedActionTime is set to 0." - verification: - "Verify that the DUT starts updating its software. Once the update is - finished verify the software version on the DUT to match the version - downloaded for the software update. Verify on the OTA-P/TH that there - is no other ApplyUpdateRequest from the DUT." + verification: | + Verify that the DUT starts updating its software. + Once the update is finished verify the software version on the DUT to match the version downloaded for the software update. + Verify on the OTA-P/TH that there is no other ApplyUpdateRequest from the DUT. disabled: true - label: "OTA-P/TH sends the ApplyUpdateResponse Command to the DUT. Action field is set to 'Proceed' DelayedActionTime is set to 5 minutes" - verification: - "Run the OTA Provider App using the command: ./chip-ota-provider-app - -f sw_image.txt -t 300 Verify that the DUT starts updating its - software after 5 minutes. Once the update is finished verify the - software version on the DUT to match the version downloaded for the - software update." + verification: | + Run the OTA Provider App using the command: + ./chip-ota-provider-app -f sw_image.txt -t 300 + + Verify that the DUT starts updating its software after 5 minutes. Once the update is finished verify the software version on the DUT to match the version downloaded for the software update. disabled: true - label: "IF (PICS_DT_Vendor_Specific) Apply the OTA Update on DUT using vendor specific mechanism." - verification: - "Use vendor specific steps to apply OTA Update and verify that the DUT - starts updating its software. Once the update is finished verify the - software version on the DUT to match the version downloaded for the - software update." + verification: | + Use vendor specific steps to apply OTA Update and verify that the DUT starts updating its software. + Once the update is finished verify the software version on the DUT to match the version downloaded for the software update. disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_6.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_6.yaml index 2dfc761b7e469e..a5fd171b53b268 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_6.yaml @@ -25,10 +25,10 @@ tests: - label: "DUT sends the NotifyUpdateApplied Command to the OTA-P after installing the software update." - verification: - "Verify that the OTA Provider show NotifyUpdateApplied message - received from DUT in the logs [1645743059329] [97806:20280748] CHIP: - [ZCL] OTA Provider received NotifyUpdateApplied [1645743059329] - [97806:20280748] CHIP: [ZCL] Update Token: 32 [1645743059329] - [97806:20280748] CHIP: [ZCL] Software Version: 1" + verification: | + Verify that the OTA Provider show NotifyUpdateApplied message received from DUT in the logs + + [1645743059329] [97806:20280748] CHIP: [ZCL] OTA Provider received NotifyUpdateApplied + [1645743059329] [97806:20280748] CHIP: [ZCL] Update Token: 32 + [1645743059329] [97806:20280748] CHIP: [ZCL] Software Version: 1 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml b/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml index ffb65e81728441..5ed19b149dd5a3 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_2_7.yaml @@ -21,50 +21,60 @@ config: tests: - label: "DUT sends a software update Query to the OTA-P." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Subscribe to StateTransition event - right away after this using command chip-tool - otasoftwareupdaterequestor subscribe-event state-transition 5 10 1 2 0 - Verify that the chip-tool receives below StateTransition event - notifications 1644017070772] [33044:1032132] CHIP: [TOO] - StateTransition: { [1644017070772] [33044:1032132] CHIP: [TOO] - PreviousState: 1 [1644017070772] [33044:1032132] CHIP: [TOO] NewState: - 2 [1644017070772] [33044:1032132] CHIP: [TOO] Reason: 1 - [1644017070772] [33044:1032132] CHIP: [TOO] TargetSoftwareVersion: - null [1644017070772] [33044:1032132] CHIP: [TOO] } [1644017070772] - [33044:1032132] CHIP: [TOO] StateTransition: { [1644017070772] - [33044:1032132] CHIP: [TOO] PreviousState: 2 [1644017070772] - [33044:1032132] CHIP: [TOO] NewState: 4 [1644017070772] - [33044:1032132] CHIP: [TOO] Reason: 1 [1644017070772] [33044:1032132] - CHIP: [TOO] TargetSoftwareVersion: 1 [1644017070772] [33044:1032132] - CHIP: [TOO] } [1644017080776] [33044:1032131] CHIP: [TOO] - StateTransition: { [1644017080776] [33044:1032131] CHIP: [TOO] - PreviousState: 4 [1644017080776] [33044:1032131] CHIP: [TOO] NewState: - 5 [1644017080776] [33044:1032131] CHIP: [TOO] Reason: 1 - [1644017080776] [33044:1032131] CHIP: [TOO] TargetSoftwareVersion: 1 - [1644017080776] [33044:1032131] CHIP: [TOO] } [1644017080776] - [33044:1032131] CHIP: [TOO] StateTransition: { [1644017080776] - [33044:1032131] CHIP: [TOO] PreviousState: 5 [1644017080776] - [33044:1032131] CHIP: [TOO] NewState: 1 [1644017080776] - [33044:1032131] CHIP: [TOO] Reason: 1 [1644017080776] [33044:1032131] - CHIP: [TOO] TargetSoftwareVersion: null [1644017080776] - [33044:1032131] CHIP: [TOO] }" + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Subscribe to StateTransition event right away after this using command + chip-tool otasoftwareupdaterequestor subscribe-event state-transition 5 10 1 2 0 + + Verify that the chip-tool receives below StateTransition event notifications + + 1644017070772] [33044:1032132] CHIP: [TOO] StateTransition: { + [1644017070772] [33044:1032132] CHIP: [TOO] PreviousState: 1 + [1644017070772] [33044:1032132] CHIP: [TOO] NewState: 2 + [1644017070772] [33044:1032132] CHIP: [TOO] Reason: 1 + [1644017070772] [33044:1032132] CHIP: [TOO] TargetSoftwareVersion: null + [1644017070772] [33044:1032132] CHIP: [TOO] } + + [1644017070772] [33044:1032132] CHIP: [TOO] StateTransition: { + [1644017070772] [33044:1032132] CHIP: [TOO] PreviousState: 2 + [1644017070772] [33044:1032132] CHIP: [TOO] NewState: 4 + [1644017070772] [33044:1032132] CHIP: [TOO] Reason: 1 + [1644017070772] [33044:1032132] CHIP: [TOO] TargetSoftwareVersion: 1 + [1644017070772] [33044:1032132] CHIP: [TOO] } + + [1644017080776] [33044:1032131] CHIP: [TOO] StateTransition: { + [1644017080776] [33044:1032131] CHIP: [TOO] PreviousState: 4 + [1644017080776] [33044:1032131] CHIP: [TOO] NewState: 5 + [1644017080776] [33044:1032131] CHIP: [TOO] Reason: 1 + [1644017080776] [33044:1032131] CHIP: [TOO] TargetSoftwareVersion: 1 + [1644017080776] [33044:1032131] CHIP: [TOO] } + + [1644017080776] [33044:1032131] CHIP: [TOO] StateTransition: { + [1644017080776] [33044:1032131] CHIP: [TOO] PreviousState: 5 + [1644017080776] [33044:1032131] CHIP: [TOO] NewState: 1 + [1644017080776] [33044:1032131] CHIP: [TOO] Reason: 1 + [1644017080776] [33044:1032131] CHIP: [TOO] TargetSoftwareVersion: null + [1644017080776] [33044:1032131] CHIP: [TOO] } disabled: true - label: "DUT successfully finishes applying a software update and the new software image version is being executed on the DUT." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Subscribe to VersionApplied event - right away after this using command chip-tool - otasoftwareupdaterequestor subscribe-event version-applied 5 10 1 2 0 - Verify that the chip-tool receives below VersionApplied event - notification [1645818271254] [21222:21170014] CHIP: [TOO] - VersionApplied: { [1645818271254] [21222:21170014] CHIP: [TOO] - SoftwareVersion: 1 [1645818271254] [21222:21170014] CHIP: [TOO] - ProductID: 32769 [1645818271254] [21222:21170014] CHIP: [TOO] }" + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Subscribe to VersionApplied event right away after this using command + chip-tool otasoftwareupdaterequestor subscribe-event version-applied 5 10 1 2 0 + + Verify that the chip-tool receives below VersionApplied event notification + + [1645818271254] [21222:21170014] CHIP: [TOO] VersionApplied: { + [1645818271254] [21222:21170014] CHIP: [TOO] SoftwareVersion: 1 + [1645818271254] [21222:21170014] CHIP: [TOO] ProductID: 32769 + [1645818271254] [21222:21170014] CHIP: [TOO] } disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_3_1.yaml b/src/app/tests/suites/certification/Test_TC_SU_3_1.yaml index a146c4c82d49fc..6ffe762f8bc7ee 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_3_1.yaml @@ -13,7 +13,7 @@ # limitations under the License. name: - 31.9.1. [TC-SU-3.1] Tests the behavior of the DUT once it receives a + 31.10.1. [TC-SU-3.1] Tests the behavior of the DUT once it receives a Software Update QueryImage request from the OTA-R. config: @@ -25,19 +25,21 @@ tests: - label: "OTA-R/TH sends a QueryImage Command to the DUT. UserConsentNeeded field is set to False." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify on the OTA Requestor logs + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Requestor logs + [1645743053319] [97809:20280821] CHIP: [SWU] QueryImageResponse: - [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds - [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: - bdx://0000000000000001/test.ota [1645743053319] [97809:20280821] CHIP: - [SWU] softwareVersion: 1 [1645743053319] [97809:20280821] CHIP: [SWU] - softwareVersionString: Example-Image-V0.1 [1645743053319] - [97809:20280821] CHIP: [SWU] updateToken: 32 [1645743053319] - [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version" + [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds + [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersion: 1 + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersionString: Example-Image-V0.1 + [1645743053319] [97809:20280821] CHIP: [SWU] updateToken: 32 + [1645743053319] [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml b/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml index 066570090b8d9d..b138d7efa34d42 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_3_2.yaml @@ -26,55 +26,62 @@ tests: "OTA-R/TH sends a QueryImage Command to the DUT. UserConsentNeeded field is set to False. DUT responds with the QueryImageResponse to the OTA-R/TH." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify on the OTA Requestor logs + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Requestor logs + [1645743053319] [97809:20280821] CHIP: [SWU] QueryImageResponse: - [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds - [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: - bdx://0000000000000001/test.ota [1645743053319] [97809:20280821] CHIP: - [SWU] softwareVersion: 1 [1645743053319] [97809:20280821] CHIP: [SWU] - softwareVersionString: Example-Image-V0.1 [1645743053319] - [97809:20280821] CHIP: [SWU] updateToken: 32 [1645743053319] - [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version" + [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds + [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersion: 1 + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersionString: Example-Image-V0.1 + [1645743053319] [97809:20280821] CHIP: [SWU] updateToken: 32 + [1645743053319] [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version disabled: true - label: "There should not be any new software update available for the OTA-R/TH. OTA-R/TH sends a QueryImage Command to the DUT. DUT responds with the QueryImageResponse to the OTA-R/TH." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify on the OTA Requestor logs + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Requestor logs + [1645819644181] [21592:21187907] CHIP: [SWU] QueryImageResponse: - [1645819644181] [21592:21187907] CHIP: [SWU] status: 2 [1645819644181] - [21592:21187907] CHIP: [SWU] delayedActionTime: 120 seconds - [1645819644181] [21592:21187907] CHIP: [SWU] userConsentNeeded: 0 - [1645819644181] [21592:21187907] CHIP: [SWU] metadataForRequestor: 0" + [1645819644181] [21592:21187907] CHIP: [SWU] status: 2 + [1645819644181] [21592:21187907] CHIP: [SWU] delayedActionTime: 120 seconds + [1645819644181] [21592:21187907] CHIP: [SWU] userConsentNeeded: 0 + [1645819644181] [21592:21187907] CHIP: [SWU] metadataForRequestor: 0 disabled: true - label: "OTA-R/TH sends a QueryImage Command to the DUT. ProtocolSupported field should list BDX. DUT responds with the QueryImageResponse to the OTA-R/TH." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify on the OTA Requestor logs + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Requestor logs + [1645743053319] [97809:20280821] CHIP: [SWU] QueryImageResponse: - [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds - [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: - bdx://0000000000000001/test.ota [1645743053319] [97809:20280821] CHIP: - [SWU] softwareVersion: 1 [1645743053319] [97809:20280821] CHIP: [SWU] - softwareVersionString: Example-Image-V0.1 [1645743053319] - [97809:20280821] CHIP: [SWU] updateToken: 32 [1645743053319] - [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version" + [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds + [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersion: 1 + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersionString: Example-Image-V0.1 + [1645743053319] [97809:20280821] CHIP: [SWU] updateToken: 32 + [1645743053319] [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml b/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml index 697cde2809db1c..bc63b72e825aa1 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_3_3.yaml @@ -25,60 +25,64 @@ tests: "OTA-R/TH sends a QueryImage Command to the DUT. Protocol supported should only list 'BDX' DUT responds with the QueryImageResponse to the OTA-R/TH." - verification: - "chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF - 0 0 0 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID and - 0xDEADBEEF is OTA Provider node ID Verify on the OTA Requestor logs + verification: | + chip-tool otasoftwareupdaterequestor announce-ota-provider 0xDEADBEEF 0 0 0 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID and 0xDEADBEEF is OTA Provider node ID + + Verify on the OTA Requestor logs + [1645743053319] [97809:20280821] CHIP: [SWU] QueryImageResponse: - [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds - [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: - bdx://0000000000000001/test.ota [1645743053319] [97809:20280821] CHIP: - [SWU] softwareVersion: 1 [1645743053319] [97809:20280821] CHIP: [SWU] - softwareVersionString: Example-Image-V0.1 [1645743053319] - [97809:20280821] CHIP: [SWU] updateToken: 32 [1645743053319] - [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 [1645743053319] - [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version - Verifyon the OTA Requestor logs after image downloaded [1645743059327] - [97809:20280957] CHIP: [SWU] OTA image downloaded to test.txt" + [1645743053319] [97809:20280821] CHIP: [SWU] status: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] delayedActionTime: 0 seconds + [1645743053319] [97809:20280821] CHIP: [SWU] imageURI: bdx://0000000000000001/test.ota + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersion: 1 + [1645743053319] [97809:20280821] CHIP: [SWU] softwareVersionString: Example-Image-V0.1 + [1645743053319] [97809:20280821] CHIP: [SWU] updateToken: 32 + [1645743053319] [97809:20280821] CHIP: [SWU] userConsentNeeded: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] metadataForRequestor: 0 + [1645743053319] [97809:20280821] CHIP: [SWU] Update available from 0 to 1 version + + Verifyon the OTA Requestor logs after image downloaded + + [1645743059327] [97809:20280957] CHIP: [SWU] OTA image downloaded to test.txt disabled: true - label: "DUT has a cached copy of the software image requested. OTA-R/TH sends a QueryImage Command to the DUT. Protocol supported should only list 'BDX' DUT responds with the QueryImageResponse to the OTA-R/TH" - verification: "Same as #1" + verification: | + Same as #1 disabled: true - label: "TH sends a QueryImage command to the DUT. RequestorCanConsent is set to True by TH. DUT responds with a QueryImageResponse with UserConsentNeeded field set to True." - verification: - "Run the OTA Requestor App using command chip-ota-requestor-app - --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port - ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --delayQuery - ${TIME_IN_SECONDS} -c Verify that the DUT does not try to obtain User - Consent from the user prior to transfer of software update image." + verification: | + Run the OTA Requestor App using command + + chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --delayQuery ${TIME_IN_SECONDS} -c + + Verify that the DUT does not try to obtain User Consent from the user prior to transfer of software update image. disabled: true - label: "TH sends a QueryImage command to the DUT. RequestorCanConsent is set to True by TH. DUT responds with a QueryImageResponse with UserConsentNeeded field set to False." - verification: - "Run the OTA Requestor App using command chip-ota-requestor-app - --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port - ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --delayQuery - ${TIME_IN_SECONDS} -c Verify that the DUT tries to obtain User Consent - from the user prior to transfer of software update image." + verification: | + Run the OTA Requestor App using command + + chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --delayQuery ${TIME_IN_SECONDS} -c + + Verify that the DUT tries to obtain User Consent from the user prior to transfer of software update image. disabled: true - label: "IF (PICS_DT_Vendor_Specific) Perform the OTA Update from DUT using vendor specific mechanism." - verification: - "Use vendor specific steps to initiate OTA Update and verify that the - software image is transferred from the DUT" + verification: | + Use vendor specific steps to initiate OTA Update and verify that the software image is transferred from the DUT disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml b/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml index 65bd0c49d104e3..d2a7971e7fe9d7 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_3_4.yaml @@ -25,9 +25,10 @@ tests: - label: "OTA-R/TH on completion of image download sends an ApplyUpdateRequestCommand to the DUT." - verification: - "Verify on the OTA Requestor logs [1645743059328] [97809:20280957] - CHIP: [SWU] ApplyUpdateResponse: [1645743059328] [97809:20280957] - CHIP: [SWU] action: 0 [1645743059328] [97809:20280957] CHIP: [SWU] - delayedActionTime: 0 seconds" + verification: | + Verify on the OTA Requestor logs + + [1645743059328] [97809:20280957] CHIP: [SWU] ApplyUpdateResponse: + [1645743059328] [97809:20280957] CHIP: [SWU] action: 0 + [1645743059328] [97809:20280957] CHIP: [SWU] delayedActionTime: 0 seconds disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml b/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml index e25a2f46f032d5..ec8c8cb4764a49 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_4_1.yaml @@ -23,118 +23,143 @@ tests: - label: "TH sends a read request to read the UpdatePossible attribute from the DUT." - verification: - "chip-tool otasoftwareupdaterequestor read update-possible - 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID Verify on - the chip-tool logs [1645822694702] [22599:21229305] CHIP: [DMG] - ReportDataMessage = [1645822694702] [22599:21229305] CHIP: [DMG] { - [1645822694702] [22599:21229305] CHIP: [DMG] AttributeReportIBs = - [1645822694702] [22599:21229305] CHIP: [DMG] [ [1645822694702] - [22599:21229305] CHIP: [DMG] AttributeReportIB = [1645822694702] - [22599:21229305] CHIP: [DMG] { [1645822694702] [22599:21229305] CHIP: - [DMG] AttributeDataIB = [1645822694702] [22599:21229305] CHIP: [DMG] { - [1645822694702] [22599:21229305] CHIP: [DMG] DataVersion = 0x3873a963, - [1645822694702] [22599:21229305] CHIP: [DMG] AttributePathIB = - [1645822694702] [22599:21229305] CHIP: [DMG] { [1645822694702] - [22599:21229305] CHIP: [DMG] Endpoint = 0x0, [1645822694702] - [22599:21229305] CHIP: [DMG] Cluster = 0x2a, [1645822694702] - [22599:21229305] CHIP: [DMG] Attribute = 0x0000_0001, [1645822694702] - [22599:21229305] CHIP: [DMG] } [1645822694702] [22599:21229305] CHIP: - [DMG] [1645822694702] [22599:21229305] CHIP: [DMG] Data = true, - [1645822694702] [22599:21229305] CHIP: [DMG] }, [1645822694702] - [22599:21229305] CHIP: [DMG] [1645822694702] [22599:21229305] CHIP: - [DMG] }, [1645822694702] [22599:21229305] CHIP: [DMG] [1645822694702] - [22599:21229305] CHIP: [DMG] ], [1645822694702] [22599:21229305] CHIP: - [DMG] [1645822694702] [22599:21229305] CHIP: [DMG] SuppressResponse = - true, [1645822694702] [22599:21229305] CHIP: [DMG] - InteractionModelRevision = 1 [1645822694702] [22599:21229305] CHIP: - [DMG] }" + verification: | + chip-tool otasoftwareupdaterequestor read update-possible 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID + + Verify on the chip-tool logs + + [1645822694702] [22599:21229305] CHIP: [DMG] ReportDataMessage = + [1645822694702] [22599:21229305] CHIP: [DMG] { + [1645822694702] [22599:21229305] CHIP: [DMG] AttributeReportIBs = + [1645822694702] [22599:21229305] CHIP: [DMG] [ + [1645822694702] [22599:21229305] CHIP: [DMG] AttributeReportIB = + [1645822694702] [22599:21229305] CHIP: [DMG] { + [1645822694702] [22599:21229305] CHIP: [DMG] AttributeDataIB = + [1645822694702] [22599:21229305] CHIP: [DMG] { + [1645822694702] [22599:21229305] CHIP: [DMG] DataVersion = 0x3873a963, + [1645822694702] [22599:21229305] CHIP: [DMG] AttributePathIB = + [1645822694702] [22599:21229305] CHIP: [DMG] { + [1645822694702] [22599:21229305] CHIP: [DMG] Endpoint = 0x0, + [1645822694702] [22599:21229305] CHIP: [DMG] Cluster = 0x2a, + [1645822694702] [22599:21229305] CHIP: [DMG] Attribute = 0x0000_0001, + [1645822694702] [22599:21229305] CHIP: [DMG] } + [1645822694702] [22599:21229305] CHIP: [DMG] + [1645822694702] [22599:21229305] CHIP: [DMG] Data = true, + [1645822694702] [22599:21229305] CHIP: [DMG] }, + [1645822694702] [22599:21229305] CHIP: [DMG] + [1645822694702] [22599:21229305] CHIP: [DMG] }, + [1645822694702] [22599:21229305] CHIP: [DMG] + [1645822694702] [22599:21229305] CHIP: [DMG] ], + [1645822694702] [22599:21229305] CHIP: [DMG] + [1645822694702] [22599:21229305] CHIP: [DMG] SuppressResponse = true, + [1645822694702] [22599:21229305] CHIP: [DMG] InteractionModelRevision = 1 + [1645822694702] [22599:21229305] CHIP: [DMG] } disabled: true - label: "TH sends a read request to read the UpdateState attribute from the DUT" - verification: - "chip-tool otasoftwareupdaterequestor read update-state 0x1234567890 0 - where 0x1234567890 is OTA Requestor node ID Verify that the value is - set to one of the valid attribute values based on the current update - state on the chip-tool logs [1645822907230] [22642:21232581] CHIP: - [DMG] ReportDataMessage = [1645822907230] [22642:21232581] CHIP: [DMG] - { [1645822907230] [22642:21232581] CHIP: [DMG] AttributeReportIBs = - [1645822907230] [22642:21232581] CHIP: [DMG] [ [1645822907230] - [22642:21232581] CHIP: [DMG] AttributeReportIB = [1645822907230] - [22642:21232581] CHIP: [DMG] { [1645822907230] [22642:21232581] CHIP: - [DMG] AttributeDataIB = [1645822907230] [22642:21232581] CHIP: [DMG] { - [1645822907230] [22642:21232581] CHIP: [DMG] DataVersion = 0x3873a963, - [1645822907230] [22642:21232581] CHIP: [DMG] AttributePathIB = - [1645822907230] [22642:21232581] CHIP: [DMG] { [1645822907230] - [22642:21232581] CHIP: [DMG] Endpoint = 0x0, [1645822907230] - [22642:21232581] CHIP: [DMG] Cluster = 0x2a, [1645822907230] - [22642:21232581] CHIP: [DMG] Attribute = 0x0000_0002, [1645822907230] - [22642:21232581] CHIP: [DMG] } [1645822907230] [22642:21232581] CHIP: - [DMG] [1645822907230] [22642:21232581] CHIP: [DMG] Data = 1, - [1645822907230] [22642:21232581] CHIP: [DMG] }, [1645822907230] - [22642:21232581] CHIP: [DMG] [1645822907230] [22642:21232581] CHIP: - [DMG] }, [1645822907230] [22642:21232581] CHIP: [DMG] [1645822907230] - [22642:21232581] CHIP: [DMG] ], [1645822907230] [22642:21232581] CHIP: - [DMG] [1645822907230] [22642:21232581] CHIP: [DMG] SuppressResponse = - true, [1645822907230] [22642:21232581] CHIP: [DMG] - InteractionModelRevision = 1 [1645822907230] [22642:21232581] CHIP: - [DMG] }" + verification: | + chip-tool otasoftwareupdaterequestor read update-state 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID + + Verify that the value is set to one of the valid attribute values based on the current update state on the chip-tool logs + + [1645822907230] [22642:21232581] CHIP: [DMG] ReportDataMessage = + [1645822907230] [22642:21232581] CHIP: [DMG] { + [1645822907230] [22642:21232581] CHIP: [DMG] AttributeReportIBs = + [1645822907230] [22642:21232581] CHIP: [DMG] [ + [1645822907230] [22642:21232581] CHIP: [DMG] AttributeReportIB = + [1645822907230] [22642:21232581] CHIP: [DMG] { + [1645822907230] [22642:21232581] CHIP: [DMG] AttributeDataIB = + [1645822907230] [22642:21232581] CHIP: [DMG] { + [1645822907230] [22642:21232581] CHIP: [DMG] DataVersion = 0x3873a963, + [1645822907230] [22642:21232581] CHIP: [DMG] AttributePathIB = + [1645822907230] [22642:21232581] CHIP: [DMG] { + [1645822907230] [22642:21232581] CHIP: [DMG] Endpoint = 0x0, + [1645822907230] [22642:21232581] CHIP: [DMG] Cluster = 0x2a, + [1645822907230] [22642:21232581] CHIP: [DMG] Attribute = 0x0000_0002, + [1645822907230] [22642:21232581] CHIP: [DMG] } + [1645822907230] [22642:21232581] CHIP: [DMG] + [1645822907230] [22642:21232581] CHIP: [DMG] Data = 1, + [1645822907230] [22642:21232581] CHIP: [DMG] }, + [1645822907230] [22642:21232581] CHIP: [DMG] + [1645822907230] [22642:21232581] CHIP: [DMG] }, + [1645822907230] [22642:21232581] CHIP: [DMG] + [1645822907230] [22642:21232581] CHIP: [DMG] ], + [1645822907230] [22642:21232581] CHIP: [DMG] + [1645822907230] [22642:21232581] CHIP: [DMG] SuppressResponse = true, + [1645822907230] [22642:21232581] CHIP: [DMG] InteractionModelRevision = 1 + [1645822907230] [22642:21232581] CHIP: [DMG] } disabled: true - label: "DUT should start initiating the Software update process. While the DUT is downloading the image, TH sends a read request to read the UpdateStateProgress attribute from the DUT" - verification: - "chip-tool otasoftwareupdaterequestor read update-state-progress - 0x1234567890 0 where 0x1234567890 is OTA Requestor node ID Verify that - the field value is null if no ongoing update on the chip-tool logs + verification: | + chip-tool otasoftwareupdaterequestor read update-state-progress 0x1234567890 0 + + where 0x1234567890 is OTA Requestor node ID + + Verify that the field value is null if no ongoing update on the chip-tool logs + [1645823750592] [22938:21245247] CHIP: [DMG] ReportDataMessage = - [1645823750592] [22938:21245247] CHIP: [DMG] { [1645823750592] - [22938:21245247] CHIP: [DMG] AttributeReportIBs = [1645823750592] - [22938:21245247] CHIP: [DMG] [ [1645823750592] [22938:21245247] CHIP: - [DMG] AttributeReportIB = [1645823750592] [22938:21245247] CHIP: [DMG] - { [1645823750592] [22938:21245247] CHIP: [DMG] AttributeDataIB = - [1645823750592] [22938:21245247] CHIP: [DMG] { [1645823750592] - [22938:21245247] CHIP: [DMG] DataVersion = 0x3873a963, [1645823750592] - [22938:21245247] CHIP: [DMG] AttributePathIB = [1645823750592] - [22938:21245247] CHIP: [DMG] { [1645823750592] [22938:21245247] CHIP: - [DMG] Endpoint = 0x0, [1645823750592] [22938:21245247] CHIP: [DMG] - Cluster = 0x2a, [1645823750592] [22938:21245247] CHIP: [DMG] Attribute - = 0x0000_0003, [1645823750592] [22938:21245247] CHIP: [DMG] } - [1645823750592] [22938:21245247] CHIP: [DMG] [1645823750592] - [22938:21245247] CHIP: [DMG] Data = NULL [1645823750592] - [22938:21245247] CHIP: [DMG] }, [1645823750592] [22938:21245247] CHIP: - [DMG] [1645823750592] [22938:21245247] CHIP: [DMG] }, [1645823750592] - [22938:21245247] CHIP: [DMG] [1645823750592] [22938:21245247] CHIP: - [DMG] ], [1645823750592] [22938:21245247] CHIP: [DMG] [1645823750592] - [22938:21245247] CHIP: [DMG] SuppressResponse = true, [1645823750592] - [22938:21245247] CHIP: [DMG] InteractionModelRevision = 1 - [1645823750592] [22938:21245247] CHIP: [DMG] } Verify that the field - value is anything between 1 to 100 for an ongoing update on the - chip-tool logs [1645823829292] [22944:21246546] CHIP: [DMG] - ReportDataMessage = [1645823829292] [22944:21246546] CHIP: [DMG] { - [1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIBs = - [1645823829292] [22944:21246546] CHIP: [DMG] [ [1645823829292] - [22944:21246546] CHIP: [DMG] AttributeReportIB = [1645823829292] - [22944:21246546] CHIP: [DMG] { [1645823829292] [22944:21246546] CHIP: - [DMG] AttributeDataIB = [1645823829292] [22944:21246546] CHIP: [DMG] { - [1645823829292] [22944:21246546] CHIP: [DMG] DataVersion = 0x3873a966, - [1645823829292] [22944:21246546] CHIP: [DMG] AttributePathIB = - [1645823829292] [22944:21246546] CHIP: [DMG] { [1645823829292] - [22944:21246546] CHIP: [DMG] Endpoint = 0x0, [1645823829292] - [22944:21246546] CHIP: [DMG] Cluster = 0x2a, [1645823829292] - [22944:21246546] CHIP: [DMG] Attribute = 0x0000_0003, [1645823829292] - [22944:21246546] CHIP: [DMG] } [1645823829292] [22944:21246546] CHIP: - [DMG] [1645823829292] [22944:21246546] CHIP: [DMG] Data = 20, - [1645823829292] [22944:21246546] CHIP: [DMG] }, [1645823829292] - [22944:21246546] CHIP: [DMG] [1645823829292] [22944:21246546] CHIP: - [DMG] }, [1645823829292] [22944:21246546] CHIP: [DMG] [1645823829292] - [22944:21246546] CHIP: [DMG] ], [1645823829292] [22944:21246546] CHIP: - [DMG] [1645823829292] [22944:21246546] CHIP: [DMG] SuppressResponse = - true, [1645823829292] [22944:21246546] CHIP: [DMG] - InteractionModelRevision = 1 [1645823829292] [22944:21246546] CHIP: - [DMG] }" + [1645823750592] [22938:21245247] CHIP: [DMG] { + [1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIBs = + [1645823750592] [22938:21245247] CHIP: [DMG] [ + [1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIB = + [1645823750592] [22938:21245247] CHIP: [DMG] { + [1645823750592] [22938:21245247] CHIP: [DMG] AttributeDataIB = + [1645823750592] [22938:21245247] CHIP: [DMG] { + [1645823750592] [22938:21245247] CHIP: [DMG] DataVersion = 0x3873a963, + [1645823750592] [22938:21245247] CHIP: [DMG] AttributePathIB = + [1645823750592] [22938:21245247] CHIP: [DMG] { + [1645823750592] [22938:21245247] CHIP: [DMG] Endpoint = 0x0, + [1645823750592] [22938:21245247] CHIP: [DMG] Cluster = 0x2a, + [1645823750592] [22938:21245247] CHIP: [DMG] Attribute = 0x0000_0003, + [1645823750592] [22938:21245247] CHIP: [DMG] } + [1645823750592] [22938:21245247] CHIP: [DMG] + [1645823750592] [22938:21245247] CHIP: [DMG] Data = NULL + [1645823750592] [22938:21245247] CHIP: [DMG] }, + [1645823750592] [22938:21245247] CHIP: [DMG] + [1645823750592] [22938:21245247] CHIP: [DMG] }, + [1645823750592] [22938:21245247] CHIP: [DMG] + [1645823750592] [22938:21245247] CHIP: [DMG] ], + [1645823750592] [22938:21245247] CHIP: [DMG] + [1645823750592] [22938:21245247] CHIP: [DMG] SuppressResponse = true, + [1645823750592] [22938:21245247] CHIP: [DMG] InteractionModelRevision = 1 + [1645823750592] [22938:21245247] CHIP: [DMG] } + + Verify that the field value is anything between 1 to 100 for an ongoing update on the chip-tool logs + + [1645823829292] [22944:21246546] CHIP: [DMG] ReportDataMessage = + [1645823829292] [22944:21246546] CHIP: [DMG] { + [1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIBs = + [1645823829292] [22944:21246546] CHIP: [DMG] [ + [1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIB = + [1645823829292] [22944:21246546] CHIP: [DMG] { + [1645823829292] [22944:21246546] CHIP: [DMG] AttributeDataIB = + [1645823829292] [22944:21246546] CHIP: [DMG] { + [1645823829292] [22944:21246546] CHIP: [DMG] DataVersion = 0x3873a966, + [1645823829292] [22944:21246546] CHIP: [DMG] AttributePathIB = + [1645823829292] [22944:21246546] CHIP: [DMG] { + [1645823829292] [22944:21246546] CHIP: [DMG] Endpoint = 0x0, + [1645823829292] [22944:21246546] CHIP: [DMG] Cluster = 0x2a, + [1645823829292] [22944:21246546] CHIP: [DMG] Attribute = 0x0000_0003, + [1645823829292] [22944:21246546] CHIP: [DMG] } + [1645823829292] [22944:21246546] CHIP: [DMG] + [1645823829292] [22944:21246546] CHIP: [DMG] Data = 20, + [1645823829292] [22944:21246546] CHIP: [DMG] }, + [1645823829292] [22944:21246546] CHIP: [DMG] + [1645823829292] [22944:21246546] CHIP: [DMG] }, + [1645823829292] [22944:21246546] CHIP: [DMG] + [1645823829292] [22944:21246546] CHIP: [DMG] ], + [1645823829292] [22944:21246546] CHIP: [DMG] + [1645823829292] [22944:21246546] CHIP: [DMG] SuppressResponse = true, + [1645823829292] [22944:21246546] CHIP: [DMG] InteractionModelRevision = 1 + [1645823829292] [22944:21246546] CHIP: [DMG] } disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml b/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml index 9987d176806153..b9f0fb04a06a78 100644 --- a/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SU_4_2.yaml @@ -24,21 +24,21 @@ tests: - label: "DUT sends a read request to read the UpdatePossible attribute from the TH." - verification: - "Verify that the OTA Requestor App responds to the read command" + verification: | + Verify that the OTA Requestor App responds to the read command disabled: true - label: "DUT sends a read request to read the UpdateState attribute from the TH." - verification: - "Verify that the OTA Requestor App responds to the read command" + verification: | + Verify that the OTA Requestor App responds to the read command disabled: true - label: "TH should start initiating the Software update process. While the TH is downloading the image, DUT sends a read request to read the UpdateStateProgress attribute from the TH." - verification: - "Verify that the OTA Requestor App responds to the read command" + verification: | + Verify that the OTA Requestor App responds to the read command disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_SWDIAG_1_2.yaml b/src/app/tests/suites/certification/Test_TC_SWDIAG_1_2.yaml index c4f143bda2118b..97ab0290083dfe 100644 --- a/src/app/tests/suites/certification/Test_TC_SWDIAG_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SWDIAG_1_2.yaml @@ -21,202 +21,172 @@ config: tests: - label: "DUT reads an attribute value from TH." - verification: - "./chip-tool softwarediagnostics read thread-metrics 1 0 - [1641971186.235410][50130:50135] CHIP:TOO: - SoftwareDiagnostics.ThreadMetrics response: 6 entries - [1641971186.235467][50130:50135] CHIP:TOO: [1]: { - [1641971186.235490][50130:50135] CHIP:TOO: Id: 3252 - [1641971186.235507][50130:50135] CHIP:TOO: Name: 3252 - [1641971186.235524][50130:50135] CHIP:TOO: StackFreeCurrent: 0 - [1641971186.235541][50130:50135] CHIP:TOO: StackFreeMinimum: 0 - [1641971186.235556][50130:50135] CHIP:TOO: StackSize: 0 - [1641971186.235571][50130:50135] CHIP:TOO: } - [1641971186.235595][50130:50135] CHIP:TOO: [2]: { - [1641971186.235610][50130:50135] CHIP:TOO: Id: 3244 - [1641971186.235643][50130:50135] CHIP:TOO: Name: 3244 - [1641971186.235657][50130:50135] CHIP:TOO: StackFreeCurrent: 0 - [1641971186.235672][50130:50135] CHIP:TOO: StackFreeMinimum: 0 - [1641971186.235685][50130:50135] CHIP:TOO: StackSize: 0 - [1641971186.235699][50130:50135] CHIP:TOO: } - [1641971186.235723][50130:50135] CHIP:TOO: [3]: { - [1641971186.235738][50130:50135] CHIP:TOO: Id: 3243 - [1641971186.235753][50130:50135] CHIP:TOO: Name: 3243 - [1641971186.235768][50130:50135] CHIP:TOO: StackFreeCurrent: 0 - [1641971186.235782][50130:50135] CHIP:TOO: StackFreeMinimum: 0 - [1641971186.235797][50130:50135] CHIP:TOO: StackSize: 0 - [1641971186.235813][50130:50135] CHIP:TOO: } - [1641971186.235836][50130:50135] CHIP:TOO: [4]: { - [1641971186.235851][50130:50135] CHIP:TOO: Id: 3242 - [1641971186.235866][50130:50135] CHIP:TOO: Name: 3242 - [1641971186.235880][50130:50135] CHIP:TOO: StackFreeCurrent: 0 - [1641971186.235894][50130:50135] CHIP:TOO: StackFreeMinimum: 0 - [1641971186.235907][50130:50135] CHIP:TOO: StackSize: 0 - [1641971186.235922][50130:50135] CHIP:TOO: } - [1641971186.235947][50130:50135] CHIP:TOO: [5]: { - [1641971186.235961][50130:50135] CHIP:TOO: Id: 3241 - [1641971186.235976][50130:50135] CHIP:TOO: Name: 3241 - [1641971186.235991][50130:50135] CHIP:TOO: StackFreeCurrent: 0 - [1641971186.236005][50130:50135] CHIP:TOO: StackFreeMinimum: 0 - [1641971186.236020][50130:50135] CHIP:TOO: StackSize: 0 - [1641971186.236035][50130:50135] CHIP:TOO: } - [1641971186.236058][50130:50135] CHIP:TOO: [6]: { - [1641971186.236100][50130:50135] CHIP:TOO: Id: 3240 - [1641971186.236120][50130:50135] CHIP:TOO: Name: 3240 - [1641971186.236136][50130:50135] CHIP:TOO: StackFreeCurrent: 0 - [1641971186.236150][50130:50135] CHIP:TOO: StackFreeMinimum: 0 - [1641971186.236165][50130:50135] CHIP:TOO: StackSize: 0 - [1641971186.236179][50130:50135] CHIP:TOO: } - [1641971186.236226][50130:50135] CHIP:EM: Sending Standalone Ack for - MessageCounter:4892434 on exchange 56699i - [1641971186.236274][50130:50135] CHIP:IN: Prepared secure message - 0x7f0ebeffbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 56699i with MessageCounter:15034959." + verification: | + ./chip-tool softwarediagnostics read thread-metrics 1 0 + + [1641971186.235410][50130:50135] CHIP:TOO: SoftwareDiagnostics.ThreadMetrics response: 6 entries + [1641971186.235467][50130:50135] CHIP:TOO: [1]: { + [1641971186.235490][50130:50135] CHIP:TOO: Id: 3252 + [1641971186.235507][50130:50135] CHIP:TOO: Name: 3252 + [1641971186.235524][50130:50135] CHIP:TOO: StackFreeCurrent: 0 + [1641971186.235541][50130:50135] CHIP:TOO: StackFreeMinimum: 0 + [1641971186.235556][50130:50135] CHIP:TOO: StackSize: 0 + [1641971186.235571][50130:50135] CHIP:TOO: } + [1641971186.235595][50130:50135] CHIP:TOO: [2]: { + [1641971186.235610][50130:50135] CHIP:TOO: Id: 3244 + [1641971186.235643][50130:50135] CHIP:TOO: Name: 3244 + [1641971186.235657][50130:50135] CHIP:TOO: StackFreeCurrent: 0 + [1641971186.235672][50130:50135] CHIP:TOO: StackFreeMinimum: 0 + [1641971186.235685][50130:50135] CHIP:TOO: StackSize: 0 + [1641971186.235699][50130:50135] CHIP:TOO: } + [1641971186.235723][50130:50135] CHIP:TOO: [3]: { + [1641971186.235738][50130:50135] CHIP:TOO: Id: 3243 + [1641971186.235753][50130:50135] CHIP:TOO: Name: 3243 + [1641971186.235768][50130:50135] CHIP:TOO: StackFreeCurrent: 0 + [1641971186.235782][50130:50135] CHIP:TOO: StackFreeMinimum: 0 + [1641971186.235797][50130:50135] CHIP:TOO: StackSize: 0 + [1641971186.235813][50130:50135] CHIP:TOO: } + [1641971186.235836][50130:50135] CHIP:TOO: [4]: { + [1641971186.235851][50130:50135] CHIP:TOO: Id: 3242 + [1641971186.235866][50130:50135] CHIP:TOO: Name: 3242 + [1641971186.235880][50130:50135] CHIP:TOO: StackFreeCurrent: 0 + [1641971186.235894][50130:50135] CHIP:TOO: StackFreeMinimum: 0 + [1641971186.235907][50130:50135] CHIP:TOO: StackSize: 0 + [1641971186.235922][50130:50135] CHIP:TOO: } + [1641971186.235947][50130:50135] CHIP:TOO: [5]: { + [1641971186.235961][50130:50135] CHIP:TOO: Id: 3241 + [1641971186.235976][50130:50135] CHIP:TOO: Name: 3241 + [1641971186.235991][50130:50135] CHIP:TOO: StackFreeCurrent: 0 + [1641971186.236005][50130:50135] CHIP:TOO: StackFreeMinimum: 0 + [1641971186.236020][50130:50135] CHIP:TOO: StackSize: 0 + [1641971186.236035][50130:50135] CHIP:TOO: } + [1641971186.236058][50130:50135] CHIP:TOO: [6]: { + [1641971186.236100][50130:50135] CHIP:TOO: Id: 3240 + [1641971186.236120][50130:50135] CHIP:TOO: Name: 3240 + [1641971186.236136][50130:50135] CHIP:TOO: StackFreeCurrent: 0 + [1641971186.236150][50130:50135] CHIP:TOO: StackFreeMinimum: 0 + [1641971186.236165][50130:50135] CHIP:TOO: StackSize: 0 + [1641971186.236179][50130:50135] CHIP:TOO: } + [1641971186.236226][50130:50135] CHIP:EM: Sending Standalone Ack for MessageCounter:4892434 on exchange 56699i + [1641971186.236274][50130:50135] CHIP:IN: Prepared secure message 0x7f0ebeffbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 56699i with MessageCounter:15034959. disabled: true - label: "DUT reads an attribute value from TH." - verification: - "./chip-tool softwarediagnostics read current-heap-free 1 0 - [1641971262.389447][50149:50154] CHIP:IN: Sending unauthenticated msg - 0x7f0e5affc000 with MessageCounter:1713351794 to 0x0000000000000000 at - monotonic time: 43935946 msec [1641971262.389545][50149:50154] - CHIP:EM: Flushed pending ack for MessageCounter:232282405 on exchange - 62385i [1641971262.435537][50149:50154] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:1080822 on exchange - 62386i [1641971262.435587][50149:50154] CHIP:EM: Found matching - exchange: 62386i, Delegate: 0x7f0e48001980 - [1641971262.435617][50149:50154] CHIP:EM: Rxd Ack; Removing - MessageCounter:13392565 from Retrans Table on exchange 62386i - [1641971262.435635][50149:50154] CHIP:EM: Removed CHIP - MessageCounter:13392565 from RetransTable on exchange 62386i + verification: | + ./chip-tool softwarediagnostics read current-heap-free 1 0 + + [1641971262.389447][50149:50154] CHIP:IN: Sending unauthenticated msg 0x7f0e5affc000 with MessageCounter:1713351794 to 0x0000000000000000 at monotonic time: 43935946 msec + [1641971262.389545][50149:50154] CHIP:EM: Flushed pending ack for MessageCounter:232282405 on exchange 62385i + [1641971262.435537][50149:50154] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1080822 on exchange 62386i + [1641971262.435587][50149:50154] CHIP:EM: Found matching exchange: 62386i, Delegate: 0x7f0e48001980 + [1641971262.435617][50149:50154] CHIP:EM: Rxd Ack; Removing MessageCounter:13392565 from Retrans Table on exchange 62386i + [1641971262.435635][50149:50154] CHIP:EM: Removed CHIP MessageCounter:13392565 from RetransTable on exchange 62386i [1641971262.435697][50149:50154] CHIP:DMG: ReportDataMessage = [1641971262.435728][50149:50154] CHIP:DMG: { - [1641971262.435746][50149:50154] CHIP:DMG: AttributeReportIBs = - [1641971262.435782][50149:50154] CHIP:DMG: [ - [1641971262.435805][50149:50154] CHIP:DMG: AttributeReportIB = - [1641971262.435844][50149:50154] CHIP:DMG: { - [1641971262.435867][50149:50154] CHIP:DMG: AttributeDataIB = - [1641971262.435895][50149:50154] CHIP:DMG: { - [1641971262.435924][50149:50154] CHIP:DMG: DataVersion = 0x0, - [1641971262.435953][50149:50154] CHIP:DMG: AttributePathIB = - [1641971262.435983][50149:50154] CHIP:DMG: { - [1641971262.436015][50149:50154] CHIP:DMG: Endpoint = 0x0, - [1641971262.436049][50149:50154] CHIP:DMG: Cluster = 0x34, - [1641971262.436100][50149:50154] CHIP:DMG: Attribute = 0x0000_0001, - [1641971262.436134][50149:50154] CHIP:DMG: } + [1641971262.435746][50149:50154] CHIP:DMG: AttributeReportIBs = + [1641971262.435782][50149:50154] CHIP:DMG: [ + [1641971262.435805][50149:50154] CHIP:DMG: AttributeReportIB = + [1641971262.435844][50149:50154] CHIP:DMG: { + [1641971262.435867][50149:50154] CHIP:DMG: AttributeDataIB = + [1641971262.435895][50149:50154] CHIP:DMG: { + [1641971262.435924][50149:50154] CHIP:DMG: DataVersion = 0x0, + [1641971262.435953][50149:50154] CHIP:DMG: AttributePathIB = + [1641971262.435983][50149:50154] CHIP:DMG: { + [1641971262.436015][50149:50154] CHIP:DMG: Endpoint = 0x0, + [1641971262.436049][50149:50154] CHIP:DMG: Cluster = 0x34, + [1641971262.436100][50149:50154] CHIP:DMG: Attribute = 0x0000_0001, + [1641971262.436134][50149:50154] CHIP:DMG: } [1641971262.436168][50149:50154] CHIP:DMG: - [1641971262.436202][50149:50154] CHIP:DMG: Data = 527040, - [1641971262.436234][50149:50154] CHIP:DMG: }, + [1641971262.436202][50149:50154] CHIP:DMG: Data = 527040, + [1641971262.436234][50149:50154] CHIP:DMG: }, [1641971262.436271][50149:50154] CHIP:DMG: - [1641971262.436293][50149:50154] CHIP:DMG: }, + [1641971262.436293][50149:50154] CHIP:DMG: }, [1641971262.436323][50149:50154] CHIP:DMG: - [1641971262.436344][50149:50154] CHIP:DMG: ], + [1641971262.436344][50149:50154] CHIP:DMG: ], [1641971262.436376][50149:50154] CHIP:DMG: - [1641971262.436399][50149:50154] CHIP:DMG: SuppressResponse = true, + [1641971262.436399][50149:50154] CHIP:DMG: SuppressResponse = true, [1641971262.436421][50149:50154] CHIP:DMG: } - [1641971262.436617][50149:50154] CHIP:TOO: - SoftwareDiagnostics.CurrentHeapFree response: 527040 - [1641971262.436691][50149:50154] CHIP:EM: Sending Standalone Ack for - MessageCounter:1080822 on exchange 62386i - [1641971262.436751][50149:50154] CHIP:IN: Prepared secure message - 0x7f0e5affbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 62386i with MessageCounter:13392566." + [1641971262.436617][50149:50154] CHIP:TOO: SoftwareDiagnostics.CurrentHeapFree response: 527040 + [1641971262.436691][50149:50154] CHIP:EM: Sending Standalone Ack for MessageCounter:1080822 on exchange 62386i + [1641971262.436751][50149:50154] CHIP:IN: Prepared secure message 0x7f0e5affbfe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 62386i with MessageCounter:13392566. disabled: true - label: "DUT reads an attribute value from TH." - verification: - "./chip-tool softwarediagnostics read current-heap-used 1 0 - [1641971320.778605][50166:50171] CHIP:IN: Sending unauthenticated msg - 0x7f5908860000 with MessageCounter:1549000617 to 0x0000000000000000 at - monotonic time: 43994336 msec [1641971320.778679][50166:50171] - CHIP:EM: Flushed pending ack for MessageCounter:232282407 on exchange - 63479i [1641971320.825287][50166:50171] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:2051447 on exchange - 63480i [1641971320.825336][50166:50171] CHIP:EM: Found matching - exchange: 63480i, Delegate: 0x7f58f4001980 - [1641971320.825367][50166:50171] CHIP:EM: Rxd Ack; Removing - MessageCounter:10981794 from Retrans Table on exchange 63480i - [1641971320.825385][50166:50171] CHIP:EM: Removed CHIP - MessageCounter:10981794 from RetransTable on exchange 63480i + verification: | + ./chip-tool softwarediagnostics read current-heap-used 1 0 + + [1641971320.778605][50166:50171] CHIP:IN: Sending unauthenticated msg 0x7f5908860000 with MessageCounter:1549000617 to 0x0000000000000000 at monotonic time: 43994336 msec + [1641971320.778679][50166:50171] CHIP:EM: Flushed pending ack for MessageCounter:232282407 on exchange 63479i + [1641971320.825287][50166:50171] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2051447 on exchange 63480i + [1641971320.825336][50166:50171] CHIP:EM: Found matching exchange: 63480i, Delegate: 0x7f58f4001980 + [1641971320.825367][50166:50171] CHIP:EM: Rxd Ack; Removing MessageCounter:10981794 from Retrans Table on exchange 63480i + [1641971320.825385][50166:50171] CHIP:EM: Removed CHIP MessageCounter:10981794 from RetransTable on exchange 63480i [1641971320.825437][50166:50171] CHIP:DMG: ReportDataMessage = [1641971320.825457][50166:50171] CHIP:DMG: { - [1641971320.825472][50166:50171] CHIP:DMG: AttributeReportIBs = - [1641971320.825498][50166:50171] CHIP:DMG: [ - [1641971320.825514][50166:50171] CHIP:DMG: AttributeReportIB = - [1641971320.825539][50166:50171] CHIP:DMG: { - [1641971320.825556][50166:50171] CHIP:DMG: AttributeDataIB = - [1641971320.825576][50166:50171] CHIP:DMG: { - [1641971320.825596][50166:50171] CHIP:DMG: DataVersion = 0x0, - [1641971320.825615][50166:50171] CHIP:DMG: AttributePathIB = - [1641971320.825635][50166:50171] CHIP:DMG: { - [1641971320.825654][50166:50171] CHIP:DMG: Endpoint = 0x0, - [1641971320.825680][50166:50171] CHIP:DMG: Cluster = 0x34, - [1641971320.825708][50166:50171] CHIP:DMG: Attribute = 0x0000_0002, - [1641971320.825725][50166:50171] CHIP:DMG: } + [1641971320.825472][50166:50171] CHIP:DMG: AttributeReportIBs = + [1641971320.825498][50166:50171] CHIP:DMG: [ + [1641971320.825514][50166:50171] CHIP:DMG: AttributeReportIB = + [1641971320.825539][50166:50171] CHIP:DMG: { + [1641971320.825556][50166:50171] CHIP:DMG: AttributeDataIB = + [1641971320.825576][50166:50171] CHIP:DMG: { + [1641971320.825596][50166:50171] CHIP:DMG: DataVersion = 0x0, + [1641971320.825615][50166:50171] CHIP:DMG: AttributePathIB = + [1641971320.825635][50166:50171] CHIP:DMG: { + [1641971320.825654][50166:50171] CHIP:DMG: Endpoint = 0x0, + [1641971320.825680][50166:50171] CHIP:DMG: Cluster = 0x34, + [1641971320.825708][50166:50171] CHIP:DMG: Attribute = 0x0000_0002, + [1641971320.825725][50166:50171] CHIP:DMG: } [1641971320.825746][50166:50171] CHIP:DMG: - [1641971320.825768][50166:50171] CHIP:DMG: Data = 747632, - [1641971320.825795][50166:50171] CHIP:DMG: }, + [1641971320.825768][50166:50171] CHIP:DMG: Data = 747632, + [1641971320.825795][50166:50171] CHIP:DMG: }, [1641971320.825826][50166:50171] CHIP:DMG: - [1641971320.825848][50166:50171] CHIP:DMG: }, + [1641971320.825848][50166:50171] CHIP:DMG: }, [1641971320.825881][50166:50171] CHIP:DMG: - [1641971320.825905][50166:50171] CHIP:DMG: ], + [1641971320.825905][50166:50171] CHIP:DMG: ], [1641971320.825937][50166:50171] CHIP:DMG: - [1641971320.825954][50166:50171] CHIP:DMG: SuppressResponse = true, + [1641971320.825954][50166:50171] CHIP:DMG: SuppressResponse = true, [1641971320.825969][50166:50171] CHIP:DMG: } - [1641971320.826117][50166:50171] CHIP:TOO: - SoftwareDiagnostics.CurrentHeapUsed response: 747632 - [1641971320.826177][50166:50171] CHIP:EM: Sending Standalone Ack for - MessageCounter:2051447 on exchange 63480i - [1641971320.826223][50166:50171] CHIP:IN: Prepared secure message - 0x7f590885ffe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 63480i with MessageCounter:10981795." + [1641971320.826117][50166:50171] CHIP:TOO: SoftwareDiagnostics.CurrentHeapUsed response: 747632 + [1641971320.826177][50166:50171] CHIP:EM: Sending Standalone Ack for MessageCounter:2051447 on exchange 63480i + [1641971320.826223][50166:50171] CHIP:IN: Prepared secure message 0x7f590885ffe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 63480i with MessageCounter:10981795. disabled: true - label: "DUT reads an attribute value from TH." - verification: - "./chip-tool softwarediagnostics read current-heap-high-watermark 1 0 - [1641971380.024086][50197:50202] CHIP:IN: Sending unauthenticated msg - 0x7fe13118a000 with MessageCounter:1442693195 to 0x0000000000000000 at - monotonic time: 44053581 msec [1641971380.024153][50197:50202] - CHIP:EM: Flushed pending ack for MessageCounter:232282409 on exchange - 65206i [1641971380.070957][50197:50202] CHIP:EM: Received message of - type 0x5 with protocolId (0, 1) and MessageCounter:14513546 on - exchange 65207i [1641971380.071018][50197:50202] CHIP:EM: Found - matching exchange: 65207i, Delegate: 0x7fe11c001980 - [1641971380.071048][50197:50202] CHIP:EM: Rxd Ack; Removing - MessageCounter:12482963 from Retrans Table on exchange 65207i - [1641971380.071067][50197:50202] CHIP:EM: Removed CHIP - MessageCounter:12482963 from RetransTable on exchange 65207i + verification: | + ./chip-tool softwarediagnostics read current-heap-high-watermark 1 0 + + [1641971380.024086][50197:50202] CHIP:IN: Sending unauthenticated msg 0x7fe13118a000 with MessageCounter:1442693195 to 0x0000000000000000 at monotonic time: 44053581 msec + [1641971380.024153][50197:50202] CHIP:EM: Flushed pending ack for MessageCounter:232282409 on exchange 65206i + [1641971380.070957][50197:50202] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:14513546 on exchange 65207i + [1641971380.071018][50197:50202] CHIP:EM: Found matching exchange: 65207i, Delegate: 0x7fe11c001980 + [1641971380.071048][50197:50202] CHIP:EM: Rxd Ack; Removing MessageCounter:12482963 from Retrans Table on exchange 65207i + [1641971380.071067][50197:50202] CHIP:EM: Removed CHIP MessageCounter:12482963 from RetransTable on exchange 65207i [1641971380.071120][50197:50202] CHIP:DMG: ReportDataMessage = [1641971380.071140][50197:50202] CHIP:DMG: { - [1641971380.071154][50197:50202] CHIP:DMG: AttributeReportIBs = - [1641971380.071178][50197:50202] CHIP:DMG: [ - [1641971380.071195][50197:50202] CHIP:DMG: AttributeReportIB = - [1641971380.071221][50197:50202] CHIP:DMG: { - [1641971380.071237][50197:50202] CHIP:DMG: AttributeDataIB = - [1641971380.071257][50197:50202] CHIP:DMG: { - [1641971380.071281][50197:50202] CHIP:DMG: DataVersion = 0x0, - [1641971380.071300][50197:50202] CHIP:DMG: AttributePathIB = - [1641971380.071321][50197:50202] CHIP:DMG: { - [1641971380.071341][50197:50202] CHIP:DMG: Endpoint = 0x0, - [1641971380.071360][50197:50202] CHIP:DMG: Cluster = 0x34, - [1641971380.071379][50197:50202] CHIP:DMG: Attribute = 0x0000_0003, - [1641971380.071398][50197:50202] CHIP:DMG: } + [1641971380.071154][50197:50202] CHIP:DMG: AttributeReportIBs = + [1641971380.071178][50197:50202] CHIP:DMG: [ + [1641971380.071195][50197:50202] CHIP:DMG: AttributeReportIB = + [1641971380.071221][50197:50202] CHIP:DMG: { + [1641971380.071237][50197:50202] CHIP:DMG: AttributeDataIB = + [1641971380.071257][50197:50202] CHIP:DMG: { + [1641971380.071281][50197:50202] CHIP:DMG: DataVersion = 0x0, + [1641971380.071300][50197:50202] CHIP:DMG: AttributePathIB = + [1641971380.071321][50197:50202] CHIP:DMG: { + [1641971380.071341][50197:50202] CHIP:DMG: Endpoint = 0x0, + [1641971380.071360][50197:50202] CHIP:DMG: Cluster = 0x34, + [1641971380.071379][50197:50202] CHIP:DMG: Attribute = 0x0000_0003, + [1641971380.071398][50197:50202] CHIP:DMG: } [1641971380.071421][50197:50202] CHIP:DMG: - [1641971380.071443][50197:50202] CHIP:DMG: Data = 748448, - [1641971380.071463][50197:50202] CHIP:DMG: }, + [1641971380.071443][50197:50202] CHIP:DMG: Data = 748448, + [1641971380.071463][50197:50202] CHIP:DMG: }, [1641971380.071487][50197:50202] CHIP:DMG: - [1641971380.071504][50197:50202] CHIP:DMG: }, + [1641971380.071504][50197:50202] CHIP:DMG: }, [1641971380.071528][50197:50202] CHIP:DMG: - [1641971380.071544][50197:50202] CHIP:DMG: ], + [1641971380.071544][50197:50202] CHIP:DMG: ], [1641971380.071570][50197:50202] CHIP:DMG: - [1641971380.071588][50197:50202] CHIP:DMG: SuppressResponse = true, + [1641971380.071588][50197:50202] CHIP:DMG: SuppressResponse = true, [1641971380.071603][50197:50202] CHIP:DMG: } - [1641971380.071731][50197:50202] CHIP:TOO: - SoftwareDiagnostics.CurrentHeapHighWatermark response: 748448 - [1641971380.071792][50197:50202] CHIP:EM: Sending Standalone Ack for - MessageCounter:14513546 on exchange 65207i - [1641971380.071839][50197:50202] CHIP:IN: Prepared secure message - 0x7fe131189fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId - (0, 0) on exchange 65207i with MessageCounter:12482964." + [1641971380.071731][50197:50202] CHIP:TOO: SoftwareDiagnostics.CurrentHeapHighWatermark response: 748448 + [1641971380.071792][50197:50202] CHIP:EM: Sending Standalone Ack for MessageCounter:14513546 on exchange 65207i + [1641971380.071839][50197:50202] CHIP:IN: Prepared secure message 0x7fe131189fe0 to 0x0000000000000002 (1) of type 0x10 and protocolId (0, 0) on exchange 65207i with MessageCounter:12482964. disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_2.yaml b/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_2.yaml index 07bdbc265e0a26..42770e9e5da7f8 100644 --- a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_WIFIDIAG_1_2.yaml @@ -21,637 +21,556 @@ config: tests: - label: "Commission TH to DUT" - verification: "" + verification: | + disabled: true - label: "DUT reads a attribute value from TH." - verification: - "Verify that the attribute value is non-zero and the value data type - matches ./chip-tool wifinetworkdiagnostics read bssid 1 0 - [1636556333.275352][2710:2716] CHIP:EM: Flushed pending ack for - MessageCounter:1532129240 on exchange 51129i - [1636556333.312883][2710:2716] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 51130i - [1636556333.312930][2710:2716] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 51130i - [1636556333.312955][2710:2716] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 51130i [1636556333.346401][2710:2716] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 51130i [1636556333.346467][2710:2716] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 51130i + verification: | + Verify that the attribute value is non-zero and the value data type matches + + ./chip-tool wifinetworkdiagnostics read bssid 1 0 + + [1636556333.275352][2710:2716] CHIP:EM: Flushed pending ack for MessageCounter:1532129240 on exchange 51129i + [1636556333.312883][2710:2716] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 51130i + [1636556333.312930][2710:2716] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51130i + [1636556333.312955][2710:2716] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 51130i + [1636556333.346401][2710:2716] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 51130i + [1636556333.346467][2710:2716] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 51130i [1636556333.346553][2710:2716] CHIP:DMG: ReportDataMessage = [1636556333.346606][2710:2716] CHIP:DMG: { - [1636556333.346652][2710:2716] CHIP:DMG: AttributeDataList = - [1636556333.346706][2710:2716] CHIP:DMG: [ - [1636556333.346756][2710:2716] CHIP:DMG: AttributeDataElement = - [1636556333.346821][2710:2716] CHIP:DMG: { - [1636556333.346880][2710:2716] CHIP:DMG: AttributePathIB = - [1636556333.346953][2710:2716] CHIP:DMG: { - [1636556333.347028][2710:2716] CHIP:DMG: Endpoint = 0x1, - [1636556333.347107][2710:2716] CHIP:DMG: Cluster = 0x36, - [1636556333.347184][2710:2716] CHIP:DMG: Attribute = 0x0000_0000, - [1636556333.347257][2710:2716] CHIP:DMG: } + [1636556333.346652][2710:2716] CHIP:DMG: AttributeDataList = + [1636556333.346706][2710:2716] CHIP:DMG: [ + [1636556333.346756][2710:2716] CHIP:DMG: AttributeDataElement = + [1636556333.346821][2710:2716] CHIP:DMG: { + [1636556333.346880][2710:2716] CHIP:DMG: AttributePathIB = + [1636556333.346953][2710:2716] CHIP:DMG: { + [1636556333.347028][2710:2716] CHIP:DMG: Endpoint = 0x1, + [1636556333.347107][2710:2716] CHIP:DMG: Cluster = 0x36, + [1636556333.347184][2710:2716] CHIP:DMG: Attribute = 0x0000_0000, + [1636556333.347257][2710:2716] CHIP:DMG: } [1636556333.347337][2710:2716] CHIP:DMG: - [1636556333.347410][2710:2716] CHIP:DMG: Status = 0x86, - [1636556333.347472][2710:2716] CHIP:DMG: }, + [1636556333.347410][2710:2716] CHIP:DMG: Status = 0x86, + [1636556333.347472][2710:2716] CHIP:DMG: }, [1636556333.347538][2710:2716] CHIP:DMG: - [1636556333.347588][2710:2716] CHIP:DMG: ], + [1636556333.347588][2710:2716] CHIP:DMG: ], [1636556333.347647][2710:2716] CHIP:DMG: [1636556333.347693][2710:2716] CHIP:DMG: } [1636556333.347851][2710:2716] CHIP:ZCL: ReadAttributesResponse: - [1636556333.347897][2710:2716] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556333.347944][2710:2716] CHIP:ZCL: attributeId: 0x0000_0000 - [1636556333.347987][2710:2716] CHIP:ZCL: status: UnsupportedAttribute - (0x0086) [1636556333.348031][2710:2716] CHIP:TOO: Default Failure - Response: 0x86 [1636556333.348146][2710:2716] CHIP:EM: Piggybacking - Ack for MessageCounter:2 on exchange: 51130i - [1636556333.348247][2710:2716] CHIP:IN: Prepared encrypted message - 0xaaaac60edf00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) - on exchange 51130i with MessageC ounter:1. - [1636556333.348369][2710:2716] CHIP:IN: Sending encrypted msg - 0xaaaac60edf00 with MessageCounter:1 to 0x0000000000000001 at - monotonic time: 2038624 msec" + [1636556333.347897][2710:2716] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556333.347944][2710:2716] CHIP:ZCL: attributeId: 0x0000_0000 + [1636556333.347987][2710:2716] CHIP:ZCL: status: UnsupportedAttribute (0x0086) + [1636556333.348031][2710:2716] CHIP:TOO: Default Failure Response: 0x86 + [1636556333.348146][2710:2716] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 51130i + [1636556333.348247][2710:2716] CHIP:IN: Prepared encrypted message 0xaaaac60edf00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 51130i with MessageC + ounter:1. + [1636556333.348369][2710:2716] CHIP:IN: Sending encrypted msg 0xaaaac60edf00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2038624 msec disabled: true - label: "DUT reads a attribute value from TH." - verification: - "Verify that the attribute value is non-zero and the value data type - matches ./chip-tool wifinetworkdiagnostics read security-type 1 0 - [1636556458.315715][2739:2744] CHIP:EM: Flushed pending ack for - MessageCounter:1532129242 on exchange 43784i - [1636556458.379931][2739:2744] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 43785i - [1636556458.379992][2739:2744] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 43785i - [1636556458.380024][2739:2744] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 43785i [1636556458.380077][2739:2744] - CHIP:DMG: ReportDataMessage = [1636556458.380111][2739:2744] CHIP:DMG: - { [1636556458.380137][2739:2744] CHIP:DMG: AttributeDataList = - [1636556458.380170][2739:2744] CHIP:DMG: [ - [1636556458.380199][2739:2744] CHIP:DMG: AttributeDataElement = - [1636556458.380238][2739:2744] CHIP:DMG: { - [1636556458.380298][2739:2744] CHIP:DMG: AttributePathIB = - [1636556458.380344][2739:2744] CHIP:DMG: { - [1636556458.380388][2739:2744] CHIP:DMG: Endpoint = 0x1, - [1636556458.380435][2739:2744] CHIP:DMG: Cluster = 0x36, - [1636556458.380484][2739:2744] CHIP:DMG: Attribute = 0x0000_0001, - [1636556458.380527][2739:2744] CHIP:DMG: } + verification: | + Verify that the attribute value is non-zero and the value data type matches + + ./chip-tool wifinetworkdiagnostics read security-type 1 0 + + [1636556458.315715][2739:2744] CHIP:EM: Flushed pending ack for MessageCounter:1532129242 on exchange 43784i + [1636556458.379931][2739:2744] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 43785i + [1636556458.379992][2739:2744] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 43785i + [1636556458.380024][2739:2744] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 43785i + [1636556458.380077][2739:2744] CHIP:DMG: ReportDataMessage = + [1636556458.380111][2739:2744] CHIP:DMG: { + [1636556458.380137][2739:2744] CHIP:DMG: AttributeDataList = + [1636556458.380170][2739:2744] CHIP:DMG: [ + [1636556458.380199][2739:2744] CHIP:DMG: AttributeDataElement = + [1636556458.380238][2739:2744] CHIP:DMG: { + [1636556458.380298][2739:2744] CHIP:DMG: AttributePathIB = + [1636556458.380344][2739:2744] CHIP:DMG: { + [1636556458.380388][2739:2744] CHIP:DMG: Endpoint = 0x1, + [1636556458.380435][2739:2744] CHIP:DMG: Cluster = 0x36, + [1636556458.380484][2739:2744] CHIP:DMG: Attribute = 0x0000_0001, + [1636556458.380527][2739:2744] CHIP:DMG: } [1636556458.380574][2739:2744] CHIP:DMG: - [1636556458.380620][2739:2744] CHIP:DMG: Data = 0, - [1636556458.380662][2739:2744] CHIP:DMG: DataElementVersion = 0x0, - [1636556458.380702][2739:2744] CHIP:DMG: }, + [1636556458.380620][2739:2744] CHIP:DMG: Data = 0, + [1636556458.380662][2739:2744] CHIP:DMG: DataElementVersion = 0x0, + [1636556458.380702][2739:2744] CHIP:DMG: }, [1636556458.380742][2739:2744] CHIP:DMG: - [1636556458.380771][2739:2744] CHIP:DMG: ], + [1636556458.380771][2739:2744] CHIP:DMG: ], [1636556458.380806][2739:2744] CHIP:DMG: [1636556458.380833][2739:2744] CHIP:DMG: } [1636556458.380945][2739:2744] CHIP:ZCL: ReadAttributesResponse: - [1636556458.380990][2739:2744] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556458.381035][2739:2744] CHIP:ZCL: attributeId: 0x0000_0001 - [1636556458.381078][2739:2744] CHIP:ZCL: status: Success (0x0000) - [1636556458.381119][2739:2744] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556458.380990][2739:2744] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556458.381035][2739:2744] CHIP:ZCL: attributeId: 0x0000_0001 + [1636556458.381078][2739:2744] CHIP:ZCL: status: Success (0x0000) + [1636556458.381119][2739:2744] CHIP:ZCL: attribute TLV Type: 0x04 [1636556458.381163][2739:2744] CHIP:TOO: Int8u attribute Response: 0 - [1636556458.381279][2739:2744] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 43785i [1636556458.381472][2739:2744] - CHIP:IN: Prepared encrypted message 0xaaab16775f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 43785i with MessageC ounter:1. [1636556458.381548][2739:2744] CHIP:IN: - Sending encrypted msg 0xaaab16775f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2163657 msec" + [1636556458.381279][2739:2744] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 43785i + [1636556458.381472][2739:2744] CHIP:IN: Prepared encrypted message 0xaaab16775f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 43785i with MessageC + ounter:1. + [1636556458.381548][2739:2744] CHIP:IN: Sending encrypted msg 0xaaab16775f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2163657 msec disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool wifinetworkdiagnostics read wi-fi-version 1 0 - [1636556683.277405][2749:2755] CHIP:EM: Flushed pending ack for - MessageCounter:1532129244 on exchange 38911i - [1636556683.344547][2749:2755] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 38912i - [1636556683.344652][2749:2755] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 38912i - [1636556683.344702][2749:2755] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 38912i [1636556683.344784][2749:2755] - CHIP:DMG: ReportDataMessage = [1636556683.344838][2749:2755] CHIP:DMG: - { [1636556683.344881][2749:2755] CHIP:DMG: AttributeDataList = - [1636556683.344933][2749:2755] CHIP:DMG: [ - [1636556683.344982][2749:2755] CHIP:DMG: AttributeDataElement = - [1636556683.345044][2749:2755] CHIP:DMG: { - [1636556683.345102][2749:2755] CHIP:DMG: AttributePathIB = - [1636556683.345174][2749:2755] CHIP:DMG: { - [1636556683.345247][2749:2755] CHIP:DMG: Endpoint = 0x1, - [1636556683.345325][2749:2755] CHIP:DMG: Cluster = 0x36, - [1636556683.345403][2749:2755] CHIP:DMG: Attribute = 0x0000_0002, - [1636556683.345475][2749:2755] CHIP:DMG: } + verification: | + ./chip-tool wifinetworkdiagnostics read wi-fi-version 1 0 + + [1636556683.277405][2749:2755] CHIP:EM: Flushed pending ack for MessageCounter:1532129244 on exchange 38911i + [1636556683.344547][2749:2755] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 38912i + [1636556683.344652][2749:2755] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 38912i + [1636556683.344702][2749:2755] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 38912i + [1636556683.344784][2749:2755] CHIP:DMG: ReportDataMessage = + [1636556683.344838][2749:2755] CHIP:DMG: { + [1636556683.344881][2749:2755] CHIP:DMG: AttributeDataList = + [1636556683.344933][2749:2755] CHIP:DMG: [ + [1636556683.344982][2749:2755] CHIP:DMG: AttributeDataElement = + [1636556683.345044][2749:2755] CHIP:DMG: { + [1636556683.345102][2749:2755] CHIP:DMG: AttributePathIB = + [1636556683.345174][2749:2755] CHIP:DMG: { + [1636556683.345247][2749:2755] CHIP:DMG: Endpoint = 0x1, + [1636556683.345325][2749:2755] CHIP:DMG: Cluster = 0x36, + [1636556683.345403][2749:2755] CHIP:DMG: Attribute = 0x0000_0002, + [1636556683.345475][2749:2755] CHIP:DMG: } [1636556683.345552][2749:2755] CHIP:DMG: - [1636556683.345627][2749:2755] CHIP:DMG: Data = 0, - [1636556683.345697][2749:2755] CHIP:DMG: DataElementVersion = 0x0, - [1636556683.345764][2749:2755] CHIP:DMG: }, + [1636556683.345627][2749:2755] CHIP:DMG: Data = 0, + [1636556683.345697][2749:2755] CHIP:DMG: DataElementVersion = 0x0, + [1636556683.345764][2749:2755] CHIP:DMG: }, [1636556683.345830][2749:2755] CHIP:DMG: - [1636556683.345878][2749:2755] CHIP:DMG: ], + [1636556683.345878][2749:2755] CHIP:DMG: ], [1636556683.345938][2749:2755] CHIP:DMG: [1636556683.345982][2749:2755] CHIP:DMG: } [1636556683.346132][2749:2755] CHIP:ZCL: ReadAttributesResponse: - [1636556683.346176][2749:2755] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556683.346222][2749:2755] CHIP:ZCL: attributeId: 0x0000_0002 - [1636556683.346265][2749:2755] CHIP:ZCL: status: Success (0x0000) - [1636556683.346307][2749:2755] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556683.346176][2749:2755] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556683.346222][2749:2755] CHIP:ZCL: attributeId: 0x0000_0002 + [1636556683.346265][2749:2755] CHIP:ZCL: status: Success (0x0000) + [1636556683.346307][2749:2755] CHIP:ZCL: attribute TLV Type: 0x04 [1636556683.346351][2749:2755] CHIP:TOO: Int8u attribute Response: 0 - [1636556683.346467][2749:2755] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 38912i [1636556683.346567][2749:2755] - CHIP:IN: Prepared encrypted message 0xaaab0050df00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 38912i with MessageC ounter:1. [1636556683.346638][2749:2755] CHIP:IN: - Sending encrypted msg 0xaaab0050df00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2388622 msec" + [1636556683.346467][2749:2755] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 38912i + [1636556683.346567][2749:2755] CHIP:IN: Prepared encrypted message 0xaaab0050df00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 38912i with MessageC + ounter:1. + [1636556683.346638][2749:2755] CHIP:IN: Sending encrypted msg 0xaaab0050df00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2388622 msec disabled: true - label: "DUT reads a attribute value from TH." - verification: - "./chip-tool wifinetworkdiagnostics read channel-number 1 0 - [1636556726.175879][2759:2764] CHIP:EM: Flushed pending ack for - MessageCounter:1532129246 on exchange 3811i - [1636556726.213528][2759:2764] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 3812i - [1636556726.213572][2759:2764] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 3812i - [1636556726.213594][2759:2764] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 3812i [1636556726.249929][2759:2764] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 3812i [1636556726.249996][2759:2764] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 3812i + verification: | + ./chip-tool wifinetworkdiagnostics read channel-number 1 0 + + [1636556726.175879][2759:2764] CHIP:EM: Flushed pending ack for MessageCounter:1532129246 on exchange 3811i + [1636556726.213528][2759:2764] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 3812i + [1636556726.213572][2759:2764] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 3812i + [1636556726.213594][2759:2764] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 3812i + [1636556726.249929][2759:2764] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 3812i + [1636556726.249996][2759:2764] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 3812i [1636556726.250083][2759:2764] CHIP:DMG: ReportDataMessage = [1636556726.250139][2759:2764] CHIP:DMG: { - [1636556726.250183][2759:2764] CHIP:DMG: AttributeDataList = - [1636556726.250236][2759:2764] CHIP:DMG: [ - [1636556726.250285][2759:2764] CHIP:DMG: AttributeDataElement = - [1636556726.250350][2759:2764] CHIP:DMG: { - [1636556726.250408][2759:2764] CHIP:DMG: AttributePathIB = - [1636556726.250481][2759:2764] CHIP:DMG: { - [1636556726.250555][2759:2764] CHIP:DMG: Endpoint = 0x1, - [1636556726.250634][2759:2764] CHIP:DMG: Cluster = 0x36, - [1636556726.250711][2759:2764] CHIP:DMG: Attribute = 0x0000_0003, - [1636556726.250783][2759:2764] CHIP:DMG: } + [1636556726.250183][2759:2764] CHIP:DMG: AttributeDataList = + [1636556726.250236][2759:2764] CHIP:DMG: [ + [1636556726.250285][2759:2764] CHIP:DMG: AttributeDataElement = + [1636556726.250350][2759:2764] CHIP:DMG: { + [1636556726.250408][2759:2764] CHIP:DMG: AttributePathIB = + [1636556726.250481][2759:2764] CHIP:DMG: { + [1636556726.250555][2759:2764] CHIP:DMG: Endpoint = 0x1, + [1636556726.250634][2759:2764] CHIP:DMG: Cluster = 0x36, + [1636556726.250711][2759:2764] CHIP:DMG: Attribute = 0x0000_0003, + [1636556726.250783][2759:2764] CHIP:DMG: } [1636556726.250860][2759:2764] CHIP:DMG: - [1636556726.250935][2759:2764] CHIP:DMG: Data = 11, - [1636556726.251007][2759:2764] CHIP:DMG: DataElementVersion = 0x0, - [1636556726.251075][2759:2764] CHIP:DMG: }, + [1636556726.250935][2759:2764] CHIP:DMG: Data = 11, + [1636556726.251007][2759:2764] CHIP:DMG: DataElementVersion = 0x0, + [1636556726.251075][2759:2764] CHIP:DMG: }, [1636556726.251141][2759:2764] CHIP:DMG: - [1636556726.251189][2759:2764] CHIP:DMG: ], + [1636556726.251189][2759:2764] CHIP:DMG: ], [1636556726.251249][2759:2764] CHIP:DMG: [1636556726.251294][2759:2764] CHIP:DMG: } [1636556726.251446][2759:2764] CHIP:ZCL: ReadAttributesResponse: - [1636556726.251490][2759:2764] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556726.251536][2759:2764] CHIP:ZCL: attributeId: 0x0000_0003 - [1636556726.251579][2759:2764] CHIP:ZCL: status: Success (0x0000) - [1636556726.251623][2759:2764] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556726.251490][2759:2764] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556726.251536][2759:2764] CHIP:ZCL: attributeId: 0x0000_0003 + [1636556726.251579][2759:2764] CHIP:ZCL: status: Success (0x0000) + [1636556726.251623][2759:2764] CHIP:ZCL: attribute TLV Type: 0x04 [1636556726.251665][2759:2764] CHIP:TOO: Int16u attribute Response: 11 - [1636556726.251780][2759:2764] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 3812i [1636556726.251880][2759:2764] - CHIP:IN: Prepared encrypted message 0xaaab0bb74f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 3812i - with MessageCo unter:1. [1636556726.251951][2759:2764] CHIP:IN: - Sending encrypted msg 0xaaab0bb74f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2431527 msec" + [1636556726.251780][2759:2764] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 3812i + [1636556726.251880][2759:2764] CHIP:IN: Prepared encrypted message 0xaaab0bb74f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 3812i with MessageCo + unter:1. + [1636556726.251951][2759:2764] CHIP:IN: Sending encrypted msg 0xaaab0bb74f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2431527 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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 - [1636556744.306378][2766:2771] CHIP:EM: Flushed pending ack for - MessageCounter:1532129248 on exchange 63266i - [1636556744.375649][2766:2771] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 63267i - [1636556744.375739][2766:2771] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 63267i - [1636556744.375789][2766:2771] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 63267i [1636556744.375868][2766:2771] - CHIP:DMG: ReportDataMessage = [1636556744.375921][2766:2771] CHIP:DMG: - { [1636556744.375963][2766:2771] CHIP:DMG: AttributeDataList = - [1636556744.376015][2766:2771] CHIP:DMG: [ - [1636556744.376064][2766:2771] CHIP:DMG: AttributeDataElement = - [1636556744.376130][2766:2771] CHIP:DMG: { - [1636556744.376188][2766:2771] CHIP:DMG: AttributePathIB = - [1636556744.376262][2766:2771] CHIP:DMG: { - [1636556744.376374][2766:2771] CHIP:DMG: Endpoint = 0x1, - [1636556744.376451][2766:2771] CHIP:DMG: Cluster = 0x36, - [1636556744.376528][2766:2771] CHIP:DMG: Attribute = 0x0000_0004, - [1636556744.376599][2766:2771] CHIP:DMG: } + + [1636556744.306378][2766:2771] CHIP:EM: Flushed pending ack for MessageCounter:1532129248 on exchange 63266i + [1636556744.375649][2766:2771] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 63267i + [1636556744.375739][2766:2771] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 63267i + [1636556744.375789][2766:2771] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 63267i + [1636556744.375868][2766:2771] CHIP:DMG: ReportDataMessage = + [1636556744.375921][2766:2771] CHIP:DMG: { + [1636556744.375963][2766:2771] CHIP:DMG: AttributeDataList = + [1636556744.376015][2766:2771] CHIP:DMG: [ + [1636556744.376064][2766:2771] CHIP:DMG: AttributeDataElement = + [1636556744.376130][2766:2771] CHIP:DMG: { + [1636556744.376188][2766:2771] CHIP:DMG: AttributePathIB = + [1636556744.376262][2766:2771] CHIP:DMG: { + [1636556744.376374][2766:2771] CHIP:DMG: Endpoint = 0x1, + [1636556744.376451][2766:2771] CHIP:DMG: Cluster = 0x36, + [1636556744.376528][2766:2771] CHIP:DMG: Attribute = 0x0000_0004, + [1636556744.376599][2766:2771] CHIP:DMG: } [1636556744.376676][2766:2771] CHIP:DMG: - [1636556744.376753][2766:2771] CHIP:DMG: Data = -42, - [1636556744.376817][2766:2771] CHIP:DMG: DataElementVersion = 0x0, - [1636556744.376879][2766:2771] CHIP:DMG: }, + [1636556744.376753][2766:2771] CHIP:DMG: Data = -42, + [1636556744.376817][2766:2771] CHIP:DMG: DataElementVersion = 0x0, + [1636556744.376879][2766:2771] CHIP:DMG: }, [1636556744.376945][2766:2771] CHIP:DMG: - [1636556744.376994][2766:2771] CHIP:DMG: ], + [1636556744.376994][2766:2771] CHIP:DMG: ], [1636556744.377052][2766:2771] CHIP:DMG: [1636556744.377096][2766:2771] CHIP:DMG: } [1636556744.377245][2766:2771] CHIP:ZCL: ReadAttributesResponse: - [1636556744.377289][2766:2771] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556744.377334][2766:2771] CHIP:ZCL: attributeId: 0x0000_0004 - [1636556744.377376][2766:2771] CHIP:ZCL: status: Success (0x0000) - [1636556744.377417][2766:2771] CHIP:ZCL: attribute TLV Type: 0x00 + [1636556744.377289][2766:2771] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556744.377334][2766:2771] CHIP:ZCL: attributeId: 0x0000_0004 + [1636556744.377376][2766:2771] CHIP:ZCL: status: Success (0x0000) + [1636556744.377417][2766:2771] CHIP:ZCL: attribute TLV Type: 0x00 [1636556744.377460][2766:2771] CHIP:TOO: Int8s attribute Response: -42 - [1636556744.377581][2766:2771] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 63267i [1636556744.377683][2766:2771] - CHIP:IN: Prepared encrypted message 0xaaaaec3cef00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 63267i with MessageC ounter:1. [1636556744.377755][2766:2771] CHIP:IN: - Sending encrypted msg 0xaaaaec3cef00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2449653 msec" + [1636556744.377581][2766:2771] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 63267i + [1636556744.377683][2766:2771] CHIP:IN: Prepared encrypted message 0xaaaaec3cef00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 63267i with MessageC + ounter:1. + [1636556744.377755][2766:2771] CHIP:IN: Sending encrypted msg 0xaaaaec3cef00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2449653 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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 beacon-lost-count 1 0 - [1636556771.334558][2776:2782] CHIP:EM: Flushed pending ack for - MessageCounter:1532129250 on exchange 19931i - [1636556771.404558][2776:2782] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 19932i - [1636556771.404657][2776:2782] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 19932i - [1636556771.404710][2776:2782] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 19932i [1636556771.404793][2776:2782] - CHIP:DMG: ReportDataMessage = [1636556771.404846][2776:2782] CHIP:DMG: - { [1636556771.404889][2776:2782] CHIP:DMG: AttributeDataList = - [1636556771.404941][2776:2782] CHIP:DMG: [ - [1636556771.404990][2776:2782] CHIP:DMG: AttributeDataElement = - [1636556771.405057][2776:2782] CHIP:DMG: { - [1636556771.405110][2776:2782] CHIP:DMG: AttributePathIB = - [1636556771.405184][2776:2782] CHIP:DMG: { - [1636556771.405258][2776:2782] CHIP:DMG: Endpoint = 0x1, - [1636556771.405335][2776:2782] CHIP:DMG: Cluster = 0x36, - [1636556771.405413][2776:2782] CHIP:DMG: Attribute = 0x0000_0005, - [1636556771.405484][2776:2782] CHIP:DMG: } + + [1636556771.334558][2776:2782] CHIP:EM: Flushed pending ack for MessageCounter:1532129250 on exchange 19931i + [1636556771.404558][2776:2782] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 19932i + [1636556771.404657][2776:2782] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 19932i + [1636556771.404710][2776:2782] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 19932i + [1636556771.404793][2776:2782] CHIP:DMG: ReportDataMessage = + [1636556771.404846][2776:2782] CHIP:DMG: { + [1636556771.404889][2776:2782] CHIP:DMG: AttributeDataList = + [1636556771.404941][2776:2782] CHIP:DMG: [ + [1636556771.404990][2776:2782] CHIP:DMG: AttributeDataElement = + [1636556771.405057][2776:2782] CHIP:DMG: { + [1636556771.405110][2776:2782] CHIP:DMG: AttributePathIB = + [1636556771.405184][2776:2782] CHIP:DMG: { + [1636556771.405258][2776:2782] CHIP:DMG: Endpoint = 0x1, + [1636556771.405335][2776:2782] CHIP:DMG: Cluster = 0x36, + [1636556771.405413][2776:2782] CHIP:DMG: Attribute = 0x0000_0005, + [1636556771.405484][2776:2782] CHIP:DMG: } [1636556771.405562][2776:2782] CHIP:DMG: - [1636556771.405637][2776:2782] CHIP:DMG: Data = 0, - [1636556771.405707][2776:2782] CHIP:DMG: DataElementVersion = 0x0, - [1636556771.405773][2776:2782] CHIP:DMG: }, + [1636556771.405637][2776:2782] CHIP:DMG: Data = 0, + [1636556771.405707][2776:2782] CHIP:DMG: DataElementVersion = 0x0, + [1636556771.405773][2776:2782] CHIP:DMG: }, [1636556771.405840][2776:2782] CHIP:DMG: - [1636556771.405887][2776:2782] CHIP:DMG: ], + [1636556771.405887][2776:2782] CHIP:DMG: ], [1636556771.405947][2776:2782] CHIP:DMG: [1636556771.405991][2776:2782] CHIP:DMG: } [1636556771.406141][2776:2782] CHIP:ZCL: ReadAttributesResponse: - [1636556771.406185][2776:2782] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556771.406231][2776:2782] CHIP:ZCL: attributeId: 0x0000_0005 - [1636556771.406274][2776:2782] CHIP:ZCL: status: Success (0x0000) - [1636556771.406315][2776:2782] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556771.406185][2776:2782] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556771.406231][2776:2782] CHIP:ZCL: attributeId: 0x0000_0005 + [1636556771.406274][2776:2782] CHIP:ZCL: status: Success (0x0000) + [1636556771.406315][2776:2782] CHIP:ZCL: attribute TLV Type: 0x04 [1636556771.406358][2776:2782] CHIP:TOO: Int32u attribute Response: 0 - [1636556771.406478][2776:2782] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 19932i [1636556771.406577][2776:2782] - CHIP:IN: Prepared encrypted message 0xaaaaf69c8f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 19932i with MessageC ounter:1. [1636556771.406649][2776:2782] CHIP:IN: - Sending encrypted msg 0xaaaaf69c8f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2476682 msec" + [1636556771.406478][2776:2782] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 19932i + [1636556771.406577][2776:2782] CHIP:IN: Prepared encrypted message 0xaaaaf69c8f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 19932i with MessageC + ounter:1. + [1636556771.406649][2776:2782] CHIP:IN: Sending encrypted msg 0xaaaaf69c8f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2476682 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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 beacon-rx-count 1 0 - [1636556782.701773][2784:2789] CHIP:EM: Flushed pending ack for - MessageCounter:1532129252 on exchange 18818i - [1636556782.740898][2784:2789] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 18819i - [1636556782.740978][2784:2789] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 18819i - [1636556782.741017][2784:2789] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 18819i [1636556782.775213][2784:2789] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 18819i [1636556782.775278][2784:2789] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 18819i + + [1636556782.701773][2784:2789] CHIP:EM: Flushed pending ack for MessageCounter:1532129252 on exchange 18818i + [1636556782.740898][2784:2789] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 18819i + [1636556782.740978][2784:2789] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 18819i + [1636556782.741017][2784:2789] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 18819i + [1636556782.775213][2784:2789] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 18819i + [1636556782.775278][2784:2789] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 18819i [1636556782.775365][2784:2789] CHIP:DMG: ReportDataMessage = [1636556782.775420][2784:2789] CHIP:DMG: { - [1636556782.775464][2784:2789] CHIP:DMG: AttributeDataList = - [1636556782.775517][2784:2789] CHIP:DMG: [ - [1636556782.775567][2784:2789] CHIP:DMG: AttributeDataElement = - [1636556782.775630][2784:2789] CHIP:DMG: { - [1636556782.775688][2784:2789] CHIP:DMG: AttributePathIB = - [1636556782.775761][2784:2789] CHIP:DMG: { - [1636556782.775836][2784:2789] CHIP:DMG: Endpoint = 0x1, - [1636556782.775915][2784:2789] CHIP:DMG: Cluster = 0x36, - [1636556782.775992][2784:2789] CHIP:DMG: Attribute = 0x0000_0006, - [1636556782.776062][2784:2789] CHIP:DMG: } + [1636556782.775464][2784:2789] CHIP:DMG: AttributeDataList = + [1636556782.775517][2784:2789] CHIP:DMG: [ + [1636556782.775567][2784:2789] CHIP:DMG: AttributeDataElement = + [1636556782.775630][2784:2789] CHIP:DMG: { + [1636556782.775688][2784:2789] CHIP:DMG: AttributePathIB = + [1636556782.775761][2784:2789] CHIP:DMG: { + [1636556782.775836][2784:2789] CHIP:DMG: Endpoint = 0x1, + [1636556782.775915][2784:2789] CHIP:DMG: Cluster = 0x36, + [1636556782.775992][2784:2789] CHIP:DMG: Attribute = 0x0000_0006, + [1636556782.776062][2784:2789] CHIP:DMG: } [1636556782.776139][2784:2789] CHIP:DMG: - [1636556782.776214][2784:2789] CHIP:DMG: Data = 0, - [1636556782.776324][2784:2789] CHIP:DMG: DataElementVersion = 0x0, - [1636556782.776395][2784:2789] CHIP:DMG: }, + [1636556782.776214][2784:2789] CHIP:DMG: Data = 0, + [1636556782.776324][2784:2789] CHIP:DMG: DataElementVersion = 0x0, + [1636556782.776395][2784:2789] CHIP:DMG: }, [1636556782.776462][2784:2789] CHIP:DMG: - [1636556782.776511][2784:2789] CHIP:DMG: ], + [1636556782.776511][2784:2789] CHIP:DMG: ], [1636556782.776571][2784:2789] CHIP:DMG: [1636556782.776614][2784:2789] CHIP:DMG: } [1636556782.776766][2784:2789] CHIP:ZCL: ReadAttributesResponse: - [1636556782.776810][2784:2789] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556782.776856][2784:2789] CHIP:ZCL: attributeId: 0x0000_0006 - [1636556782.776899][2784:2789] CHIP:ZCL: status: Success (0x0000) - [1636556782.776942][2784:2789] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556782.776810][2784:2789] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556782.776856][2784:2789] CHIP:ZCL: attributeId: 0x0000_0006 + [1636556782.776899][2784:2789] CHIP:ZCL: status: Success (0x0000) + [1636556782.776942][2784:2789] CHIP:ZCL: attribute TLV Type: 0x04 [1636556782.776985][2784:2789] CHIP:TOO: Int32u attribute Response: 0 - [1636556782.777102][2784:2789] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 18819i [1636556782.777205][2784:2789] - CHIP:IN: Prepared encrypted message 0xaaaad609af00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 18819i with MessageC ounter:1. [1636556782.777278][2784:2789] CHIP:IN: - Sending encrypted msg 0xaaaad609af00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2488053 msec" + [1636556782.777102][2784:2789] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 18819i + [1636556782.777205][2784:2789] CHIP:IN: Prepared encrypted message 0xaaaad609af00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 18819i with MessageC + ounter:1. + [1636556782.777278][2784:2789] CHIP:IN: Sending encrypted msg 0xaaaad609af00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2488053 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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-multicast-rx-count 1 0 - [1636556817.733490][2792:2798] CHIP:EM: Flushed pending ack for - MessageCounter:1532129254 on exchange 51755i - [1636556817.802518][2792:2798] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 51756i - [1636556817.802626][2792:2798] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 51756i - [1636556817.802684][2792:2798] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 51756i [1636556817.802770][2792:2798] - CHIP:DMG: ReportDataMessage = [1636556817.802824][2792:2798] CHIP:DMG: - { [1636556817.802866][2792:2798] CHIP:DMG: AttributeDataList = - [1636556817.802918][2792:2798] CHIP:DMG: [ - [1636556817.802967][2792:2798] CHIP:DMG: AttributeDataElement = - [1636556817.803030][2792:2798] CHIP:DMG: { - [1636556817.803087][2792:2798] CHIP:DMG: AttributePathIB = - [1636556817.803159][2792:2798] CHIP:DMG: { - [1636556817.803231][2792:2798] CHIP:DMG: Endpoint = 0x1, - [1636556817.803307][2792:2798] CHIP:DMG: Cluster = 0x36, - [1636556817.803384][2792:2798] CHIP:DMG: Attribute = 0x0000_0007, - [1636556817.803455][2792:2798] CHIP:DMG: } + + [1636556817.733490][2792:2798] CHIP:EM: Flushed pending ack for MessageCounter:1532129254 on exchange 51755i + [1636556817.802518][2792:2798] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 51756i + [1636556817.802626][2792:2798] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 51756i + [1636556817.802684][2792:2798] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 51756i + [1636556817.802770][2792:2798] CHIP:DMG: ReportDataMessage = + [1636556817.802824][2792:2798] CHIP:DMG: { + [1636556817.802866][2792:2798] CHIP:DMG: AttributeDataList = + [1636556817.802918][2792:2798] CHIP:DMG: [ + [1636556817.802967][2792:2798] CHIP:DMG: AttributeDataElement = + [1636556817.803030][2792:2798] CHIP:DMG: { + [1636556817.803087][2792:2798] CHIP:DMG: AttributePathIB = + [1636556817.803159][2792:2798] CHIP:DMG: { + [1636556817.803231][2792:2798] CHIP:DMG: Endpoint = 0x1, + [1636556817.803307][2792:2798] CHIP:DMG: Cluster = 0x36, + [1636556817.803384][2792:2798] CHIP:DMG: Attribute = 0x0000_0007, + [1636556817.803455][2792:2798] CHIP:DMG: } [1636556817.803532][2792:2798] CHIP:DMG: - [1636556817.803606][2792:2798] CHIP:DMG: Data = 77, - [1636556817.803676][2792:2798] CHIP:DMG: DataElementVersion = 0x0, - [1636556817.803742][2792:2798] CHIP:DMG: }, + [1636556817.803606][2792:2798] CHIP:DMG: Data = 77, + [1636556817.803676][2792:2798] CHIP:DMG: DataElementVersion = 0x0, + [1636556817.803742][2792:2798] CHIP:DMG: }, [1636556817.803808][2792:2798] CHIP:DMG: - [1636556817.803856][2792:2798] CHIP:DMG: ], + [1636556817.803856][2792:2798] CHIP:DMG: ], [1636556817.803915][2792:2798] CHIP:DMG: [1636556817.803979][2792:2798] CHIP:DMG: } [1636556817.804129][2792:2798] CHIP:ZCL: ReadAttributesResponse: - [1636556817.804173][2792:2798] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556817.804220][2792:2798] CHIP:ZCL: attributeId: 0x0000_0007 - [1636556817.804261][2792:2798] CHIP:ZCL: status: Success (0x0000) - [1636556817.804349][2792:2798] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556817.804173][2792:2798] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556817.804220][2792:2798] CHIP:ZCL: attributeId: 0x0000_0007 + [1636556817.804261][2792:2798] CHIP:ZCL: status: Success (0x0000) + [1636556817.804349][2792:2798] CHIP:ZCL: attribute TLV Type: 0x04 [1636556817.804391][2792:2798] CHIP:TOO: Int32u attribute Response: 77 - [1636556817.804515][2792:2798] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 51756i [1636556817.804624][2792:2798] - CHIP:IN: Prepared encrypted message 0xaaaae917ef00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 51756i with MessageC ounter:1. [1636556817.804696][2792:2798] CHIP:IN: - Sending encrypted msg 0xaaaae917ef00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2523080 msec" + [1636556817.804515][2792:2798] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 51756i + [1636556817.804624][2792:2798] CHIP:IN: Prepared encrypted message 0xaaaae917ef00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 51756i with MessageC + ounter:1. + [1636556817.804696][2792:2798] CHIP:IN: Sending encrypted msg 0xaaaae917ef00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2523080 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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-multicast-tx-count 1 0 - [1636556830.624321][2800:2805] CHIP:EM: Flushed pending ack for - MessageCounter:1532129256 on exchange 37953i - [1636556830.662515][2800:2805] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 37954i - [1636556830.662557][2800:2805] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 37954i - [1636556830.662578][2800:2805] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 37954i [1636556830.706220][2800:2805] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 37954i [1636556830.706287][2800:2805] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 37954i + + [1636556830.624321][2800:2805] CHIP:EM: Flushed pending ack for MessageCounter:1532129256 on exchange 37953i + [1636556830.662515][2800:2805] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 37954i + [1636556830.662557][2800:2805] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 37954i + [1636556830.662578][2800:2805] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 37954i + [1636556830.706220][2800:2805] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 37954i + [1636556830.706287][2800:2805] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 37954i [1636556830.706372][2800:2805] CHIP:DMG: ReportDataMessage = [1636556830.706427][2800:2805] CHIP:DMG: { - [1636556830.706471][2800:2805] CHIP:DMG: AttributeDataList = - [1636556830.706524][2800:2805] CHIP:DMG: [ - [1636556830.706574][2800:2805] CHIP:DMG: AttributeDataElement = - [1636556830.706638][2800:2805] CHIP:DMG: { - [1636556830.706696][2800:2805] CHIP:DMG: AttributePathIB = - [1636556830.706769][2800:2805] CHIP:DMG: { - [1636556830.706842][2800:2805] CHIP:DMG: Endpoint = 0x1, - [1636556830.706919][2800:2805] CHIP:DMG: Cluster = 0x36, - [1636556830.706997][2800:2805] CHIP:DMG: Attribute = 0x0000_0008, - [1636556830.707069][2800:2805] CHIP:DMG: } + [1636556830.706471][2800:2805] CHIP:DMG: AttributeDataList = + [1636556830.706524][2800:2805] CHIP:DMG: [ + [1636556830.706574][2800:2805] CHIP:DMG: AttributeDataElement = + [1636556830.706638][2800:2805] CHIP:DMG: { + [1636556830.706696][2800:2805] CHIP:DMG: AttributePathIB = + [1636556830.706769][2800:2805] CHIP:DMG: { + [1636556830.706842][2800:2805] CHIP:DMG: Endpoint = 0x1, + [1636556830.706919][2800:2805] CHIP:DMG: Cluster = 0x36, + [1636556830.706997][2800:2805] CHIP:DMG: Attribute = 0x0000_0008, + [1636556830.707069][2800:2805] CHIP:DMG: } [1636556830.707147][2800:2805] CHIP:DMG: - [1636556830.707222][2800:2805] CHIP:DMG: Data = 0, - [1636556830.707294][2800:2805] CHIP:DMG: DataElementVersion = 0x0, - [1636556830.707357][2800:2805] CHIP:DMG: }, + [1636556830.707222][2800:2805] CHIP:DMG: Data = 0, + [1636556830.707294][2800:2805] CHIP:DMG: DataElementVersion = 0x0, + [1636556830.707357][2800:2805] CHIP:DMG: }, [1636556830.707424][2800:2805] CHIP:DMG: - [1636556830.707474][2800:2805] CHIP:DMG: ], + [1636556830.707474][2800:2805] CHIP:DMG: ], [1636556830.707535][2800:2805] CHIP:DMG: [1636556830.707580][2800:2805] CHIP:DMG: } [1636556830.707730][2800:2805] CHIP:ZCL: ReadAttributesResponse: - [1636556830.707776][2800:2805] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556830.707823][2800:2805] CHIP:ZCL: attributeId: 0x0000_0008 - [1636556830.707866][2800:2805] CHIP:ZCL: status: Success (0x0000) - [1636556830.707908][2800:2805] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556830.707776][2800:2805] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556830.707823][2800:2805] CHIP:ZCL: attributeId: 0x0000_0008 + [1636556830.707866][2800:2805] CHIP:ZCL: status: Success (0x0000) + [1636556830.707908][2800:2805] CHIP:ZCL: attribute TLV Type: 0x04 [1636556830.707952][2800:2805] CHIP:TOO: Int32u attribute Response: 0 - [1636556830.708069][2800:2805] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 37954i [1636556830.708170][2800:2805] - CHIP:IN: Prepared encrypted message 0xaaaacbbddf00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 37954i with MessageC ounter:1. [1636556830.708244][2800:2805] CHIP:IN: - Sending encrypted msg 0xaaaacbbddf00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2535983 msec" + [1636556830.708069][2800:2805] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 37954i + [1636556830.708170][2800:2805] CHIP:IN: Prepared encrypted message 0xaaaacbbddf00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 37954i with MessageC + ounter:1. + [1636556830.708244][2800:2805] CHIP:IN: Sending encrypted msg 0xaaaacbbddf00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2535983 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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 - [1636556853.356740][2807:2812] CHIP:EM: Flushed pending ack for - MessageCounter:1532129258 on exchange 32805i - [1636556853.395380][2807:2812] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 32806i - [1636556853.395421][2807:2812] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 32806i - [1636556853.395442][2807:2812] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 32806i [1636556853.431526][2807:2812] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 32806i [1636556853.431594][2807:2812] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 32806i + + [1636556853.356740][2807:2812] CHIP:EM: Flushed pending ack for MessageCounter:1532129258 on exchange 32805i + [1636556853.395380][2807:2812] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 32806i + [1636556853.395421][2807:2812] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 32806i + [1636556853.395442][2807:2812] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 32806i + [1636556853.431526][2807:2812] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 32806i + [1636556853.431594][2807:2812] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 32806i [1636556853.431680][2807:2812] CHIP:DMG: ReportDataMessage = [1636556853.431735][2807:2812] CHIP:DMG: { - [1636556853.431780][2807:2812] CHIP:DMG: AttributeDataList = - [1636556853.431833][2807:2812] CHIP:DMG: [ - [1636556853.431883][2807:2812] CHIP:DMG: AttributeDataElement = - [1636556853.431948][2807:2812] CHIP:DMG: { - [1636556853.432007][2807:2812] CHIP:DMG: AttributePathIB = - [1636556853.432080][2807:2812] CHIP:DMG: { - [1636556853.432155][2807:2812] CHIP:DMG: Endpoint = 0x1, - [1636556853.432234][2807:2812] CHIP:DMG: Cluster = 0x36, - [1636556853.432344][2807:2812] CHIP:DMG: Attribute = 0x0000_0009, - [1636556853.432418][2807:2812] CHIP:DMG: } + [1636556853.431780][2807:2812] CHIP:DMG: AttributeDataList = + [1636556853.431833][2807:2812] CHIP:DMG: [ + [1636556853.431883][2807:2812] CHIP:DMG: AttributeDataElement = + [1636556853.431948][2807:2812] CHIP:DMG: { + [1636556853.432007][2807:2812] CHIP:DMG: AttributePathIB = + [1636556853.432080][2807:2812] CHIP:DMG: { + [1636556853.432155][2807:2812] CHIP:DMG: Endpoint = 0x1, + [1636556853.432234][2807:2812] CHIP:DMG: Cluster = 0x36, + [1636556853.432344][2807:2812] CHIP:DMG: Attribute = 0x0000_0009, + [1636556853.432418][2807:2812] CHIP:DMG: } [1636556853.432497][2807:2812] CHIP:DMG: - [1636556853.432574][2807:2812] CHIP:DMG: Data = 180, - [1636556853.432648][2807:2812] CHIP:DMG: DataElementVersion = 0x0, - [1636556853.432711][2807:2812] CHIP:DMG: }, + [1636556853.432574][2807:2812] CHIP:DMG: Data = 180, + [1636556853.432648][2807:2812] CHIP:DMG: DataElementVersion = 0x0, + [1636556853.432711][2807:2812] CHIP:DMG: }, [1636556853.432780][2807:2812] CHIP:DMG: - [1636556853.432830][2807:2812] CHIP:DMG: ], + [1636556853.432830][2807:2812] CHIP:DMG: ], [1636556853.432890][2807:2812] CHIP:DMG: [1636556853.432935][2807:2812] CHIP:DMG: } [1636556853.433086][2807:2812] CHIP:ZCL: ReadAttributesResponse: - [1636556853.433132][2807:2812] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556853.433179][2807:2812] CHIP:ZCL: attributeId: 0x0000_0009 - [1636556853.433224][2807:2812] CHIP:ZCL: status: Success (0x0000) - [1636556853.433267][2807:2812] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556853.433310][2807:2812] CHIP:TOO: Int32u attribute Response: - 180 [1636556853.433430][2807:2812] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 32806i [1636556853.433528][2807:2812] - CHIP:IN: Prepared encrypted message 0xaaaae5b8af00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 32806i with MessageCounter:1. [1636556853.433603][2807:2812] CHIP:IN: - Sending encrypted msg 0xaaaae5b8af00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2558709 msec" + [1636556853.433132][2807:2812] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556853.433179][2807:2812] CHIP:ZCL: attributeId: 0x0000_0009 + [1636556853.433224][2807:2812] CHIP:ZCL: status: Success (0x0000) + [1636556853.433267][2807:2812] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556853.433310][2807:2812] CHIP:TOO: Int32u attribute Response: 180 + [1636556853.433430][2807:2812] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 32806i + [1636556853.433528][2807:2812] CHIP:IN: Prepared encrypted message 0xaaaae5b8af00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 32806i with MessageCounter:1. + [1636556853.433603][2807:2812] CHIP:IN: Sending encrypted msg 0xaaaae5b8af00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2558709 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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 - [1636556862.885173][2816:2821] CHIP:EM: Flushed pending ack for - MessageCounter:1532129260 on exchange 14944i - [1636556862.925849][2816:2821] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 14945i - [1636556862.925937][2816:2821] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 14945i - [1636556862.925964][2816:2821] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 14945i [1636556862.960034][2816:2821] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 14945i [1636556862.960076][2816:2821] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 14945i + + [1636556862.885173][2816:2821] CHIP:EM: Flushed pending ack for MessageCounter:1532129260 on exchange 14944i + [1636556862.925849][2816:2821] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 14945i + [1636556862.925937][2816:2821] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 14945i + [1636556862.925964][2816:2821] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 14945i + [1636556862.960034][2816:2821] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 14945i + [1636556862.960076][2816:2821] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 14945i [1636556862.960135][2816:2821] CHIP:DMG: ReportDataMessage = [1636556862.960167][2816:2821] CHIP:DMG: { - [1636556862.960191][2816:2821] CHIP:DMG: AttributeDataList = - [1636556862.960221][2816:2821] CHIP:DMG: [ - [1636556862.960248][2816:2821] CHIP:DMG: AttributeDataElement = - [1636556862.960307][2816:2821] CHIP:DMG: { - [1636556862.960342][2816:2821] CHIP:DMG: AttributePathIB = - [1636556862.960380][2816:2821] CHIP:DMG: { - [1636556862.960422][2816:2821] CHIP:DMG: Endpoint = 0x1, - [1636556862.960465][2816:2821] CHIP:DMG: Cluster = 0x36, - [1636556862.960508][2816:2821] CHIP:DMG: Attribute = 0x0000_000A, - [1636556862.960547][2816:2821] CHIP:DMG: } + [1636556862.960191][2816:2821] CHIP:DMG: AttributeDataList = + [1636556862.960221][2816:2821] CHIP:DMG: [ + [1636556862.960248][2816:2821] CHIP:DMG: AttributeDataElement = + [1636556862.960307][2816:2821] CHIP:DMG: { + [1636556862.960342][2816:2821] CHIP:DMG: AttributePathIB = + [1636556862.960380][2816:2821] CHIP:DMG: { + [1636556862.960422][2816:2821] CHIP:DMG: Endpoint = 0x1, + [1636556862.960465][2816:2821] CHIP:DMG: Cluster = 0x36, + [1636556862.960508][2816:2821] CHIP:DMG: Attribute = 0x0000_000A, + [1636556862.960547][2816:2821] CHIP:DMG: } [1636556862.960590][2816:2821] CHIP:DMG: - [1636556862.960634][2816:2821] CHIP:DMG: Data = 106, - [1636556862.960673][2816:2821] CHIP:DMG: DataElementVersion = 0x0, - [1636556862.960710][2816:2821] CHIP:DMG: }, + [1636556862.960634][2816:2821] CHIP:DMG: Data = 106, + [1636556862.960673][2816:2821] CHIP:DMG: DataElementVersion = 0x0, + [1636556862.960710][2816:2821] CHIP:DMG: }, [1636556862.960747][2816:2821] CHIP:DMG: - [1636556862.960773][2816:2821] CHIP:DMG: ], + [1636556862.960773][2816:2821] CHIP:DMG: ], [1636556862.960806][2816:2821] CHIP:DMG: [1636556862.960831][2816:2821] CHIP:DMG: } [1636556862.960922][2816:2821] CHIP:ZCL: ReadAttributesResponse: - [1636556862.960948][2816:2821] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556862.960976][2816:2821] CHIP:ZCL: attributeId: 0x0000_000A - [1636556862.961000][2816:2821] CHIP:ZCL: status: Success (0x0000) - [1636556862.961023][2816:2821] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556862.961048][2816:2821] CHIP:TOO: Int32u attribute Response: - 106 [1636556862.961132][2816:2821] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 14945i [1636556862.961245][2816:2821] - CHIP:IN: Prepared encrypted message 0xaaaaf59b5f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 14945i with MessageCounter:1. [1636556862.961321][2816:2821] CHIP:IN: - Sending encrypted msg 0xaaaaf59b5f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2568237 msec" + [1636556862.960948][2816:2821] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556862.960976][2816:2821] CHIP:ZCL: attributeId: 0x0000_000A + [1636556862.961000][2816:2821] CHIP:ZCL: status: Success (0x0000) + [1636556862.961023][2816:2821] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556862.961048][2816:2821] CHIP:TOO: Int32u attribute Response: 106 + [1636556862.961132][2816:2821] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 14945i + [1636556862.961245][2816:2821] CHIP:IN: Prepared encrypted message 0xaaaaf59b5f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 14945i with MessageCounter:1. + [1636556862.961321][2816:2821] CHIP:IN: Sending encrypted msg 0xaaaaf59b5f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2568237 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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 current-max-rate 1 0 - [1636556892.070815][2824:2829] CHIP:EM: Flushed pending ack for - MessageCounter:1532129262 on exchange 5373i - [1636556892.107682][2824:2829] CHIP:EM: Received message of type 0x10 - with protocolId (0, 0) and MessageCounter:1 on exchange 5374i - [1636556892.107723][2824:2829] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 5374i - [1636556892.107744][2824:2829] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 5374i [1636556892.145391][2824:2829] - CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and - MessageCounter:2 on exchange 5374i [1636556892.145456][2824:2829] - CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 5374i + + [1636556892.070815][2824:2829] CHIP:EM: Flushed pending ack for MessageCounter:1532129262 on exchange 5373i + [1636556892.107682][2824:2829] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 5374i + [1636556892.107723][2824:2829] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 5374i + [1636556892.107744][2824:2829] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 5374i + [1636556892.145391][2824:2829] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:2 on exchange 5374i + [1636556892.145456][2824:2829] CHIP:EM: CHIP MessageCounter:0 not in RetransTable on exchange 5374i [1636556892.145543][2824:2829] CHIP:DMG: ReportDataMessage = [1636556892.145595][2824:2829] CHIP:DMG: { - [1636556892.145638][2824:2829] CHIP:DMG: AttributeDataList = - [1636556892.145698][2824:2829] CHIP:DMG: [ - [1636556892.145746][2824:2829] CHIP:DMG: AttributeDataElement = - [1636556892.145808][2824:2829] CHIP:DMG: { - [1636556892.145863][2824:2829] CHIP:DMG: AttributePathIB = - [1636556892.145935][2824:2829] CHIP:DMG: { - [1636556892.146008][2824:2829] CHIP:DMG: Endpoint = 0x1, - [1636556892.146086][2824:2829] CHIP:DMG: Cluster = 0x36, - [1636556892.146163][2824:2829] CHIP:DMG: Attribute = 0x0000_000B, - [1636556892.146235][2824:2829] CHIP:DMG: } + [1636556892.145638][2824:2829] CHIP:DMG: AttributeDataList = + [1636556892.145698][2824:2829] CHIP:DMG: [ + [1636556892.145746][2824:2829] CHIP:DMG: AttributeDataElement = + [1636556892.145808][2824:2829] CHIP:DMG: { + [1636556892.145863][2824:2829] CHIP:DMG: AttributePathIB = + [1636556892.145935][2824:2829] CHIP:DMG: { + [1636556892.146008][2824:2829] CHIP:DMG: Endpoint = 0x1, + [1636556892.146086][2824:2829] CHIP:DMG: Cluster = 0x36, + [1636556892.146163][2824:2829] CHIP:DMG: Attribute = 0x0000_000B, + [1636556892.146235][2824:2829] CHIP:DMG: } [1636556892.146312][2824:2829] CHIP:DMG: - [1636556892.146388][2824:2829] CHIP:DMG: Data = 65000000, - [1636556892.146457][2824:2829] CHIP:DMG: DataElementVersion = 0x0, - [1636556892.146524][2824:2829] CHIP:DMG: }, + [1636556892.146388][2824:2829] CHIP:DMG: Data = 65000000, + [1636556892.146457][2824:2829] CHIP:DMG: DataElementVersion = 0x0, + [1636556892.146524][2824:2829] CHIP:DMG: }, [1636556892.146595][2824:2829] CHIP:DMG: - [1636556892.146648][2824:2829] CHIP:DMG: ], + [1636556892.146648][2824:2829] CHIP:DMG: ], [1636556892.146707][2824:2829] CHIP:DMG: [1636556892.146752][2824:2829] CHIP:DMG: } [1636556892.146905][2824:2829] CHIP:ZCL: ReadAttributesResponse: - [1636556892.146949][2824:2829] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556892.146995][2824:2829] CHIP:ZCL: attributeId: 0x0000_000B - [1636556892.147037][2824:2829] CHIP:ZCL: status: Success (0x0000) - [1636556892.147079][2824:2829] CHIP:ZCL: attribute TLV Type: 0x04 - [1636556892.147121][2824:2829] CHIP:TOO: Int64u attribute Response: - 65000000 [1636556892.147239][2824:2829] CHIP:EM: Piggybacking Ack for - MessageCounter:2 on exchange: 5374i [1636556892.147337][2824:2829] - CHIP:IN: Prepared encrypted message 0xaaab1b740f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 5374i - with MessageCounter:1. [1636556892.147409][2824:2829] CHIP:IN: Sending - encrypted msg 0xaaab1b740f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2597423 msec" + [1636556892.146949][2824:2829] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556892.146995][2824:2829] CHIP:ZCL: attributeId: 0x0000_000B + [1636556892.147037][2824:2829] CHIP:ZCL: status: Success (0x0000) + [1636556892.147079][2824:2829] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556892.147121][2824:2829] CHIP:TOO: Int64u attribute Response: 65000000 + [1636556892.147239][2824:2829] CHIP:EM: Piggybacking Ack for MessageCounter:2 on exchange: 5374i + [1636556892.147337][2824:2829] CHIP:IN: Prepared encrypted message 0xaaab1b740f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 5374i with MessageCounter:1. + [1636556892.147409][2824:2829] CHIP:IN: Sending encrypted msg 0xaaab1b740f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2597423 msec disabled: true - label: "DUT reads a attribute value from TH." - 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. + 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 overrun-count 1 0 - [1636556912.342416][2831:2836] CHIP:EM: Flushed pending ack for - MessageCounter:1532129264 on exchange 23278i - [1636556912.415911][2831:2836] CHIP:EM: Received message of type 0x5 - with protocolId (0, 1) and MessageCounter:1 on exchange 23279i - [1636556912.416004][2831:2836] CHIP:EM: Rxd Ack; Removing - MessageCounter:0 from Retrans Table on exchange 23279i - [1636556912.416055][2831:2836] CHIP:EM: Removed CHIP MessageCounter:0 - from RetransTable on exchange 23279i [1636556912.416136][2831:2836] - CHIP:DMG: ReportDataMessage = [1636556912.416190][2831:2836] CHIP:DMG: - { [1636556912.416235][2831:2836] CHIP:DMG: AttributeDataList = - [1636556912.416336][2831:2836] CHIP:DMG: [ - [1636556912.416389][2831:2836] CHIP:DMG: AttributeDataElement = - [1636556912.416453][2831:2836] CHIP:DMG: { - [1636556912.416511][2831:2836] CHIP:DMG: AttributePathIB = - [1636556912.416583][2831:2836] CHIP:DMG: { - [1636556912.416658][2831:2836] CHIP:DMG: Endpoint = 0x1, - [1636556912.416736][2831:2836] CHIP:DMG: Cluster = 0x36, - [1636556912.416814][2831:2836] CHIP:DMG: Attribute = 0x0000_000C, - [1636556912.416885][2831:2836] CHIP:DMG: } + + [1636556912.342416][2831:2836] CHIP:EM: Flushed pending ack for MessageCounter:1532129264 on exchange 23278i + [1636556912.415911][2831:2836] CHIP:EM: Received message of type 0x5 with protocolId (0, 1) and MessageCounter:1 on exchange 23279i + [1636556912.416004][2831:2836] CHIP:EM: Rxd Ack; Removing MessageCounter:0 from Retrans Table on exchange 23279i + [1636556912.416055][2831:2836] CHIP:EM: Removed CHIP MessageCounter:0 from RetransTable on exchange 23279i + [1636556912.416136][2831:2836] CHIP:DMG: ReportDataMessage = + [1636556912.416190][2831:2836] CHIP:DMG: { + [1636556912.416235][2831:2836] CHIP:DMG: AttributeDataList = + [1636556912.416336][2831:2836] CHIP:DMG: [ + [1636556912.416389][2831:2836] CHIP:DMG: AttributeDataElement = + [1636556912.416453][2831:2836] CHIP:DMG: { + [1636556912.416511][2831:2836] CHIP:DMG: AttributePathIB = + [1636556912.416583][2831:2836] CHIP:DMG: { + [1636556912.416658][2831:2836] CHIP:DMG: Endpoint = 0x1, + [1636556912.416736][2831:2836] CHIP:DMG: Cluster = 0x36, + [1636556912.416814][2831:2836] CHIP:DMG: Attribute = 0x0000_000C, + [1636556912.416885][2831:2836] CHIP:DMG: } [1636556912.416962][2831:2836] CHIP:DMG: - [1636556912.417037][2831:2836] CHIP:DMG: Data = 0, - [1636556912.417108][2831:2836] CHIP:DMG: DataElementVersion = 0x0, - [1636556912.417174][2831:2836] CHIP:DMG: }, + [1636556912.417037][2831:2836] CHIP:DMG: Data = 0, + [1636556912.417108][2831:2836] CHIP:DMG: DataElementVersion = 0x0, + [1636556912.417174][2831:2836] CHIP:DMG: }, [1636556912.417242][2831:2836] CHIP:DMG: - [1636556912.417290][2831:2836] CHIP:DMG: ], + [1636556912.417290][2831:2836] CHIP:DMG: ], [1636556912.417350][2831:2836] CHIP:DMG: [1636556912.417395][2831:2836] CHIP:DMG: } [1636556912.417546][2831:2836] CHIP:ZCL: ReadAttributesResponse: - [1636556912.417590][2831:2836] CHIP:ZCL: ClusterId: 0x0000_0036 - [1636556912.417637][2831:2836] CHIP:ZCL: attributeId: 0x0000_000C - [1636556912.417679][2831:2836] CHIP:ZCL: status: Success (0x0000) - [1636556912.417721][2831:2836] CHIP:ZCL: attribute TLV Type: 0x04 + [1636556912.417590][2831:2836] CHIP:ZCL: ClusterId: 0x0000_0036 + [1636556912.417637][2831:2836] CHIP:ZCL: attributeId: 0x0000_000C + [1636556912.417679][2831:2836] CHIP:ZCL: status: Success (0x0000) + [1636556912.417721][2831:2836] CHIP:ZCL: attribute TLV Type: 0x04 [1636556912.417763][2831:2836] CHIP:TOO: Int64u attribute Response: 0 - [1636556912.417878][2831:2836] CHIP:EM: Piggybacking Ack for - MessageCounter:1 on exchange: 23279i [1636556912.417982][2831:2836] - CHIP:IN: Prepared encrypted message 0xaaaaece01f00 to - 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange - 23279i with MessageCounter:1. [1636556912.418055][2831:2836] CHIP:IN: - Sending encrypted msg 0xaaaaece01f00 with MessageCounter:1 to - 0x0000000000000001 at monotonic time: 2617693 msec" + [1636556912.417878][2831:2836] CHIP:EM: Piggybacking Ack for MessageCounter:1 on exchange: 23279i + [1636556912.417982][2831:2836] CHIP:IN: Prepared encrypted message 0xaaaaece01f00 to 0x0000000000000001 of type 0x1 and protocolId (0, 1) on exchange 23279i with MessageCounter:1. + [1636556912.418055][2831:2836] CHIP:IN: Sending encrypted msg 0xaaaaece01f00 with MessageCounter:1 to 0x0000000000000001 at monotonic time: 2617693 msec disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_2_1.yaml b/src/app/tests/suites/certification/Test_TC_WIFIDIAG_2_1.yaml index 507d66d3bde513..c49bf85059665a 100644 --- a/src/app/tests/suites/certification/Test_TC_WIFIDIAG_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_WIFIDIAG_2_1.yaml @@ -21,20 +21,21 @@ config: tests: - label: "Commission DUT to TH" - verification: "" + verification: | + disabled: true - label: "TH sends chip-tool command to DUT" - verification: - "chip-tool wifinetworkdiagnostics read-event disconnection 1 0" + verification: | + chip-tool wifinetworkdiagnostics read-event disconnection 1 0 disabled: true - label: "TH sends chip-tool command to DUT" - verification: - "chip-tool wifinetworkdiagnostics read-event association-failure 1 0" + verification: | + chip-tool wifinetworkdiagnostics read-event association-failure 1 0 disabled: true - label: "TH sends chip-tool command to DUT" - verification: - "chip-tool wifinetworkdiagnostics read-event connection-status 1 0" + verification: | + chip-tool wifinetworkdiagnostics read-event connection-status 1 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_6_1.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_6_1.yaml index d262c4ea96f431..c232f3e97b37c3 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_6_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_6_1.yaml @@ -21,124 +21,118 @@ config: tests: - label: "Check UpOrOpen command" - verification: "" + verification: | + disabled: true - label: "DUT sends UpOrOpen command to TH" - verification: - "On TestHarnes (all-cluster-app) a received up-or-open for - WindowCovering looks like this [1646243704.407225][352796:352796] - CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and - MessageCounter:10452706 on exchange 27302r - [1646243704.407277][352796:352796] CHIP:EM: Handling via exchange: - 27302r, Delegate: 0x560eb84d5500 [1646243704.407350][352796:352796] - CHIP:DMG: InvokeRequestMessage = [1646243704.407411][352796:352796] - CHIP:DMG: { [1646243704.407439][352796:352796] CHIP:DMG: - suppressResponse = false, [1646243704.407503][352796:352796] CHIP:DMG: - timedRequest = false, [1646243704.407529][352796:352796] CHIP:DMG: - InvokeRequests = [1646243704.407565][352796:352796] CHIP:DMG: [ - [1646243704.407591][352796:352796] CHIP:DMG: CommandDataIB = - [1646243704.407632][352796:352796] CHIP:DMG: { - [1646243704.407690][352796:352796] CHIP:DMG: CommandPathIB = - [1646243704.407721][352796:352796] CHIP:DMG: { - [1646243704.407807][352796:352796] CHIP:DMG: EndpointId = 0x1, - [1646243704.407835][352796:352796] CHIP:DMG: ClusterId = 0x102, - [1646243704.407899][352796:352796] CHIP:DMG: CommandId = 0x0, - [1646243704.407926][352796:352796] CHIP:DMG: }, + verification: | + On TestHarnes (all-cluster-app) a received up-or-open for WindowCovering looks like this + + [1646243704.407225][352796:352796] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:10452706 on exchange 27302r + [1646243704.407277][352796:352796] CHIP:EM: Handling via exchange: 27302r, Delegate: 0x560eb84d5500 + [1646243704.407350][352796:352796] CHIP:DMG: InvokeRequestMessage = + [1646243704.407411][352796:352796] CHIP:DMG: { + [1646243704.407439][352796:352796] CHIP:DMG: suppressResponse = false, + [1646243704.407503][352796:352796] CHIP:DMG: timedRequest = false, + [1646243704.407529][352796:352796] CHIP:DMG: InvokeRequests = + [1646243704.407565][352796:352796] CHIP:DMG: [ + [1646243704.407591][352796:352796] CHIP:DMG: CommandDataIB = + [1646243704.407632][352796:352796] CHIP:DMG: { + [1646243704.407690][352796:352796] CHIP:DMG: CommandPathIB = + [1646243704.407721][352796:352796] CHIP:DMG: { + [1646243704.407807][352796:352796] CHIP:DMG: EndpointId = 0x1, + [1646243704.407835][352796:352796] CHIP:DMG: ClusterId = 0x102, + [1646243704.407899][352796:352796] CHIP:DMG: CommandId = 0x0, + [1646243704.407926][352796:352796] CHIP:DMG: }, [1646243704.407970][352796:352796] CHIP:DMG: - [1646243704.407997][352796:352796] CHIP:DMG: CommandData = - [1646243704.408030][352796:352796] CHIP:DMG: { - [1646243704.408058][352796:352796] CHIP:DMG: }, - [1646243704.408100][352796:352796] CHIP:DMG: }, + [1646243704.407997][352796:352796] CHIP:DMG: CommandData = + [1646243704.408030][352796:352796] CHIP:DMG: { + [1646243704.408058][352796:352796] CHIP:DMG: }, + [1646243704.408100][352796:352796] CHIP:DMG: }, [1646243704.408128][352796:352796] CHIP:DMG: - [1646243704.408154][352796:352796] CHIP:DMG: ], + [1646243704.408154][352796:352796] CHIP:DMG: ], [1646243704.408356][352796:352796] CHIP:DMG: - [1646243704.408406][352796:352796] CHIP:DMG: InteractionModelRevision - = 1 [1646243704.408447][352796:352796] CHIP:DMG: }, - [1646243704.408561][352796:352796] CHIP:DMG: AccessControl: checking - f=1 a=c s=0x000000000001B669 t= c=0x0000_0102 e=1 p=o - [1646243704.408618][352796:352796] CHIP:DMG: Received command for - Endpoint=1 Cluster=0x0000_0102 Command=0x0000_0000" + [1646243704.408406][352796:352796] CHIP:DMG: InteractionModelRevision = 1 + [1646243704.408447][352796:352796] CHIP:DMG: }, + [1646243704.408561][352796:352796] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0102 e=1 p=o + [1646243704.408618][352796:352796] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0102 Command=0x0000_0000 disabled: true - label: "Check DownOrClose command" - verification: "" + verification: | + disabled: true - label: "DUT sends DownOrClose command to TH" - verification: - "On TestHarnes (all-cluster-app) a received down-or-close for - WindowCovering looks like this [1646243773.438732][352796:352796] - CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and - MessageCounter:8564771 on exchange 6526r - [1646243773.438764][352796:352796] CHIP:EM: Handling via exchange: - 6526r, Delegate: 0x560eb84d5500 [1646243773.438871][352796:352796] - CHIP:DMG: InvokeRequestMessage = [1646243773.439801][352796:352796] - CHIP:DMG: { [1646243773.439829][352796:352796] CHIP:DMG: - suppressResponse = false, [1646243773.439876][352796:352796] CHIP:DMG: - timedRequest = false, [1646243773.439922][352796:352796] CHIP:DMG: - InvokeRequests = [1646243773.440036][352796:352796] CHIP:DMG: [ - [1646243773.440077][352796:352796] CHIP:DMG: CommandDataIB = - [1646243773.440128][352796:352796] CHIP:DMG: { - [1646243773.440176][352796:352796] CHIP:DMG: CommandPathIB = - [1646243773.440224][352796:352796] CHIP:DMG: { - [1646243773.440271][352796:352796] CHIP:DMG: EndpointId = 0x1, - [1646243773.440351][352796:352796] CHIP:DMG: ClusterId = 0x102, - [1646243773.440385][352796:352796] CHIP:DMG: CommandId = 0x1, - [1646243773.440445][352796:352796] CHIP:DMG: }, + verification: | + On TestHarnes (all-cluster-app) a received down-or-close for WindowCovering looks like this + + [1646243773.438732][352796:352796] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:8564771 on exchange 6526r + [1646243773.438764][352796:352796] CHIP:EM: Handling via exchange: 6526r, Delegate: 0x560eb84d5500 + [1646243773.438871][352796:352796] CHIP:DMG: InvokeRequestMessage = + [1646243773.439801][352796:352796] CHIP:DMG: { + [1646243773.439829][352796:352796] CHIP:DMG: suppressResponse = false, + [1646243773.439876][352796:352796] CHIP:DMG: timedRequest = false, + [1646243773.439922][352796:352796] CHIP:DMG: InvokeRequests = + [1646243773.440036][352796:352796] CHIP:DMG: [ + [1646243773.440077][352796:352796] CHIP:DMG: CommandDataIB = + [1646243773.440128][352796:352796] CHIP:DMG: { + [1646243773.440176][352796:352796] CHIP:DMG: CommandPathIB = + [1646243773.440224][352796:352796] CHIP:DMG: { + [1646243773.440271][352796:352796] CHIP:DMG: EndpointId = 0x1, + [1646243773.440351][352796:352796] CHIP:DMG: ClusterId = 0x102, + [1646243773.440385][352796:352796] CHIP:DMG: CommandId = 0x1, + [1646243773.440445][352796:352796] CHIP:DMG: }, [1646243773.440498][352796:352796] CHIP:DMG: - [1646243773.440560][352796:352796] CHIP:DMG: CommandData = - [1646243773.440613][352796:352796] CHIP:DMG: { - [1646243773.440898][352796:352796] CHIP:DMG: }, - [1646243773.440927][352796:352796] CHIP:DMG: }, + [1646243773.440560][352796:352796] CHIP:DMG: CommandData = + [1646243773.440613][352796:352796] CHIP:DMG: { + [1646243773.440898][352796:352796] CHIP:DMG: }, + [1646243773.440927][352796:352796] CHIP:DMG: }, [1646243773.440999][352796:352796] CHIP:DMG: - [1646243773.441032][352796:352796] CHIP:DMG: ], + [1646243773.441032][352796:352796] CHIP:DMG: ], [1646243773.441061][352796:352796] CHIP:DMG: - [1646243773.441132][352796:352796] CHIP:DMG: InteractionModelRevision - = 1 [1646243773.441183][352796:352796] CHIP:DMG: }, - [1646243773.441262][352796:352796] CHIP:DMG: AccessControl: checking - f=1 a=c s=0x000000000001B669 t= c=0x0000_0102 e=1 p=o - [1646243773.441302][352796:352796] CHIP:DMG: Received command for - Endpoint=1 Cluster=0x0000_0102 Command=0x0000_0001" + [1646243773.441132][352796:352796] CHIP:DMG: InteractionModelRevision = 1 + [1646243773.441183][352796:352796] CHIP:DMG: }, + [1646243773.441262][352796:352796] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0102 e=1 p=o + [1646243773.441302][352796:352796] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0102 Command=0x0000_0001 disabled: true - label: "Check StopMotion command" - verification: "" + verification: | + disabled: true - label: "DUT sends a StopMotion command to TH" - verification: - "On TestHarnes (all-cluster-app) a received stop-motion for - WindowCovering looks like this 1646243464.420695][352796:352796] - CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and - MessageCounter:3710998 on exchange 7151r - [1646243464.420725][352796:352796] CHIP:EM: Handling via exchange: - 7151r, Delegate: 0x560eb84d5500 [1646243464.420779][352796:352796] - CHIP:DMG: InvokeRequestMessage = [1646243464.420820][352796:352796] - CHIP:DMG: { [1646243464.420845][352796:352796] CHIP:DMG: - suppressResponse = false, [1646243464.420885][352796:352796] CHIP:DMG: - timedRequest = false, [1646243464.420910][352796:352796] CHIP:DMG: - InvokeRequests = [1646243464.420952][352796:352796] CHIP:DMG: [ - [1646243464.420991][352796:352796] CHIP:DMG: CommandDataIB = - [1646243464.421045][352796:352796] CHIP:DMG: { - [1646243464.421072][352796:352796] CHIP:DMG: CommandPathIB = - [1646243464.421104][352796:352796] CHIP:DMG: { - [1646243464.421173][352796:352796] CHIP:DMG: EndpointId = 0x1, - [1646243464.421214][352796:352796] CHIP:DMG: ClusterId = 0x102, - [1646243464.421256][352796:352796] CHIP:DMG: CommandId = 0x2, - [1646243464.421308][352796:352796] CHIP:DMG: }, + verification: | + On TestHarnes (all-cluster-app) a received stop-motion for WindowCovering looks like this + + 1646243464.420695][352796:352796] CHIP:EM: Received message of type 0x8 with protocolId (0, 1) and MessageCounter:3710998 on exchange 7151r + [1646243464.420725][352796:352796] CHIP:EM: Handling via exchange: 7151r, Delegate: 0x560eb84d5500 + [1646243464.420779][352796:352796] CHIP:DMG: InvokeRequestMessage = + [1646243464.420820][352796:352796] CHIP:DMG: { + [1646243464.420845][352796:352796] CHIP:DMG: suppressResponse = false, + [1646243464.420885][352796:352796] CHIP:DMG: timedRequest = false, + [1646243464.420910][352796:352796] CHIP:DMG: InvokeRequests = + [1646243464.420952][352796:352796] CHIP:DMG: [ + [1646243464.420991][352796:352796] CHIP:DMG: CommandDataIB = + [1646243464.421045][352796:352796] CHIP:DMG: { + [1646243464.421072][352796:352796] CHIP:DMG: CommandPathIB = + [1646243464.421104][352796:352796] CHIP:DMG: { + [1646243464.421173][352796:352796] CHIP:DMG: EndpointId = 0x1, + [1646243464.421214][352796:352796] CHIP:DMG: ClusterId = 0x102, + [1646243464.421256][352796:352796] CHIP:DMG: CommandId = 0x2, + [1646243464.421308][352796:352796] CHIP:DMG: }, [1646243464.421337][352796:352796] CHIP:DMG: - [1646243464.421368][352796:352796] CHIP:DMG: CommandData = - [1646243464.421393][352796:352796] CHIP:DMG: { - [1646243464.421436][352796:352796] CHIP:DMG: }, - [1646243464.421461][352796:352796] CHIP:DMG: }, + [1646243464.421368][352796:352796] CHIP:DMG: CommandData = + [1646243464.421393][352796:352796] CHIP:DMG: { + [1646243464.421436][352796:352796] CHIP:DMG: }, + [1646243464.421461][352796:352796] CHIP:DMG: }, [1646243464.421500][352796:352796] CHIP:DMG: - [1646243464.421540][352796:352796] CHIP:DMG: ], + [1646243464.421540][352796:352796] CHIP:DMG: ], [1646243464.421567][352796:352796] CHIP:DMG: - [1646243464.421609][352796:352796] CHIP:DMG: InteractionModelRevision - = 1 [1646243464.421634][352796:352796] CHIP:DMG: }, - [1646243464.421668][352796:352796] CHIP:DMG: AccessControl: checking - f=1 a=c s=0x000000000001B669 t= c=0x0000_0102 e=1 p=o - [1646243464.421717][352796:352796] CHIP:DMG: Received command for - Endpoint=1 Cluster=0x0000_0102 Command=0x0000_0002" + [1646243464.421609][352796:352796] CHIP:DMG: InteractionModelRevision = 1 + [1646243464.421634][352796:352796] CHIP:DMG: }, + [1646243464.421668][352796:352796] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0102 e=1 p=o + [1646243464.421717][352796:352796] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0102 Command=0x0000_0002 disabled: true diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 63a5a0958d43bb..88bbb0d2dc9c38 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -299,7 +299,6 @@ class ManualTestList : public Command printf("Test_TC_MC_10_6\n"); printf("Test_TC_MF_1_1\n"); printf("Test_TC_MF_1_2\n"); - printf("Test_TC_MF_1_3\n"); printf("Test_TC_MF_1_4\n"); printf("Test_TC_MF_1_5\n"); printf("Test_TC_MF_1_6\n"); @@ -111165,491 +111164,6 @@ class Test_TC_MF_1_2Suite : public TestCommand // }; -class Test_TC_MF_1_3Suite : public TestCommand -{ -public: - Test_TC_MF_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_MF_1_3", credsIssuerConfig), mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("nodeId2", 0, UINT64_MAX, &mNodeId2); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("discriminator", 0, UINT16_MAX, &mDiscriminator); - AddArgument("payload", &mPayload); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_MF_1_3Suite() {} - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) - { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_MF_1_3\n"); - } - - if (mTestCount == mTestIndex) - { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_MF_1_3\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) - { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reboot target device\n"); - err = TestRebootTargetDevice_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : TH_CR1 starts a commissioning process with DUT_CE\n"); - err = TestThCr1StartsACommissioningProcessWithDutCe_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Open Commissioning Window\n"); - err = TestOpenCommissioningWindow_2(); - break; - case 3: - ChipLogProgress( - chipTool, - " ***** Test Step 3 : TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); - err = TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_3(); - break; - case 4: - ChipLogProgress( - chipTool, - " ***** Test Step 4 : TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); - err = TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_4(); - break; - case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Commission from beta\n"); - err = TestCommissionFromBeta_5(); - break; - case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : TH_CR2 starts a commissioning process with DUT_CE\n"); - err = TestThCr2StartsACommissioningProcessWithDutCe_6(); - break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Query fabrics list\n"); - err = TestQueryFabricsList_7(); - break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Query fabrics list\n"); - err = TestQueryFabricsList_8(); - break; - case 9: - ChipLogProgress( - chipTool, - " ***** Test Step 9 : TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); - err = TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_9(); - break; - case 10: - ChipLogProgress( - chipTool, - " ***** Test Step 10 : TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); - err = TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10(); - break; - case 11: - ChipLogProgress( - chipTool, - " ***** Test Step 11 : TH_CR2 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); - err = TestThCr2WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11(); - break; - case 12: - ChipLogProgress( - chipTool, - " ***** Test Step 12 : TH_CR2 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); - err = TestThCr2ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_12(); - break; - } - - if (CHIP_NO_ERROR != err) - { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 13; - - chip::Optional mNodeId; - chip::Optional mNodeId2; - chip::Optional mEndpoint; - chip::Optional mDiscriminator; - chip::Optional mPayload; - chip::Optional mTimeout; - - void OnDiscoveryCommandsResults(const DiscoveryCommandResult & value) override - { - bool isExpectedDnssdResult = false; - - VerifyOrReturn(isExpectedDnssdResult, Exit("An unexpected dnssd result has been received")); - NextTest(); - } - - static void OnFailureCallback_3(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_3(error); - } - - static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - - static void OnFailureCallback_4(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_4(error); - } - - static void OnSuccessCallback_4(void * context, chip::CharSpan nodeLabel) - { - (static_cast(context))->OnSuccessResponse_4(nodeLabel); - } - - static void OnFailureCallback_7(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_7(error); - } - - static void - OnSuccessCallback_7(void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & fabrics) - { - (static_cast(context))->OnSuccessResponse_7(fabrics); - } - - static void OnFailureCallback_8(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_8(error); - } - - static void - OnSuccessCallback_8(void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & fabrics) - { - (static_cast(context))->OnSuccessResponse_8(fabrics); - } - - static void OnFailureCallback_9(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_9(error); - } - - static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } - - static void OnFailureCallback_10(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_10(error); - } - - static void OnSuccessCallback_10(void * context, chip::CharSpan nodeLabel) - { - (static_cast(context))->OnSuccessResponse_10(nodeLabel); - } - - static void OnFailureCallback_11(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_11(error); - } - - static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } - - static void OnFailureCallback_12(void * context, CHIP_ERROR error) - { - (static_cast(context))->OnFailureResponse_12(error); - } - - static void OnSuccessCallback_12(void * context, chip::CharSpan nodeLabel) - { - (static_cast(context))->OnSuccessResponse_12(nodeLabel); - } - - // - // Tests methods - // - - CHIP_ERROR TestRebootTargetDevice_0() - { - SetIdentity(kIdentityAlpha); - return Reboot(mDiscriminator.HasValue() ? mDiscriminator.Value() : 3840U); - } - - CHIP_ERROR TestThCr1StartsACommissioningProcessWithDutCe_1() - { - SetIdentity(kIdentityAlpha); - return WaitForCommissionee(1); - } - - CHIP_ERROR TestOpenCommissioningWindow_2() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - using RequestType = chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type; - - RequestType request; - request.commissioningTimeout = 120U; - request.PAKEVerifier = chip::ByteSpan( - chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" - "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" - "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357\326" - "\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), - 97); - request.discriminator = 3840U; - request.iterations = 1000UL; - request.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); - - auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); - }; - - auto failure = [](void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(error); - }; - - ReturnErrorOnFailure( - chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request, 10000)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_2(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_2() { NextTest(); } - - CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_3() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::BasicClusterTest cluster; - cluster.Associate(mDevices[kIdentityAlpha], endpoint); - - chip::CharSpan nodeLabelArgument; - nodeLabelArgument = chip::Span("chiptestgarbage: not in length on purpose", 8); - - ReturnErrorOnFailure(cluster.WriteAttribute( - nodeLabelArgument, this, OnSuccessCallback_3, OnFailureCallback_3)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_3(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_3() { NextTest(); } - - CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_4() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::BasicClusterTest cluster; - cluster.Associate(mDevices[kIdentityAlpha], endpoint); - - ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4, true)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_4(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_4(chip::CharSpan nodeLabel) - { - VerifyOrReturn(CheckValueAsString("nodeLabel", nodeLabel, chip::CharSpan("chiptest", 8))); - VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", nodeLabel.size(), 32)); - NextTest(); - } - - CHIP_ERROR TestCommissionFromBeta_5() - { - SetIdentity(kIdentityBeta); - return PairWithQRCode(1, mPayload.HasValue() ? mPayload.Value() : chip::CharSpan::fromCharString("MT:0000000000I31506010")); - } - - CHIP_ERROR TestThCr2StartsACommissioningProcessWithDutCe_6() - { - SetIdentity(kIdentityBeta); - return WaitForCommissionee(1); - } - - CHIP_ERROR TestQueryFabricsList_7() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::OperationalCredentialsClusterTest cluster; - cluster.Associate(mDevices[kIdentityAlpha], endpoint); - - ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7, true)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_7(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_7(const chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & fabrics) - { - { - auto iter_0 = fabrics.begin(); - VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 0)); - VerifyOrReturn(CheckValueAsString("fabrics[0].label", iter_0.GetValue().label, chip::CharSpan("", 0))); - VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 1)); - } - VerifyOrReturn(CheckConstraintType("fabrics", "", "list")); - NextTest(); - } - - CHIP_ERROR TestQueryFabricsList_8() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::OperationalCredentialsClusterTest cluster; - cluster.Associate(mDevices[kIdentityBeta], endpoint); - - ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8, false)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_8(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_8(const chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & fabrics) - { - { - auto iter_0 = fabrics.begin(); - VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 0)); - VerifyOrReturn(CheckValueAsString("fabrics[0].label", iter_0.GetValue().label, chip::CharSpan("", 0))); - VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 1)); - VerifyOrReturn(CheckValueAsString("fabrics[1].label", iter_0.GetValue().label, chip::CharSpan("", 0))); - VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 2)); - } - VerifyOrReturn(CheckConstraintType("fabrics", "", "list")); - NextTest(); - } - - CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_9() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::BasicClusterTest cluster; - cluster.Associate(mDevices[kIdentityAlpha], endpoint); - - chip::CharSpan nodeLabelArgument; - nodeLabelArgument = chip::Span("chiptest1garbage: not in length on purpose", 9); - - ReturnErrorOnFailure(cluster.WriteAttribute( - nodeLabelArgument, this, OnSuccessCallback_9, OnFailureCallback_9)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_9(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_9() { NextTest(); } - - CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::BasicClusterTest cluster; - cluster.Associate(mDevices[kIdentityAlpha], endpoint); - - ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10, true)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_10(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_10(chip::CharSpan nodeLabel) - { - VerifyOrReturn(CheckValueAsString("nodeLabel", nodeLabel, chip::CharSpan("chiptest1", 9))); - VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", nodeLabel.size(), 32)); - NextTest(); - } - - CHIP_ERROR TestThCr2WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::BasicClusterTest cluster; - cluster.Associate(mDevices[kIdentityBeta], endpoint); - - chip::CharSpan nodeLabelArgument; - nodeLabelArgument = chip::Span("chiptest2garbage: not in length on purpose", 9); - - ReturnErrorOnFailure(cluster.WriteAttribute( - nodeLabelArgument, this, OnSuccessCallback_11, OnFailureCallback_11)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_11(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_11() { NextTest(); } - - CHIP_ERROR TestThCr2ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_12() - { - const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; - chip::Controller::BasicClusterTest cluster; - cluster.Associate(mDevices[kIdentityBeta], endpoint); - - ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_12, OnFailureCallback_12, true)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_12(CHIP_ERROR error) - { - chip::app::StatusIB status(error); - ThrowFailureResponse(); - } - - void OnSuccessResponse_12(chip::CharSpan nodeLabel) - { - VerifyOrReturn(CheckValueAsString("nodeLabel", nodeLabel, chip::CharSpan("chiptest2", 9))); - VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", nodeLabel.size(), 32)); - NextTest(); - } -}; - class Test_TC_MF_1_4Suite : public TestCommand { public: @@ -112781,9 +112295,9 @@ class Test_TC_MF_1_19Suite : public TestCommand Test_TC_MF_1_19Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_MF_1_19", credsIssuerConfig), mTestIndex(0) { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } @@ -112832,9 +112346,9 @@ class Test_TC_MF_1_19Suite : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 0; - chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mNodeId; chip::Optional mTimeout; void OnDiscoveryCommandsResults(const DiscoveryCommandResult & value) override @@ -116937,7 +116451,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), From 80012b233784631a22bcbfea77f82046224364bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Kr=C3=B3lik?= <66667989+Damian-Nordic@users.noreply.github.com> Date: Fri, 25 Mar 2022 15:54:36 +0100 Subject: [PATCH 03/23] [groups] Remove NDEBUG from GroupSession.h (#16445) * [groups] Remove NDEBUG from GroupSession.h Using NDEBUG to change public structure layouts is problematic since it may introduce hard to debug bugs when integrating the CHIP library with external components that are built with different compiler options. * Restyled by whitespace * Remove ReferenceCounted completely as suggested by the author Co-authored-by: Restyled.io --- src/transport/GroupSession.h | 50 ++---------------------------------- 1 file changed, 2 insertions(+), 48 deletions(-) diff --git a/src/transport/GroupSession.h b/src/transport/GroupSession.h index 4114e77db212d1..f546da9772aeb3 100644 --- a/src/transport/GroupSession.h +++ b/src/transport/GroupSession.h @@ -18,48 +18,20 @@ #include #include -#include #include #include namespace chip { namespace Transport { -#ifndef NDEBUG -class GroupSessionDeleter -{ -public: - static void Release(IncomingGroupSession * entry) {} - static void Release(OutgoingGroupSession * entry) {} -}; -#endif - class IncomingGroupSession : public Session -#ifndef NDEBUG - // The group session is ephemeral, its lifespan is controlled by whoever is using it. To prevent the object being destroyed - // while there are still SessionHandle or SessionHolder pointing to it, we enforce a reference counter check at its destruction - // in debug build. - , - public ReferenceCounted -#endif { public: IncomingGroupSession(GroupId group, FabricIndex fabricIndex, NodeId sourceNodeId) : mGroupId(group), mSourceNodeId(sourceNodeId) { SetFabricIndex(fabricIndex); } - ~IncomingGroupSession() override - { - NotifySessionReleased(); -#ifndef NDEBUG - VerifyOrDie(GetReferenceCount() == 0); -#endif - } - -#ifndef NDEBUG - void Retain() override { ReferenceCounted::Retain(); } - void Release() override { ReferenceCounted::Release(); } -#endif + ~IncomingGroupSession() override { NotifySessionReleased(); } Session::SessionType GetSessionType() const override { return Session::SessionType::kGroupIncoming; } #if CHIP_PROGRESS_LOGGING @@ -102,31 +74,13 @@ class IncomingGroupSession : public Session }; class OutgoingGroupSession : public Session -#ifndef NDEBUG - // The group session is ephemeral, its lifespan is controlled by whoever is using it. To prevent the object being destroyed - // while there are still SessionHandle or SessionHolder pointing to it, we enforce a reference counter check at its destruction - // in debug build. - , - public ReferenceCounted -#endif { public: OutgoingGroupSession(GroupId group, FabricIndex fabricIndex, NodeId sourceNodeId) : mGroupId(group), mSourceNodeId(sourceNodeId) { SetFabricIndex(fabricIndex); } - ~OutgoingGroupSession() override - { - NotifySessionReleased(); -#ifndef NDEBUG - VerifyOrDie(GetReferenceCount() == 0); -#endif - } - -#ifndef NDEBUG - void Retain() override { ReferenceCounted::Retain(); } - void Release() override { ReferenceCounted::Release(); } -#endif + ~OutgoingGroupSession() override { NotifySessionReleased(); } Session::SessionType GetSessionType() const override { return Session::SessionType::kGroupOutgoing; } #if CHIP_PROGRESS_LOGGING From 48b48c28a5c2aa699ee2699d8a051717ff6d0686 Mon Sep 17 00:00:00 2001 From: "Hui.Li-TCL" Date: Fri, 25 Mar 2022 23:18:10 +0800 Subject: [PATCH 04/23] add CommissionableDataProvider on android platform (#16475) * add CommissionableDataProvider on android platform * fix restyled-io and ci errors * remove commented * fix restyled-io and ci errors * fix PR comment * fix restyled-io and ci errors * fix PR comment * fix restyled-io and ci errors * fix restyled-io and ci errors --- .../chiptvserver/service/MatterServant.java | 6 + .../platform/CommissionableDataProvider.h | 3 + src/platform/BUILD.gn | 2 +- .../android/AndroidChipPlatform-JNI.cpp | 19 ++ src/platform/android/BUILD.gn | 2 + .../CommissionableDataProviderImpl.cpp | 219 ++++++++++++++++++ .../android/CommissionableDataProviderImpl.h | 63 +++++ .../chip/platform/AndroidChipPlatform.java | 18 ++ .../PreferencesConfigurationManager.java | 6 - 9 files changed, 331 insertions(+), 7 deletions(-) create mode 100644 src/platform/android/CommissionableDataProviderImpl.cpp create mode 100644 src/platform/android/CommissionableDataProviderImpl.h diff --git a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServant.java b/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServant.java index 1a1c6f914b0d57..18842aabde64b9 100644 --- a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServant.java +++ b/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServant.java @@ -40,6 +40,9 @@ public class MatterServant { + public int testSetupPasscode = 20202021; + public int testDiscriminator = 0xF00; + private ChipAppServer chipAppServer; private MatterServant() {} @@ -97,6 +100,9 @@ public void init(@NonNull Context context) { new ChipMdnsCallbackImpl(), new DiagnosticDataProviderImpl(applicationContext)); + chipPlatform.updateCommissionableDataProviderData( + null, null, 0, testSetupPasscode, testDiscriminator); + tvApp.postInit(); chipAppServer = new ChipAppServer(); diff --git a/src/include/platform/CommissionableDataProvider.h b/src/include/platform/CommissionableDataProvider.h index aea04bc833b2c8..6a51023f1aef03 100644 --- a/src/include/platform/CommissionableDataProvider.h +++ b/src/include/platform/CommissionableDataProvider.h @@ -24,6 +24,9 @@ namespace chip { // The largest value of the 12-bit Payload discriminator constexpr uint16_t kMaxDiscriminatorValue = 0xFFF; +constexpr uint32_t kMinSetupPasscode = 1; +constexpr uint32_t kMaxSetupPasscode = 0x5F5E0FE; + namespace DeviceLayer { class CommissionableDataProvider diff --git a/src/platform/BUILD.gn b/src/platform/BUILD.gn index 1ac8f1bba7f764..caed34b8755eeb 100644 --- a/src/platform/BUILD.gn +++ b/src/platform/BUILD.gn @@ -57,7 +57,7 @@ if (chip_device_platform != "none") { # === FOR TRANSITION UNTIL ALL EXAMPLES PROVIDE THEIR OWN === # Linux platform has already transitioned. chip_use_transitional_commissionable_data_provider = - chip_device_platform != "linux" + chip_device_platform != "linux" && chip_device_platform != "android" # lock tracking: none/log/fatal or auto for a platform-dependent choice chip_stack_lock_tracking = "auto" diff --git a/src/platform/android/AndroidChipPlatform-JNI.cpp b/src/platform/android/AndroidChipPlatform-JNI.cpp index e655b30140c4b2..0f1168401fa7e8 100644 --- a/src/platform/android/AndroidChipPlatform-JNI.cpp +++ b/src/platform/android/AndroidChipPlatform-JNI.cpp @@ -21,6 +21,7 @@ * Implementation of JNI bridge for CHIP Device Controller for Android apps * */ +#include #include #include #include @@ -35,6 +36,7 @@ #include "AndroidChipPlatform-JNI.h" #include "BLEManagerImpl.h" +#include "CommissionableDataProviderImpl.h" #include "DiagnosticDataProviderImpl.h" #include "DnssdImpl.h" @@ -255,3 +257,20 @@ static bool JavaBytesToUUID(JNIEnv * env, jbyteArray value, chip::Ble::ChipBleUU return result; } #endif + +// for CommissionableDataProvider +JNI_METHOD(jboolean, updateCommissionableDataProviderData) +(JNIEnv * env, jclass self, jstring spake2pVerifierBase64, jstring Spake2pSaltBase64, jint spake2pIterationCount, + jlong setupPasscode, jint discriminator) +{ + chip::DeviceLayer::StackLock lock; + CHIP_ERROR err = CommissionableDataProviderMgrImpl().Update(env, spake2pVerifierBase64, Spake2pSaltBase64, + spake2pIterationCount, setupPasscode, discriminator); + if (err != CHIP_NO_ERROR) + { + ChipLogError(DeviceLayer, "Failed to update commissionable data provider data: %s", ErrorStr(err)); + return false; + } + + return true; +} diff --git a/src/platform/android/BUILD.gn b/src/platform/android/BUILD.gn index c6ab8699b96cf0..5f7acc2d6d81a6 100644 --- a/src/platform/android/BUILD.gn +++ b/src/platform/android/BUILD.gn @@ -36,6 +36,8 @@ static_library("android") { "BLEManagerImpl.h", "BlePlatformConfig.h", "CHIPDevicePlatformEvent.h", + "CommissionableDataProviderImpl.cpp", + "CommissionableDataProviderImpl.h", "ConfigurationManagerImpl.cpp", "ConfigurationManagerImpl.h", "ConnectivityManagerImpl.cpp", diff --git a/src/platform/android/CommissionableDataProviderImpl.cpp b/src/platform/android/CommissionableDataProviderImpl.cpp new file mode 100644 index 00000000000000..ebcd6c48a302a4 --- /dev/null +++ b/src/platform/android/CommissionableDataProviderImpl.cpp @@ -0,0 +1,219 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#include "CommissionableDataProviderImpl.h" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +using namespace chip; +using namespace chip::Crypto; + +namespace { + +CHIP_ERROR GeneratePaseSalt(std::vector & spake2pSaltVector) +{ + constexpr size_t kSaltLen = kSpake2p_Max_PBKDF_Salt_Length; + spake2pSaltVector.resize(kSaltLen); + return DRBG_get_bytes(spake2pSaltVector.data(), spake2pSaltVector.size()); +} + +} // namespace + +CommissionableDataProviderImpl CommissionableDataProviderImpl::sInstance; + +CHIP_ERROR CommissionableDataProviderImpl::Update(JNIEnv * env, jstring spake2pVerifierBase64, jstring Spake2pSaltBase64, + jint spake2pIterationCount, jlong setupPasscode, jint discriminator) +{ + VerifyOrReturnLogError(discriminator <= chip::kMaxDiscriminatorValue, CHIP_ERROR_INVALID_ARGUMENT); + + if (spake2pIterationCount == 0) + { + spake2pIterationCount = CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_ITERATION_COUNT; + } + VerifyOrReturnLogError(static_cast(spake2pIterationCount) >= kSpake2p_Min_PBKDF_Iterations, + CHIP_ERROR_INVALID_ARGUMENT); + VerifyOrReturnLogError(static_cast(spake2pIterationCount) <= kSpake2p_Max_PBKDF_Iterations, + CHIP_ERROR_INVALID_ARGUMENT); + + const bool havePaseVerifier = (spake2pVerifierBase64 != nullptr); + const bool havePaseSalt = (Spake2pSaltBase64 != nullptr); + VerifyOrReturnLogError(!havePaseVerifier || (havePaseVerifier && havePaseSalt), CHIP_ERROR_INVALID_ARGUMENT); + + CHIP_ERROR err; + // read verifier from paramter is have + Spake2pVerifier providedVerifier; + std::vector serializedSpake2pVerifier(kSpake2p_VerifierSerialized_Length); + if (havePaseVerifier) + { + chip::JniUtfString utfSpake2pVerifierBase64(env, spake2pVerifierBase64); + + size_t maxBase64Size = BASE64_ENCODED_LEN(chip::Crypto::kSpake2p_VerifierSerialized_Length); + VerifyOrReturnLogError(static_cast(utfSpake2pVerifierBase64.size()) <= maxBase64Size, + CHIP_ERROR_INVALID_ARGUMENT); + + size_t decodedLen = chip::Base64Decode32(utfSpake2pVerifierBase64.c_str(), utfSpake2pVerifierBase64.size(), + reinterpret_cast(serializedSpake2pVerifier.data())); + VerifyOrReturnLogError(decodedLen == chip::Crypto::kSpake2p_VerifierSerialized_Length, CHIP_ERROR_INVALID_ARGUMENT); + + chip::MutableByteSpan verifierSpan{ serializedSpake2pVerifier.data(), decodedLen }; + err = providedVerifier.Deserialize(verifierSpan); + VerifyOrReturnLogError(err == CHIP_NO_ERROR, err); + + ChipLogProgress(Support, "Got externally provided verifier, using it."); + } + + // read slat from paramter is have or generate one + std::vector spake2pSalt(chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length); + if (!havePaseSalt) + { + ChipLogProgress(Support, "LinuxCommissionableDataProvider didn't get a PASE salt, generating one."); + err = GeneratePaseSalt(spake2pSalt); + VerifyOrReturnLogError(err == CHIP_NO_ERROR, err); + } + else + { + chip::JniUtfString utfSpake2pSaltBase64(env, Spake2pSaltBase64); + + size_t maxBase64Size = BASE64_ENCODED_LEN(chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length); + VerifyOrReturnLogError(static_cast(utfSpake2pSaltBase64.size()) <= maxBase64Size, CHIP_ERROR_INVALID_ARGUMENT); + + size_t decodedLen = chip::Base64Decode32(utfSpake2pSaltBase64.c_str(), utfSpake2pSaltBase64.size(), + reinterpret_cast(spake2pSalt.data())); + VerifyOrReturnLogError(decodedLen >= chip::Crypto::kSpake2p_Min_PBKDF_Salt_Length && + decodedLen <= chip::Crypto::kSpake2p_Max_PBKDF_Salt_Length, + CHIP_ERROR_INVALID_ARGUMENT); + spake2pSalt.resize(decodedLen); + } + + // generate verifier from passcode is have + const bool havePasscode = (setupPasscode > kMinSetupPasscode && setupPasscode < kMaxSetupPasscode); + Spake2pVerifier passcodeVerifier; + std::vector serializedPasscodeVerifier(kSpake2p_VerifierSerialized_Length); + chip::MutableByteSpan saltSpan{ spake2pSalt.data(), spake2pSalt.size() }; + if (havePasscode) + { + uint32_t u32SetupPasscode = static_cast(setupPasscode); + err = passcodeVerifier.Generate(spake2pIterationCount, saltSpan, u32SetupPasscode); + VerifyOrReturnLogError(err == CHIP_NO_ERROR, err); + + chip::MutableByteSpan verifierSpan{ serializedPasscodeVerifier.data(), serializedPasscodeVerifier.size() }; + err = passcodeVerifier.Serialize(verifierSpan); + VerifyOrReturnLogError(err == CHIP_NO_ERROR, err); + } + + // Make sure we actually have a verifier + VerifyOrReturnLogError(havePasscode || havePaseVerifier, CHIP_ERROR_INVALID_ARGUMENT); + + // If both passcode and external verifier were provided, validate they match, otherwise + // it's ambiguous. + if (havePasscode && havePaseVerifier) + { + VerifyOrReturnLogError(serializedPasscodeVerifier == serializedSpake2pVerifier, CHIP_ERROR_INVALID_ARGUMENT); + ChipLogProgress(Support, "Validated externally provided passcode matches the one generated from provided passcode."); + } + + // External PASE verifier takes precedence when present (even though it is identical to passcode-based + // one when the latter is present). + if (havePaseVerifier) + { + mSerializedPaseVerifier = std::move(serializedSpake2pVerifier); + } + else + { + mSerializedPaseVerifier = std::move(serializedPasscodeVerifier); + } + mDiscriminator = discriminator; + mPaseSalt = std::move(spake2pSalt); + mPaseIterationCount = spake2pIterationCount; + if (havePasscode) + { + mSetupPasscode.SetValue(setupPasscode); + } + + // Set to global CommissionableDataProvider once success first time + if (!mFirstUpdated) + { + DeviceLayer::SetCommissionableDataProvider(this); + } + mFirstUpdated = true; + + return CHIP_NO_ERROR; +} + +CHIP_ERROR CommissionableDataProviderImpl::GetSetupDiscriminator(uint16_t & setupDiscriminator) +{ + VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE); + setupDiscriminator = mDiscriminator; + return CHIP_NO_ERROR; +} + +CHIP_ERROR CommissionableDataProviderImpl::GetSpake2pIterationCount(uint32_t & iterationCount) +{ + VerifyOrReturnLogError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE); + iterationCount = mPaseIterationCount; + return CHIP_NO_ERROR; +} + +CHIP_ERROR CommissionableDataProviderImpl::GetSpake2pSalt(chip::MutableByteSpan & saltBuf) +{ + VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE); + + VerifyOrReturnError(saltBuf.size() >= kSpake2p_Max_PBKDF_Salt_Length, CHIP_ERROR_BUFFER_TOO_SMALL); + memcpy(saltBuf.data(), mPaseSalt.data(), mPaseSalt.size()); + saltBuf.reduce_size(mPaseSalt.size()); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR CommissionableDataProviderImpl::GetSpake2pVerifier(chip::MutableByteSpan & verifierBuf, size_t & outVerifierLen) +{ + VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE); + + // By now, serialized verifier from Init should be correct size + VerifyOrReturnError(mSerializedPaseVerifier.size() == kSpake2p_VerifierSerialized_Length, CHIP_ERROR_INTERNAL); + + outVerifierLen = mSerializedPaseVerifier.size(); + VerifyOrReturnError(verifierBuf.size() >= outVerifierLen, CHIP_ERROR_BUFFER_TOO_SMALL); + memcpy(verifierBuf.data(), mSerializedPaseVerifier.data(), mSerializedPaseVerifier.size()); + verifierBuf.reduce_size(mSerializedPaseVerifier.size()); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR CommissionableDataProviderImpl::GetSetupPasscode(uint32_t & setupPasscode) +{ + VerifyOrReturnError(mFirstUpdated, CHIP_ERROR_INCORRECT_STATE); + + // Pretend not implemented if we don't have a passcode value externally set + if (!mSetupPasscode.HasValue()) + { + return CHIP_ERROR_NOT_IMPLEMENTED; + } + + setupPasscode = mSetupPasscode.Value(); + return CHIP_NO_ERROR; +} diff --git a/src/platform/android/CommissionableDataProviderImpl.h b/src/platform/android/CommissionableDataProviderImpl.h new file mode 100644 index 00000000000000..ef3bec7516d77a --- /dev/null +++ b/src/platform/android/CommissionableDataProviderImpl.h @@ -0,0 +1,63 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#pragma once + +#include +#include +#include +#include +#include +#include + +class CommissionableDataProviderImpl : public chip::DeviceLayer::CommissionableDataProvider +{ +public: + CHIP_ERROR Update(JNIEnv * env, jstring spake2pVerifierBase64, jstring Spake2pSaltBase64, jint spake2pIterationCount, + jlong setupPasscode, jint discriminator); + CHIP_ERROR GetSetupDiscriminator(uint16_t & setupDiscriminator) override; + CHIP_ERROR SetSetupDiscriminator(uint16_t setupDiscriminator) override + { + // We don't support overriding the discriminator post-init (it is deprecated!) + return CHIP_ERROR_NOT_IMPLEMENTED; + } + CHIP_ERROR GetSpake2pIterationCount(uint32_t & iterationCount) override; + CHIP_ERROR GetSpake2pSalt(chip::MutableByteSpan & saltBuf) override; + CHIP_ERROR GetSpake2pVerifier(chip::MutableByteSpan & verifierBuf, size_t & outVerifierLen) override; + CHIP_ERROR GetSetupPasscode(uint32_t & setupPasscode) override; + CHIP_ERROR SetSetupPasscode(uint32_t setupPasscode) override + { + // We don't support overriding the passcode post-init (it is deprecated!) + return CHIP_ERROR_NOT_IMPLEMENTED; + } + +private: + friend CommissionableDataProviderImpl & CommissionableDataProviderMgrImpl(); + static CommissionableDataProviderImpl sInstance; + bool mFirstUpdated = false; + std::vector mSerializedPaseVerifier; + std::vector mPaseSalt; + uint32_t mPaseIterationCount = 0; + chip::Optional mSetupPasscode; + uint16_t mDiscriminator = 0; +}; + +inline CommissionableDataProviderImpl & CommissionableDataProviderMgrImpl() +{ + return CommissionableDataProviderImpl::sInstance; +} diff --git a/src/platform/android/java/chip/platform/AndroidChipPlatform.java b/src/platform/android/java/chip/platform/AndroidChipPlatform.java index da1ee88423872f..eaad0e6ed0d281 100644 --- a/src/platform/android/java/chip/platform/AndroidChipPlatform.java +++ b/src/platform/android/java/chip/platform/AndroidChipPlatform.java @@ -91,4 +91,22 @@ private native void nativeSetServiceResolver( ServiceResolver resolver, ChipMdnsCallback chipMdnsCallback); private native void setDiagnosticDataProviderManager(DiagnosticDataProvider dataProviderCallback); + + /** + * update commission info + * + * @param spake2pVerifierBase64 base64 encoded spake2p verifier, ref + * CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_VERIFIER. using null to generate it from passcode. + * @param Spake2pSaltBase64 base64 encoded spake2p salt, ref + * CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_SALT. using null to generate a random one. + * @param spake2pIterationCount Spake2p iteration count, or 0 to use + * CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_ITERATION_COUNT + * @return true on success of false on failed + */ + public native boolean updateCommissionableDataProviderData( + String spake2pVerifierBase64, + String Spake2pSaltBase64, + int spake2pIterationCount, + long setupPasscode, + int discriminator); } diff --git a/src/platform/android/java/chip/platform/PreferencesConfigurationManager.java b/src/platform/android/java/chip/platform/PreferencesConfigurationManager.java index 6ead06082eadcd..0069f033c6d77b 100644 --- a/src/platform/android/java/chip/platform/PreferencesConfigurationManager.java +++ b/src/platform/android/java/chip/platform/PreferencesConfigurationManager.java @@ -85,12 +85,6 @@ public long readConfigValueLong(String namespace, String name) */ case kConfigNamespace_ChipFactory + ":" + kConfigKey_SoftwareVersion: return 1; - - case kConfigNamespace_ChipFactory + ":" + kConfigKey_SetupPinCode: - return 20202021; - - case kConfigNamespace_ChipFactory + ":" + kConfigKey_SetupDiscriminator: - return 0xF00; } if (preferences.contains(key)) { From c14faebbc566b6436f199f1fe8b261e60638c9fc Mon Sep 17 00:00:00 2001 From: Marc Lepage <67919234+mlepage-google@users.noreply.github.com> Date: Fri, 25 Mar 2022 13:51:27 -0400 Subject: [PATCH 05/23] Update zap repo to latest upstream (#16674) * Update zap repo to latest upstream * Zap regen all --- .../all-clusters-app.matter | 650 ++++++------- .../bridge-common/bridge-app.matter | 152 ++-- .../door-lock-common/door-lock-app.matter | 242 ++--- .../light-switch-app.matter | 382 ++++---- .../lighting-common/lighting-app.matter | 416 ++++----- examples/lock-app/lock-common/lock-app.matter | 138 +-- .../log-source-common/log-source-app.matter | 88 +- .../ota-provider-app.matter | 116 +-- .../ota-requestor-app.matter | 138 +-- .../placeholder/linux/apps/app1/config.matter | 314 +++---- .../placeholder/linux/apps/app2/config.matter | 314 +++---- examples/pump-app/pump-common/pump-app.matter | 280 +++--- .../pump-controller-app.matter | 184 ++-- .../esp32/main/temperature-measurement.matter | 104 +-- .../thermostat-common/thermostat.matter | 244 ++--- examples/tv-app/tv-common/tv-app.matter | 318 +++---- .../tv-casting-common/tv-casting-app.matter | 356 ++++---- examples/window-app/common/window-app.matter | 130 +-- .../data_model/controller-clusters.matter | 854 +++++++++--------- third_party/zap/repo | 2 +- .../zap-generated/IMClusterCommandHandler.cpp | 548 +++++------ .../all-clusters-app/zap-generated/access.h | 24 +- .../zap-generated/IMClusterCommandHandler.cpp | 158 ++-- .../zap-generated/IMClusterCommandHandler.cpp | 200 ++-- .../door-lock-app/zap-generated/access.h | 48 +- .../zap-generated/IMClusterCommandHandler.cpp | 158 ++-- .../zap-generated/IMClusterCommandHandler.cpp | 340 +++---- .../zap-generated/IMClusterCommandHandler.cpp | 116 +-- .../zap-generated/IMClusterCommandHandler.cpp | 80 +- .../zap-generated/IMClusterCommandHandler.cpp | 98 +- .../zap-generated/IMClusterCommandHandler.cpp | 116 +-- .../zap-generated/IMClusterCommandHandler.cpp | 274 +++--- .../zap-generated/IMClusterCommandHandler.cpp | 274 +++--- .../zap-generated/IMClusterCommandHandler.cpp | 260 +++--- .../zap-generated/IMClusterCommandHandler.cpp | 158 ++-- .../zap-generated/IMClusterCommandHandler.cpp | 116 +-- .../zap-generated/IMClusterCommandHandler.cpp | 212 ++--- .../zap-generated/IMClusterCommandHandler.cpp | 284 +++--- .../zap-generated/IMClusterCommandHandler.cpp | 230 ++--- .../zap-generated/IMClusterCommandHandler.cpp | 152 ++-- 40 files changed, 4634 insertions(+), 4634 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 245ad5d324e88c..9f07b140e72d3b 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -89,10 +89,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -101,8 +97,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -473,42 +473,62 @@ server cluster ColorControl = 768 { attribute int16u startUpColorTemperatureMireds = 16400; readonly global attribute int16u clusterRevision = 65533; - request struct ColorLoopSetRequest { - ColorLoopUpdateFlags updateFlags = 0; - ColorLoopAction action = 1; - ColorLoopDirection direction = 2; - INT16U time = 3; - INT16U startHue = 4; - BITMAP8 optionsMask = 5; - BITMAP8 optionsOverride = 6; + request struct MoveToHueRequest { + INT8U hue = 0; + HueDirection direction = 1; + INT16U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveHueRequest { + request struct MoveHueRequest { HueMoveMode moveMode = 0; - INT16U rate = 1; + INT8U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct EnhancedMoveToHueRequest { - INT16U enhancedHue = 0; - HueDirection direction = 1; - INT16U transitionTime = 2; + request struct StepHueRequest { + HueStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveToHueAndSaturationRequest { - INT16U enhancedHue = 0; + request struct MoveToSaturationRequest { + INT8U saturation = 0; + INT16U transitionTime = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct MoveSaturationRequest { + SaturationMoveMode moveMode = 0; + INT8U rate = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct StepSaturationRequest { + SaturationStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; + } + + request struct MoveToHueAndSaturationRequest { + INT8U hue = 0; INT8U saturation = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedStepHueRequest { - HueStepMode stepMode = 0; - INT16U stepSize = 1; + request struct MoveToColorRequest { + INT16U colorX = 0; + INT16U colorY = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; @@ -521,73 +541,74 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 3; } - request struct MoveColorTemperatureRequest { - HueMoveMode moveMode = 0; - INT16U rate = 1; - INT16U colorTemperatureMinimum = 2; - INT16U colorTemperatureMaximum = 3; - BITMAP8 optionsMask = 4; - BITMAP8 optionsOverride = 5; - } - - request struct MoveHueRequest { - HueMoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; + request struct StepColorRequest { + INT16S stepX = 0; + INT16S stepY = 1; + INT16U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; } - request struct MoveSaturationRequest { - SaturationMoveMode moveMode = 0; - INT8U rate = 1; + request struct MoveToColorTemperatureRequest { + INT16U colorTemperature = 0; + INT16U transitionTime = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct MoveToColorRequest { - INT16U colorX = 0; - INT16U colorY = 1; + request struct EnhancedMoveToHueRequest { + INT16U enhancedHue = 0; + HueDirection direction = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToColorTemperatureRequest { - INT16U colorTemperature = 0; - INT16U transitionTime = 1; + request struct EnhancedMoveHueRequest { + HueMoveMode moveMode = 0; + INT16U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct MoveToHueRequest { - INT8U hue = 0; - HueDirection direction = 1; + request struct EnhancedStepHueRequest { + HueStepMode stepMode = 0; + INT16U stepSize = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToHueAndSaturationRequest { - INT8U hue = 0; + request struct EnhancedMoveToHueAndSaturationRequest { + INT16U enhancedHue = 0; INT8U saturation = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToSaturationRequest { - INT8U saturation = 0; - INT16U transitionTime = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; + request struct ColorLoopSetRequest { + ColorLoopUpdateFlags updateFlags = 0; + ColorLoopAction action = 1; + ColorLoopDirection direction = 2; + INT16U time = 3; + INT16U startHue = 4; + BITMAP8 optionsMask = 5; + BITMAP8 optionsOverride = 6; } - request struct StepColorRequest { - INT16S stepX = 0; - INT16S stepY = 1; - INT16U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; + request struct StopMoveStepRequest { + BITMAP8 optionsMask = 0; + BITMAP8 optionsOverride = 1; + } + + request struct MoveColorTemperatureRequest { + HueMoveMode moveMode = 0; + INT16U rate = 1; + INT16U colorTemperatureMinimum = 2; + INT16U colorTemperatureMaximum = 3; + BITMAP8 optionsMask = 4; + BITMAP8 optionsOverride = 5; } request struct StepColorTemperatureRequest { @@ -600,46 +621,25 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 6; } - request struct StepHueRequest { - HueStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; - } - - request struct StepSaturationRequest { - SaturationStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; - } - - request struct StopMoveStepRequest { - BITMAP8 optionsMask = 0; - BITMAP8 optionsOverride = 1; - } - - command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; - command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; - command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; - command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; - command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; - command MoveColor(MoveColorRequest): DefaultSuccess = 8; - command MoveColorTemperature(MoveColorTemperatureRequest): DefaultSuccess = 75; + command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; command MoveHue(MoveHueRequest): DefaultSuccess = 1; + command StepHue(StepHueRequest): DefaultSuccess = 2; + command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; command MoveSaturation(MoveSaturationRequest): DefaultSuccess = 4; - command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; - command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; - command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; + command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; command MoveToHueAndSaturation(MoveToHueAndSaturationRequest): DefaultSuccess = 6; - command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; + command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; + command MoveColor(MoveColorRequest): DefaultSuccess = 8; command StepColor(StepColorRequest): DefaultSuccess = 9; - command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76; - command StepHue(StepHueRequest): DefaultSuccess = 2; - command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; + command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; + command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; + command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; + command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; + command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; + command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; command StopMoveStep(StopMoveStepRequest): DefaultSuccess = 71; + command MoveColorTemperature(MoveColorTemperatureRequest): DefaultSuccess = 75; + command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76; } server cluster ContentLauncher = 1290 { @@ -1176,24 +1176,30 @@ server cluster DoorLock = 257 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct ClearCredentialRequest { - nullable DlCredential credential = 0; + request struct LockDoorRequest { + optional OCTET_STRING pinCode = 0; } - request struct ClearUserRequest { - INT16U userIndex = 0; + request struct UnlockDoorRequest { + optional OCTET_STRING pinCode = 0; } - request struct GetCredentialStatusRequest { - DlCredential credential = 0; + request struct SetUserRequest { + DlDataOperationType operationType = 0; + INT16U userIndex = 1; + nullable CHAR_STRING userName = 2; + nullable INT32U userUniqueId = 3; + nullable DlUserStatus userStatus = 4; + nullable DlUserType userType = 5; + nullable DlCredentialRule credentialRule = 6; } request struct GetUserRequest { INT16U userIndex = 0; } - request struct LockDoorRequest { - optional OCTET_STRING pinCode = 0; + request struct ClearUserRequest { + INT16U userIndex = 0; } request struct SetCredentialRequest { @@ -1205,24 +1211,12 @@ server cluster DoorLock = 257 { nullable DlUserType userType = 5; } - request struct SetUserRequest { - DlDataOperationType operationType = 0; - INT16U userIndex = 1; - nullable CHAR_STRING userName = 2; - nullable INT32U userUniqueId = 3; - nullable DlUserStatus userStatus = 4; - nullable DlUserType userType = 5; - nullable DlCredentialRule credentialRule = 6; - } - - request struct UnlockDoorRequest { - optional OCTET_STRING pinCode = 0; + request struct GetCredentialStatusRequest { + DlCredential credential = 0; } - response struct GetCredentialStatusResponse { - boolean credentialExists = 0; - nullable INT16U userIndex = 1; - nullable INT16U nextCredentialIndex = 2; + request struct ClearCredentialRequest { + nullable DlCredential credential = 0; } response struct GetUserResponse { @@ -1244,14 +1238,20 @@ server cluster DoorLock = 257 { nullable INT16U nextCredentialIndex = 2; } - timed command ClearCredential(ClearCredentialRequest): DefaultSuccess = 38; - timed command ClearUser(ClearUserRequest): DefaultSuccess = 29; - command GetCredentialStatus(GetCredentialStatusRequest): GetCredentialStatusResponse = 36; - command GetUser(GetUserRequest): GetUserResponse = 27; + response struct GetCredentialStatusResponse { + boolean credentialExists = 0; + nullable INT16U userIndex = 1; + nullable INT16U nextCredentialIndex = 2; + } + timed command LockDoor(LockDoorRequest): DefaultSuccess = 0; - timed command SetCredential(SetCredentialRequest): SetCredentialResponse = 34; - timed command SetUser(SetUserRequest): DefaultSuccess = 26; timed command UnlockDoor(UnlockDoorRequest): DefaultSuccess = 1; + timed command SetUser(SetUserRequest): DefaultSuccess = 26; + command GetUser(GetUserRequest): GetUserResponse = 27; + timed command ClearUser(ClearUserRequest): DefaultSuccess = 29; + timed command SetCredential(SetCredentialRequest): SetCredentialResponse = 34; + command GetCredentialStatus(GetCredentialStatusRequest): GetCredentialStatusResponse = 36; + timed command ClearCredential(ClearCredentialRequest): DefaultSuccess = 38; } server cluster ElectricalMeasurement = 2820 { @@ -1355,19 +1355,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -1497,23 +1497,19 @@ server cluster GroupKeyManagement = 63 { readonly attribute int16u maxGroupKeysPerFabric = 3; readonly global attribute int16u clusterRevision = 65533; - request struct KeySetReadRequest { - INT16U groupKeySetID = 0; + request struct KeySetWriteRequest { + GroupKeySetStruct groupKeySet = 0; } - request struct KeySetReadAllIndicesRequest { - INT16U groupKeySetIDs[] = 0; + request struct KeySetReadRequest { + INT16U groupKeySetID = 0; } request struct KeySetRemoveRequest { INT16U groupKeySetID = 0; } - request struct KeySetWriteRequest { - GroupKeySetStruct groupKeySet = 0; - } - - response struct KeySetReadAllIndicesResponse { + request struct KeySetReadAllIndicesRequest { INT16U groupKeySetIDs[] = 0; } @@ -1521,10 +1517,14 @@ server cluster GroupKeyManagement = 63 { GroupKeySetStruct groupKeySet = 0; } + response struct KeySetReadAllIndicesResponse { + INT16U groupKeySetIDs[] = 0; + } + + command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; command KeySetRead(KeySetReadRequest): KeySetReadResponse = 1; - command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; command KeySetRemove(KeySetRemoveRequest): DefaultSuccess = 3; - command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; + command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; } server cluster Groups = 4 { @@ -1536,9 +1536,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -1549,8 +1548,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -1558,6 +1558,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -1568,18 +1574,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } server cluster IasZone = 1280 { @@ -1634,11 +1634,6 @@ server cluster IasZone = 1280 { INT8U zoneId = 1; } - response struct ZoneEnrollRequest { - IasZoneType zoneType = 0; - INT16U manufacturerCode = 1; - } - response struct ZoneStatusChangeNotification { IasZoneStatus zoneStatus = 0; BITMAP8 extendedStatus = 1; @@ -1646,6 +1641,11 @@ server cluster IasZone = 1280 { INT16U delay = 3; } + response struct ZoneEnrollRequest { + IasZoneType zoneType = 0; + INT16U manufacturerCode = 1; + } + command ZoneEnrollResponse(ZoneEnrollResponseRequest): DefaultSuccess = 0; } @@ -1847,13 +1847,6 @@ server cluster LevelControl = 8 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -1861,14 +1854,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -1879,24 +1869,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -2067,8 +2067,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -2078,8 +2078,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -2088,21 +2088,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -2110,19 +2111,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -2148,16 +2148,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -2169,14 +2159,24 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; + } + response struct ApplyUpdateResponse { OTAApplyUpdateAction action = 0; INT32U delayedActionTime = 1; } + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OtaSoftwareUpdateRequestor = 42 { @@ -2305,11 +2305,11 @@ server cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } server cluster OnOffSwitchConfiguration = 7 { @@ -2355,6 +2355,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -2363,37 +2375,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -2401,30 +2401,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster PowerSource = 47 { @@ -2664,33 +2664,33 @@ server cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -2699,23 +2699,24 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -2724,22 +2725,21 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } server cluster SoftwareDiagnostics = 52 { @@ -3023,80 +3023,76 @@ server cluster TestCluster = 1295 { attribute nullable int16s nullableRangeRestrictedInt16s = 32809; readonly global attribute int16u clusterRevision = 65533; - request struct SimpleStructEchoRequestRequest { - SimpleStruct arg1 = 0; - } - request struct TestAddArgumentsRequest { INT8U arg1 = 0; INT8U arg2 = 1; } - request struct TestEmitTestEventRequestRequest { - INT8U arg1 = 0; - SimpleEnum arg2 = 1; - BOOLEAN arg3 = 2; + request struct TestStructArgumentRequestRequest { + SimpleStruct arg1 = 0; } - request struct TestEmitTestFabricScopedEventRequestRequest { - INT8U arg1 = 0; + request struct TestNestedStructArgumentRequestRequest { + NestedStruct arg1 = 0; } - request struct TestEnumsRequestRequest { - vendor_id arg1 = 0; - SimpleEnum arg2 = 1; + request struct TestListStructArgumentRequestRequest { + SimpleStruct arg1[] = 0; } request struct TestListInt8UArgumentRequestRequest { INT8U arg1[] = 0; } - request struct TestListInt8UReverseRequestRequest { - INT8U arg1[] = 0; + request struct TestNestedStructListArgumentRequestRequest { + NestedStructList arg1 = 0; } request struct TestListNestedStructListArgumentRequestRequest { NestedStructList arg1[] = 0; } - request struct TestListStructArgumentRequestRequest { - SimpleStruct arg1[] = 0; - } - - request struct TestNestedStructArgumentRequestRequest { - NestedStruct arg1 = 0; + request struct TestListInt8UReverseRequestRequest { + INT8U arg1[] = 0; } - request struct TestNestedStructListArgumentRequestRequest { - NestedStructList arg1 = 0; + request struct TestEnumsRequestRequest { + vendor_id arg1 = 0; + SimpleEnum arg2 = 1; } request struct TestNullableOptionalRequestRequest { optional nullable INT8U arg1 = 0; } + request struct SimpleStructEchoRequestRequest { + SimpleStruct arg1 = 0; + } + request struct TestSimpleOptionalArgumentRequestRequest { optional BOOLEAN arg1 = 0; } - request struct TestStructArgumentRequestRequest { - SimpleStruct arg1 = 0; + request struct TestEmitTestEventRequestRequest { + INT8U arg1 = 0; + SimpleEnum arg2 = 1; + BOOLEAN arg3 = 2; } - response struct SimpleStructResponse { - SimpleStruct arg1 = 0; + request struct TestEmitTestFabricScopedEventRequestRequest { + INT8U arg1 = 0; } - response struct TestAddArgumentsResponse { + response struct TestSpecificResponse { INT8U returnValue = 0; } - response struct TestEmitTestEventResponse { - INT64U value = 0; + response struct TestAddArgumentsResponse { + INT8U returnValue = 0; } - response struct TestEmitTestFabricScopedEventResponse { - INT64U value = 0; + response struct TestListInt8UReverseResponse { + INT8U arg1[] = 0; } response struct TestEnumsResponse { @@ -3104,10 +3100,6 @@ server cluster TestCluster = 1295 { SimpleEnum arg2 = 1; } - response struct TestListInt8UReverseResponse { - INT8U arg1[] = 0; - } - response struct TestNullableOptionalResponse { BOOLEAN wasPresent = 0; optional BOOLEAN wasNull = 1; @@ -3115,28 +3107,36 @@ server cluster TestCluster = 1295 { optional nullable INT8U originalValue = 3; } - response struct TestSpecificResponse { - INT8U returnValue = 0; + response struct SimpleStructResponse { + SimpleStruct arg1 = 0; + } + + response struct TestEmitTestEventResponse { + INT64U value = 0; + } + + response struct TestEmitTestFabricScopedEventResponse { + INT64U value = 0; } - command SimpleStructEchoRequest(SimpleStructEchoRequestRequest): SimpleStructResponse = 17; command Test(): DefaultSuccess = 0; + command TestNotHandled(): DefaultSuccess = 1; + command TestSpecific(): TestSpecificResponse = 2; command TestAddArguments(TestAddArgumentsRequest): TestAddArgumentsResponse = 4; - command TestEmitTestEventRequest(TestEmitTestEventRequestRequest): TestEmitTestEventResponse = 20; - command TestEmitTestFabricScopedEventRequest(TestEmitTestFabricScopedEventRequestRequest): TestEmitTestFabricScopedEventResponse = 21; - command TestEnumsRequest(TestEnumsRequestRequest): TestEnumsResponse = 14; - command TestListInt8UArgumentRequest(TestListInt8UArgumentRequestRequest): BooleanResponse = 10; - command TestListInt8UReverseRequest(TestListInt8UReverseRequestRequest): TestListInt8UReverseResponse = 13; - command TestListNestedStructListArgumentRequest(TestListNestedStructListArgumentRequestRequest): BooleanResponse = 12; - command TestListStructArgumentRequest(TestListStructArgumentRequestRequest): BooleanResponse = 9; + command TestStructArgumentRequest(TestStructArgumentRequestRequest): BooleanResponse = 7; command TestNestedStructArgumentRequest(TestNestedStructArgumentRequestRequest): BooleanResponse = 8; + command TestListStructArgumentRequest(TestListStructArgumentRequestRequest): BooleanResponse = 9; + command TestListInt8UArgumentRequest(TestListInt8UArgumentRequestRequest): BooleanResponse = 10; command TestNestedStructListArgumentRequest(TestNestedStructListArgumentRequestRequest): BooleanResponse = 11; - command TestNotHandled(): DefaultSuccess = 1; + command TestListNestedStructListArgumentRequest(TestListNestedStructListArgumentRequestRequest): BooleanResponse = 12; + command TestListInt8UReverseRequest(TestListInt8UReverseRequestRequest): TestListInt8UReverseResponse = 13; + command TestEnumsRequest(TestEnumsRequestRequest): TestEnumsResponse = 14; command TestNullableOptionalRequest(TestNullableOptionalRequestRequest): TestNullableOptionalResponse = 15; - command TestSimpleOptionalArgumentRequest(TestSimpleOptionalArgumentRequestRequest): DefaultSuccess = 19; - command TestSpecific(): TestSpecificResponse = 2; - command TestStructArgumentRequest(TestStructArgumentRequestRequest): BooleanResponse = 7; + command SimpleStructEchoRequest(SimpleStructEchoRequestRequest): SimpleStructResponse = 17; timed command TimedInvokeRequest(): DefaultSuccess = 18; + command TestSimpleOptionalArgumentRequest(TestSimpleOptionalArgumentRequestRequest): DefaultSuccess = 19; + command TestEmitTestEventRequest(TestEmitTestEventRequestRequest): TestEmitTestEventResponse = 20; + command TestEmitTestFabricScopedEventRequest(TestEmitTestFabricScopedEventRequestRequest): TestEmitTestFabricScopedEventResponse = 21; } server cluster Thermostat = 513 { @@ -3561,13 +3561,17 @@ server cluster WindowCovering = 258 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; + request struct GoToLiftValueRequest { + INT16U liftValue = 0; + } + request struct GoToLiftPercentageRequest { Percent liftPercentageValue = 0; Percent100ths liftPercent100thsValue = 1; } - request struct GoToLiftValueRequest { - INT16U liftValue = 0; + request struct GoToTiltValueRequest { + INT16U tiltValue = 0; } request struct GoToTiltPercentageRequest { @@ -3575,17 +3579,13 @@ server cluster WindowCovering = 258 { Percent100ths tiltPercent100thsValue = 1; } - request struct GoToTiltValueRequest { - INT16U tiltValue = 0; - } - + command UpOrOpen(): DefaultSuccess = 0; command DownOrClose(): DefaultSuccess = 1; - command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; + command StopMotion(): DefaultSuccess = 2; command GoToLiftValue(GoToLiftValueRequest): DefaultSuccess = 4; - command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; + command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; command GoToTiltValue(GoToTiltValueRequest): DefaultSuccess = 7; - command StopMotion(): DefaultSuccess = 2; - command UpOrOpen(): DefaultSuccess = 0; + command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; } diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index 8f534c5f6478df..680859503ceb7e 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -148,10 +148,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -160,8 +156,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -321,19 +321,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -461,13 +461,6 @@ server cluster LevelControl = 8 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -475,14 +468,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -493,24 +483,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -587,8 +587,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -598,8 +598,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -608,21 +608,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -630,19 +631,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OnOff = 6 { @@ -720,6 +720,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -728,37 +740,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -766,30 +766,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster SoftwareDiagnostics = 52 { diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.matter b/examples/door-lock-app/door-lock-common/door-lock-app.matter index 689514dcd63d1c..bb962dfbbe3248 100644 --- a/examples/door-lock-app/door-lock-common/door-lock-app.matter +++ b/examples/door-lock-app/door-lock-common/door-lock-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -589,53 +589,49 @@ server cluster DoorLock = 257 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct ClearCredentialRequest { - nullable DlCredential credential = 0; + request struct LockDoorRequest { + optional OCTET_STRING pinCode = 0; } - request struct ClearUserRequest { - INT16U userIndex = 0; + request struct UnlockDoorRequest { + optional OCTET_STRING pinCode = 0; } - request struct ClearWeekDayScheduleRequest { + request struct SetWeekDayScheduleRequest { INT8U weekDayIndex = 0; INT16U userIndex = 1; + DlDaysMaskMap daysMask = 2; + INT8U startHour = 3; + INT8U startMinute = 4; + INT8U endHour = 5; + INT8U endMinute = 6; } - request struct ClearYearDayScheduleRequest { - INT8U yearDayIndex = 0; + request struct GetWeekDayScheduleRequest { + INT8U weekDayIndex = 0; INT16U userIndex = 1; } - request struct GetCredentialStatusRequest { - DlCredential credential = 0; - } - - request struct GetUserRequest { - INT16U userIndex = 0; - } - - request struct GetWeekDayScheduleRequest { + request struct ClearWeekDayScheduleRequest { INT8U weekDayIndex = 0; INT16U userIndex = 1; } - request struct GetYearDayScheduleRequest { + request struct SetYearDayScheduleRequest { INT8U yearDayIndex = 0; INT16U userIndex = 1; + epoch_s localStartTime = 2; + epoch_s localEndTime = 3; } - request struct LockDoorRequest { - optional OCTET_STRING pinCode = 0; + request struct GetYearDayScheduleRequest { + INT8U yearDayIndex = 0; + INT16U userIndex = 1; } - request struct SetCredentialRequest { - DlDataOperationType operationType = 0; - DlCredential credential = 1; - LONG_OCTET_STRING credentialData = 2; - nullable INT16U userIndex = 3; - nullable DlUserStatus userStatus = 4; - nullable DlUserType userType = 5; + request struct ClearYearDayScheduleRequest { + INT8U yearDayIndex = 0; + INT16U userIndex = 1; } request struct SetUserRequest { @@ -648,44 +644,29 @@ server cluster DoorLock = 257 { nullable DlCredentialRule credentialRule = 6; } - request struct SetWeekDayScheduleRequest { - INT8U weekDayIndex = 0; - INT16U userIndex = 1; - DlDaysMaskMap daysMask = 2; - INT8U startHour = 3; - INT8U startMinute = 4; - INT8U endHour = 5; - INT8U endMinute = 6; + request struct GetUserRequest { + INT16U userIndex = 0; } - request struct SetYearDayScheduleRequest { - INT8U yearDayIndex = 0; - INT16U userIndex = 1; - epoch_s localStartTime = 2; - epoch_s localEndTime = 3; + request struct ClearUserRequest { + INT16U userIndex = 0; } - request struct UnlockDoorRequest { - optional OCTET_STRING pinCode = 0; + request struct SetCredentialRequest { + DlDataOperationType operationType = 0; + DlCredential credential = 1; + LONG_OCTET_STRING credentialData = 2; + nullable INT16U userIndex = 3; + nullable DlUserStatus userStatus = 4; + nullable DlUserType userType = 5; } - response struct GetCredentialStatusResponse { - boolean credentialExists = 0; - nullable INT16U userIndex = 1; - nullable INT16U nextCredentialIndex = 2; + request struct GetCredentialStatusRequest { + DlCredential credential = 0; } - response struct GetUserResponse { - INT16U userIndex = 0; - nullable CHAR_STRING userName = 1; - nullable INT32U userUniqueId = 2; - nullable DlUserStatus userStatus = 3; - nullable DlUserType userType = 4; - nullable DlCredentialRule credentialRule = 5; - nullable DlCredential credentials[] = 6; - nullable fabric_idx creatorFabricIndex = 7; - nullable fabric_idx lastModifiedFabricIndex = 8; - nullable INT16U nextUserIndex = 9; + request struct ClearCredentialRequest { + nullable DlCredential credential = 0; } response struct GetWeekDayScheduleResponse { @@ -707,26 +688,45 @@ server cluster DoorLock = 257 { optional epoch_s localEndTime = 4; } + response struct GetUserResponse { + INT16U userIndex = 0; + nullable CHAR_STRING userName = 1; + nullable INT32U userUniqueId = 2; + nullable DlUserStatus userStatus = 3; + nullable DlUserType userType = 4; + nullable DlCredentialRule credentialRule = 5; + nullable DlCredential credentials[] = 6; + nullable fabric_idx creatorFabricIndex = 7; + nullable fabric_idx lastModifiedFabricIndex = 8; + nullable INT16U nextUserIndex = 9; + } + response struct SetCredentialResponse { DlStatus status = 0; nullable INT16U userIndex = 1; nullable INT16U nextCredentialIndex = 2; } - timed command ClearCredential(ClearCredentialRequest): DefaultSuccess = 38; - timed command ClearUser(ClearUserRequest): DefaultSuccess = 29; + response struct GetCredentialStatusResponse { + boolean credentialExists = 0; + nullable INT16U userIndex = 1; + nullable INT16U nextCredentialIndex = 2; + } + + timed command LockDoor(LockDoorRequest): DefaultSuccess = 0; + timed command UnlockDoor(UnlockDoorRequest): DefaultSuccess = 1; + command SetWeekDaySchedule(SetWeekDayScheduleRequest): DefaultSuccess = 11; + command GetWeekDaySchedule(GetWeekDayScheduleRequest): GetWeekDayScheduleResponse = 12; command ClearWeekDaySchedule(ClearWeekDayScheduleRequest): DefaultSuccess = 13; + command SetYearDaySchedule(SetYearDayScheduleRequest): DefaultSuccess = 14; + command GetYearDaySchedule(GetYearDayScheduleRequest): GetYearDayScheduleResponse = 15; command ClearYearDaySchedule(ClearYearDayScheduleRequest): DefaultSuccess = 16; - command GetCredentialStatus(GetCredentialStatusRequest): GetCredentialStatusResponse = 36; + timed command SetUser(SetUserRequest): DefaultSuccess = 26; command GetUser(GetUserRequest): GetUserResponse = 27; - command GetWeekDaySchedule(GetWeekDayScheduleRequest): GetWeekDayScheduleResponse = 12; - command GetYearDaySchedule(GetYearDayScheduleRequest): GetYearDayScheduleResponse = 15; - timed command LockDoor(LockDoorRequest): DefaultSuccess = 0; + timed command ClearUser(ClearUserRequest): DefaultSuccess = 29; timed command SetCredential(SetCredentialRequest): SetCredentialResponse = 34; - timed command SetUser(SetUserRequest): DefaultSuccess = 26; - command SetWeekDaySchedule(SetWeekDayScheduleRequest): DefaultSuccess = 11; - command SetYearDaySchedule(SetYearDayScheduleRequest): DefaultSuccess = 14; - timed command UnlockDoor(UnlockDoorRequest): DefaultSuccess = 1; + command GetCredentialStatus(GetCredentialStatusRequest): GetCredentialStatusResponse = 36; + timed command ClearCredential(ClearCredentialRequest): DefaultSuccess = 38; } server cluster EthernetNetworkDiagnostics = 55 { @@ -805,19 +805,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -984,8 +984,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -995,8 +995,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -1005,21 +1005,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -1027,19 +1028,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OperationalCredentials = 62 { @@ -1079,6 +1079,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1087,37 +1099,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1125,30 +1125,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster PowerSource = 47 { diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter index 2b8a5b7a3ce829..b1696aaaf0eb10 100644 --- a/examples/light-switch-app/light-switch-common/light-switch-app.matter +++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -238,42 +238,62 @@ client cluster ColorControl = 768 { attribute int16u startUpColorTemperatureMireds = 16400; readonly global attribute int16u clusterRevision = 65533; - request struct ColorLoopSetRequest { - ColorLoopUpdateFlags updateFlags = 0; - ColorLoopAction action = 1; - ColorLoopDirection direction = 2; - INT16U time = 3; - INT16U startHue = 4; - BITMAP8 optionsMask = 5; - BITMAP8 optionsOverride = 6; + request struct MoveToHueRequest { + INT8U hue = 0; + HueDirection direction = 1; + INT16U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveHueRequest { + request struct MoveHueRequest { HueMoveMode moveMode = 0; - INT16U rate = 1; + INT8U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct EnhancedMoveToHueRequest { - INT16U enhancedHue = 0; - HueDirection direction = 1; - INT16U transitionTime = 2; + request struct StepHueRequest { + HueStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveToHueAndSaturationRequest { - INT16U enhancedHue = 0; + request struct MoveToSaturationRequest { + INT8U saturation = 0; + INT16U transitionTime = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct MoveSaturationRequest { + SaturationMoveMode moveMode = 0; + INT8U rate = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct StepSaturationRequest { + SaturationStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; + } + + request struct MoveToHueAndSaturationRequest { + INT8U hue = 0; INT8U saturation = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedStepHueRequest { - HueStepMode stepMode = 0; - INT16U stepSize = 1; + request struct MoveToColorRequest { + INT16U colorX = 0; + INT16U colorY = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; @@ -286,23 +306,9 @@ client cluster ColorControl = 768 { BITMAP8 optionsOverride = 3; } - request struct MoveHueRequest { - HueMoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; - } - - request struct MoveSaturationRequest { - SaturationMoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; - } - - request struct MoveToColorRequest { - INT16U colorX = 0; - INT16U colorY = 1; + request struct StepColorRequest { + INT16S stepX = 0; + INT16S stepY = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; @@ -315,69 +321,63 @@ client cluster ColorControl = 768 { BITMAP8 optionsOverride = 3; } - request struct MoveToHueRequest { - INT8U hue = 0; + request struct EnhancedMoveToHueRequest { + INT16U enhancedHue = 0; HueDirection direction = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToHueAndSaturationRequest { - INT8U hue = 0; - INT8U saturation = 1; - INT16U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; - } - - request struct MoveToSaturationRequest { - INT8U saturation = 0; - INT16U transitionTime = 1; + request struct EnhancedMoveHueRequest { + HueMoveMode moveMode = 0; + INT16U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct StepColorRequest { - INT16S stepX = 0; - INT16S stepY = 1; + request struct EnhancedStepHueRequest { + HueStepMode stepMode = 0; + INT16U stepSize = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct StepHueRequest { - HueStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; + request struct EnhancedMoveToHueAndSaturationRequest { + INT16U enhancedHue = 0; + INT8U saturation = 1; + INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct StepSaturationRequest { - SaturationStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; + request struct ColorLoopSetRequest { + ColorLoopUpdateFlags updateFlags = 0; + ColorLoopAction action = 1; + ColorLoopDirection direction = 2; + INT16U time = 3; + INT16U startHue = 4; + BITMAP8 optionsMask = 5; + BITMAP8 optionsOverride = 6; } - command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; - command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; - command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; - command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; - command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; - command MoveColor(MoveColorRequest): DefaultSuccess = 8; + command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; command MoveHue(MoveHueRequest): DefaultSuccess = 1; + command StepHue(StepHueRequest): DefaultSuccess = 2; + command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; command MoveSaturation(MoveSaturationRequest): DefaultSuccess = 4; - command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; - command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; - command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; + command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; command MoveToHueAndSaturation(MoveToHueAndSaturationRequest): DefaultSuccess = 6; - command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; + command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; + command MoveColor(MoveColorRequest): DefaultSuccess = 8; command StepColor(StepColorRequest): DefaultSuccess = 9; - command StepHue(StepHueRequest): DefaultSuccess = 2; - command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; + command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; + command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; + command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; + command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; + command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; + command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; } server cluster Descriptor = 29 { @@ -502,19 +502,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -644,23 +644,19 @@ server cluster GroupKeyManagement = 63 { readonly attribute int16u maxGroupKeysPerFabric = 3; readonly global attribute int16u clusterRevision = 65533; - request struct KeySetReadRequest { - INT16U groupKeySetID = 0; + request struct KeySetWriteRequest { + GroupKeySetStruct groupKeySet = 0; } - request struct KeySetReadAllIndicesRequest { - INT16U groupKeySetIDs[] = 0; + request struct KeySetReadRequest { + INT16U groupKeySetID = 0; } request struct KeySetRemoveRequest { INT16U groupKeySetID = 0; } - request struct KeySetWriteRequest { - GroupKeySetStruct groupKeySet = 0; - } - - response struct KeySetReadAllIndicesResponse { + request struct KeySetReadAllIndicesRequest { INT16U groupKeySetIDs[] = 0; } @@ -668,10 +664,14 @@ server cluster GroupKeyManagement = 63 { GroupKeySetStruct groupKeySet = 0; } + response struct KeySetReadAllIndicesResponse { + INT16U groupKeySetIDs[] = 0; + } + + command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; command KeySetRead(KeySetReadRequest): KeySetReadResponse = 1; - command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; command KeySetRemove(KeySetRemoveRequest): DefaultSuccess = 3; - command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; + command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; } server cluster Groups = 4 { @@ -683,9 +683,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -696,8 +695,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -705,6 +705,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -715,18 +721,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } client cluster Identify = 3 { @@ -876,8 +876,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -887,8 +887,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -897,21 +897,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -919,19 +920,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -957,16 +957,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -978,9 +968,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -994,9 +989,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OtaSoftwareUpdateRequestor = 42 { @@ -1149,6 +1149,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1157,37 +1169,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1195,30 +1195,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } client cluster Scenes = 5 { @@ -1248,33 +1248,33 @@ client cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -1283,23 +1283,24 @@ client cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -1308,22 +1309,21 @@ client cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } server cluster SoftwareDiagnostics = 52 { diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index 30e7bd4a280f51..948f84ab2f3854 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -225,42 +225,62 @@ server cluster ColorControl = 768 { attribute int16u startUpColorTemperatureMireds = 16400; readonly global attribute int16u clusterRevision = 65533; - request struct ColorLoopSetRequest { - ColorLoopUpdateFlags updateFlags = 0; - ColorLoopAction action = 1; - ColorLoopDirection direction = 2; - INT16U time = 3; - INT16U startHue = 4; - BITMAP8 optionsMask = 5; - BITMAP8 optionsOverride = 6; + request struct MoveToHueRequest { + INT8U hue = 0; + HueDirection direction = 1; + INT16U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveHueRequest { + request struct MoveHueRequest { HueMoveMode moveMode = 0; - INT16U rate = 1; + INT8U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct EnhancedMoveToHueRequest { - INT16U enhancedHue = 0; - HueDirection direction = 1; - INT16U transitionTime = 2; + request struct StepHueRequest { + HueStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveToHueAndSaturationRequest { - INT16U enhancedHue = 0; + request struct MoveToSaturationRequest { + INT8U saturation = 0; + INT16U transitionTime = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct MoveSaturationRequest { + SaturationMoveMode moveMode = 0; + INT8U rate = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct StepSaturationRequest { + SaturationStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; + } + + request struct MoveToHueAndSaturationRequest { + INT8U hue = 0; INT8U saturation = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedStepHueRequest { - HueStepMode stepMode = 0; - INT16U stepSize = 1; + request struct MoveToColorRequest { + INT16U colorX = 0; + INT16U colorY = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; @@ -273,73 +293,74 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 3; } - request struct MoveColorTemperatureRequest { - HueMoveMode moveMode = 0; - INT16U rate = 1; - INT16U colorTemperatureMinimum = 2; - INT16U colorTemperatureMaximum = 3; - BITMAP8 optionsMask = 4; - BITMAP8 optionsOverride = 5; - } - - request struct MoveHueRequest { - HueMoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; + request struct StepColorRequest { + INT16S stepX = 0; + INT16S stepY = 1; + INT16U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; } - request struct MoveSaturationRequest { - SaturationMoveMode moveMode = 0; - INT8U rate = 1; + request struct MoveToColorTemperatureRequest { + INT16U colorTemperature = 0; + INT16U transitionTime = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct MoveToColorRequest { - INT16U colorX = 0; - INT16U colorY = 1; + request struct EnhancedMoveToHueRequest { + INT16U enhancedHue = 0; + HueDirection direction = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToColorTemperatureRequest { - INT16U colorTemperature = 0; - INT16U transitionTime = 1; + request struct EnhancedMoveHueRequest { + HueMoveMode moveMode = 0; + INT16U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct MoveToHueRequest { - INT8U hue = 0; - HueDirection direction = 1; + request struct EnhancedStepHueRequest { + HueStepMode stepMode = 0; + INT16U stepSize = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToHueAndSaturationRequest { - INT8U hue = 0; + request struct EnhancedMoveToHueAndSaturationRequest { + INT16U enhancedHue = 0; INT8U saturation = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToSaturationRequest { - INT8U saturation = 0; - INT16U transitionTime = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; + request struct ColorLoopSetRequest { + ColorLoopUpdateFlags updateFlags = 0; + ColorLoopAction action = 1; + ColorLoopDirection direction = 2; + INT16U time = 3; + INT16U startHue = 4; + BITMAP8 optionsMask = 5; + BITMAP8 optionsOverride = 6; } - request struct StepColorRequest { - INT16S stepX = 0; - INT16S stepY = 1; - INT16U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; + request struct StopMoveStepRequest { + BITMAP8 optionsMask = 0; + BITMAP8 optionsOverride = 1; + } + + request struct MoveColorTemperatureRequest { + HueMoveMode moveMode = 0; + INT16U rate = 1; + INT16U colorTemperatureMinimum = 2; + INT16U colorTemperatureMaximum = 3; + BITMAP8 optionsMask = 4; + BITMAP8 optionsOverride = 5; } request struct StepColorTemperatureRequest { @@ -352,46 +373,25 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 6; } - request struct StepHueRequest { - HueStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; - } - - request struct StepSaturationRequest { - SaturationStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; - } - - request struct StopMoveStepRequest { - BITMAP8 optionsMask = 0; - BITMAP8 optionsOverride = 1; - } - - command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; - command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; - command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; - command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; - command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; - command MoveColor(MoveColorRequest): DefaultSuccess = 8; - command MoveColorTemperature(MoveColorTemperatureRequest): DefaultSuccess = 75; + command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; command MoveHue(MoveHueRequest): DefaultSuccess = 1; + command StepHue(StepHueRequest): DefaultSuccess = 2; + command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; command MoveSaturation(MoveSaturationRequest): DefaultSuccess = 4; - command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; - command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; - command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; + command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; command MoveToHueAndSaturation(MoveToHueAndSaturationRequest): DefaultSuccess = 6; - command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; + command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; + command MoveColor(MoveColorRequest): DefaultSuccess = 8; command StepColor(StepColorRequest): DefaultSuccess = 9; - command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76; - command StepHue(StepHueRequest): DefaultSuccess = 2; - command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; + command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; + command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; + command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; + command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; + command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; + command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; command StopMoveStep(StopMoveStepRequest): DefaultSuccess = 71; + command MoveColorTemperature(MoveColorTemperatureRequest): DefaultSuccess = 75; + command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76; } server cluster Descriptor = 29 { @@ -515,19 +515,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -657,23 +657,19 @@ server cluster GroupKeyManagement = 63 { readonly attribute int16u maxGroupKeysPerFabric = 3; readonly global attribute int16u clusterRevision = 65533; - request struct KeySetReadRequest { - INT16U groupKeySetID = 0; + request struct KeySetWriteRequest { + GroupKeySetStruct groupKeySet = 0; } - request struct KeySetReadAllIndicesRequest { - INT16U groupKeySetIDs[] = 0; + request struct KeySetReadRequest { + INT16U groupKeySetID = 0; } request struct KeySetRemoveRequest { INT16U groupKeySetID = 0; } - request struct KeySetWriteRequest { - GroupKeySetStruct groupKeySet = 0; - } - - response struct KeySetReadAllIndicesResponse { + request struct KeySetReadAllIndicesRequest { INT16U groupKeySetIDs[] = 0; } @@ -681,10 +677,14 @@ server cluster GroupKeyManagement = 63 { GroupKeySetStruct groupKeySet = 0; } + response struct KeySetReadAllIndicesResponse { + INT16U groupKeySetIDs[] = 0; + } + + command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; command KeySetRead(KeySetReadRequest): KeySetReadResponse = 1; - command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; command KeySetRemove(KeySetRemoveRequest): DefaultSuccess = 3; - command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; + command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; } server cluster Groups = 4 { @@ -696,9 +696,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -709,8 +708,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -718,6 +718,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -728,18 +734,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } server cluster Identify = 3 { @@ -821,13 +821,6 @@ server cluster LevelControl = 8 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -835,14 +828,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -853,24 +843,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -947,8 +947,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -958,8 +958,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -968,21 +968,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -990,19 +991,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -1028,16 +1028,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -1049,9 +1039,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -1065,9 +1060,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OtaSoftwareUpdateRequestor = 42 { @@ -1196,11 +1196,11 @@ server cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } server cluster OperationalCredentials = 62 { @@ -1240,6 +1240,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1248,37 +1260,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1286,30 +1286,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster SoftwareDiagnostics = 52 { diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index 308d393702ed8c..04368bc3032d03 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -261,19 +261,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -440,8 +440,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -451,8 +451,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -461,21 +461,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -483,19 +484,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -521,16 +521,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -542,9 +532,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -558,9 +553,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OtaSoftwareUpdateRequestor = 42 { @@ -712,6 +712,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -720,37 +732,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -758,30 +758,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster PowerSource = 47 { diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter index 47f00086b6a32e..17bf6728a5b6be 100644 --- a/examples/log-source-app/log-source-common/log-source-app.matter +++ b/examples/log-source-app/log-source-common/log-source-app.matter @@ -163,19 +163,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster NetworkCommissioning = 49 { @@ -231,8 +231,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -242,8 +242,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -252,21 +252,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -274,19 +275,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OperationalCredentials = 62 { @@ -318,36 +318,36 @@ server cluster OperationalCredentials = 62 { readonly attribute OCTET_STRING trustedRootCertificates[] = 4; readonly global attribute int16u clusterRevision = 65533; - request struct AddNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; - OCTET_STRING IPKValue = 2; - NODE_ID caseAdminNode = 3; - INT16U adminVendorId = 4; - } - - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - request struct AttestationRequestRequest { OCTET_STRING attestationNonce = 0; } + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + request struct CSRRequestRequest { OCTET_STRING CSRNonce = 0; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct AddNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; + OCTET_STRING IPKValue = 2; + NODE_ID caseAdminNode = 3; + INT16U adminVendorId = 4; + } + + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } response struct AttestationResponse { @@ -355,28 +355,28 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; - command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; + command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; } diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index ee4f44c3c02043..804504050e73f6 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -216,19 +216,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster LocalizationConfiguration = 43 { @@ -304,8 +304,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -315,8 +315,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -325,21 +325,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -347,19 +348,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OtaSoftwareUpdateProvider = 41 { @@ -385,16 +385,6 @@ server cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -406,9 +396,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -422,9 +417,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OperationalCredentials = 62 { @@ -464,36 +464,36 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; - request struct AddNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; - OCTET_STRING IPKValue = 2; - NODE_ID caseAdminNode = 3; - INT16U adminVendorId = 4; - } - - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - request struct AttestationRequestRequest { OCTET_STRING attestationNonce = 0; } + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + request struct CSRRequestRequest { OCTET_STRING CSRNonce = 0; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct AddNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; + OCTET_STRING IPKValue = 2; + NODE_ID caseAdminNode = 3; + INT16U adminVendorId = 4; + } + + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } response struct AttestationResponse { @@ -501,28 +501,28 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; - command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; + command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; } server cluster TimeFormatLocalization = 44 { diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index 74d69916fafaca..03275f68698589 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -189,19 +189,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster LocalizationConfiguration = 43 { @@ -277,8 +277,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -288,8 +288,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -298,21 +298,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -320,19 +321,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -358,16 +358,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -379,9 +369,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -395,9 +390,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OtaSoftwareUpdateRequestor = 42 { @@ -506,6 +506,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -514,37 +526,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -552,30 +552,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster TimeFormatLocalization = 44 { diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 63037ef5627973..ac66e224a4e2dd 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -161,13 +161,6 @@ server cluster ColorControl = 768 { attribute int16u startUpColorTemperatureMireds = 16400; readonly global attribute int16u clusterRevision = 65533; - request struct MoveColorRequest { - INT16S rateX = 0; - INT16S rateY = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; - } - request struct MoveToColorRequest { INT16U colorX = 0; INT16U colorY = 1; @@ -176,6 +169,13 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 4; } + request struct MoveColorRequest { + INT16S rateX = 0; + INT16S rateY = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + request struct StepColorRequest { INT16S stepX = 0; INT16S stepY = 1; @@ -184,8 +184,8 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 4; } - command MoveColor(MoveColorRequest): DefaultSuccess = 8; command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; + command MoveColor(MoveColorRequest): DefaultSuccess = 8; command StepColor(StepColorRequest): DefaultSuccess = 9; } @@ -449,8 +449,8 @@ client cluster GeneralCommissioning = 48 { } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralCommissioning = 48 { @@ -500,19 +500,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -615,9 +615,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -628,8 +627,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -637,6 +637,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -647,18 +653,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } server cluster Identify = 3 { @@ -956,13 +956,6 @@ server cluster LevelControl = 8 { readonly attribute int8u currentLevel = 0; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -970,14 +963,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -988,24 +978,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -1134,8 +1134,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -1145,8 +1145,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -1155,21 +1155,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -1177,19 +1178,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OnOff = 6 { @@ -1242,11 +1242,11 @@ client cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } server cluster OnOff = 6 { @@ -1299,11 +1299,11 @@ server cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } client cluster OperationalCredentials = 62 { @@ -1336,6 +1336,18 @@ client cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1344,48 +1356,36 @@ client cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster OperationalCredentials = 62 { @@ -1418,6 +1418,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1426,37 +1438,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1464,30 +1464,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster PumpConfigurationAndControl = 512 { @@ -1646,33 +1646,33 @@ server cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -1681,23 +1681,24 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -1706,22 +1707,21 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } client cluster Switch = 59 { @@ -2051,13 +2051,17 @@ server cluster WindowCovering = 258 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; + request struct GoToLiftValueRequest { + INT16U liftValue = 0; + } + request struct GoToLiftPercentageRequest { Percent liftPercentageValue = 0; Percent100ths liftPercent100thsValue = 1; } - request struct GoToLiftValueRequest { - INT16U liftValue = 0; + request struct GoToTiltValueRequest { + INT16U tiltValue = 0; } request struct GoToTiltPercentageRequest { @@ -2065,17 +2069,13 @@ server cluster WindowCovering = 258 { Percent100ths tiltPercent100thsValue = 1; } - request struct GoToTiltValueRequest { - INT16U tiltValue = 0; - } - + command UpOrOpen(): DefaultSuccess = 0; command DownOrClose(): DefaultSuccess = 1; - command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; + command StopMotion(): DefaultSuccess = 2; command GoToLiftValue(GoToLiftValueRequest): DefaultSuccess = 4; - command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; + command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; command GoToTiltValue(GoToTiltValueRequest): DefaultSuccess = 7; - command StopMotion(): DefaultSuccess = 2; - command UpOrOpen(): DefaultSuccess = 0; + command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; } diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 63037ef5627973..ac66e224a4e2dd 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -161,13 +161,6 @@ server cluster ColorControl = 768 { attribute int16u startUpColorTemperatureMireds = 16400; readonly global attribute int16u clusterRevision = 65533; - request struct MoveColorRequest { - INT16S rateX = 0; - INT16S rateY = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; - } - request struct MoveToColorRequest { INT16U colorX = 0; INT16U colorY = 1; @@ -176,6 +169,13 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 4; } + request struct MoveColorRequest { + INT16S rateX = 0; + INT16S rateY = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + request struct StepColorRequest { INT16S stepX = 0; INT16S stepY = 1; @@ -184,8 +184,8 @@ server cluster ColorControl = 768 { BITMAP8 optionsOverride = 4; } - command MoveColor(MoveColorRequest): DefaultSuccess = 8; command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; + command MoveColor(MoveColorRequest): DefaultSuccess = 8; command StepColor(StepColorRequest): DefaultSuccess = 9; } @@ -449,8 +449,8 @@ client cluster GeneralCommissioning = 48 { } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralCommissioning = 48 { @@ -500,19 +500,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -615,9 +615,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -628,8 +627,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -637,6 +637,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -647,18 +653,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } server cluster Identify = 3 { @@ -956,13 +956,6 @@ server cluster LevelControl = 8 { readonly attribute int8u currentLevel = 0; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -970,14 +963,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -988,24 +978,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -1134,8 +1134,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -1145,8 +1145,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -1155,21 +1155,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -1177,19 +1178,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OnOff = 6 { @@ -1242,11 +1242,11 @@ client cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } server cluster OnOff = 6 { @@ -1299,11 +1299,11 @@ server cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } client cluster OperationalCredentials = 62 { @@ -1336,6 +1336,18 @@ client cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1344,48 +1356,36 @@ client cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster OperationalCredentials = 62 { @@ -1418,6 +1418,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1426,37 +1438,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1464,30 +1464,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster PumpConfigurationAndControl = 512 { @@ -1646,33 +1646,33 @@ server cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -1681,23 +1681,24 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -1706,22 +1707,21 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } client cluster Switch = 59 { @@ -2051,13 +2051,17 @@ server cluster WindowCovering = 258 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; + request struct GoToLiftValueRequest { + INT16U liftValue = 0; + } + request struct GoToLiftPercentageRequest { Percent liftPercentageValue = 0; Percent100ths liftPercent100thsValue = 1; } - request struct GoToLiftValueRequest { - INT16U liftValue = 0; + request struct GoToTiltValueRequest { + INT16U tiltValue = 0; } request struct GoToTiltPercentageRequest { @@ -2065,17 +2069,13 @@ server cluster WindowCovering = 258 { Percent100ths tiltPercent100thsValue = 1; } - request struct GoToTiltValueRequest { - INT16U tiltValue = 0; - } - + command UpOrOpen(): DefaultSuccess = 0; command DownOrClose(): DefaultSuccess = 1; - command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; + command StopMotion(): DefaultSuccess = 2; command GoToLiftValue(GoToLiftValueRequest): DefaultSuccess = 4; - command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; + command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; command GoToTiltValue(GoToTiltValueRequest): DefaultSuccess = 7; - command StopMotion(): DefaultSuccess = 2; - command UpOrOpen(): DefaultSuccess = 0; + command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; } diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index ad2a8b6132d36b..481b4f38b41c83 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -256,19 +256,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -398,23 +398,19 @@ server cluster GroupKeyManagement = 63 { readonly attribute int16u maxGroupKeysPerFabric = 3; readonly global attribute int16u clusterRevision = 65533; - request struct KeySetReadRequest { - INT16U groupKeySetID = 0; + request struct KeySetWriteRequest { + GroupKeySetStruct groupKeySet = 0; } - request struct KeySetReadAllIndicesRequest { - INT16U groupKeySetIDs[] = 0; + request struct KeySetReadRequest { + INT16U groupKeySetID = 0; } request struct KeySetRemoveRequest { INT16U groupKeySetID = 0; } - request struct KeySetWriteRequest { - GroupKeySetStruct groupKeySet = 0; - } - - response struct KeySetReadAllIndicesResponse { + request struct KeySetReadAllIndicesRequest { INT16U groupKeySetIDs[] = 0; } @@ -422,10 +418,14 @@ server cluster GroupKeyManagement = 63 { GroupKeySetStruct groupKeySet = 0; } + response struct KeySetReadAllIndicesResponse { + INT16U groupKeySetIDs[] = 0; + } + + command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; command KeySetRead(KeySetReadRequest): KeySetReadResponse = 1; - command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; command KeySetRemove(KeySetRemoveRequest): DefaultSuccess = 3; - command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; + command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; } server cluster Groups = 4 { @@ -437,9 +437,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -450,8 +449,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -459,6 +459,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -469,18 +475,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } server cluster Identify = 3 { @@ -561,13 +561,6 @@ server cluster LevelControl = 8 { attribute nullable int8u startUpCurrentLevel = 16384; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -575,14 +568,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -593,24 +583,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -687,8 +687,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -698,8 +698,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -708,21 +708,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -730,19 +731,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -767,16 +767,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { } - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -788,9 +778,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -804,9 +799,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OtaSoftwareUpdateRequestor = 42 { @@ -923,11 +923,11 @@ server cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } server cluster OperationalCredentials = 62 { @@ -967,6 +967,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -975,37 +987,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1013,30 +1013,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } client cluster PressureMeasurement = 1027 { @@ -1207,33 +1207,33 @@ server cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -1242,23 +1242,24 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -1267,22 +1268,21 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } server cluster SoftwareDiagnostics = 52 { diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index 3142742f267baa..2970870ceef26e 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -250,19 +250,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -395,23 +395,19 @@ server cluster GroupKeyManagement = 63 { readonly attribute int16u maxGroupKeysPerFabric = 3; readonly global attribute int16u clusterRevision = 65533; - request struct KeySetReadRequest { - INT16U groupKeySetID = 0; + request struct KeySetWriteRequest { + GroupKeySetStruct groupKeySet = 0; } - request struct KeySetReadAllIndicesRequest { - INT16U groupKeySetIDs[] = 0; + request struct KeySetReadRequest { + INT16U groupKeySetID = 0; } request struct KeySetRemoveRequest { INT16U groupKeySetID = 0; } - request struct KeySetWriteRequest { - GroupKeySetStruct groupKeySet = 0; - } - - response struct KeySetReadAllIndicesResponse { + request struct KeySetReadAllIndicesRequest { INT16U groupKeySetIDs[] = 0; } @@ -419,10 +415,14 @@ server cluster GroupKeyManagement = 63 { GroupKeySetStruct groupKeySet = 0; } + response struct KeySetReadAllIndicesResponse { + INT16U groupKeySetIDs[] = 0; + } + + command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; command KeySetRead(KeySetReadRequest): KeySetReadResponse = 1; - command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; command KeySetRemove(KeySetRemoveRequest): DefaultSuccess = 3; - command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; + command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; } server cluster Groups = 4 { @@ -434,9 +434,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -447,8 +446,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -456,6 +456,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -466,18 +472,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } server cluster Identify = 3 { @@ -598,8 +598,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -609,8 +609,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -619,21 +619,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -641,19 +642,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -678,16 +678,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { } - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -699,9 +689,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -715,9 +710,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OtaSoftwareUpdateRequestor = 42 { @@ -857,6 +857,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -865,37 +877,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -903,30 +903,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } client cluster PressureMeasurement = 1027 { diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter index 6b01d8725d68dd..41787faba07523 100644 --- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter +++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -259,19 +259,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -438,18 +438,23 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; + INT64U breadcrumb = 1; + } + request struct AddOrUpdateWiFiNetworkRequest { OCTET_STRING ssid = 0; OCTET_STRING credentials = 1; INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { + request struct RemoveNetworkRequest { OCTET_STRING networkID = 0; INT64U breadcrumb = 1; } - request struct RemoveNetworkRequest { + request struct ConnectNetworkRequest { OCTET_STRING networkID = 0; INT64U breadcrumb = 1; } @@ -460,15 +465,11 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -476,18 +477,17 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OperationalCredentials = 62 { @@ -527,6 +527,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -535,37 +547,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -573,30 +573,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster SoftwareDiagnostics = 52 { diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 732fe2dd2c02de..64c92f2445f131 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -272,19 +272,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -411,9 +411,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -424,8 +423,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -433,6 +433,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -443,18 +449,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } client cluster Identify = 3 { @@ -608,8 +608,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -619,8 +619,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -629,21 +629,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -651,19 +652,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OtaSoftwareUpdateProvider = 41 { @@ -689,16 +689,6 @@ server cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -710,9 +700,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -726,9 +721,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OperationalCredentials = 62 { @@ -768,6 +768,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -776,37 +788,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -814,30 +814,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster Scenes = 5 { @@ -866,33 +866,33 @@ server cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -901,23 +901,24 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -926,22 +927,21 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } server cluster SoftwareDiagnostics = 52 { @@ -1042,9 +1042,9 @@ server cluster Thermostat = 513 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct GetWeeklyScheduleRequest { - DayOfWeek daysToReturn = 0; - ModeForSequence modeToReturn = 1; + request struct SetpointRaiseLowerRequest { + SetpointAdjustMode mode = 0; + INT8S amount = 1; } request struct SetWeeklyScheduleRequest { @@ -1054,9 +1054,16 @@ server cluster Thermostat = 513 { INT8U payload[] = 3; } - request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; - INT8S amount = 1; + request struct GetWeeklyScheduleRequest { + DayOfWeek daysToReturn = 0; + ModeForSequence modeToReturn = 1; + } + + response struct GetWeeklyScheduleResponse { + ENUM8 numberOfTransitionsForSequence = 0; + DayOfWeek dayOfWeekForSequence = 1; + ModeForSequence modeForSequence = 2; + INT8U payload[] = 3; } response struct GetRelayStatusLogResponse { @@ -1068,18 +1075,11 @@ server cluster Thermostat = 513 { INT16U unreadEntries = 5; } - response struct GetWeeklyScheduleResponse { - ENUM8 numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - INT8U payload[] = 3; - } - + command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; + command SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; + command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; command ClearWeeklySchedule(): DefaultSuccess = 3; command GetRelayStatusLog(): GetRelayStatusLogResponse = 4; - command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - command SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; - command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; } server cluster ThreadNetworkDiagnostics = 53 { diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index b5d2fd098ef8b7..c297c0bc0cb9b1 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -107,10 +107,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -119,8 +115,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -173,10 +173,6 @@ server cluster ApplicationLauncher = 1292 { attribute nullable ApplicationEP currentApp = 1; readonly global attribute int16u clusterRevision = 65533; - request struct HideAppRequest { - Application application = 0; - } - request struct LaunchAppRequest { Application application = 0; optional OCTET_STRING data = 1; @@ -186,14 +182,18 @@ server cluster ApplicationLauncher = 1292 { Application application = 0; } + request struct HideAppRequest { + Application application = 0; + } + response struct LauncherResponse { StatusEnum status = 0; OCTET_STRING data = 1; } - command HideApp(HideAppRequest): LauncherResponse = 2; command LaunchApp(LaunchAppRequest): LauncherResponse = 0; command StopApp(StopAppRequest): LauncherResponse = 1; + command HideApp(HideAppRequest): LauncherResponse = 2; } server cluster AudioOutput = 1291 { @@ -220,17 +220,17 @@ server cluster AudioOutput = 1291 { readonly attribute int8u currentOutput = 1; readonly global attribute int16u clusterRevision = 65533; - request struct RenameOutputRequest { + request struct SelectOutputRequest { INT8U index = 0; - CHAR_STRING name = 1; } - request struct SelectOutputRequest { + request struct RenameOutputRequest { INT8U index = 0; + CHAR_STRING name = 1; } - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; + command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } server cluster Basic = 40 { @@ -573,19 +573,19 @@ client cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralCommissioning = 48 { @@ -632,19 +632,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -907,13 +907,6 @@ server cluster LevelControl = 8 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -921,14 +914,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -939,24 +929,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -1003,19 +1003,19 @@ server cluster MediaInput = 1287 { readonly attribute int8u currentInput = 1; readonly global attribute int16u clusterRevision = 65533; - request struct RenameInputRequest { + request struct SelectInputRequest { INT8U index = 0; - CHAR_STRING name = 1; } - request struct SelectInputRequest { + request struct RenameInputRequest { INT8U index = 0; + CHAR_STRING name = 1; } - command HideInputStatus(): DefaultSuccess = 2; - command RenameInput(RenameInputRequest): DefaultSuccess = 3; command SelectInput(SelectInputRequest): DefaultSuccess = 0; command ShowInputStatus(): DefaultSuccess = 1; + command HideInputStatus(): DefaultSuccess = 2; + command RenameInput(RenameInputRequest): DefaultSuccess = 3; } server cluster MediaPlayback = 1286 { @@ -1049,16 +1049,16 @@ server cluster MediaPlayback = 1286 { readonly attribute nullable int64u seekRangeStart = 6; readonly global attribute int16u clusterRevision = 65533; - request struct SeekRequest { - INT64U position = 0; + request struct SkipForwardRequest { + INT64U deltaPositionMilliseconds = 0; } request struct SkipBackwardRequest { INT64U deltaPositionMilliseconds = 0; } - request struct SkipForwardRequest { - INT64U deltaPositionMilliseconds = 0; + request struct SeekRequest { + INT64U position = 0; } response struct PlaybackResponse { @@ -1066,17 +1066,17 @@ server cluster MediaPlayback = 1286 { optional CHAR_STRING data = 1; } - command FastForward(): PlaybackResponse = 7; - command Next(): PlaybackResponse = 5; - command Pause(): PlaybackResponse = 1; command Play(): PlaybackResponse = 0; + command Pause(): PlaybackResponse = 1; + command StopPlayback(): PlaybackResponse = 2; + command StartOver(): PlaybackResponse = 3; command Previous(): PlaybackResponse = 4; + command Next(): PlaybackResponse = 5; command Rewind(): PlaybackResponse = 6; - command Seek(SeekRequest): PlaybackResponse = 11; - command SkipBackward(SkipBackwardRequest): PlaybackResponse = 9; + command FastForward(): PlaybackResponse = 7; command SkipForward(SkipForwardRequest): PlaybackResponse = 8; - command StartOver(): PlaybackResponse = 3; - command StopPlayback(): PlaybackResponse = 2; + command SkipBackward(SkipBackwardRequest): PlaybackResponse = 9; + command Seek(SeekRequest): PlaybackResponse = 11; } client cluster NetworkCommissioning = 49 { @@ -1146,8 +1146,8 @@ client cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -1157,8 +1157,8 @@ client cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -1167,21 +1167,22 @@ client cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -1189,19 +1190,18 @@ client cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster NetworkCommissioning = 49 { @@ -1271,8 +1271,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -1282,8 +1282,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -1292,21 +1292,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -1314,19 +1315,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OtaSoftwareUpdateProvider = 41 { @@ -1352,16 +1352,6 @@ server cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -1373,9 +1363,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -1389,9 +1384,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } server cluster OnOff = 6 { @@ -1469,36 +1469,36 @@ client cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; - request struct AddNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; - OCTET_STRING IPKValue = 2; - NODE_ID caseAdminNode = 3; - INT16U adminVendorId = 4; - } - - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - request struct AttestationRequestRequest { OCTET_STRING attestationNonce = 0; } + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + request struct CSRRequestRequest { OCTET_STRING CSRNonce = 0; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct AddNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; + OCTET_STRING IPKValue = 2; + NODE_ID caseAdminNode = 3; + INT16U adminVendorId = 4; + } + + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } response struct AttestationResponse { @@ -1506,28 +1506,28 @@ client cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; - command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; + command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; } server cluster OperationalCredentials = 62 { @@ -1567,6 +1567,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1575,37 +1587,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1613,30 +1613,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster RelativeHumidityMeasurement = 1029 { diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 563aaf8f08732c..ae6b188c18f73a 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -103,10 +103,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -115,8 +111,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -156,10 +156,6 @@ client cluster ApplicationLauncher = 1292 { readonly attribute INT16U catalogList[] = 0; readonly global attribute int16u clusterRevision = 65533; - request struct HideAppRequest { - Application application = 0; - } - request struct LaunchAppRequest { Application application = 0; optional OCTET_STRING data = 1; @@ -169,9 +165,13 @@ client cluster ApplicationLauncher = 1292 { Application application = 0; } - command HideApp(HideAppRequest): LauncherResponse = 2; + request struct HideAppRequest { + Application application = 0; + } + command LaunchApp(LaunchAppRequest): LauncherResponse = 0; command StopApp(StopAppRequest): LauncherResponse = 1; + command HideApp(HideAppRequest): LauncherResponse = 2; } client cluster AudioOutput = 1291 { @@ -197,17 +197,17 @@ client cluster AudioOutput = 1291 { readonly attribute OutputInfo outputList[] = 0; readonly global attribute int16u clusterRevision = 65533; - request struct RenameOutputRequest { + request struct SelectOutputRequest { INT8U index = 0; - CHAR_STRING name = 1; } - request struct SelectOutputRequest { + request struct RenameOutputRequest { INT8U index = 0; + CHAR_STRING name = 1; } - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; + command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } server cluster BarrierControl = 259 { @@ -562,19 +562,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -701,9 +701,8 @@ server cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -714,8 +713,9 @@ server cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -723,6 +723,12 @@ server cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -733,18 +739,12 @@ server cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } server cluster IasZone = 1280 { @@ -799,11 +799,6 @@ server cluster IasZone = 1280 { INT8U zoneId = 1; } - response struct ZoneEnrollRequest { - IasZoneType zoneType = 0; - INT16U manufacturerCode = 1; - } - response struct ZoneStatusChangeNotification { IasZoneStatus zoneStatus = 0; BITMAP8 extendedStatus = 1; @@ -811,6 +806,11 @@ server cluster IasZone = 1280 { INT16U delay = 3; } + response struct ZoneEnrollRequest { + IasZoneType zoneType = 0; + INT16U manufacturerCode = 1; + } + command ZoneEnrollResponse(ZoneEnrollResponseRequest): DefaultSuccess = 0; } @@ -996,13 +996,6 @@ client cluster LevelControl = 8 { attribute nullable int8u startUpCurrentLevel = 16384; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -1010,14 +1003,11 @@ client cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -1028,24 +1018,34 @@ client cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -1082,13 +1082,6 @@ server cluster LevelControl = 8 { attribute nullable int8u startUpCurrentLevel = 16384; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -1096,14 +1089,11 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -1114,24 +1104,34 @@ server cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -1171,19 +1171,19 @@ client cluster MediaInput = 1287 { readonly attribute InputInfo inputList[] = 0; readonly global attribute int16u clusterRevision = 65533; - request struct RenameInputRequest { + request struct SelectInputRequest { INT8U index = 0; - CHAR_STRING name = 1; } - request struct SelectInputRequest { + request struct RenameInputRequest { INT8U index = 0; + CHAR_STRING name = 1; } - command HideInputStatus(): DefaultSuccess = 2; - command RenameInput(RenameInputRequest): DefaultSuccess = 3; command SelectInput(SelectInputRequest): DefaultSuccess = 0; command ShowInputStatus(): DefaultSuccess = 1; + command HideInputStatus(): DefaultSuccess = 2; + command RenameInput(RenameInputRequest): DefaultSuccess = 3; } client cluster MediaPlayback = 1286 { @@ -1205,29 +1205,29 @@ client cluster MediaPlayback = 1286 { readonly global attribute int16u clusterRevision = 65533; - request struct SeekRequest { - INT64U position = 0; + request struct SkipForwardRequest { + INT64U deltaPositionMilliseconds = 0; } request struct SkipBackwardRequest { INT64U deltaPositionMilliseconds = 0; } - request struct SkipForwardRequest { - INT64U deltaPositionMilliseconds = 0; + request struct SeekRequest { + INT64U position = 0; } - command FastForward(): PlaybackResponse = 7; - command Next(): PlaybackResponse = 5; - command Pause(): PlaybackResponse = 1; command Play(): PlaybackResponse = 0; + command Pause(): PlaybackResponse = 1; + command StopPlayback(): PlaybackResponse = 2; + command StartOver(): PlaybackResponse = 3; command Previous(): PlaybackResponse = 4; + command Next(): PlaybackResponse = 5; command Rewind(): PlaybackResponse = 6; - command Seek(SeekRequest): PlaybackResponse = 11; - command SkipBackward(SkipBackwardRequest): PlaybackResponse = 9; + command FastForward(): PlaybackResponse = 7; command SkipForward(SkipForwardRequest): PlaybackResponse = 8; - command StartOver(): PlaybackResponse = 3; - command StopPlayback(): PlaybackResponse = 2; + command SkipBackward(SkipBackwardRequest): PlaybackResponse = 9; + command Seek(SeekRequest): PlaybackResponse = 11; } server cluster NetworkCommissioning = 49 { @@ -1297,8 +1297,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -1308,8 +1308,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -1318,21 +1318,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -1340,19 +1341,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OtaSoftwareUpdateProvider = 41 { @@ -1378,16 +1378,6 @@ server cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -1399,9 +1389,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -1415,9 +1410,14 @@ server cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } client cluster OnOff = 6 { @@ -1543,6 +1543,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -1551,37 +1563,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -1589,30 +1589,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster Scenes = 5 { @@ -1641,33 +1641,33 @@ server cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -1676,23 +1676,24 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -1701,22 +1702,21 @@ server cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } server cluster SoftwareDiagnostics = 52 { diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index 5456c1c3a93ea5..f07ad114602d28 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -86,10 +86,6 @@ server cluster AdministratorCommissioning = 60 { readonly attribute int16u adminVendorId = 2; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -98,8 +94,12 @@ server cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -229,19 +229,19 @@ server cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } server cluster GeneralDiagnostics = 51 { @@ -453,8 +453,8 @@ server cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -464,8 +464,8 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -474,21 +474,22 @@ server cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -496,19 +497,18 @@ server cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } server cluster OperationalCredentials = 62 { @@ -548,6 +548,18 @@ server cluster OperationalCredentials = 62 { readonly attribute fabric_idx currentFabricIndex = 5; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -556,37 +568,25 @@ server cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -594,30 +594,30 @@ server cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } server cluster PowerSource = 47 { @@ -1036,13 +1036,17 @@ server cluster WindowCovering = 258 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; + request struct GoToLiftValueRequest { + INT16U liftValue = 0; + } + request struct GoToLiftPercentageRequest { Percent liftPercentageValue = 0; Percent100ths liftPercent100thsValue = 1; } - request struct GoToLiftValueRequest { - INT16U liftValue = 0; + request struct GoToTiltValueRequest { + INT16U tiltValue = 0; } request struct GoToTiltPercentageRequest { @@ -1050,17 +1054,13 @@ server cluster WindowCovering = 258 { Percent100ths tiltPercent100thsValue = 1; } - request struct GoToTiltValueRequest { - INT16U tiltValue = 0; - } - + command UpOrOpen(): DefaultSuccess = 0; command DownOrClose(): DefaultSuccess = 1; - command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; + command StopMotion(): DefaultSuccess = 2; command GoToLiftValue(GoToLiftValueRequest): DefaultSuccess = 4; - command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; + command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; command GoToTiltValue(GoToTiltValueRequest): DefaultSuccess = 7; - command StopMotion(): DefaultSuccess = 2; - command UpOrOpen(): DefaultSuccess = 0; + command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; } diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 61edfa042933fe..87cb839d7528fc 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -115,10 +115,6 @@ client cluster AdministratorCommissioning = 60 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct OpenBasicCommissioningWindowRequest { - INT16U commissioningTimeout = 0; - } - request struct OpenCommissioningWindowRequest { INT16U commissioningTimeout = 0; OCTET_STRING PAKEVerifier = 1; @@ -127,8 +123,12 @@ client cluster AdministratorCommissioning = 60 { OCTET_STRING salt = 4; } - timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; + request struct OpenBasicCommissioningWindowRequest { + INT16U commissioningTimeout = 0; + } + timed command OpenCommissioningWindow(OpenCommissioningWindowRequest): DefaultSuccess = 0; + timed command OpenBasicCommissioningWindow(OpenBasicCommissioningWindowRequest): DefaultSuccess = 1; timed command RevokeCommissioning(): DefaultSuccess = 2; } @@ -187,10 +187,6 @@ client cluster ApplicationLauncher = 1292 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct HideAppRequest { - Application application = 0; - } - request struct LaunchAppRequest { Application application = 0; optional OCTET_STRING data = 1; @@ -200,14 +196,18 @@ client cluster ApplicationLauncher = 1292 { Application application = 0; } + request struct HideAppRequest { + Application application = 0; + } + response struct LauncherResponse { StatusEnum status = 0; OCTET_STRING data = 1; } - command HideApp(HideAppRequest): LauncherResponse = 2; command LaunchApp(LaunchAppRequest): LauncherResponse = 0; command StopApp(StopAppRequest): LauncherResponse = 1; + command HideApp(HideAppRequest): LauncherResponse = 2; } client cluster AudioOutput = 1291 { @@ -237,17 +237,17 @@ client cluster AudioOutput = 1291 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct RenameOutputRequest { + request struct SelectOutputRequest { INT8U index = 0; - CHAR_STRING name = 1; } - request struct SelectOutputRequest { + request struct RenameOutputRequest { INT8U index = 0; + CHAR_STRING name = 1; } - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; + command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } client cluster BarrierControl = 259 { @@ -427,37 +427,31 @@ client cluster BridgedActions = 37 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct DisableActionRequest { + request struct InstantActionRequest { INT16U actionID = 0; optional INT32U invokeID = 1; } - request struct DisableActionWithDurationRequest { + request struct InstantActionWithTransitionRequest { INT16U actionID = 0; optional INT32U invokeID = 1; - INT32U duration = 2; + INT16U transitionTime = 2; } - request struct EnableActionRequest { + request struct StartActionRequest { INT16U actionID = 0; optional INT32U invokeID = 1; } - request struct EnableActionWithDurationRequest { + request struct StartActionWithDurationRequest { INT16U actionID = 0; optional INT32U invokeID = 1; INT32U duration = 2; } - request struct InstantActionRequest { - INT16U actionID = 0; - optional INT32U invokeID = 1; - } - - request struct InstantActionWithTransitionRequest { + request struct StopActionRequest { INT16U actionID = 0; optional INT32U invokeID = 1; - INT16U transitionTime = 2; } request struct PauseActionRequest { @@ -476,34 +470,40 @@ client cluster BridgedActions = 37 { optional INT32U invokeID = 1; } - request struct StartActionRequest { + request struct EnableActionRequest { INT16U actionID = 0; optional INT32U invokeID = 1; } - request struct StartActionWithDurationRequest { + request struct EnableActionWithDurationRequest { INT16U actionID = 0; optional INT32U invokeID = 1; INT32U duration = 2; } - request struct StopActionRequest { + request struct DisableActionRequest { INT16U actionID = 0; optional INT32U invokeID = 1; } - command DisableAction(DisableActionRequest): DefaultSuccess = 10; - command DisableActionWithDuration(DisableActionWithDurationRequest): DefaultSuccess = 11; - command EnableAction(EnableActionRequest): DefaultSuccess = 8; - command EnableActionWithDuration(EnableActionWithDurationRequest): DefaultSuccess = 9; + request struct DisableActionWithDurationRequest { + INT16U actionID = 0; + optional INT32U invokeID = 1; + INT32U duration = 2; + } + command InstantAction(InstantActionRequest): DefaultSuccess = 0; command InstantActionWithTransition(InstantActionWithTransitionRequest): DefaultSuccess = 1; - command PauseAction(PauseActionRequest): DefaultSuccess = 5; - command PauseActionWithDuration(PauseActionWithDurationRequest): DefaultSuccess = 6; - command ResumeAction(ResumeActionRequest): DefaultSuccess = 7; command StartAction(StartActionRequest): DefaultSuccess = 2; command StartActionWithDuration(StartActionWithDurationRequest): DefaultSuccess = 3; command StopAction(StopActionRequest): DefaultSuccess = 4; + command PauseAction(PauseActionRequest): DefaultSuccess = 5; + command PauseActionWithDuration(PauseActionWithDurationRequest): DefaultSuccess = 6; + command ResumeAction(ResumeActionRequest): DefaultSuccess = 7; + command EnableAction(EnableActionRequest): DefaultSuccess = 8; + command EnableActionWithDuration(EnableActionWithDurationRequest): DefaultSuccess = 9; + command DisableAction(DisableActionRequest): DefaultSuccess = 10; + command DisableActionWithDuration(DisableActionWithDurationRequest): DefaultSuccess = 11; } client cluster BridgedDeviceBasic = 57 { @@ -723,42 +723,62 @@ client cluster ColorControl = 768 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct ColorLoopSetRequest { - ColorLoopUpdateFlags updateFlags = 0; - ColorLoopAction action = 1; - ColorLoopDirection direction = 2; - INT16U time = 3; - INT16U startHue = 4; - BITMAP8 optionsMask = 5; - BITMAP8 optionsOverride = 6; + request struct MoveToHueRequest { + INT8U hue = 0; + HueDirection direction = 1; + INT16U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveHueRequest { + request struct MoveHueRequest { HueMoveMode moveMode = 0; - INT16U rate = 1; + INT8U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct EnhancedMoveToHueRequest { - INT16U enhancedHue = 0; - HueDirection direction = 1; - INT16U transitionTime = 2; + request struct StepHueRequest { + HueStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedMoveToHueAndSaturationRequest { - INT16U enhancedHue = 0; + request struct MoveToSaturationRequest { + INT8U saturation = 0; + INT16U transitionTime = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct MoveSaturationRequest { + SaturationMoveMode moveMode = 0; + INT8U rate = 1; + BITMAP8 optionsMask = 2; + BITMAP8 optionsOverride = 3; + } + + request struct StepSaturationRequest { + SaturationStepMode stepMode = 0; + INT8U stepSize = 1; + INT8U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; + } + + request struct MoveToHueAndSaturationRequest { + INT8U hue = 0; INT8U saturation = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct EnhancedStepHueRequest { - HueStepMode stepMode = 0; - INT16U stepSize = 1; + request struct MoveToColorRequest { + INT16U colorX = 0; + INT16U colorY = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; @@ -771,73 +791,74 @@ client cluster ColorControl = 768 { BITMAP8 optionsOverride = 3; } - request struct MoveColorTemperatureRequest { - HueMoveMode moveMode = 0; - INT16U rate = 1; - INT16U colorTemperatureMinimum = 2; - INT16U colorTemperatureMaximum = 3; - BITMAP8 optionsMask = 4; - BITMAP8 optionsOverride = 5; - } - - request struct MoveHueRequest { - HueMoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; + request struct StepColorRequest { + INT16S stepX = 0; + INT16S stepY = 1; + INT16U transitionTime = 2; + BITMAP8 optionsMask = 3; + BITMAP8 optionsOverride = 4; } - request struct MoveSaturationRequest { - SaturationMoveMode moveMode = 0; - INT8U rate = 1; + request struct MoveToColorTemperatureRequest { + INT16U colorTemperature = 0; + INT16U transitionTime = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct MoveToColorRequest { - INT16U colorX = 0; - INT16U colorY = 1; + request struct EnhancedMoveToHueRequest { + INT16U enhancedHue = 0; + HueDirection direction = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToColorTemperatureRequest { - INT16U colorTemperature = 0; - INT16U transitionTime = 1; + request struct EnhancedMoveHueRequest { + HueMoveMode moveMode = 0; + INT16U rate = 1; BITMAP8 optionsMask = 2; BITMAP8 optionsOverride = 3; } - request struct MoveToHueRequest { - INT8U hue = 0; - HueDirection direction = 1; + request struct EnhancedStepHueRequest { + HueStepMode stepMode = 0; + INT16U stepSize = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToHueAndSaturationRequest { - INT8U hue = 0; + request struct EnhancedMoveToHueAndSaturationRequest { + INT16U enhancedHue = 0; INT8U saturation = 1; INT16U transitionTime = 2; BITMAP8 optionsMask = 3; BITMAP8 optionsOverride = 4; } - request struct MoveToSaturationRequest { - INT8U saturation = 0; - INT16U transitionTime = 1; - BITMAP8 optionsMask = 2; - BITMAP8 optionsOverride = 3; + request struct ColorLoopSetRequest { + ColorLoopUpdateFlags updateFlags = 0; + ColorLoopAction action = 1; + ColorLoopDirection direction = 2; + INT16U time = 3; + INT16U startHue = 4; + BITMAP8 optionsMask = 5; + BITMAP8 optionsOverride = 6; } - request struct StepColorRequest { - INT16S stepX = 0; - INT16S stepY = 1; - INT16U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; + request struct StopMoveStepRequest { + BITMAP8 optionsMask = 0; + BITMAP8 optionsOverride = 1; + } + + request struct MoveColorTemperatureRequest { + HueMoveMode moveMode = 0; + INT16U rate = 1; + INT16U colorTemperatureMinimum = 2; + INT16U colorTemperatureMaximum = 3; + BITMAP8 optionsMask = 4; + BITMAP8 optionsOverride = 5; } request struct StepColorTemperatureRequest { @@ -850,46 +871,25 @@ client cluster ColorControl = 768 { BITMAP8 optionsOverride = 6; } - request struct StepHueRequest { - HueStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; - } - - request struct StepSaturationRequest { - SaturationStepMode stepMode = 0; - INT8U stepSize = 1; - INT8U transitionTime = 2; - BITMAP8 optionsMask = 3; - BITMAP8 optionsOverride = 4; - } - - request struct StopMoveStepRequest { - BITMAP8 optionsMask = 0; - BITMAP8 optionsOverride = 1; - } - - command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; - command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; - command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; - command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; - command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; - command MoveColor(MoveColorRequest): DefaultSuccess = 8; - command MoveColorTemperature(MoveColorTemperatureRequest): DefaultSuccess = 75; + command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; command MoveHue(MoveHueRequest): DefaultSuccess = 1; + command StepHue(StepHueRequest): DefaultSuccess = 2; + command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; command MoveSaturation(MoveSaturationRequest): DefaultSuccess = 4; - command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; - command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; - command MoveToHue(MoveToHueRequest): DefaultSuccess = 0; + command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; command MoveToHueAndSaturation(MoveToHueAndSaturationRequest): DefaultSuccess = 6; - command MoveToSaturation(MoveToSaturationRequest): DefaultSuccess = 3; + command MoveToColor(MoveToColorRequest): DefaultSuccess = 7; + command MoveColor(MoveColorRequest): DefaultSuccess = 8; command StepColor(StepColorRequest): DefaultSuccess = 9; - command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76; - command StepHue(StepHueRequest): DefaultSuccess = 2; - command StepSaturation(StepSaturationRequest): DefaultSuccess = 5; + command MoveToColorTemperature(MoveToColorTemperatureRequest): DefaultSuccess = 10; + command EnhancedMoveToHue(EnhancedMoveToHueRequest): DefaultSuccess = 64; + command EnhancedMoveHue(EnhancedMoveHueRequest): DefaultSuccess = 65; + command EnhancedStepHue(EnhancedStepHueRequest): DefaultSuccess = 66; + command EnhancedMoveToHueAndSaturation(EnhancedMoveToHueAndSaturationRequest): DefaultSuccess = 67; + command ColorLoopSet(ColorLoopSetRequest): DefaultSuccess = 68; command StopMoveStep(StopMoveStepRequest): DefaultSuccess = 71; + command MoveColorTemperature(MoveColorTemperatureRequest): DefaultSuccess = 75; + command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76; } client cluster ContentLauncher = 1290 { @@ -1455,53 +1455,54 @@ client cluster DoorLock = 257 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct ClearCredentialRequest { - nullable DlCredential credential = 0; + request struct LockDoorRequest { + optional OCTET_STRING pinCode = 0; } - request struct ClearUserRequest { - INT16U userIndex = 0; + request struct UnlockDoorRequest { + optional OCTET_STRING pinCode = 0; } - request struct ClearWeekDayScheduleRequest { - INT8U weekDayIndex = 0; - INT16U userIndex = 1; + request struct UnlockWithTimeoutRequest { + INT16U timeout = 0; + optional OCTET_STRING pinCode = 1; } - request struct ClearYearDayScheduleRequest { - INT8U yearDayIndex = 0; + request struct SetWeekDayScheduleRequest { + INT8U weekDayIndex = 0; INT16U userIndex = 1; + DlDaysMaskMap daysMask = 2; + INT8U startHour = 3; + INT8U startMinute = 4; + INT8U endHour = 5; + INT8U endMinute = 6; } - request struct GetCredentialStatusRequest { - DlCredential credential = 0; - } - - request struct GetUserRequest { - INT16U userIndex = 0; + request struct GetWeekDayScheduleRequest { + INT8U weekDayIndex = 0; + INT16U userIndex = 1; } - request struct GetWeekDayScheduleRequest { + request struct ClearWeekDayScheduleRequest { INT8U weekDayIndex = 0; INT16U userIndex = 1; } - request struct GetYearDayScheduleRequest { + request struct SetYearDayScheduleRequest { INT8U yearDayIndex = 0; INT16U userIndex = 1; + epoch_s localStartTime = 2; + epoch_s localEndTime = 3; } - request struct LockDoorRequest { - optional OCTET_STRING pinCode = 0; + request struct GetYearDayScheduleRequest { + INT8U yearDayIndex = 0; + INT16U userIndex = 1; } - request struct SetCredentialRequest { - DlDataOperationType operationType = 0; - DlCredential credential = 1; - LONG_OCTET_STRING credentialData = 2; - nullable INT16U userIndex = 3; - nullable DlUserStatus userStatus = 4; - nullable DlUserType userType = 5; + request struct ClearYearDayScheduleRequest { + INT8U yearDayIndex = 0; + INT16U userIndex = 1; } request struct SetUserRequest { @@ -1514,49 +1515,29 @@ client cluster DoorLock = 257 { nullable DlCredentialRule credentialRule = 6; } - request struct SetWeekDayScheduleRequest { - INT8U weekDayIndex = 0; - INT16U userIndex = 1; - DlDaysMaskMap daysMask = 2; - INT8U startHour = 3; - INT8U startMinute = 4; - INT8U endHour = 5; - INT8U endMinute = 6; - } - - request struct SetYearDayScheduleRequest { - INT8U yearDayIndex = 0; - INT16U userIndex = 1; - epoch_s localStartTime = 2; - epoch_s localEndTime = 3; + request struct GetUserRequest { + INT16U userIndex = 0; } - request struct UnlockDoorRequest { - optional OCTET_STRING pinCode = 0; + request struct ClearUserRequest { + INT16U userIndex = 0; } - request struct UnlockWithTimeoutRequest { - INT16U timeout = 0; - optional OCTET_STRING pinCode = 1; + request struct SetCredentialRequest { + DlDataOperationType operationType = 0; + DlCredential credential = 1; + LONG_OCTET_STRING credentialData = 2; + nullable INT16U userIndex = 3; + nullable DlUserStatus userStatus = 4; + nullable DlUserType userType = 5; } - response struct GetCredentialStatusResponse { - boolean credentialExists = 0; - nullable INT16U userIndex = 1; - nullable INT16U nextCredentialIndex = 2; + request struct GetCredentialStatusRequest { + DlCredential credential = 0; } - response struct GetUserResponse { - INT16U userIndex = 0; - nullable CHAR_STRING userName = 1; - nullable INT32U userUniqueId = 2; - nullable DlUserStatus userStatus = 3; - nullable DlUserType userType = 4; - nullable DlCredentialRule credentialRule = 5; - nullable DlCredential credentials[] = 6; - nullable fabric_idx creatorFabricIndex = 7; - nullable fabric_idx lastModifiedFabricIndex = 8; - nullable INT16U nextUserIndex = 9; + request struct ClearCredentialRequest { + nullable DlCredential credential = 0; } response struct GetWeekDayScheduleResponse { @@ -1578,27 +1559,46 @@ client cluster DoorLock = 257 { optional epoch_s localEndTime = 4; } + response struct GetUserResponse { + INT16U userIndex = 0; + nullable CHAR_STRING userName = 1; + nullable INT32U userUniqueId = 2; + nullable DlUserStatus userStatus = 3; + nullable DlUserType userType = 4; + nullable DlCredentialRule credentialRule = 5; + nullable DlCredential credentials[] = 6; + nullable fabric_idx creatorFabricIndex = 7; + nullable fabric_idx lastModifiedFabricIndex = 8; + nullable INT16U nextUserIndex = 9; + } + response struct SetCredentialResponse { DlStatus status = 0; nullable INT16U userIndex = 1; nullable INT16U nextCredentialIndex = 2; } - timed command ClearCredential(ClearCredentialRequest): DefaultSuccess = 38; - timed command ClearUser(ClearUserRequest): DefaultSuccess = 29; + response struct GetCredentialStatusResponse { + boolean credentialExists = 0; + nullable INT16U userIndex = 1; + nullable INT16U nextCredentialIndex = 2; + } + + timed command LockDoor(LockDoorRequest): DefaultSuccess = 0; + timed command UnlockDoor(UnlockDoorRequest): DefaultSuccess = 1; + timed command UnlockWithTimeout(UnlockWithTimeoutRequest): DefaultSuccess = 3; + command SetWeekDaySchedule(SetWeekDayScheduleRequest): DefaultSuccess = 11; + command GetWeekDaySchedule(GetWeekDayScheduleRequest): GetWeekDayScheduleResponse = 12; command ClearWeekDaySchedule(ClearWeekDayScheduleRequest): DefaultSuccess = 13; + command SetYearDaySchedule(SetYearDayScheduleRequest): DefaultSuccess = 14; + command GetYearDaySchedule(GetYearDayScheduleRequest): GetYearDayScheduleResponse = 15; command ClearYearDaySchedule(ClearYearDayScheduleRequest): DefaultSuccess = 16; - command GetCredentialStatus(GetCredentialStatusRequest): GetCredentialStatusResponse = 36; + timed command SetUser(SetUserRequest): DefaultSuccess = 26; command GetUser(GetUserRequest): GetUserResponse = 27; - command GetWeekDaySchedule(GetWeekDayScheduleRequest): GetWeekDayScheduleResponse = 12; - command GetYearDaySchedule(GetYearDayScheduleRequest): GetYearDayScheduleResponse = 15; - timed command LockDoor(LockDoorRequest): DefaultSuccess = 0; + timed command ClearUser(ClearUserRequest): DefaultSuccess = 29; timed command SetCredential(SetCredentialRequest): SetCredentialResponse = 34; - timed command SetUser(SetUserRequest): DefaultSuccess = 26; - command SetWeekDaySchedule(SetWeekDayScheduleRequest): DefaultSuccess = 11; - command SetYearDaySchedule(SetYearDayScheduleRequest): DefaultSuccess = 14; - timed command UnlockDoor(UnlockDoorRequest): DefaultSuccess = 1; - timed command UnlockWithTimeout(UnlockWithTimeoutRequest): DefaultSuccess = 3; + command GetCredentialStatus(GetCredentialStatusRequest): GetCredentialStatusResponse = 36; + timed command ClearCredential(ClearCredentialRequest): DefaultSuccess = 38; } client cluster ElectricalMeasurement = 2820 { @@ -1726,19 +1726,19 @@ client cluster GeneralCommissioning = 48 { CHAR_STRING debugText = 1; } - response struct CommissioningCompleteResponse { + response struct SetRegulatoryConfigResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } - response struct SetRegulatoryConfigResponse { + response struct CommissioningCompleteResponse { CommissioningError errorCode = 0; CHAR_STRING debugText = 1; } command ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0; - command CommissioningComplete(): CommissioningCompleteResponse = 4; command SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2; + command CommissioningComplete(): CommissioningCompleteResponse = 4; } client cluster GeneralDiagnostics = 51 { @@ -1874,23 +1874,19 @@ client cluster GroupKeyManagement = 63 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct KeySetReadRequest { - INT16U groupKeySetID = 0; + request struct KeySetWriteRequest { + GroupKeySetStruct groupKeySet = 0; } - request struct KeySetReadAllIndicesRequest { - INT16U groupKeySetIDs[] = 0; + request struct KeySetReadRequest { + INT16U groupKeySetID = 0; } request struct KeySetRemoveRequest { INT16U groupKeySetID = 0; } - request struct KeySetWriteRequest { - GroupKeySetStruct groupKeySet = 0; - } - - response struct KeySetReadAllIndicesResponse { + request struct KeySetReadAllIndicesRequest { INT16U groupKeySetIDs[] = 0; } @@ -1898,10 +1894,14 @@ client cluster GroupKeyManagement = 63 { GroupKeySetStruct groupKeySet = 0; } + response struct KeySetReadAllIndicesResponse { + INT16U groupKeySetIDs[] = 0; + } + + command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; command KeySetRead(KeySetReadRequest): KeySetReadResponse = 1; - command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; command KeySetRemove(KeySetRemoveRequest): DefaultSuccess = 3; - command KeySetWrite(KeySetWriteRequest): DefaultSuccess = 0; + command KeySetReadAllIndices(KeySetReadAllIndicesRequest): KeySetReadAllIndicesResponse = 4; } client cluster Groups = 4 { @@ -1916,9 +1916,8 @@ client cluster Groups = 4 { CHAR_STRING groupName = 1; } - request struct AddGroupIfIdentifyingRequest { + request struct ViewGroupRequest { group_id groupId = 0; - CHAR_STRING groupName = 1; } request struct GetGroupMembershipRequest { @@ -1929,8 +1928,9 @@ client cluster Groups = 4 { group_id groupId = 0; } - request struct ViewGroupRequest { + request struct AddGroupIfIdentifyingRequest { group_id groupId = 0; + CHAR_STRING groupName = 1; } response struct AddGroupResponse { @@ -1938,6 +1938,12 @@ client cluster Groups = 4 { group_id groupId = 1; } + response struct ViewGroupResponse { + ENUM8 status = 0; + group_id groupId = 1; + CHAR_STRING groupName = 2; + } + response struct GetGroupMembershipResponse { nullable INT8U capacity = 0; group_id groupList[] = 1; @@ -1948,18 +1954,12 @@ client cluster Groups = 4 { group_id groupId = 1; } - response struct ViewGroupResponse { - ENUM8 status = 0; - group_id groupId = 1; - CHAR_STRING groupName = 2; - } - command AddGroup(AddGroupRequest): AddGroupResponse = 0; - command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; + command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; command GetGroupMembership(GetGroupMembershipRequest): GetGroupMembershipResponse = 2; - command RemoveAllGroups(): DefaultSuccess = 4; command RemoveGroup(RemoveGroupRequest): RemoveGroupResponse = 3; - command ViewGroup(ViewGroupRequest): ViewGroupResponse = 1; + command RemoveAllGroups(): DefaultSuccess = 4; + command AddGroupIfIdentifying(AddGroupIfIdentifyingRequest): DefaultSuccess = 5; } client cluster Identify = 3 { @@ -2182,13 +2182,6 @@ client cluster LevelControl = 8 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct MoveRequest { - MoveMode moveMode = 0; - INT8U rate = 1; - BITMAP8 optionMask = 2; - BITMAP8 optionOverride = 3; - } - request struct MoveToLevelRequest { INT8U level = 0; INT16U transitionTime = 1; @@ -2196,14 +2189,11 @@ client cluster LevelControl = 8 { BITMAP8 optionOverride = 3; } - request struct MoveToLevelWithOnOffRequest { - INT8U level = 0; - INT16U transitionTime = 1; - } - - request struct MoveWithOnOffRequest { + request struct MoveRequest { MoveMode moveMode = 0; INT8U rate = 1; + BITMAP8 optionMask = 2; + BITMAP8 optionOverride = 3; } request struct StepRequest { @@ -2214,24 +2204,34 @@ client cluster LevelControl = 8 { BITMAP8 optionOverride = 4; } + request struct StopRequest { + BITMAP8 optionMask = 0; + BITMAP8 optionOverride = 1; + } + + request struct MoveToLevelWithOnOffRequest { + INT8U level = 0; + INT16U transitionTime = 1; + } + + request struct MoveWithOnOffRequest { + MoveMode moveMode = 0; + INT8U rate = 1; + } + request struct StepWithOnOffRequest { StepMode stepMode = 0; INT8U stepSize = 1; INT16U transitionTime = 2; } - request struct StopRequest { - BITMAP8 optionMask = 0; - BITMAP8 optionOverride = 1; - } - - command Move(MoveRequest): DefaultSuccess = 1; command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0; + command Move(MoveRequest): DefaultSuccess = 1; + command Step(StepRequest): DefaultSuccess = 2; + command Stop(StopRequest): DefaultSuccess = 3; command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4; command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5; - command Step(StepRequest): DefaultSuccess = 2; command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6; - command Stop(StopRequest): DefaultSuccess = 3; command StopWithOnOff(): DefaultSuccess = 7; } @@ -2286,19 +2286,19 @@ client cluster MediaInput = 1287 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct RenameInputRequest { + request struct SelectInputRequest { INT8U index = 0; - CHAR_STRING name = 1; } - request struct SelectInputRequest { + request struct RenameInputRequest { INT8U index = 0; + CHAR_STRING name = 1; } - command HideInputStatus(): DefaultSuccess = 2; - command RenameInput(RenameInputRequest): DefaultSuccess = 3; command SelectInput(SelectInputRequest): DefaultSuccess = 0; command ShowInputStatus(): DefaultSuccess = 1; + command HideInputStatus(): DefaultSuccess = 2; + command RenameInput(RenameInputRequest): DefaultSuccess = 3; } client cluster MediaPlayback = 1286 { @@ -2335,16 +2335,16 @@ client cluster MediaPlayback = 1286 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct SeekRequest { - INT64U position = 0; + request struct SkipForwardRequest { + INT64U deltaPositionMilliseconds = 0; } request struct SkipBackwardRequest { INT64U deltaPositionMilliseconds = 0; } - request struct SkipForwardRequest { - INT64U deltaPositionMilliseconds = 0; + request struct SeekRequest { + INT64U position = 0; } response struct PlaybackResponse { @@ -2352,17 +2352,17 @@ client cluster MediaPlayback = 1286 { optional CHAR_STRING data = 1; } - command FastForward(): PlaybackResponse = 7; - command Next(): PlaybackResponse = 5; - command Pause(): PlaybackResponse = 1; command Play(): PlaybackResponse = 0; + command Pause(): PlaybackResponse = 1; + command StopPlayback(): PlaybackResponse = 2; + command StartOver(): PlaybackResponse = 3; command Previous(): PlaybackResponse = 4; + command Next(): PlaybackResponse = 5; command Rewind(): PlaybackResponse = 6; - command Seek(SeekRequest): PlaybackResponse = 11; - command SkipBackward(SkipBackwardRequest): PlaybackResponse = 9; + command FastForward(): PlaybackResponse = 7; command SkipForward(SkipForwardRequest): PlaybackResponse = 8; - command StartOver(): PlaybackResponse = 3; - command StopPlayback(): PlaybackResponse = 2; + command SkipBackward(SkipBackwardRequest): PlaybackResponse = 9; + command Seek(SeekRequest): PlaybackResponse = 11; } client cluster ModeSelect = 80 { @@ -2464,8 +2464,8 @@ client cluster NetworkCommissioning = 49 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct AddOrUpdateThreadNetworkRequest { - OCTET_STRING operationalDataset = 0; + request struct ScanNetworksRequest { + OCTET_STRING ssid = 0; INT64U breadcrumb = 1; } @@ -2475,8 +2475,8 @@ client cluster NetworkCommissioning = 49 { INT64U breadcrumb = 2; } - request struct ConnectNetworkRequest { - OCTET_STRING networkID = 0; + request struct AddOrUpdateThreadNetworkRequest { + OCTET_STRING operationalDataset = 0; INT64U breadcrumb = 1; } @@ -2485,21 +2485,22 @@ client cluster NetworkCommissioning = 49 { INT64U breadcrumb = 1; } + request struct ConnectNetworkRequest { + OCTET_STRING networkID = 0; + INT64U breadcrumb = 1; + } + request struct ReorderNetworkRequest { OCTET_STRING networkID = 0; INT8U networkIndex = 1; INT64U breadcrumb = 2; } - request struct ScanNetworksRequest { - OCTET_STRING ssid = 0; - INT64U breadcrumb = 1; - } - - response struct ConnectNetworkResponse { + response struct ScanNetworksResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - INT32S errorValue = 2; + optional WiFiInterfaceScanResult wiFiScanResults[] = 2; + optional ThreadInterfaceScanResult threadScanResults[] = 3; } response struct NetworkConfigResponse { @@ -2507,19 +2508,18 @@ client cluster NetworkCommissioning = 49 { CHAR_STRING debugText = 1; } - response struct ScanNetworksResponse { + response struct ConnectNetworkResponse { NetworkCommissioningStatus networkingStatus = 0; CHAR_STRING debugText = 1; - optional WiFiInterfaceScanResult wiFiScanResults[] = 2; - optional ThreadInterfaceScanResult threadScanResults[] = 3; + INT32S errorValue = 2; } - command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; + command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; command AddOrUpdateWiFiNetwork(AddOrUpdateWiFiNetworkRequest): NetworkConfigResponse = 2; - command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; + command AddOrUpdateThreadNetwork(AddOrUpdateThreadNetworkRequest): NetworkConfigResponse = 3; command RemoveNetwork(RemoveNetworkRequest): NetworkConfigResponse = 4; + command ConnectNetwork(ConnectNetworkRequest): ConnectNetworkResponse = 6; command ReorderNetwork(ReorderNetworkRequest): NetworkConfigResponse = 8; - command ScanNetworks(ScanNetworksRequest): ScanNetworksResponse = 0; } client cluster OtaSoftwareUpdateProvider = 41 { @@ -2546,16 +2546,6 @@ client cluster OtaSoftwareUpdateProvider = 41 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct ApplyUpdateRequestRequest { - OCTET_STRING updateToken = 0; - INT32U newVersion = 1; - } - - request struct NotifyUpdateAppliedRequest { - OCTET_STRING updateToken = 0; - INT32U softwareVersion = 1; - } - request struct QueryImageRequest { vendor_id vendorId = 0; INT16U productId = 1; @@ -2567,9 +2557,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForProvider = 7; } - response struct ApplyUpdateResponse { - OTAApplyUpdateAction action = 0; - INT32U delayedActionTime = 1; + request struct ApplyUpdateRequestRequest { + OCTET_STRING updateToken = 0; + INT32U newVersion = 1; + } + + request struct NotifyUpdateAppliedRequest { + OCTET_STRING updateToken = 0; + INT32U softwareVersion = 1; } response struct QueryImageResponse { @@ -2583,9 +2578,14 @@ client cluster OtaSoftwareUpdateProvider = 41 { optional OCTET_STRING metadataForRequestor = 7; } + response struct ApplyUpdateResponse { + OTAApplyUpdateAction action = 0; + INT32U delayedActionTime = 1; + } + + command QueryImage(QueryImageRequest): QueryImageResponse = 0; command ApplyUpdateRequest(ApplyUpdateRequestRequest): ApplyUpdateResponse = 2; command NotifyUpdateApplied(NotifyUpdateAppliedRequest): DefaultSuccess = 4; - command QueryImage(QueryImageRequest): QueryImageResponse = 0; } client cluster OtaSoftwareUpdateRequestor = 42 { @@ -2721,11 +2721,11 @@ client cluster OnOff = 6 { } command Off(): DefaultSuccess = 0; - command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command On(): DefaultSuccess = 1; + command Toggle(): DefaultSuccess = 2; + command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64; command OnWithRecallGlobalScene(): DefaultSuccess = 65; command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66; - command Toggle(): DefaultSuccess = 2; } client cluster OnOffSwitchConfiguration = 7 { @@ -2777,6 +2777,18 @@ client cluster OperationalCredentials = 62 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; + request struct AttestationRequestRequest { + OCTET_STRING attestationNonce = 0; + } + + request struct CertificateChainRequestRequest { + INT8U certificateType = 0; + } + + request struct CSRRequestRequest { + OCTET_STRING CSRNonce = 0; + } + request struct AddNOCRequest { OCTET_STRING NOCValue = 0; optional OCTET_STRING ICACValue = 1; @@ -2785,37 +2797,25 @@ client cluster OperationalCredentials = 62 { INT16U adminVendorId = 4; } - request struct AddTrustedRootCertificateRequest { - OCTET_STRING rootCertificate = 0; - } - - request struct AttestationRequestRequest { - OCTET_STRING attestationNonce = 0; - } - - request struct CSRRequestRequest { - OCTET_STRING CSRNonce = 0; + request struct UpdateNOCRequest { + OCTET_STRING NOCValue = 0; + optional OCTET_STRING ICACValue = 1; } - request struct CertificateChainRequestRequest { - INT8U certificateType = 0; + request struct UpdateFabricLabelRequest { + CHAR_STRING label = 0; } request struct RemoveFabricRequest { fabric_idx fabricIndex = 0; } - request struct RemoveTrustedRootCertificateRequest { - OCTET_STRING trustedRootIdentifier = 0; - } - - request struct UpdateFabricLabelRequest { - CHAR_STRING label = 0; + request struct AddTrustedRootCertificateRequest { + OCTET_STRING rootCertificate = 0; } - request struct UpdateNOCRequest { - OCTET_STRING NOCValue = 0; - optional OCTET_STRING ICACValue = 1; + request struct RemoveTrustedRootCertificateRequest { + OCTET_STRING trustedRootIdentifier = 0; } response struct AttestationResponse { @@ -2823,30 +2823,30 @@ client cluster OperationalCredentials = 62 { OCTET_STRING signature = 1; } + response struct CertificateChainResponse { + OCTET_STRING certificate = 0; + } + response struct CSRResponse { OCTET_STRING NOCSRElements = 0; OCTET_STRING attestationSignature = 1; } - response struct CertificateChainResponse { - OCTET_STRING certificate = 0; - } - response struct NOCResponse { OperationalCertStatus statusCode = 0; optional fabric_idx fabricIndex = 1; optional CHAR_STRING debugText = 2; } - command AddNOC(AddNOCRequest): NOCResponse = 6; - command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command AttestationRequest(AttestationRequestRequest): AttestationResponse = 0; - command CSRRequest(CSRRequestRequest): CSRResponse = 4; command CertificateChainRequest(CertificateChainRequestRequest): CertificateChainResponse = 2; + command CSRRequest(CSRRequestRequest): CSRResponse = 4; + command AddNOC(AddNOCRequest): NOCResponse = 6; + command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; + command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; command RemoveFabric(RemoveFabricRequest): NOCResponse = 10; + command AddTrustedRootCertificate(AddTrustedRootCertificateRequest): DefaultSuccess = 11; command RemoveTrustedRootCertificate(RemoveTrustedRootCertificateRequest): DefaultSuccess = 12; - command UpdateFabricLabel(UpdateFabricLabelRequest): NOCResponse = 9; - command UpdateNOC(UpdateNOCRequest): NOCResponse = 7; } client cluster PowerSource = 47 { @@ -3102,33 +3102,33 @@ client cluster Scenes = 5 { SceneExtensionFieldSet extensionFieldSets[] = 4; } - request struct GetSceneMembershipRequest { + request struct ViewSceneRequest { INT16U groupId = 0; + INT8U sceneId = 1; } - request struct RecallSceneRequest { + request struct RemoveSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; - INT16U transitionTime = 2; } request struct RemoveAllScenesRequest { INT16U groupId = 0; } - request struct RemoveSceneRequest { + request struct StoreSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; } - request struct StoreSceneRequest { + request struct RecallSceneRequest { INT16U groupId = 0; INT8U sceneId = 1; + INT16U transitionTime = 2; } - request struct ViewSceneRequest { + request struct GetSceneMembershipRequest { INT16U groupId = 0; - INT8U sceneId = 1; } response struct AddSceneResponse { @@ -3137,23 +3137,24 @@ client cluster Scenes = 5 { INT8U sceneId = 2; } - response struct GetSceneMembershipResponse { + response struct ViewSceneResponse { ENUM8 status = 0; - INT8U capacity = 1; - INT16U groupId = 2; - INT8U sceneCount = 3; - INT8U sceneList[] = 4; + INT16U groupId = 1; + INT8U sceneId = 2; + INT16U transitionTime = 3; + CHAR_STRING sceneName = 4; + SceneExtensionFieldSet extensionFieldSets[] = 5; } - response struct RemoveAllScenesResponse { + response struct RemoveSceneResponse { ENUM8 status = 0; INT16U groupId = 1; + INT8U sceneId = 2; } - response struct RemoveSceneResponse { + response struct RemoveAllScenesResponse { ENUM8 status = 0; INT16U groupId = 1; - INT8U sceneId = 2; } response struct StoreSceneResponse { @@ -3162,22 +3163,21 @@ client cluster Scenes = 5 { INT8U sceneId = 2; } - response struct ViewSceneResponse { + response struct GetSceneMembershipResponse { ENUM8 status = 0; - INT16U groupId = 1; - INT8U sceneId = 2; - INT16U transitionTime = 3; - CHAR_STRING sceneName = 4; - SceneExtensionFieldSet extensionFieldSets[] = 5; + INT8U capacity = 1; + INT16U groupId = 2; + INT8U sceneCount = 3; + INT8U sceneList[] = 4; } command AddScene(AddSceneRequest): AddSceneResponse = 0; - command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; - command RecallScene(RecallSceneRequest): DefaultSuccess = 5; - command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; + command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; command RemoveScene(RemoveSceneRequest): RemoveSceneResponse = 2; + command RemoveAllScenes(RemoveAllScenesRequest): RemoveAllScenesResponse = 3; command StoreScene(StoreSceneRequest): StoreSceneResponse = 4; - command ViewScene(ViewSceneRequest): ViewSceneResponse = 1; + command RecallScene(RecallSceneRequest): DefaultSuccess = 5; + command GetSceneMembership(GetSceneMembershipRequest): GetSceneMembershipResponse = 6; } client cluster SoftwareDiagnostics = 52 { @@ -3487,76 +3487,72 @@ client cluster TestCluster = 1295 { readonly global attribute attrib_id attributeList[] = 65531; readonly global attribute int16u clusterRevision = 65533; - request struct SimpleStructEchoRequestRequest { - SimpleStruct arg1 = 0; - } - request struct TestAddArgumentsRequest { INT8U arg1 = 0; INT8U arg2 = 1; } - request struct TestEmitTestEventRequestRequest { - INT8U arg1 = 0; - SimpleEnum arg2 = 1; - BOOLEAN arg3 = 2; + request struct TestStructArgumentRequestRequest { + SimpleStruct arg1 = 0; } - request struct TestEnumsRequestRequest { - vendor_id arg1 = 0; - SimpleEnum arg2 = 1; + request struct TestNestedStructArgumentRequestRequest { + NestedStruct arg1 = 0; + } + + request struct TestListStructArgumentRequestRequest { + SimpleStruct arg1[] = 0; } request struct TestListInt8UArgumentRequestRequest { INT8U arg1[] = 0; } - request struct TestListInt8UReverseRequestRequest { - INT8U arg1[] = 0; + request struct TestNestedStructListArgumentRequestRequest { + NestedStructList arg1 = 0; } request struct TestListNestedStructListArgumentRequestRequest { NestedStructList arg1[] = 0; } - request struct TestListStructArgumentRequestRequest { - SimpleStruct arg1[] = 0; - } - - request struct TestNestedStructArgumentRequestRequest { - NestedStruct arg1 = 0; + request struct TestListInt8UReverseRequestRequest { + INT8U arg1[] = 0; } - request struct TestNestedStructListArgumentRequestRequest { - NestedStructList arg1 = 0; + request struct TestEnumsRequestRequest { + vendor_id arg1 = 0; + SimpleEnum arg2 = 1; } request struct TestNullableOptionalRequestRequest { optional nullable INT8U arg1 = 0; } - request struct TestSimpleOptionalArgumentRequestRequest { - optional BOOLEAN arg1 = 0; + request struct SimpleStructEchoRequestRequest { + SimpleStruct arg1 = 0; } - request struct TestStructArgumentRequestRequest { - SimpleStruct arg1 = 0; + request struct TestSimpleOptionalArgumentRequestRequest { + optional BOOLEAN arg1 = 0; } - response struct BooleanResponse { - BOOLEAN value = 0; + request struct TestEmitTestEventRequestRequest { + INT8U arg1 = 0; + SimpleEnum arg2 = 1; + BOOLEAN arg3 = 2; } - response struct SimpleStructResponse { - SimpleStruct arg1 = 0; + response struct TestSpecificResponse { + INT8U returnValue = 0; } response struct TestAddArgumentsResponse { INT8U returnValue = 0; } - response struct TestEmitTestEventResponse { - INT64U value = 0; + response struct TestListInt8UReverseResponse { + INT8U arg1[] = 0; } response struct TestEnumsResponse { @@ -3564,10 +3560,6 @@ client cluster TestCluster = 1295 { SimpleEnum arg2 = 1; } - response struct TestListInt8UReverseResponse { - INT8U arg1[] = 0; - } - response struct TestNullableOptionalResponse { BOOLEAN wasPresent = 0; optional BOOLEAN wasNull = 1; @@ -3575,28 +3567,36 @@ client cluster TestCluster = 1295 { optional nullable INT8U originalValue = 3; } - response struct TestSpecificResponse { - INT8U returnValue = 0; + response struct BooleanResponse { + BOOLEAN value = 0; + } + + response struct SimpleStructResponse { + SimpleStruct arg1 = 0; + } + + response struct TestEmitTestEventResponse { + INT64U value = 0; } - command SimpleStructEchoRequest(SimpleStructEchoRequestRequest): SimpleStructResponse = 17; command Test(): DefaultSuccess = 0; + command TestNotHandled(): DefaultSuccess = 1; + command TestSpecific(): TestSpecificResponse = 2; + command TestUnknownCommand(): DefaultSuccess = 3; command TestAddArguments(TestAddArgumentsRequest): TestAddArgumentsResponse = 4; - command TestEmitTestEventRequest(TestEmitTestEventRequestRequest): TestEmitTestEventResponse = 20; - command TestEnumsRequest(TestEnumsRequestRequest): TestEnumsResponse = 14; - command TestListInt8UArgumentRequest(TestListInt8UArgumentRequestRequest): BooleanResponse = 10; - command TestListInt8UReverseRequest(TestListInt8UReverseRequestRequest): TestListInt8UReverseResponse = 13; - command TestListNestedStructListArgumentRequest(TestListNestedStructListArgumentRequestRequest): BooleanResponse = 12; - command TestListStructArgumentRequest(TestListStructArgumentRequestRequest): BooleanResponse = 9; + command TestStructArgumentRequest(TestStructArgumentRequestRequest): BooleanResponse = 7; command TestNestedStructArgumentRequest(TestNestedStructArgumentRequestRequest): BooleanResponse = 8; + command TestListStructArgumentRequest(TestListStructArgumentRequestRequest): BooleanResponse = 9; + command TestListInt8UArgumentRequest(TestListInt8UArgumentRequestRequest): BooleanResponse = 10; command TestNestedStructListArgumentRequest(TestNestedStructListArgumentRequestRequest): BooleanResponse = 11; - command TestNotHandled(): DefaultSuccess = 1; + command TestListNestedStructListArgumentRequest(TestListNestedStructListArgumentRequestRequest): BooleanResponse = 12; + command TestListInt8UReverseRequest(TestListInt8UReverseRequestRequest): TestListInt8UReverseResponse = 13; + command TestEnumsRequest(TestEnumsRequestRequest): TestEnumsResponse = 14; command TestNullableOptionalRequest(TestNullableOptionalRequestRequest): TestNullableOptionalResponse = 15; - command TestSimpleOptionalArgumentRequest(TestSimpleOptionalArgumentRequestRequest): DefaultSuccess = 19; - command TestSpecific(): TestSpecificResponse = 2; - command TestStructArgumentRequest(TestStructArgumentRequestRequest): BooleanResponse = 7; - command TestUnknownCommand(): DefaultSuccess = 3; + command SimpleStructEchoRequest(SimpleStructEchoRequestRequest): SimpleStructResponse = 17; timed command TimedInvokeRequest(): DefaultSuccess = 18; + command TestSimpleOptionalArgumentRequest(TestSimpleOptionalArgumentRequestRequest): DefaultSuccess = 19; + command TestEmitTestEventRequest(TestEmitTestEventRequestRequest): TestEmitTestEventResponse = 20; } client cluster Thermostat = 513 { @@ -3677,9 +3677,9 @@ client cluster Thermostat = 513 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; - request struct GetWeeklyScheduleRequest { - DayOfWeek daysToReturn = 0; - ModeForSequence modeToReturn = 1; + request struct SetpointRaiseLowerRequest { + SetpointAdjustMode mode = 0; + INT8S amount = 1; } request struct SetWeeklyScheduleRequest { @@ -3689,9 +3689,16 @@ client cluster Thermostat = 513 { INT8U payload[] = 3; } - request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; - INT8S amount = 1; + request struct GetWeeklyScheduleRequest { + DayOfWeek daysToReturn = 0; + ModeForSequence modeToReturn = 1; + } + + response struct GetWeeklyScheduleResponse { + ENUM8 numberOfTransitionsForSequence = 0; + DayOfWeek dayOfWeekForSequence = 1; + ModeForSequence modeForSequence = 2; + INT8U payload[] = 3; } response struct GetRelayStatusLogResponse { @@ -3703,18 +3710,11 @@ client cluster Thermostat = 513 { INT16U unreadEntries = 5; } - response struct GetWeeklyScheduleResponse { - ENUM8 numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - INT8U payload[] = 3; - } - + command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; + command SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; + command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; command ClearWeeklySchedule(): DefaultSuccess = 3; command GetRelayStatusLog(): GetRelayStatusLogResponse = 4; - command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - command SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; - command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; } client cluster ThermostatUserInterfaceConfiguration = 516 { @@ -4081,13 +4081,17 @@ client cluster WindowCovering = 258 { readonly global attribute bitmap32 featureMap = 65532; readonly global attribute int16u clusterRevision = 65533; + request struct GoToLiftValueRequest { + INT16U liftValue = 0; + } + request struct GoToLiftPercentageRequest { Percent liftPercentageValue = 0; Percent100ths liftPercent100thsValue = 1; } - request struct GoToLiftValueRequest { - INT16U liftValue = 0; + request struct GoToTiltValueRequest { + INT16U tiltValue = 0; } request struct GoToTiltPercentageRequest { @@ -4095,17 +4099,13 @@ client cluster WindowCovering = 258 { Percent100ths tiltPercent100thsValue = 1; } - request struct GoToTiltValueRequest { - INT16U tiltValue = 0; - } - + command UpOrOpen(): DefaultSuccess = 0; command DownOrClose(): DefaultSuccess = 1; - command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; + command StopMotion(): DefaultSuccess = 2; command GoToLiftValue(GoToLiftValueRequest): DefaultSuccess = 4; - command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; + command GoToLiftPercentage(GoToLiftPercentageRequest): DefaultSuccess = 5; command GoToTiltValue(GoToTiltValueRequest): DefaultSuccess = 7; - command StopMotion(): DefaultSuccess = 2; - command UpOrOpen(): DefaultSuccess = 0; + command GoToTiltPercentage(GoToTiltPercentageRequest): DefaultSuccess = 8; } diff --git a/third_party/zap/repo b/third_party/zap/repo index a1ddd5d56c4bd9..9c885cf9391fc0 160000 --- a/third_party/zap/repo +++ b/third_party/zap/repo @@ -1 +1 @@ -Subproject commit a1ddd5d56c4bd9b7ba52c63f13665d96a11134ce +Subproject commit 9c885cf9391fc09b450e5e8a8e40e381c4bee27d diff --git a/zzz_generated/all-clusters-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/all-clusters-app/zap-generated/IMClusterCommandHandler.cpp index ebcde4200d18d0..4ef1c41c39da80 100644 --- a/zzz_generated/all-clusters-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/all-clusters-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -154,94 +154,93 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::ColorLoopSet::Id: { - Commands::ColorLoopSet::DecodableType commandData; + case Commands::MoveToHue::Id: { + Commands::MoveToHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterColorLoopSetCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedMoveHue::Id: { - Commands::EnhancedMoveHue::DecodableType commandData; + case Commands::MoveHue::Id: { + Commands::MoveHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterEnhancedMoveHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedMoveToHue::Id: { - Commands::EnhancedMoveToHue::DecodableType commandData; + case Commands::StepHue::Id: { + Commands::StepHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterEnhancedMoveToHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedMoveToHueAndSaturation::Id: { - Commands::EnhancedMoveToHueAndSaturation::DecodableType commandData; + case Commands::MoveToSaturation::Id: { + Commands::MoveToSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfColorControlClusterEnhancedMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedStepHue::Id: { - Commands::EnhancedStepHue::DecodableType commandData; + case Commands::MoveSaturation::Id: { + Commands::MoveSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterEnhancedStepHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveColor::Id: { - Commands::MoveColor::DecodableType commandData; + case Commands::StepSaturation::Id: { + Commands::StepSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveColorTemperature::Id: { - Commands::MoveColorTemperature::DecodableType commandData; + case Commands::MoveToHueAndSaturation::Id: { + Commands::MoveToHueAndSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveColorTemperatureCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveHue::Id: { - Commands::MoveHue::DecodableType commandData; + case Commands::MoveToColor::Id: { + Commands::MoveToColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveSaturation::Id: { - Commands::MoveSaturation::DecodableType commandData; + case Commands::MoveColor::Id: { + Commands::MoveColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToColor::Id: { - Commands::MoveToColor::DecodableType commandData; + case Commands::StepColor::Id: { + Commands::StepColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepColorCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -254,75 +253,76 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::MoveToHue::Id: { - Commands::MoveToHue::DecodableType commandData; + case Commands::EnhancedMoveToHue::Id: { + Commands::EnhancedMoveToHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterEnhancedMoveToHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToHueAndSaturation::Id: { - Commands::MoveToHueAndSaturation::DecodableType commandData; + case Commands::EnhancedMoveHue::Id: { + Commands::EnhancedMoveHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterEnhancedMoveHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToSaturation::Id: { - Commands::MoveToSaturation::DecodableType commandData; + case Commands::EnhancedStepHue::Id: { + Commands::EnhancedStepHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterEnhancedStepHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepColor::Id: { - Commands::StepColor::DecodableType commandData; + case Commands::EnhancedMoveToHueAndSaturation::Id: { + Commands::EnhancedMoveToHueAndSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfColorControlClusterEnhancedMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepColorTemperature::Id: { - Commands::StepColorTemperature::DecodableType commandData; + case Commands::ColorLoopSet::Id: { + Commands::ColorLoopSet::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepColorTemperatureCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterColorLoopSetCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepHue::Id: { - Commands::StepHue::DecodableType commandData; + case Commands::StopMoveStep::Id: { + Commands::StopMoveStep::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStopMoveStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepSaturation::Id: { - Commands::StepSaturation::DecodableType commandData; + case Commands::MoveColorTemperature::Id: { + Commands::MoveColorTemperature::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveColorTemperatureCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StopMoveStep::Id: { - Commands::StopMoveStep::DecodableType commandData; + case Commands::StepColorTemperature::Id: { + Commands::StepColorTemperature::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStopMoveStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepColorTemperatureCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -391,30 +391,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::ClearCredential::Id: { - Commands::ClearCredential::DecodableType commandData; + case Commands::LockDoor::Id: { + Commands::LockDoor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterClearCredentialCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterLockDoorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ClearUser::Id: { - Commands::ClearUser::DecodableType commandData; + case Commands::UnlockDoor::Id: { + Commands::UnlockDoor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterClearUserCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterUnlockDoorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::GetCredentialStatus::Id: { - Commands::GetCredentialStatus::DecodableType commandData; + case Commands::SetUser::Id: { + Commands::SetUser::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterGetCredentialStatusCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterSetUserCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -427,12 +427,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::LockDoor::Id: { - Commands::LockDoor::DecodableType commandData; + case Commands::ClearUser::Id: { + Commands::ClearUser::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterLockDoorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterClearUserCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -445,21 +445,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::SetUser::Id: { - Commands::SetUser::DecodableType commandData; + case Commands::GetCredentialStatus::Id: { + Commands::GetCredentialStatus::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterSetUserCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterGetCredentialStatusCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UnlockDoor::Id: { - Commands::UnlockDoor::DecodableType commandData; + case Commands::ClearCredential::Id: { + Commands::ClearCredential::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterUnlockDoorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterClearCredentialCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -537,22 +537,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -584,21 +584,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::KeySetRead::Id: { - Commands::KeySetRead::DecodableType commandData; + case Commands::KeySetWrite::Id: { + Commands::KeySetWrite::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::KeySetReadAllIndices::Id: { - Commands::KeySetReadAllIndices::DecodableType commandData; + case Commands::KeySetRead::Id: { + Commands::KeySetRead::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -611,12 +611,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::KeySetWrite::Id: { - Commands::KeySetWrite::DecodableType commandData; + case Commands::KeySetReadAllIndices::Id: { + Commands::KeySetReadAllIndices::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -657,12 +657,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -675,30 +675,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -822,6 +822,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::Move::Id: { Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -831,39 +840,39 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -876,17 +885,8 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); - } - break; - } - case Commands::StopWithOnOff::Id: { - Commands::StopWithOnOff::DecodableType commandData; + case Commands::StopWithOnOff::Id: { + Commands::StopWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { @@ -996,13 +996,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1016,12 +1015,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1034,21 +1034,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1127,48 +1127,48 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::OffWithEffect::Id: { - Commands::OffWithEffect::DecodableType commandData; + case Commands::On::Id: { + Commands::On::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::On::Id: { - Commands::On::DecodableType commandData; + case Commands::Toggle::Id: { + Commands::Toggle::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithRecallGlobalScene::Id: { - Commands::OnWithRecallGlobalScene::DecodableType commandData; + case Commands::OffWithEffect::Id: { + Commands::OffWithEffect::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithTimedOff::Id: { - Commands::OnWithTimedOff::DecodableType commandData; + case Commands::OnWithRecallGlobalScene::Id: { + Commands::OnWithRecallGlobalScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Toggle::Id: { - Commands::Toggle::DecodableType commandData; + case Commands::OnWithTimedOff::Id: { + Commands::OnWithTimedOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1200,88 +1200,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } @@ -1322,21 +1322,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GetSceneMembership::Id: { - Commands::GetSceneMembership::DecodableType commandData; + case Commands::ViewScene::Id: { + Commands::ViewScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RecallScene::Id: { - Commands::RecallScene::DecodableType commandData; + case Commands::RemoveScene::Id: { + Commands::RemoveScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1349,30 +1349,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveScene::Id: { - Commands::RemoveScene::DecodableType commandData; + case Commands::StoreScene::Id: { + Commands::StoreScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StoreScene::Id: { - Commands::StoreScene::DecodableType commandData; + case Commands::RecallScene::Id: { + Commands::RecallScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewScene::Id: { - Commands::ViewScene::DecodableType commandData; + case Commands::GetSceneMembership::Id: { + Commands::GetSceneMembership::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1441,21 +1441,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::SimpleStructEchoRequest::Id: { - Commands::SimpleStructEchoRequest::DecodableType commandData; + case Commands::Test::Id: { + Commands::Test::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterSimpleStructEchoRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Test::Id: { - Commands::Test::DecodableType commandData; + case Commands::TestNotHandled::Id: { + Commands::TestNotHandled::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTestNotHandledCallback(apCommandObj, aCommandPath, commandData); + } + break; + } + case Commands::TestSpecific::Id: { + Commands::TestSpecific::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfTestClusterClusterTestSpecificCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1468,31 +1477,32 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::TestEmitTestEventRequest::Id: { - Commands::TestEmitTestEventRequest::DecodableType commandData; + case Commands::TestStructArgumentRequest::Id: { + Commands::TestStructArgumentRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTestEmitTestEventRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTestStructArgumentRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::TestEmitTestFabricScopedEventRequest::Id: { - Commands::TestEmitTestFabricScopedEventRequest::DecodableType commandData; + case Commands::TestNestedStructArgumentRequest::Id: { + Commands::TestNestedStructArgumentRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfTestClusterClusterTestEmitTestFabricScopedEventRequestCallback(apCommandObj, aCommandPath, commandData); + emberAfTestClusterClusterTestNestedStructArgumentRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::TestEnumsRequest::Id: { - Commands::TestEnumsRequest::DecodableType commandData; + case Commands::TestListStructArgumentRequest::Id: { + Commands::TestListStructArgumentRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTestEnumsRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfTestClusterClusterTestListStructArgumentRequestCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1505,12 +1515,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::TestListInt8UReverseRequest::Id: { - Commands::TestListInt8UReverseRequest::DecodableType commandData; + case Commands::TestNestedStructListArgumentRequest::Id: { + Commands::TestNestedStructListArgumentRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTestListInt8UReverseRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfTestClusterClusterTestNestedStructListArgumentRequestCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1524,51 +1535,48 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::TestListStructArgumentRequest::Id: { - Commands::TestListStructArgumentRequest::DecodableType commandData; + case Commands::TestListInt8UReverseRequest::Id: { + Commands::TestListInt8UReverseRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfTestClusterClusterTestListStructArgumentRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTestListInt8UReverseRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::TestNestedStructArgumentRequest::Id: { - Commands::TestNestedStructArgumentRequest::DecodableType commandData; + case Commands::TestEnumsRequest::Id: { + Commands::TestEnumsRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfTestClusterClusterTestNestedStructArgumentRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTestEnumsRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::TestNestedStructListArgumentRequest::Id: { - Commands::TestNestedStructListArgumentRequest::DecodableType commandData; + case Commands::TestNullableOptionalRequest::Id: { + Commands::TestNullableOptionalRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfTestClusterClusterTestNestedStructListArgumentRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTestNullableOptionalRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::TestNotHandled::Id: { - Commands::TestNotHandled::DecodableType commandData; + case Commands::SimpleStructEchoRequest::Id: { + Commands::SimpleStructEchoRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTestNotHandledCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterSimpleStructEchoRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::TestNullableOptionalRequest::Id: { - Commands::TestNullableOptionalRequest::DecodableType commandData; + case Commands::TimedInvokeRequest::Id: { + Commands::TimedInvokeRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTestNullableOptionalRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTimedInvokeRequestCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1582,30 +1590,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::TestSpecific::Id: { - Commands::TestSpecific::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfTestClusterClusterTestSpecificCallback(apCommandObj, aCommandPath, commandData); - } - break; - } - case Commands::TestStructArgumentRequest::Id: { - Commands::TestStructArgumentRequest::DecodableType commandData; + case Commands::TestEmitTestEventRequest::Id: { + Commands::TestEmitTestEventRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTestStructArgumentRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfTestClusterClusterTestEmitTestEventRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::TimedInvokeRequest::Id: { - Commands::TimedInvokeRequest::DecodableType commandData; + case Commands::TestEmitTestFabricScopedEventRequest::Id: { + Commands::TestEmitTestFabricScopedEventRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfTestClusterClusterTimedInvokeRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfTestClusterClusterTestEmitTestFabricScopedEventRequestCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1711,6 +1711,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::UpOrOpen::Id: { + Commands::UpOrOpen::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::DownOrClose::Id: { Commands::DownOrClose::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -1720,12 +1729,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToLiftPercentage::Id: { - Commands::GoToLiftPercentage::DecodableType commandData; + case Commands::StopMotion::Id: { + Commands::StopMotion::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1738,12 +1747,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToTiltPercentage::Id: { - Commands::GoToTiltPercentage::DecodableType commandData; + case Commands::GoToLiftPercentage::Id: { + Commands::GoToLiftPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -1756,21 +1765,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::StopMotion::Id: { - Commands::StopMotion::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); - } - break; - } - case Commands::UpOrOpen::Id: { - Commands::UpOrOpen::DecodableType commandData; + case Commands::GoToTiltPercentage::Id: { + Commands::GoToTiltPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/all-clusters-app/zap-generated/access.h b/zzz_generated/all-clusters-app/zap-generated/access.h index fe9b4ae81a0b16..0cb772bd587909 100644 --- a/zzz_generated/all-clusters-app/zap-generated/access.h +++ b/zzz_generated/all-clusters-app/zap-generated/access.h @@ -153,32 +153,32 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ - 257, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: GetUser, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ - 38, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ - 29, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ - 36, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 26, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ 27, /* Cluster: Door Lock, Command: GetUser, Privilege: administer */ \ + 29, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ 34, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ - 26, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ + 36, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 38, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetUser, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/bridge-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/bridge-app/zap-generated/IMClusterCommandHandler.cpp index 2b40a3fde96c5b..10d76b6fc10dd3 100644 --- a/zzz_generated/bridge-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/bridge-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -154,22 +154,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -201,66 +201,66 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::Move::Id: { - Commands::Move::DecodableType commandData; + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Move::Id: { + Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepWithOnOff::Id: { - Commands::StepWithOnOff::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; + case Commands::StepWithOnOff::Id: { + Commands::StepWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -301,13 +301,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -321,12 +320,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -339,21 +339,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -440,88 +440,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/door-lock-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/door-lock-app/zap-generated/IMClusterCommandHandler.cpp index ec65341dc4eb5f..81d47b6767b72e 100644 --- a/zzz_generated/door-lock-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/door-lock-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -145,129 +145,129 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::ClearCredential::Id: { - Commands::ClearCredential::DecodableType commandData; + case Commands::LockDoor::Id: { + Commands::LockDoor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterClearCredentialCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterLockDoorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ClearUser::Id: { - Commands::ClearUser::DecodableType commandData; + case Commands::UnlockDoor::Id: { + Commands::UnlockDoor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterClearUserCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterUnlockDoorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ClearWeekDaySchedule::Id: { - Commands::ClearWeekDaySchedule::DecodableType commandData; + case Commands::SetWeekDaySchedule::Id: { + Commands::SetWeekDaySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterClearWeekDayScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterSetWeekDayScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ClearYearDaySchedule::Id: { - Commands::ClearYearDaySchedule::DecodableType commandData; + case Commands::GetWeekDaySchedule::Id: { + Commands::GetWeekDaySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterClearYearDayScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterGetWeekDayScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::GetCredentialStatus::Id: { - Commands::GetCredentialStatus::DecodableType commandData; + case Commands::ClearWeekDaySchedule::Id: { + Commands::ClearWeekDaySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterGetCredentialStatusCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterClearWeekDayScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::GetUser::Id: { - Commands::GetUser::DecodableType commandData; + case Commands::SetYearDaySchedule::Id: { + Commands::SetYearDaySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterGetUserCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterSetYearDayScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::GetWeekDaySchedule::Id: { - Commands::GetWeekDaySchedule::DecodableType commandData; + case Commands::GetYearDaySchedule::Id: { + Commands::GetYearDaySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterGetWeekDayScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterGetYearDayScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::GetYearDaySchedule::Id: { - Commands::GetYearDaySchedule::DecodableType commandData; + case Commands::ClearYearDaySchedule::Id: { + Commands::ClearYearDaySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterGetYearDayScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterClearYearDayScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::LockDoor::Id: { - Commands::LockDoor::DecodableType commandData; + case Commands::SetUser::Id: { + Commands::SetUser::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterLockDoorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterSetUserCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetCredential::Id: { - Commands::SetCredential::DecodableType commandData; + case Commands::GetUser::Id: { + Commands::GetUser::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterSetCredentialCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterGetUserCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetUser::Id: { - Commands::SetUser::DecodableType commandData; + case Commands::ClearUser::Id: { + Commands::ClearUser::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterSetUserCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterClearUserCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetWeekDaySchedule::Id: { - Commands::SetWeekDaySchedule::DecodableType commandData; + case Commands::SetCredential::Id: { + Commands::SetCredential::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterSetWeekDayScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterSetCredentialCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetYearDaySchedule::Id: { - Commands::SetYearDaySchedule::DecodableType commandData; + case Commands::GetCredentialStatus::Id: { + Commands::GetCredentialStatus::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterSetYearDayScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterGetCredentialStatusCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UnlockDoor::Id: { - Commands::UnlockDoor::DecodableType commandData; + case Commands::ClearCredential::Id: { + Commands::ClearCredential::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfDoorLockClusterUnlockDoorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfDoorLockClusterClearCredentialCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -308,22 +308,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -355,13 +355,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -375,12 +374,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -393,21 +393,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -439,88 +439,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/door-lock-app/zap-generated/access.h b/zzz_generated/door-lock-app/zap-generated/access.h index d0873017c0cb20..da516c3943bdc8 100644 --- a/zzz_generated/door-lock-app/zap-generated/access.h +++ b/zzz_generated/door-lock-app/zap-generated/access.h @@ -123,50 +123,50 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ - 257, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: SetWeekDaySchedule, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: GetWeekDaySchedule, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: ClearWeekDaySchedule, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: SetYearDaySchedule, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: GetYearDaySchedule, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: ClearYearDaySchedule, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: GetUser, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: GetWeekDaySchedule, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: GetYearDaySchedule, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: SetWeekDaySchedule, Privilege: administer */ \ - 257, /* Cluster: Door Lock, Command: SetYearDaySchedule, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 257, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ - 38, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ - 29, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ + 11, /* Cluster: Door Lock, Command: SetWeekDaySchedule, Privilege: administer */ \ + 12, /* Cluster: Door Lock, Command: GetWeekDaySchedule, Privilege: administer */ \ 13, /* Cluster: Door Lock, Command: ClearWeekDaySchedule, Privilege: administer */ \ + 14, /* Cluster: Door Lock, Command: SetYearDaySchedule, Privilege: administer */ \ + 15, /* Cluster: Door Lock, Command: GetYearDaySchedule, Privilege: administer */ \ 16, /* Cluster: Door Lock, Command: ClearYearDaySchedule, Privilege: administer */ \ - 36, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 26, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ 27, /* Cluster: Door Lock, Command: GetUser, Privilege: administer */ \ - 12, /* Cluster: Door Lock, Command: GetWeekDaySchedule, Privilege: administer */ \ - 15, /* Cluster: Door Lock, Command: GetYearDaySchedule, Privilege: administer */ \ + 29, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ 34, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ - 26, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ - 11, /* Cluster: Door Lock, Command: SetWeekDaySchedule, Privilege: administer */ \ - 14, /* Cluster: Door Lock, Command: SetYearDaySchedule, Privilege: administer */ \ + 36, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + 38, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetWeekDaySchedule, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetWeekDaySchedule, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearWeekDaySchedule, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetYearDaySchedule, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetYearDaySchedule, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearYearDaySchedule, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetUser, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetWeekDaySchedule, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetYearDaySchedule, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearUser, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetUser, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetWeekDaySchedule, Privilege: administer */ \ - kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetYearDaySchedule, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/light-switch-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/light-switch-app/zap-generated/IMClusterCommandHandler.cpp index b7c7ad946b2028..795401ad195231 100644 --- a/zzz_generated/light-switch-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/light-switch-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -191,22 +191,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -238,21 +238,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::KeySetRead::Id: { - Commands::KeySetRead::DecodableType commandData; + case Commands::KeySetWrite::Id: { + Commands::KeySetWrite::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::KeySetReadAllIndices::Id: { - Commands::KeySetReadAllIndices::DecodableType commandData; + case Commands::KeySetRead::Id: { + Commands::KeySetRead::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -265,12 +265,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::KeySetWrite::Id: { - Commands::KeySetWrite::DecodableType commandData; + case Commands::KeySetReadAllIndices::Id: { + Commands::KeySetReadAllIndices::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -311,12 +311,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -329,30 +329,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -439,13 +439,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -459,12 +458,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -477,21 +477,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -561,88 +561,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp index 0098a676aff474..616fa6db37d561 100644 --- a/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -108,94 +108,93 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::ColorLoopSet::Id: { - Commands::ColorLoopSet::DecodableType commandData; + case Commands::MoveToHue::Id: { + Commands::MoveToHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterColorLoopSetCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedMoveHue::Id: { - Commands::EnhancedMoveHue::DecodableType commandData; + case Commands::MoveHue::Id: { + Commands::MoveHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterEnhancedMoveHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedMoveToHue::Id: { - Commands::EnhancedMoveToHue::DecodableType commandData; + case Commands::StepHue::Id: { + Commands::StepHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterEnhancedMoveToHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedMoveToHueAndSaturation::Id: { - Commands::EnhancedMoveToHueAndSaturation::DecodableType commandData; + case Commands::MoveToSaturation::Id: { + Commands::MoveToSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfColorControlClusterEnhancedMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::EnhancedStepHue::Id: { - Commands::EnhancedStepHue::DecodableType commandData; + case Commands::MoveSaturation::Id: { + Commands::MoveSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterEnhancedStepHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveColor::Id: { - Commands::MoveColor::DecodableType commandData; + case Commands::StepSaturation::Id: { + Commands::StepSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveColorTemperature::Id: { - Commands::MoveColorTemperature::DecodableType commandData; + case Commands::MoveToHueAndSaturation::Id: { + Commands::MoveToHueAndSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveColorTemperatureCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveHue::Id: { - Commands::MoveHue::DecodableType commandData; + case Commands::MoveToColor::Id: { + Commands::MoveToColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveSaturation::Id: { - Commands::MoveSaturation::DecodableType commandData; + case Commands::MoveColor::Id: { + Commands::MoveColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToColor::Id: { - Commands::MoveToColor::DecodableType commandData; + case Commands::StepColor::Id: { + Commands::StepColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepColorCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -208,75 +207,76 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::MoveToHue::Id: { - Commands::MoveToHue::DecodableType commandData; + case Commands::EnhancedMoveToHue::Id: { + Commands::EnhancedMoveToHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterEnhancedMoveToHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToHueAndSaturation::Id: { - Commands::MoveToHueAndSaturation::DecodableType commandData; + case Commands::EnhancedMoveHue::Id: { + Commands::EnhancedMoveHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterEnhancedMoveHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToSaturation::Id: { - Commands::MoveToSaturation::DecodableType commandData; + case Commands::EnhancedStepHue::Id: { + Commands::EnhancedStepHue::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterEnhancedStepHueCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepColor::Id: { - Commands::StepColor::DecodableType commandData; + case Commands::EnhancedMoveToHueAndSaturation::Id: { + Commands::EnhancedMoveToHueAndSaturation::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfColorControlClusterEnhancedMoveToHueAndSaturationCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepColorTemperature::Id: { - Commands::StepColorTemperature::DecodableType commandData; + case Commands::ColorLoopSet::Id: { + Commands::ColorLoopSet::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepColorTemperatureCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterColorLoopSetCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepHue::Id: { - Commands::StepHue::DecodableType commandData; + case Commands::StopMoveStep::Id: { + Commands::StopMoveStep::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepHueCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStopMoveStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepSaturation::Id: { - Commands::StepSaturation::DecodableType commandData; + case Commands::MoveColorTemperature::Id: { + Commands::MoveColorTemperature::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStepSaturationCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveColorTemperatureCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StopMoveStep::Id: { - Commands::StopMoveStep::DecodableType commandData; + case Commands::StepColorTemperature::Id: { + Commands::StepColorTemperature::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterStopMoveStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterStepColorTemperatureCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -391,22 +391,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -438,21 +438,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::KeySetRead::Id: { - Commands::KeySetRead::DecodableType commandData; + case Commands::KeySetWrite::Id: { + Commands::KeySetWrite::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::KeySetReadAllIndices::Id: { - Commands::KeySetReadAllIndices::DecodableType commandData; + case Commands::KeySetRead::Id: { + Commands::KeySetRead::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -465,12 +465,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::KeySetWrite::Id: { - Commands::KeySetWrite::DecodableType commandData; + case Commands::KeySetReadAllIndices::Id: { + Commands::KeySetReadAllIndices::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -511,12 +511,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -529,30 +529,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -639,66 +639,66 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::Move::Id: { - Commands::Move::DecodableType commandData; + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Move::Id: { + Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepWithOnOff::Id: { - Commands::StepWithOnOff::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; + case Commands::StepWithOnOff::Id: { + Commands::StepWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -739,13 +739,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -759,12 +758,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -777,21 +777,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -870,48 +870,48 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::OffWithEffect::Id: { - Commands::OffWithEffect::DecodableType commandData; + case Commands::On::Id: { + Commands::On::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::On::Id: { - Commands::On::DecodableType commandData; + case Commands::Toggle::Id: { + Commands::Toggle::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithRecallGlobalScene::Id: { - Commands::OnWithRecallGlobalScene::DecodableType commandData; + case Commands::OffWithEffect::Id: { + Commands::OffWithEffect::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithTimedOff::Id: { - Commands::OnWithTimedOff::DecodableType commandData; + case Commands::OnWithRecallGlobalScene::Id: { + Commands::OnWithRecallGlobalScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Toggle::Id: { - Commands::Toggle::DecodableType commandData; + case Commands::OnWithTimedOff::Id: { + Commands::OnWithTimedOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -943,88 +943,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/lock-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/lock-app/zap-generated/IMClusterCommandHandler.cpp index 6532e779bd69db..20f92d15ad95e0 100644 --- a/zzz_generated/lock-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/lock-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -191,22 +191,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -238,13 +238,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -258,12 +257,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -276,21 +276,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -415,88 +415,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/log-source-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/log-source-app/zap-generated/IMClusterCommandHandler.cpp index adc0d189f813cd..46d11e98f9b497 100644 --- a/zzz_generated/log-source-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/log-source-app/zap-generated/IMClusterCommandHandler.cpp @@ -96,22 +96,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -143,13 +143,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -163,12 +162,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -181,21 +181,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -227,51 +227,50 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -284,12 +283,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/ota-provider-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/ota-provider-app/zap-generated/IMClusterCommandHandler.cpp index a9f3f0710930c5..07c9453f0d7902 100644 --- a/zzz_generated/ota-provider-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/ota-provider-app/zap-generated/IMClusterCommandHandler.cpp @@ -59,22 +59,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -106,13 +106,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -126,12 +125,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -144,21 +144,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -190,6 +190,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::QueryImage::Id: { + Commands::QueryImage::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::ApplyUpdateRequest::Id: { Commands::ApplyUpdateRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -210,15 +219,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::QueryImage::Id: { - Commands::QueryImage::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); - } - break; - } default: { // Unrecognized command ID, error status will apply. apCommandObj->AddStatus(aCommandPath, Protocols::InteractionModel::Status::UnsupportedCommand); @@ -247,51 +247,50 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -304,12 +303,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/ota-requestor-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/ota-requestor-app/zap-generated/IMClusterCommandHandler.cpp index 703ed41c2ebd8d..947ef71a8200f2 100644 --- a/zzz_generated/ota-requestor-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/ota-requestor-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -117,22 +117,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -164,13 +164,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -184,12 +183,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -202,21 +202,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -286,88 +286,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/placeholder/app1/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/placeholder/app1/zap-generated/IMClusterCommandHandler.cpp index ed53683dba764c..3187381f6a8126 100644 --- a/zzz_generated/placeholder/app1/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/placeholder/app1/zap-generated/IMClusterCommandHandler.cpp @@ -50,21 +50,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::MoveColor::Id: { - Commands::MoveColor::DecodableType commandData; + case Commands::MoveToColor::Id: { + Commands::MoveToColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToColor::Id: { - Commands::MoveToColor::DecodableType commandData; + case Commands::MoveColor::Id: { + Commands::MoveColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -160,22 +160,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -216,12 +216,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -234,30 +234,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -372,66 +372,66 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::Move::Id: { - Commands::Move::DecodableType commandData; + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Move::Id: { + Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepWithOnOff::Id: { - Commands::StepWithOnOff::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; + case Commands::StepWithOnOff::Id: { + Commands::StepWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -509,13 +509,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -529,12 +528,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -547,21 +547,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -602,48 +602,48 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::OffWithEffect::Id: { - Commands::OffWithEffect::DecodableType commandData; + case Commands::On::Id: { + Commands::On::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::On::Id: { - Commands::On::DecodableType commandData; + case Commands::Toggle::Id: { + Commands::Toggle::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithRecallGlobalScene::Id: { - Commands::OnWithRecallGlobalScene::DecodableType commandData; + case Commands::OffWithEffect::Id: { + Commands::OffWithEffect::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithTimedOff::Id: { - Commands::OnWithTimedOff::DecodableType commandData; + case Commands::OnWithRecallGlobalScene::Id: { + Commands::OnWithRecallGlobalScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Toggle::Id: { - Commands::Toggle::DecodableType commandData; + case Commands::OnWithTimedOff::Id: { + Commands::OnWithTimedOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -675,88 +675,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } @@ -797,21 +797,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GetSceneMembership::Id: { - Commands::GetSceneMembership::DecodableType commandData; + case Commands::ViewScene::Id: { + Commands::ViewScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RecallScene::Id: { - Commands::RecallScene::DecodableType commandData; + case Commands::RemoveScene::Id: { + Commands::RemoveScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -824,30 +824,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveScene::Id: { - Commands::RemoveScene::DecodableType commandData; + case Commands::StoreScene::Id: { + Commands::StoreScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StoreScene::Id: { - Commands::StoreScene::DecodableType commandData; + case Commands::RecallScene::Id: { + Commands::RecallScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewScene::Id: { - Commands::ViewScene::DecodableType commandData; + case Commands::GetSceneMembership::Id: { + Commands::GetSceneMembership::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -916,6 +916,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::UpOrOpen::Id: { + Commands::UpOrOpen::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::DownOrClose::Id: { Commands::DownOrClose::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -925,12 +934,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToLiftPercentage::Id: { - Commands::GoToLiftPercentage::DecodableType commandData; + case Commands::StopMotion::Id: { + Commands::StopMotion::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -943,12 +952,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToTiltPercentage::Id: { - Commands::GoToTiltPercentage::DecodableType commandData; + case Commands::GoToLiftPercentage::Id: { + Commands::GoToLiftPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -961,21 +970,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::StopMotion::Id: { - Commands::StopMotion::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); - } - break; - } - case Commands::UpOrOpen::Id: { - Commands::UpOrOpen::DecodableType commandData; + case Commands::GoToTiltPercentage::Id: { + Commands::GoToTiltPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/placeholder/app2/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/placeholder/app2/zap-generated/IMClusterCommandHandler.cpp index ed53683dba764c..3187381f6a8126 100644 --- a/zzz_generated/placeholder/app2/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/placeholder/app2/zap-generated/IMClusterCommandHandler.cpp @@ -50,21 +50,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::MoveColor::Id: { - Commands::MoveColor::DecodableType commandData; + case Commands::MoveToColor::Id: { + Commands::MoveToColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToColor::Id: { - Commands::MoveToColor::DecodableType commandData; + case Commands::MoveColor::Id: { + Commands::MoveColor::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfColorControlClusterMoveToColorCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfColorControlClusterMoveColorCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -160,22 +160,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -216,12 +216,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -234,30 +234,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -372,66 +372,66 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::Move::Id: { - Commands::Move::DecodableType commandData; + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Move::Id: { + Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepWithOnOff::Id: { - Commands::StepWithOnOff::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; + case Commands::StepWithOnOff::Id: { + Commands::StepWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -509,13 +509,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -529,12 +528,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -547,21 +547,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -602,48 +602,48 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::OffWithEffect::Id: { - Commands::OffWithEffect::DecodableType commandData; + case Commands::On::Id: { + Commands::On::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::On::Id: { - Commands::On::DecodableType commandData; + case Commands::Toggle::Id: { + Commands::Toggle::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithRecallGlobalScene::Id: { - Commands::OnWithRecallGlobalScene::DecodableType commandData; + case Commands::OffWithEffect::Id: { + Commands::OffWithEffect::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithTimedOff::Id: { - Commands::OnWithTimedOff::DecodableType commandData; + case Commands::OnWithRecallGlobalScene::Id: { + Commands::OnWithRecallGlobalScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Toggle::Id: { - Commands::Toggle::DecodableType commandData; + case Commands::OnWithTimedOff::Id: { + Commands::OnWithTimedOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -675,88 +675,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } @@ -797,21 +797,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GetSceneMembership::Id: { - Commands::GetSceneMembership::DecodableType commandData; + case Commands::ViewScene::Id: { + Commands::ViewScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RecallScene::Id: { - Commands::RecallScene::DecodableType commandData; + case Commands::RemoveScene::Id: { + Commands::RemoveScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -824,30 +824,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveScene::Id: { - Commands::RemoveScene::DecodableType commandData; + case Commands::StoreScene::Id: { + Commands::StoreScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StoreScene::Id: { - Commands::StoreScene::DecodableType commandData; + case Commands::RecallScene::Id: { + Commands::RecallScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewScene::Id: { - Commands::ViewScene::DecodableType commandData; + case Commands::GetSceneMembership::Id: { + Commands::GetSceneMembership::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -916,6 +916,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::UpOrOpen::Id: { + Commands::UpOrOpen::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::DownOrClose::Id: { Commands::DownOrClose::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -925,12 +934,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToLiftPercentage::Id: { - Commands::GoToLiftPercentage::DecodableType commandData; + case Commands::StopMotion::Id: { + Commands::StopMotion::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -943,12 +952,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToTiltPercentage::Id: { - Commands::GoToTiltPercentage::DecodableType commandData; + case Commands::GoToLiftPercentage::Id: { + Commands::GoToLiftPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -961,21 +970,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::StopMotion::Id: { - Commands::StopMotion::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); - } - break; - } - case Commands::UpOrOpen::Id: { - Commands::UpOrOpen::DecodableType commandData; + case Commands::GoToTiltPercentage::Id: { + Commands::GoToTiltPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/pump-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/pump-app/zap-generated/IMClusterCommandHandler.cpp index ac07c28bad8de1..39501ee8827bc2 100644 --- a/zzz_generated/pump-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/pump-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -154,22 +154,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -201,21 +201,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::KeySetRead::Id: { - Commands::KeySetRead::DecodableType commandData; + case Commands::KeySetWrite::Id: { + Commands::KeySetWrite::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::KeySetReadAllIndices::Id: { - Commands::KeySetReadAllIndices::DecodableType commandData; + case Commands::KeySetRead::Id: { + Commands::KeySetRead::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -228,12 +228,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::KeySetWrite::Id: { - Commands::KeySetWrite::DecodableType commandData; + case Commands::KeySetReadAllIndices::Id: { + Commands::KeySetReadAllIndices::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -274,12 +274,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -292,30 +292,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -402,66 +402,66 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::Move::Id: { - Commands::Move::DecodableType commandData; + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Move::Id: { + Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepWithOnOff::Id: { - Commands::StepWithOnOff::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; + case Commands::StepWithOnOff::Id: { + Commands::StepWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -502,13 +502,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -522,12 +521,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -540,21 +540,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -633,48 +633,48 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::OffWithEffect::Id: { - Commands::OffWithEffect::DecodableType commandData; + case Commands::On::Id: { + Commands::On::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::On::Id: { - Commands::On::DecodableType commandData; + case Commands::Toggle::Id: { + Commands::Toggle::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithRecallGlobalScene::Id: { - Commands::OnWithRecallGlobalScene::DecodableType commandData; + case Commands::OffWithEffect::Id: { + Commands::OffWithEffect::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::OnWithTimedOff::Id: { - Commands::OnWithTimedOff::DecodableType commandData; + case Commands::OnWithRecallGlobalScene::Id: { + Commands::OnWithRecallGlobalScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Toggle::Id: { - Commands::Toggle::DecodableType commandData; + case Commands::OnWithTimedOff::Id: { + Commands::OnWithTimedOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOnOffClusterToggleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -706,88 +706,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } @@ -828,21 +828,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GetSceneMembership::Id: { - Commands::GetSceneMembership::DecodableType commandData; + case Commands::ViewScene::Id: { + Commands::ViewScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RecallScene::Id: { - Commands::RecallScene::DecodableType commandData; + case Commands::RemoveScene::Id: { + Commands::RemoveScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -855,30 +855,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveScene::Id: { - Commands::RemoveScene::DecodableType commandData; + case Commands::StoreScene::Id: { + Commands::StoreScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StoreScene::Id: { - Commands::StoreScene::DecodableType commandData; + case Commands::RecallScene::Id: { + Commands::RecallScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewScene::Id: { - Commands::ViewScene::DecodableType commandData; + case Commands::GetSceneMembership::Id: { + Commands::GetSceneMembership::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/pump-controller-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/pump-controller-app/zap-generated/IMClusterCommandHandler.cpp index 0ec60468e7dafa..82dce5bce34992 100644 --- a/zzz_generated/pump-controller-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/pump-controller-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -154,22 +154,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -201,21 +201,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::KeySetRead::Id: { - Commands::KeySetRead::DecodableType commandData; + case Commands::KeySetWrite::Id: { + Commands::KeySetWrite::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::KeySetReadAllIndices::Id: { - Commands::KeySetReadAllIndices::DecodableType commandData; + case Commands::KeySetRead::Id: { + Commands::KeySetRead::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -228,12 +228,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::KeySetWrite::Id: { - Commands::KeySetWrite::DecodableType commandData; + case Commands::KeySetReadAllIndices::Id: { + Commands::KeySetReadAllIndices::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupKeyManagementClusterKeySetWriteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupKeyManagementClusterKeySetReadAllIndicesCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -274,12 +274,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -292,30 +292,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -402,13 +402,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -422,12 +421,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -440,21 +440,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -524,88 +524,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/temperature-measurement-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/temperature-measurement-app/zap-generated/IMClusterCommandHandler.cpp index e8bc1ca06a36b5..ce1245902a327f 100644 --- a/zzz_generated/temperature-measurement-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/temperature-measurement-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -154,22 +154,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -201,22 +201,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateWiFiNetwork::Id: { - Commands::AddOrUpdateWiFiNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateWiFiNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateWiFiNetwork::Id: { + Commands::AddOrUpdateWiFiNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateWiFiNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -229,21 +229,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -275,88 +275,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/thermostat/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/thermostat/zap-generated/IMClusterCommandHandler.cpp index 2430d91869ab5d..8046d4c147ff23 100644 --- a/zzz_generated/thermostat/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/thermostat/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -154,22 +154,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -210,12 +210,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -228,30 +228,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -329,13 +329,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -349,12 +348,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -367,21 +367,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -413,6 +413,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::QueryImage::Id: { + Commands::QueryImage::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::ApplyUpdateRequest::Id: { Commands::ApplyUpdateRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -433,15 +442,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::QueryImage::Id: { - Commands::QueryImage::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); - } - break; - } default: { // Unrecognized command ID, error status will apply. apCommandObj->AddStatus(aCommandPath, Protocols::InteractionModel::Status::UnsupportedCommand); @@ -470,88 +470,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } @@ -592,21 +592,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GetSceneMembership::Id: { - Commands::GetSceneMembership::DecodableType commandData; + case Commands::ViewScene::Id: { + Commands::ViewScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RecallScene::Id: { - Commands::RecallScene::DecodableType commandData; + case Commands::RemoveScene::Id: { + Commands::RemoveScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -619,30 +619,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveScene::Id: { - Commands::RemoveScene::DecodableType commandData; + case Commands::StoreScene::Id: { + Commands::StoreScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StoreScene::Id: { - Commands::StoreScene::DecodableType commandData; + case Commands::RecallScene::Id: { + Commands::RecallScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewScene::Id: { - Commands::ViewScene::DecodableType commandData; + case Commands::GetSceneMembership::Id: { + Commands::GetSceneMembership::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -674,21 +674,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::ClearWeeklySchedule::Id: { - Commands::ClearWeeklySchedule::DecodableType commandData; + case Commands::SetpointRaiseLower::Id: { + Commands::SetpointRaiseLower::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfThermostatClusterClearWeeklyScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfThermostatClusterSetpointRaiseLowerCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::GetRelayStatusLog::Id: { - Commands::GetRelayStatusLog::DecodableType commandData; + case Commands::SetWeeklySchedule::Id: { + Commands::SetWeeklySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfThermostatClusterGetRelayStatusLogCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfThermostatClusterSetWeeklyScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -701,21 +701,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::SetWeeklySchedule::Id: { - Commands::SetWeeklySchedule::DecodableType commandData; + case Commands::ClearWeeklySchedule::Id: { + Commands::ClearWeeklySchedule::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfThermostatClusterSetWeeklyScheduleCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfThermostatClusterClearWeeklyScheduleCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetpointRaiseLower::Id: { - Commands::SetpointRaiseLower::DecodableType commandData; + case Commands::GetRelayStatusLog::Id: { + Commands::GetRelayStatusLog::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfThermostatClusterSetpointRaiseLowerCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfThermostatClusterGetRelayStatusLogCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/tv-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/tv-app/zap-generated/IMClusterCommandHandler.cpp index d840c181baa6d9..2f0684a20266b2 100644 --- a/zzz_generated/tv-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/tv-app/zap-generated/IMClusterCommandHandler.cpp @@ -105,23 +105,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -163,15 +163,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::HideApp::Id: { - Commands::HideApp::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfApplicationLauncherClusterHideAppCallback(apCommandObj, aCommandPath, commandData); - } - break; - } case Commands::LaunchApp::Id: { Commands::LaunchApp::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -190,6 +181,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } + case Commands::HideApp::Id: { + Commands::HideApp::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfApplicationLauncherClusterHideAppCallback(apCommandObj, aCommandPath, commandData); + } + break; + } default: { // Unrecognized command ID, error status will apply. apCommandObj->AddStatus(aCommandPath, Protocols::InteractionModel::Status::UnsupportedCommand); @@ -218,21 +218,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::RenameOutput::Id: { - Commands::RenameOutput::DecodableType commandData; + case Commands::SelectOutput::Id: { + Commands::SelectOutput::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAudioOutputClusterRenameOutputCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAudioOutputClusterSelectOutputCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SelectOutput::Id: { - Commands::SelectOutput::DecodableType commandData; + case Commands::RenameOutput::Id: { + Commands::RenameOutput::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAudioOutputClusterSelectOutputCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAudioOutputClusterRenameOutputCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -411,22 +411,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -495,66 +495,66 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::Move::Id: { - Commands::Move::DecodableType commandData; + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Move::Id: { + Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepWithOnOff::Id: { - Commands::StepWithOnOff::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; + case Commands::StepWithOnOff::Id: { + Commands::StepWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -632,39 +632,39 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::HideInputStatus::Id: { - Commands::HideInputStatus::DecodableType commandData; + case Commands::SelectInput::Id: { + Commands::SelectInput::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaInputClusterHideInputStatusCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaInputClusterSelectInputCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RenameInput::Id: { - Commands::RenameInput::DecodableType commandData; + case Commands::ShowInputStatus::Id: { + Commands::ShowInputStatus::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaInputClusterRenameInputCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaInputClusterShowInputStatusCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SelectInput::Id: { - Commands::SelectInput::DecodableType commandData; + case Commands::HideInputStatus::Id: { + Commands::HideInputStatus::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaInputClusterSelectInputCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaInputClusterHideInputStatusCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ShowInputStatus::Id: { - Commands::ShowInputStatus::DecodableType commandData; + case Commands::RenameInput::Id: { + Commands::RenameInput::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaInputClusterShowInputStatusCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaInputClusterRenameInputCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -696,39 +696,39 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::FastForward::Id: { - Commands::FastForward::DecodableType commandData; + case Commands::Play::Id: { + Commands::Play::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterFastForwardCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterPlayCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Next::Id: { - Commands::Next::DecodableType commandData; + case Commands::Pause::Id: { + Commands::Pause::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterNextCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterPauseCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Pause::Id: { - Commands::Pause::DecodableType commandData; + case Commands::StopPlayback::Id: { + Commands::StopPlayback::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterPauseCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterStopPlaybackCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Play::Id: { - Commands::Play::DecodableType commandData; + case Commands::StartOver::Id: { + Commands::StartOver::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterPlayCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterStartOverCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -741,30 +741,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::Rewind::Id: { - Commands::Rewind::DecodableType commandData; + case Commands::Next::Id: { + Commands::Next::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterRewindCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterNextCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Seek::Id: { - Commands::Seek::DecodableType commandData; + case Commands::Rewind::Id: { + Commands::Rewind::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterSeekCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterRewindCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SkipBackward::Id: { - Commands::SkipBackward::DecodableType commandData; + case Commands::FastForward::Id: { + Commands::FastForward::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterSkipBackwardCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterFastForwardCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -777,21 +777,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::StartOver::Id: { - Commands::StartOver::DecodableType commandData; + case Commands::SkipBackward::Id: { + Commands::SkipBackward::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterStartOverCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterSkipBackwardCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StopPlayback::Id: { - Commands::StopPlayback::DecodableType commandData; + case Commands::Seek::Id: { + Commands::Seek::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfMediaPlaybackClusterStopPlaybackCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfMediaPlaybackClusterSeekCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -823,13 +823,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -843,12 +842,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -861,21 +861,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -907,6 +907,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::QueryImage::Id: { + Commands::QueryImage::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::ApplyUpdateRequest::Id: { Commands::ApplyUpdateRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -927,15 +936,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::QueryImage::Id: { - Commands::QueryImage::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); - } - break; - } default: { // Unrecognized command ID, error status will apply. apCommandObj->AddStatus(aCommandPath, Protocols::InteractionModel::Status::UnsupportedCommand); @@ -1019,88 +1019,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } diff --git a/zzz_generated/tv-casting-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/tv-casting-app/zap-generated/IMClusterCommandHandler.cpp index baa70ae59c8add..da463b537e2799 100644 --- a/zzz_generated/tv-casting-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/tv-casting-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -200,22 +200,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -256,12 +256,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::AddGroupIfIdentifying::Id: { - Commands::AddGroupIfIdentifying::DecodableType commandData; + case Commands::ViewGroup::Id: { + Commands::ViewGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -274,30 +274,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveAllGroups::Id: { - Commands::RemoveAllGroups::DecodableType commandData; + case Commands::RemoveGroup::Id: { + Commands::RemoveGroup::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveGroup::Id: { - Commands::RemoveGroup::DecodableType commandData; + case Commands::RemoveAllGroups::Id: { + Commands::RemoveAllGroups::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterRemoveGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterRemoveAllGroupsCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewGroup::Id: { - Commands::ViewGroup::DecodableType commandData; + case Commands::AddGroupIfIdentifying::Id: { + Commands::AddGroupIfIdentifying::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGroupsClusterViewGroupCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGroupsClusterAddGroupIfIdentifyingCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -412,66 +412,66 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::Move::Id: { - Commands::Move::DecodableType commandData; + case Commands::MoveToLevel::Id: { + Commands::MoveToLevel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevel::Id: { - Commands::MoveToLevel::DecodableType commandData; + case Commands::Move::Id: { + Commands::Move::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveToLevelWithOnOff::Id: { - Commands::MoveToLevelWithOnOff::DecodableType commandData; + case Commands::Step::Id: { + Commands::Step::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::MoveWithOnOff::Id: { - Commands::MoveWithOnOff::DecodableType commandData; + case Commands::Stop::Id: { + Commands::Stop::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Step::Id: { - Commands::Step::DecodableType commandData; + case Commands::MoveToLevelWithOnOff::Id: { + Commands::MoveToLevelWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveToLevelWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StepWithOnOff::Id: { - Commands::StepWithOnOff::DecodableType commandData; + case Commands::MoveWithOnOff::Id: { + Commands::MoveWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterMoveWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::Stop::Id: { - Commands::Stop::DecodableType commandData; + case Commands::StepWithOnOff::Id: { + Commands::StepWithOnOff::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfLevelControlClusterStopCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfLevelControlClusterStepWithOnOffCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -512,13 +512,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -532,12 +531,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -550,21 +550,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -596,6 +596,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::QueryImage::Id: { + Commands::QueryImage::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::ApplyUpdateRequest::Id: { Commands::ApplyUpdateRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -616,15 +625,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::QueryImage::Id: { - Commands::QueryImage::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(apCommandObj, aCommandPath, commandData); - } - break; - } default: { // Unrecognized command ID, error status will apply. apCommandObj->AddStatus(aCommandPath, Protocols::InteractionModel::Status::UnsupportedCommand); @@ -708,88 +708,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } @@ -830,21 +830,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GetSceneMembership::Id: { - Commands::GetSceneMembership::DecodableType commandData; + case Commands::ViewScene::Id: { + Commands::ViewScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RecallScene::Id: { - Commands::RecallScene::DecodableType commandData; + case Commands::RemoveScene::Id: { + Commands::RemoveScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -857,30 +857,30 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::RemoveScene::Id: { - Commands::RemoveScene::DecodableType commandData; + case Commands::StoreScene::Id: { + Commands::StoreScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterRemoveSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::StoreScene::Id: { - Commands::StoreScene::DecodableType commandData; + case Commands::RecallScene::Id: { + Commands::RecallScene::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterStoreSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterRecallSceneCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ViewScene::Id: { - Commands::ViewScene::DecodableType commandData; + case Commands::GetSceneMembership::Id: { + Commands::GetSceneMembership::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfScenesClusterViewSceneCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfScenesClusterGetSceneMembershipCallback(apCommandObj, aCommandPath, commandData); } break; } diff --git a/zzz_generated/window-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/window-app/zap-generated/IMClusterCommandHandler.cpp index cc8701d28acbf0..2b158764ac9a10 100644 --- a/zzz_generated/window-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/window-app/zap-generated/IMClusterCommandHandler.cpp @@ -50,23 +50,23 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::OpenBasicCommissioningWindow::Id: { - Commands::OpenBasicCommissioningWindow::DecodableType commandData; + case Commands::OpenCommissioningWindow::Id: { + Commands::OpenCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( - apCommandObj, aCommandPath, commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, + commandData); } break; } - case Commands::OpenCommissioningWindow::Id: { - Commands::OpenCommissioningWindow::DecodableType commandData; + case Commands::OpenBasicCommissioningWindow::Id: { + Commands::OpenBasicCommissioningWindow::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallback( + apCommandObj, aCommandPath, commandData); } break; } @@ -117,22 +117,22 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::CommissioningComplete::Id: { - Commands::CommissioningComplete::DecodableType commandData; + case Commands::SetRegulatoryConfig::Id: { + Commands::SetRegulatoryConfig::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::SetRegulatoryConfig::Id: { - Commands::SetRegulatoryConfig::DecodableType commandData; + case Commands::CommissioningComplete::Id: { + Commands::CommissioningComplete::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfGeneralCommissioningClusterCommissioningCompleteCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -219,13 +219,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddOrUpdateThreadNetwork::Id: { - Commands::AddOrUpdateThreadNetwork::DecodableType commandData; + case Commands::ScanNetworks::Id: { + Commands::ScanNetworks::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -239,12 +238,13 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ConnectNetwork::Id: { - Commands::ConnectNetwork::DecodableType commandData; + case Commands::AddOrUpdateThreadNetwork::Id: { + Commands::AddOrUpdateThreadNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -257,21 +257,21 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::ReorderNetwork::Id: { - Commands::ReorderNetwork::DecodableType commandData; + case Commands::ConnectNetwork::Id: { + Commands::ConnectNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterConnectNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::ScanNetworks::Id: { - Commands::ScanNetworks::DecodableType commandData; + case Commands::ReorderNetwork::Id: { + Commands::ReorderNetwork::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfNetworkCommissioningClusterScanNetworksCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfNetworkCommissioningClusterReorderNetworkCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -303,88 +303,88 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { - case Commands::AddNOC::Id: { - Commands::AddNOC::DecodableType commandData; + case Commands::AttestationRequest::Id: { + Commands::AttestationRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AddTrustedRootCertificate::Id: { - Commands::AddTrustedRootCertificate::DecodableType commandData; + case Commands::CertificateChainRequest::Id: { + Commands::CertificateChainRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { wasHandled = - emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); + emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::AttestationRequest::Id: { - Commands::AttestationRequest::DecodableType commandData; + case Commands::CSRRequest::Id: { + Commands::CSRRequest::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterAttestationRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CSRRequest::Id: { - Commands::CSRRequest::DecodableType commandData; + case Commands::AddNOC::Id: { + Commands::AddNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterCSRRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterAddNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::CertificateChainRequest::Id: { - Commands::CertificateChainRequest::DecodableType commandData; + case Commands::UpdateNOC::Id: { + Commands::UpdateNOC::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = - emberAfOperationalCredentialsClusterCertificateChainRequestCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveFabric::Id: { - Commands::RemoveFabric::DecodableType commandData; + case Commands::UpdateFabricLabel::Id: { + Commands::UpdateFabricLabel::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::RemoveTrustedRootCertificate::Id: { - Commands::RemoveTrustedRootCertificate::DecodableType commandData; + case Commands::RemoveFabric::Id: { + Commands::RemoveFabric::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, - commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveFabricCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateFabricLabel::Id: { - Commands::UpdateFabricLabel::DecodableType commandData; + case Commands::AddTrustedRootCertificate::Id: { + Commands::AddTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateFabricLabelCallback(apCommandObj, aCommandPath, commandData); + wasHandled = + emberAfOperationalCredentialsClusterAddTrustedRootCertificateCallback(apCommandObj, aCommandPath, commandData); } break; } - case Commands::UpdateNOC::Id: { - Commands::UpdateNOC::DecodableType commandData; + case Commands::RemoveTrustedRootCertificate::Id: { + Commands::RemoveTrustedRootCertificate::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfOperationalCredentialsClusterUpdateNOCCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfOperationalCredentialsClusterRemoveTrustedRootCertificateCallback(apCommandObj, aCommandPath, + commandData); } break; } @@ -490,6 +490,15 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP { switch (aCommandPath.mCommandId) { + case Commands::UpOrOpen::Id: { + Commands::UpOrOpen::DecodableType commandData; + TLVError = DataModel::Decode(aDataTlv, commandData); + if (TLVError == CHIP_NO_ERROR) + { + wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + } + break; + } case Commands::DownOrClose::Id: { Commands::DownOrClose::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -499,12 +508,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToLiftPercentage::Id: { - Commands::GoToLiftPercentage::DecodableType commandData; + case Commands::StopMotion::Id: { + Commands::StopMotion::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -517,12 +526,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::GoToTiltPercentage::Id: { - Commands::GoToTiltPercentage::DecodableType commandData; + case Commands::GoToLiftPercentage::Id: { + Commands::GoToLiftPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToLiftPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } @@ -535,21 +544,12 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::StopMotion::Id: { - Commands::StopMotion::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfWindowCoveringClusterStopMotionCallback(apCommandObj, aCommandPath, commandData); - } - break; - } - case Commands::UpOrOpen::Id: { - Commands::UpOrOpen::DecodableType commandData; + case Commands::GoToTiltPercentage::Id: { + Commands::GoToTiltPercentage::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); if (TLVError == CHIP_NO_ERROR) { - wasHandled = emberAfWindowCoveringClusterUpOrOpenCallback(apCommandObj, aCommandPath, commandData); + wasHandled = emberAfWindowCoveringClusterGoToTiltPercentageCallback(apCommandObj, aCommandPath, commandData); } break; } From 927e23771ab85502341d09646da477a9ce0ee5d7 Mon Sep 17 00:00:00 2001 From: Marc Lepage <67919234+mlepage-google@users.noreply.github.com> Date: Fri, 25 Mar 2022 17:11:09 -0400 Subject: [PATCH 06/23] Add custom privileges for opcreds cluster (#16590) One attribute and most commands require administer privilege. (This cluster has no events.) Commissioning chip-all-clusters-app via chip-tool on Linux results in the following commands and their required privilege: GeneralCommissioning/ArmFailSafe --> 0x30 0x0 --> operate GeneralCommissioning/SetRegulatoryConfig --> 0x30 0x2 --> operate OperationalCredentials/CertificateChainRequest --> 0x3e 0x2 --> administer OperationalCredentials/CertificateChainRequest --> 0x3e 0x2 --> administer OperationalCredentials/AttestationRequest --> 0x3e 0x0 --> administer OperationalCredentials/CSRRequest --> 0x3e 0x4 --> administer OperationalCredentials/AddTrustedRootCertificate --> 0x3e 0xb --> administer OperationalCredentials/AddNOC --> 0x3e 0x6 --> administer GeneralCommissioning/CommissioningComplete --> 0x30 0x4 --> operate The last is satisfied over CASE (via the AddNOC installed ACL) and the others before it are satisfied by implicit administer privilege over PASE during commissioning. --- .../chip/operational-credentials-cluster.xml | 14 ++++++++- .../all-clusters-app/zap-generated/access.h | 30 +++++++++++++++++++ .../bridge-app/zap-generated/access.h | 30 +++++++++++++++++++ .../door-lock-app/zap-generated/access.h | 30 +++++++++++++++++++ .../light-switch-app/zap-generated/access.h | 30 +++++++++++++++++++ .../lighting-app/zap-generated/access.h | 30 +++++++++++++++++++ zzz_generated/lock-app/zap-generated/access.h | 30 +++++++++++++++++++ .../log-source-app/zap-generated/access.h | 21 +++++++++++++ .../ota-provider-app/zap-generated/access.h | 24 +++++++++++++++ .../ota-requestor-app/zap-generated/access.h | 30 +++++++++++++++++++ .../placeholder/app1/zap-generated/access.h | 27 +++++++++++++++++ .../placeholder/app2/zap-generated/access.h | 27 +++++++++++++++++ zzz_generated/pump-app/zap-generated/access.h | 30 +++++++++++++++++++ .../zap-generated/access.h | 30 +++++++++++++++++++ .../zap-generated/access.h | 30 +++++++++++++++++++ .../thermostat/zap-generated/access.h | 30 +++++++++++++++++++ zzz_generated/tv-app/zap-generated/access.h | 30 +++++++++++++++++++ .../tv-casting-app/zap-generated/access.h | 30 +++++++++++++++++++ .../window-app/zap-generated/access.h | 30 +++++++++++++++++++ 19 files changed, 532 insertions(+), 1 deletion(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml index b61590f299b1d9..e4dcb1e46433d3 100644 --- a/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml @@ -55,7 +55,10 @@ limitations under the License. OPERATIONAL_CREDENTIALS_CLUSTER This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. - NOCs + + NOCs + + Fabrics SupportedFabrics CommissionedFabrics @@ -65,6 +68,7 @@ limitations under the License. Sender is requesting attestation information from the receiver. + @@ -76,6 +80,7 @@ limitations under the License. Sender is requesting a device attestation certificate from the receiver. + @@ -86,6 +91,7 @@ limitations under the License. Sender is requesting a certificate signing request (CSR) from the receiver. + @@ -102,12 +108,14 @@ limitations under the License. + Sender is requesting to update the node operational certificates. + @@ -120,21 +128,25 @@ limitations under the License. This command SHALL be used by an Administrative Node to set the user-visible Label field for a given Fabric, as reflected by entries in the Fabrics attribute. + This command is used by Administrative Nodes to remove a given fabric index and delete all associated fabric-scoped data. + This command SHALL add a Trusted Root CA Certificate, provided as its CHIP Certificate representation. + This command SHALL remove a Trusted Root CA Certificate, provided as its CHIP Certificate representation. + diff --git a/zzz_generated/all-clusters-app/zap-generated/access.h b/zzz_generated/all-clusters-app/zap-generated/access.h index 0cb772bd587909..ce04636b5def99 100644 --- a/zzz_generated/all-clusters-app/zap-generated/access.h +++ b/zzz_generated/all-clusters-app/zap-generated/access.h @@ -44,6 +44,7 @@ /* Cluster: Door Lock, Attribute: WrongCodeEntryLimit, Privilege: view */ \ /* Cluster: Door Lock, Attribute: UserCodeTemporaryDisableTime, Privilege: view */ \ /* Cluster: Door Lock, Attribute: RequirePINforRemoteOperation, Privilege: view */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ /* Cluster: Window Covering, Attribute: Mode, Privilege: view */ \ } @@ -64,6 +65,7 @@ /* Cluster: Door Lock, Attribute: WrongCodeEntryLimit, Privilege: view */ \ /* Cluster: Door Lock, Attribute: UserCodeTemporaryDisableTime, Privilege: view */ \ /* Cluster: Door Lock, Attribute: RequirePINforRemoteOperation, Privilege: view */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ /* Cluster: Window Covering, Attribute: Mode, Privilege: view */ \ } @@ -84,6 +86,7 @@ /* Cluster: Door Lock, Attribute: WrongCodeEntryLimit, Privilege: view */ \ /* Cluster: Door Lock, Attribute: UserCodeTemporaryDisableTime, Privilege: view */ \ /* Cluster: Door Lock, Attribute: RequirePINforRemoteOperation, Privilege: view */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ /* Cluster: Window Covering, Attribute: Mode, Privilege: view */ \ } @@ -159,6 +162,15 @@ 257, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command @@ -169,6 +181,15 @@ 34, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ 36, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ 38, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command @@ -179,6 +200,15 @@ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/bridge-app/zap-generated/access.h b/zzz_generated/bridge-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/bridge-app/zap-generated/access.h +++ b/zzz_generated/bridge-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/door-lock-app/zap-generated/access.h b/zzz_generated/door-lock-app/zap-generated/access.h index da516c3943bdc8..9cde59152c3061 100644 --- a/zzz_generated/door-lock-app/zap-generated/access.h +++ b/zzz_generated/door-lock-app/zap-generated/access.h @@ -40,6 +40,7 @@ /* Cluster: Door Lock, Attribute: WrongCodeEntryLimit, Privilege: view */ \ /* Cluster: Door Lock, Attribute: UserCodeTemporaryDisableTime, Privilege: view */ \ /* Cluster: Door Lock, Attribute: RequirePINforRemoteOperation, Privilege: view */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute @@ -55,6 +56,7 @@ /* Cluster: Door Lock, Attribute: WrongCodeEntryLimit, Privilege: view */ \ /* Cluster: Door Lock, Attribute: UserCodeTemporaryDisableTime, Privilege: view */ \ /* Cluster: Door Lock, Attribute: RequirePINforRemoteOperation, Privilege: view */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute @@ -70,6 +72,7 @@ /* Cluster: Door Lock, Attribute: WrongCodeEntryLimit, Privilege: view */ \ /* Cluster: Door Lock, Attribute: UserCodeTemporaryDisableTime, Privilege: view */ \ /* Cluster: Door Lock, Attribute: RequirePINforRemoteOperation, Privilege: view */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -135,6 +138,15 @@ 257, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ 257, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command @@ -151,6 +163,15 @@ 34, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ 36, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ 38, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command @@ -167,6 +188,15 @@ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: SetCredential, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: GetCredentialStatus, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Door Lock, Command: ClearCredential, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/light-switch-app/zap-generated/access.h b/zzz_generated/light-switch-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/light-switch-app/zap-generated/access.h +++ b/zzz_generated/light-switch-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/lighting-app/zap-generated/access.h b/zzz_generated/lighting-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/lighting-app/zap-generated/access.h +++ b/zzz_generated/lighting-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/lock-app/zap-generated/access.h b/zzz_generated/lock-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/lock-app/zap-generated/access.h +++ b/zzz_generated/lock-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/log-source-app/zap-generated/access.h b/zzz_generated/log-source-app/zap-generated/access.h index f67cb03aee26a9..53d4533c1c1eb4 100644 --- a/zzz_generated/log-source-app/zap-generated/access.h +++ b/zzz_generated/log-source-app/zap-generated/access.h @@ -69,14 +69,35 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/ota-provider-app/zap-generated/access.h b/zzz_generated/ota-provider-app/zap-generated/access.h index f67cb03aee26a9..9ddfd7e5d08d5d 100644 --- a/zzz_generated/ota-provider-app/zap-generated/access.h +++ b/zzz_generated/ota-provider-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,35 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/ota-requestor-app/zap-generated/access.h b/zzz_generated/ota-requestor-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/ota-requestor-app/zap-generated/access.h +++ b/zzz_generated/ota-requestor-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/placeholder/app1/zap-generated/access.h b/zzz_generated/placeholder/app1/zap-generated/access.h index d654f8e81b7060..edd14ab9b3dcd0 100644 --- a/zzz_generated/placeholder/app1/zap-generated/access.h +++ b/zzz_generated/placeholder/app1/zap-generated/access.h @@ -63,14 +63,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/placeholder/app2/zap-generated/access.h b/zzz_generated/placeholder/app2/zap-generated/access.h index d654f8e81b7060..edd14ab9b3dcd0 100644 --- a/zzz_generated/placeholder/app2/zap-generated/access.h +++ b/zzz_generated/placeholder/app2/zap-generated/access.h @@ -63,14 +63,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/pump-app/zap-generated/access.h b/zzz_generated/pump-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/pump-app/zap-generated/access.h +++ b/zzz_generated/pump-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/pump-controller-app/zap-generated/access.h b/zzz_generated/pump-controller-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/pump-controller-app/zap-generated/access.h +++ b/zzz_generated/pump-controller-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/temperature-measurement-app/zap-generated/access.h b/zzz_generated/temperature-measurement-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/temperature-measurement-app/zap-generated/access.h +++ b/zzz_generated/temperature-measurement-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/thermostat/zap-generated/access.h b/zzz_generated/thermostat/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/thermostat/zap-generated/access.h +++ b/zzz_generated/thermostat/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/tv-app/zap-generated/access.h b/zzz_generated/tv-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/tv-app/zap-generated/access.h +++ b/zzz_generated/tv-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/tv-casting-app/zap-generated/access.h b/zzz_generated/tv-casting-app/zap-generated/access.h index f67cb03aee26a9..8da3ec86ed72da 100644 --- a/zzz_generated/tv-casting-app/zap-generated/access.h +++ b/zzz_generated/tv-casting-app/zap-generated/access.h @@ -31,18 +31,21 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, *attribute*, privilege) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } // Parallel array data (cluster, attribute, *privilege*) for read attribute #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// @@ -69,14 +72,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// diff --git a/zzz_generated/window-app/zap-generated/access.h b/zzz_generated/window-app/zap-generated/access.h index 503df86a1df249..30484436e18450 100644 --- a/zzz_generated/window-app/zap-generated/access.h +++ b/zzz_generated/window-app/zap-generated/access.h @@ -31,6 +31,7 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__CLUSTER { \ 31, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 31, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ /* Cluster: Window Covering, Attribute: Mode, Privilege: view */ \ } @@ -38,6 +39,7 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__ATTRIBUTE { \ 0, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ 1, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + 0, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ /* Cluster: Window Covering, Attribute: Mode, Privilege: view */ \ } @@ -45,6 +47,7 @@ #define GENERATED_ACCESS_READ_ATTRIBUTE__PRIVILEGE { \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: ACL, Privilege: administer */ \ kMatterAccessPrivilegeAdminister, /* Cluster: Access Control, Attribute: Extension, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Attribute: NOCs, Privilege: administer */ \ /* Cluster: Window Covering, Attribute: Mode, Privilege: view */ \ } @@ -75,14 +78,41 @@ // Parallel array data (*cluster*, command, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__CLUSTER { \ + 62, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 62, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, *command*, privilege) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__COMMAND { \ + 0, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + 2, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + 4, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + 6, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + 7, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + 9, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + 10, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + 11, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + 12, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } // Parallel array data (cluster, command, *privilege*) for invoke command #define GENERATED_ACCESS_INVOKE_COMMAND__PRIVILEGE { \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AttestationRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CertificateChainRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: CSRRequest, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateNOC, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: UpdateFabricLabel, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveFabric, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: AddTrustedRootCertificate, Privilege: administer */ \ + kMatterAccessPrivilegeAdminister, /* Cluster: Operational Credentials, Command: RemoveTrustedRootCertificate, Privilege: administer */ \ } //////////////////////////////////////////////////////////////////////////////// From a57bd4ddf6893d419e3662f948dfff338aba85b8 Mon Sep 17 00:00:00 2001 From: chrisdecenzo <61757564+chrisdecenzo@users.noreply.github.com> Date: Fri, 25 Mar 2022 15:34:11 -0700 Subject: [PATCH 07/23] Address DNS-SD issues (#16625) * fix PH, allow for longer extended discovery timeout * ci fix * address comments * fix v6-only tv-app casting * fix CI --- .../tv-common/include/CHIPProjectAppConfig.h | 10 ++++++- src/app/server/Dnssd.cpp | 20 +++++++------- src/app/server/Dnssd.h | 4 +-- src/include/platform/CHIPDeviceConfig.h | 4 ++- .../UserDirectedCommissioningServer.cpp | 26 ++++++++++++++++--- 5 files changed, 47 insertions(+), 17 deletions(-) diff --git a/examples/tv-app/tv-common/include/CHIPProjectAppConfig.h b/examples/tv-app/tv-common/include/CHIPProjectAppConfig.h index e660c0747b93f3..e1e7c4d913d559 100644 --- a/examples/tv-app/tv-common/include/CHIPProjectAppConfig.h +++ b/examples/tv-app/tv-common/include/CHIPProjectAppConfig.h @@ -33,19 +33,27 @@ // TVs need to be both commissioners and commissionees #define CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE 1 +// TVs that are not commissionees, +// or that don't automatically enter commissioning mode should set this to 0 +#define CHIP_DEVICE_CONFIG_ENABLE_PAIRING_AUTOSTART 1 + // TVs do not typically need this - enable for debugging // #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT 1 +// Enable extended discovery, set timeout to 24 hours #define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1 +#define CHIP_DEVICE_CONFIG_EXTENDED_DISCOVERY_TIMEOUT_SECS (24 * 60 * 60) +// Advertise TV device type in DNS-SD #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE 1 #define CHIP_DEVICE_CONFIG_DEVICE_TYPE 35 // 0x0023 = 35 = Video Player +// Include device name in discovery for casting use case #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_NAME 1 - #define CHIP_DEVICE_CONFIG_DEVICE_NAME "Test TV" +// Enable app platform #define CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED 1 // overrides CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT in CHIPProjectConfig diff --git a/src/app/server/Dnssd.cpp b/src/app/server/Dnssd.cpp index 59cefa261346da..e49255050ce448 100644 --- a/src/app/server/Dnssd.cpp +++ b/src/app/server/Dnssd.cpp @@ -84,15 +84,15 @@ bool DnssdServer::HaveOperationalCredentials() #if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY -void DnssdServer::SetExtendedDiscoveryTimeoutSecs(int16_t secs) +void DnssdServer::SetExtendedDiscoveryTimeoutSecs(int32_t secs) { - ChipLogDetail(Discovery, "Setting extended discovery timeout to %" PRId16 "s", secs); + ChipLogDetail(Discovery, "Setting extended discovery timeout to %" PRId32 "s", secs); chip::DeviceLayer::PersistedStorage::KeyValueStoreMgr().Put(DefaultStorageKeyAllocator::DNSExtendedDiscoveryTimeout(), secs); } -int16_t DnssdServer::GetExtendedDiscoveryTimeoutSecs() +int32_t DnssdServer::GetExtendedDiscoveryTimeoutSecs() { - int16_t secs; + int32_t secs; CHIP_ERROR err = chip::DeviceLayer::PersistedStorage::KeyValueStoreMgr().Get( DefaultStorageKeyAllocator::DNSExtendedDiscoveryTimeout(), &secs); @@ -199,7 +199,7 @@ void DnssdServer::OnDiscoveryExpiration(System::Layer * aSystemLayer, void * aAp ChipLogDetail(Discovery, "OnDiscoveryExpiration callback for valid session"); #if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY - int16_t extTimeout = GetExtendedDiscoveryTimeoutSecs(); + int32_t extTimeout = GetExtendedDiscoveryTimeoutSecs(); if (extTimeout != CHIP_DEVICE_CONFIG_DISCOVERY_DISABLED) { CHIP_ERROR err = AdvertiseCommissionableNode(chip::Dnssd::CommissioningMode::kDisabled); @@ -232,16 +232,16 @@ CHIP_ERROR DnssdServer::ScheduleDiscoveryExpiration() #if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY CHIP_ERROR DnssdServer::ScheduleExtendedDiscoveryExpiration() { - int16_t extendedDiscoveryTimeoutSecs = GetExtendedDiscoveryTimeoutSecs(); + int32_t extendedDiscoveryTimeoutSecs = GetExtendedDiscoveryTimeoutSecs(); if (extendedDiscoveryTimeoutSecs == CHIP_DEVICE_CONFIG_DISCOVERY_NO_TIMEOUT) { return CHIP_NO_ERROR; } - ChipLogDetail(Discovery, "Scheduling extended discovery timeout in %" PRId16 "s", extendedDiscoveryTimeoutSecs); + ChipLogDetail(Discovery, "Scheduling extended discovery timeout in %" PRId32 "s", extendedDiscoveryTimeoutSecs); - mExtendedDiscoveryExpiration = mTimeSource.GetMonotonicTimestamp() + System::Clock::Seconds16(extendedDiscoveryTimeoutSecs); + mExtendedDiscoveryExpiration = mTimeSource.GetMonotonicTimestamp() + System::Clock::Seconds32(extendedDiscoveryTimeoutSecs); - return DeviceLayer::SystemLayer().StartTimer(System::Clock::Seconds16(extendedDiscoveryTimeoutSecs), + return DeviceLayer::SystemLayer().StartTimer(System::Clock::Seconds32(extendedDiscoveryTimeoutSecs), HandleExtendedDiscoveryExpiration, nullptr); } #endif // CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY @@ -378,7 +378,7 @@ CHIP_ERROR DnssdServer::Advertise(bool commissionableNode, chip::Dnssd::Commissi advertiseParameters.SetMRPConfig(GetLocalMRPConfig()).SetTcpSupported(Optional(INET_CONFIG_ENABLE_TCP_ENDPOINT)); - if (mode != chip::Dnssd::CommissioningMode::kEnabledEnhanced) + if (!HaveOperationalCredentials()) { if (DeviceLayer::ConfigurationMgr().GetInitialPairingHint(value) != CHIP_NO_ERROR) { diff --git a/src/app/server/Dnssd.h b/src/app/server/Dnssd.h index efc7b86ea5ce08..5724d84a2f3dc1 100644 --- a/src/app/server/Dnssd.h +++ b/src/app/server/Dnssd.h @@ -88,7 +88,7 @@ class DLL_EXPORT DnssdServer #if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY /// Sets the extended discovery timeout. Value will be persisted across reboots - void SetExtendedDiscoveryTimeoutSecs(int16_t secs); + void SetExtendedDiscoveryTimeoutSecs(int32_t secs); /// Callback from Extended Discovery Expiration timer /// Checks if extended discovery has expired and if so, @@ -173,7 +173,7 @@ class DLL_EXPORT DnssdServer #if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY /// get the current extended discovery timeout (from persistent storage) - int16_t GetExtendedDiscoveryTimeoutSecs(); + int32_t GetExtendedDiscoveryTimeoutSecs(); /// schedule next extended discovery expiration CHIP_ERROR ScheduleExtendedDiscoveryExpiration(); diff --git a/src/include/platform/CHIPDeviceConfig.h b/src/include/platform/CHIPDeviceConfig.h index 7dd950f32a825a..53405932479738 100644 --- a/src/include/platform/CHIPDeviceConfig.h +++ b/src/include/platform/CHIPDeviceConfig.h @@ -1233,11 +1233,13 @@ * Default time in seconds that a device will advertise commissionable node discovery * after commissioning mode ends. This value can be overridden by the user. * - * Only valid when CCHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY==1 + * Only valid when CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY==1 */ #define CHIP_DEVICE_CONFIG_DISCOVERY_DISABLED 0 #define CHIP_DEVICE_CONFIG_DISCOVERY_NO_TIMEOUT -1 +#ifndef CHIP_DEVICE_CONFIG_EXTENDED_DISCOVERY_TIMEOUT_SECS #define CHIP_DEVICE_CONFIG_EXTENDED_DISCOVERY_TIMEOUT_SECS (15 * 60) +#endif /** * CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE diff --git a/src/protocols/user_directed_commissioning/UserDirectedCommissioningServer.cpp b/src/protocols/user_directed_commissioning/UserDirectedCommissioningServer.cpp index b5b7d43a8a507c..cf46a3c6e8afc4 100644 --- a/src/protocols/user_directed_commissioning/UserDirectedCommissioningServer.cpp +++ b/src/protocols/user_directed_commissioning/UserDirectedCommissioningServer.cpp @@ -111,12 +111,12 @@ void UserDirectedCommissioningServer::OnCommissionableNodeFound(const Dnssd::Dis { if (nodeData.numIPs == 0) { - ChipLogError(AppServer, "SetUDCClientProcessingState no IP addresses returned for instance name=%s", nodeData.instanceName); + ChipLogError(AppServer, "OnCommissionableNodeFound no IP addresses returned for instance name=%s", nodeData.instanceName); return; } if (nodeData.port == 0) { - ChipLogError(AppServer, "SetUDCClientProcessingState no port returned for instance name=%s", nodeData.instanceName); + ChipLogError(AppServer, "OnCommissionableNodeFound no port returned for instance name=%s", nodeData.instanceName); return; } @@ -127,7 +127,8 @@ void UserDirectedCommissioningServer::OnCommissionableNodeFound(const Dnssd::Dis (int) client->GetUDCClientProcessingState(), (int) UDCClientProcessingState::kPromptingUser); client->SetUDCClientProcessingState(UDCClientProcessingState::kPromptingUser); - // currently IPv6 addresses do not work for some reason +#if INET_CONFIG_ENABLE_IPV4 + // prefer IPv4 if its an option bool foundV4 = false; for (unsigned i = 0; i < nodeData.numIPs; ++i) { @@ -143,6 +144,25 @@ void UserDirectedCommissioningServer::OnCommissionableNodeFound(const Dnssd::Dis { client->SetPeerAddress(chip::Transport::PeerAddress::UDP(nodeData.ipAddress[0], nodeData.port)); } +#else // INET_CONFIG_ENABLE_IPV4 + // if we only support V6, then try to find a v6 address + bool foundV6 = false; + for (unsigned i = 0; i < nodeData.numIPs; ++i) + { + if (nodeData.ipAddress[i].IsIPv6()) + { + foundV6 = true; + client->SetPeerAddress(chip::Transport::PeerAddress::UDP(nodeData.ipAddress[i], nodeData.port)); + break; + } + } + // last resort, try with what we have + if (!foundV6) + { + ChipLogError(AppServer, "OnCommissionableNodeFound no v6 returned for instance name=%s", nodeData.instanceName); + client->SetPeerAddress(chip::Transport::PeerAddress::UDP(nodeData.ipAddress[0], nodeData.port)); + } +#endif // INET_CONFIG_ENABLE_IPV4 client->SetDeviceName(nodeData.deviceName); client->SetLongDiscriminator(nodeData.longDiscriminator); From 680499a508e520b32a5d7fbed403cf835a120ba3 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 25 Mar 2022 18:42:37 -0400 Subject: [PATCH 08/23] Fix compile for iOS CHIPTool. (#16688) --- .../Temperature Sensor/TemperatureSensorViewController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m b/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m index bb003b634505ba..a701e7f5be1866 100644 --- a/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m +++ b/src/darwin/CHIPTool/CHIPTool/View Controllers/Temperature Sensor/TemperatureSensorViewController.m @@ -224,6 +224,7 @@ - (void)reportFromUserEnteredSettings minInterval:minIntervalSeconds maxInterval:maxIntervalSeconds params:nil + cacheContainer:nil reportHandler:^(NSArray * _Nullable reports, NSError * _Nullable error) { if (error) { NSLog(@"Status: update reportAttributeMeasuredValue completed with error %@", From fd52919f1ed813245859c811e1e49e35ae462aad Mon Sep 17 00:00:00 2001 From: Jean-Francois Penven <67962328+jepenven-silabs@users.noreply.github.com> Date: Fri, 25 Mar 2022 21:43:47 -0400 Subject: [PATCH 09/23] [Inet] Add TCPEndpointImpl for OpenThread (#16671) * Add TCPEndpointImpl for OpenThread --- examples/light-switch-app/efr32/args.gni | 1 - examples/lighting-app/efr32/args.gni | 1 - examples/lock-app/efr32/args.gni | 1 - examples/persistent-storage/qpg/args.gni | 2 +- examples/window-app/efr32/args.gni | 1 - src/app/server/Server.cpp | 4 +- src/inet/BUILD.gn | 26 +---- src/inet/EndPointStateOpenThread.h | 49 ++++++++++ src/inet/TCPEndPointImplOpenThread.cpp | 96 +++++++++++++++++++ src/inet/TCPEndPointImplOpenThread.h | 73 ++++++++++++++ ...read.cpp => UDPEndPointImplOpenThread.cpp} | 2 +- ...enThread.h => UDPEndPointImplOpenThread.h} | 3 +- src/inet/inet.gni | 4 +- src/platform/EFR32/args.gni | 3 + src/platform/EFR32/wifi_args.gni | 1 + ...ThreadStackManagerImpl_OpenThread_LwIP.cpp | 4 +- src/system/BUILD.gn | 2 +- src/system/SystemPacketBuffer.h | 4 +- src/system/system.gni | 4 +- src/test_driver/efr32/args.gni | 4 + src/transport/raw/UDP.h | 4 +- 21 files changed, 249 insertions(+), 40 deletions(-) create mode 100644 src/inet/EndPointStateOpenThread.h create mode 100644 src/inet/TCPEndPointImplOpenThread.cpp create mode 100644 src/inet/TCPEndPointImplOpenThread.h rename src/inet/{UDPEndPointImpl_OpenThread.cpp => UDPEndPointImplOpenThread.cpp} (99%) rename src/inet/{UDPEndPointImpl_OpenThread.h => UDPEndPointImplOpenThread.h} (95%) diff --git a/examples/light-switch-app/efr32/args.gni b/examples/light-switch-app/efr32/args.gni index 076cf81f31943a..1a0052682125a4 100644 --- a/examples/light-switch-app/efr32/args.gni +++ b/examples/light-switch-app/efr32/args.gni @@ -25,4 +25,3 @@ declare_args() { pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip" pw_assert_BACKEND = "$dir_pw_assert_log" chip_enable_openthread = true -chip_system_config_use_open_thread_udp = true diff --git a/examples/lighting-app/efr32/args.gni b/examples/lighting-app/efr32/args.gni index 076cf81f31943a..1a0052682125a4 100644 --- a/examples/lighting-app/efr32/args.gni +++ b/examples/lighting-app/efr32/args.gni @@ -25,4 +25,3 @@ declare_args() { pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip" pw_assert_BACKEND = "$dir_pw_assert_log" chip_enable_openthread = true -chip_system_config_use_open_thread_udp = true diff --git a/examples/lock-app/efr32/args.gni b/examples/lock-app/efr32/args.gni index 672df17cd1488b..a32b60b7164b44 100644 --- a/examples/lock-app/efr32/args.gni +++ b/examples/lock-app/efr32/args.gni @@ -23,6 +23,5 @@ declare_args() { } chip_enable_openthread = true -chip_system_config_use_open_thread_udp = true pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip" pw_assert_BACKEND = "$dir_pw_assert_log" diff --git a/examples/persistent-storage/qpg/args.gni b/examples/persistent-storage/qpg/args.gni index a21c418f1f82b0..f8ce0d24090dd7 100644 --- a/examples/persistent-storage/qpg/args.gni +++ b/examples/persistent-storage/qpg/args.gni @@ -18,7 +18,7 @@ import("${chip_root}/examples/platform/qpg/args.gni") qpg_sdk_target = get_label_info(":sdk", "label_no_toolchain") chip_enable_openthread = false chip_openthread_ftd = false -chip_system_config_use_open_thread_udp = false +chip_system_config_use_open_thread_inet_endpoints = false declare_args() { # Disable lock tracking, since our FreeRTOS configuration does not set diff --git a/examples/window-app/efr32/args.gni b/examples/window-app/efr32/args.gni index 4a0c6a75120019..8db1cfbfb54ef0 100644 --- a/examples/window-app/efr32/args.gni +++ b/examples/window-app/efr32/args.gni @@ -26,4 +26,3 @@ declare_args() { pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip" pw_assert_BACKEND = "$dir_pw_assert_log" chip_enable_openthread = true -chip_system_config_use_open_thread_udp = true diff --git a/src/app/server/Server.cpp b/src/app/server/Server.cpp index 9967491c6dae24..3c550350934d6e 100644 --- a/src/app/server/Server.cpp +++ b/src/app/server/Server.cpp @@ -150,9 +150,9 @@ CHIP_ERROR Server::Init(AppDelegate * delegate, uint16_t secureServicePort, uint err = mTransports.Init(UdpListenParameters(DeviceLayer::UDPEndPointManager()) .SetAddressType(IPAddressType::kIPv6) .SetListenPort(mSecuredServicePort) -#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT .SetNativeParams(chip::DeviceLayer::ThreadStackMgrImpl().OTInstance()) -#endif // CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#endif // CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT #if INET_CONFIG_ENABLE_IPV4 , diff --git a/src/inet/BUILD.gn b/src/inet/BUILD.gn index 164c0076c5a546..6e671c0f7b358e 100644 --- a/src/inet/BUILD.gn +++ b/src/inet/BUILD.gn @@ -24,7 +24,7 @@ import("${chip_root}/src/lwip/lwip.gni") import("${chip_root}/src/platform/device.gni") import("inet.gni") -if (chip_system_config_use_open_thread_udp) { +if (chip_system_config_use_open_thread_inet_endpoints) { import("//build_overrides/openthread.gni") } @@ -55,13 +55,7 @@ buildconfig_header("inet_buildconfig") { } defines += [ "INET_TCP_END_POINT_IMPL_CONFIG_FILE=" ] - if (chip_system_config_use_open_thread_udp) { - defines += [ - "INET_UDP_END_POINT_IMPL_CONFIG_FILE=", - ] - } else { - defines += [ "INET_UDP_END_POINT_IMPL_CONFIG_FILE=" ] - } + defines += [ "INET_UDP_END_POINT_IMPL_CONFIG_FILE=" ] } source_set("inet_config_header") { @@ -113,7 +107,7 @@ static_library("inet") { public_deps += [ "${chip_root}/src/lwip" ] } - if (chip_system_config_use_open_thread_udp) { + if (chip_system_config_use_open_thread_inet_endpoints) { if (chip_openthread_ftd) { public_deps += [ "${chip_root}/third_party/openthread/repo:libopenthread-ftd" ] @@ -137,20 +131,10 @@ static_library("inet") { sources += [ "UDPEndPoint.cpp", "UDPEndPoint.h", + "UDPEndPointImpl${chip_system_config_inet}.cpp", + "UDPEndPointImpl${chip_system_config_inet}.h", "UDPEndPointImpl.h", ] - - if (chip_system_config_use_open_thread_udp) { - sources += [ - "UDPEndPointImpl_OpenThread.cpp", - "UDPEndPointImpl_OpenThread.h", - ] - } else { - sources += [ - "UDPEndPointImpl${chip_system_config_inet}.cpp", - "UDPEndPointImpl${chip_system_config_inet}.h", - ] - } } if (chip_with_nlfaultinjection) { diff --git a/src/inet/EndPointStateOpenThread.h b/src/inet/EndPointStateOpenThread.h new file mode 100644 index 00000000000000..8c32d6c48aeb24 --- /dev/null +++ b/src/inet/EndPointStateOpenThread.h @@ -0,0 +1,49 @@ +/* + * + * Copyright (c) 2020-2021 Project CHIP Authors + * Copyright (c) 2015-2017 Nest Labs, Inc. + * + * 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. + */ + +/** + * Shared state for OpenThread implementations of TCPEndPoint and UDPEndPoint. + */ + +#pragma once + +#include + +#include + +namespace chip { +namespace Inet { + +/** + * Definitions shared by all OpenThread EndPoint classes. + */ +class DLL_EXPORT EndPointStateOpenThread +{ +protected: + EndPointStateOpenThread() : mOpenThreadEndPointType(OpenThreadEndPointType::Unknown) {} + + enum class OpenThreadEndPointType : uint8_t + { + Unknown = 0, + UDP = 1, + TCP = 2 + } mOpenThreadEndPointType; +}; + +} // namespace Inet +} // namespace chip diff --git a/src/inet/TCPEndPointImplOpenThread.cpp b/src/inet/TCPEndPointImplOpenThread.cpp new file mode 100644 index 00000000000000..36522ca3c47459 --- /dev/null +++ b/src/inet/TCPEndPointImplOpenThread.cpp @@ -0,0 +1,96 @@ +/* + * + * Copyright (c) 2020-2021 Project CHIP Authors + * Copyright (c) 2018 Google LLC. + * Copyright (c) 2013-2018 Nest Labs, Inc. + * + * 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. + */ + +#include + +#include +#include +#include + +#include + +#include + +namespace chip { +namespace Inet { + +CHIP_ERROR TCPEndPointImplOT::GetPeerInfo(IPAddress * retAddr, uint16_t * retPort) const +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::GetLocalInfo(IPAddress * retAddr, uint16_t * retPort) const +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::GetInterfaceId(InterfaceId * retInterface) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::EnableNoDelay() +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::EnableKeepAlive(uint16_t interval, uint16_t timeoutCount) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::DisableKeepAlive() +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::AckReceive(uint16_t len) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} + +CHIP_ERROR TCPEndPointImplOT::BindImpl(IPAddressType addrType, const IPAddress & addr, uint16_t port, bool reuseAddr) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::ListenImpl(uint16_t backlog) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::ConnectImpl(const IPAddress & addr, uint16_t port, InterfaceId intfId) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::SendQueuedImpl(bool queueWasEmpty) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::SetUserTimeoutImpl(uint32_t userTimeoutMillis) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +CHIP_ERROR TCPEndPointImplOT::DriveSendingImpl() +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} +void TCPEndPointImplOT::HandleConnectCompleteImpl() +{ + // Not implemented +} +void TCPEndPointImplOT::DoCloseImpl(CHIP_ERROR err, State oldState) +{ + // Not implemented +} + +} // namespace Inet +} // namespace chip diff --git a/src/inet/TCPEndPointImplOpenThread.h b/src/inet/TCPEndPointImplOpenThread.h new file mode 100644 index 00000000000000..c62c63cdc85f55 --- /dev/null +++ b/src/inet/TCPEndPointImplOpenThread.h @@ -0,0 +1,73 @@ +/* + * + * Copyright (c) 2020-2021 Project CHIP Authors + * Copyright (c) 2018 Google LLC + * Copyright (c) 2013-2017 Nest Labs, Inc. + * + * 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. + */ + +#pragma once + +#include +#include + +#include +#include +#include +#include +#include +#include + +namespace chip { +namespace Inet { + +class TCPEndPointImplOT : public TCPEndPoint, public EndPointStateOpenThread +{ +public: + TCPEndPointImplOT(EndPointManager & endPointManager) : + TCPEndPoint(endPointManager), mBoundIntfId(InterfaceId::Null()) + {} + + // TCPEndPoint overrides. + CHIP_ERROR GetPeerInfo(IPAddress * retAddr, uint16_t * retPort) const override; + CHIP_ERROR GetLocalInfo(IPAddress * retAddr, uint16_t * retPort) const override; + CHIP_ERROR GetInterfaceId(InterfaceId * retInterface) override; + CHIP_ERROR EnableNoDelay() override; + CHIP_ERROR EnableKeepAlive(uint16_t interval, uint16_t timeoutCount) override; + CHIP_ERROR DisableKeepAlive() override; + CHIP_ERROR AckReceive(uint16_t len) override; +#if INET_CONFIG_OVERRIDE_SYSTEM_TCP_USER_TIMEOUT + void TCPUserTimeoutHandler() override; +#endif // INET_CONFIG_OVERRIDE_SYSTEM_TCP_USER_TIMEOUT + +private: + // TCPEndPoint overrides. + CHIP_ERROR BindImpl(IPAddressType addrType, const IPAddress & addr, uint16_t port, bool reuseAddr) override; + CHIP_ERROR ListenImpl(uint16_t backlog) override; + CHIP_ERROR ConnectImpl(const IPAddress & addr, uint16_t port, InterfaceId intfId) override; + CHIP_ERROR SendQueuedImpl(bool queueWasEmpty) override; + CHIP_ERROR SetUserTimeoutImpl(uint32_t userTimeoutMillis) override; + CHIP_ERROR DriveSendingImpl() override; + void HandleConnectCompleteImpl() override; + void DoCloseImpl(CHIP_ERROR err, State oldState) override; + + InterfaceId mBoundIntfId; + uint16_t mBoundPort; + otInstance * mOTInstance = nullptr; +}; + +using TCPEndPointImpl = TCPEndPointImplOT; + +} // namespace Inet +} // namespace chip diff --git a/src/inet/UDPEndPointImpl_OpenThread.cpp b/src/inet/UDPEndPointImplOpenThread.cpp similarity index 99% rename from src/inet/UDPEndPointImpl_OpenThread.cpp rename to src/inet/UDPEndPointImplOpenThread.cpp index 4fb43b3d940083..e722d48783e98d 100644 --- a/src/inet/UDPEndPointImpl_OpenThread.cpp +++ b/src/inet/UDPEndPointImplOpenThread.cpp @@ -17,7 +17,7 @@ * limitations under the License. */ -#include +#include #include #include diff --git a/src/inet/UDPEndPointImpl_OpenThread.h b/src/inet/UDPEndPointImplOpenThread.h similarity index 95% rename from src/inet/UDPEndPointImpl_OpenThread.h rename to src/inet/UDPEndPointImplOpenThread.h index e6299c40c95ea8..f1ad4eaf0451fc 100644 --- a/src/inet/UDPEndPointImpl_OpenThread.h +++ b/src/inet/UDPEndPointImplOpenThread.h @@ -19,6 +19,7 @@ #pragma once +#include #include #include @@ -31,7 +32,7 @@ namespace chip { namespace Inet { -class UDPEndPointImplOT : public UDPEndPoint +class UDPEndPointImplOT : public UDPEndPoint, public EndPointStateOpenThread { public: UDPEndPointImplOT(EndPointManager & endPointManager) : diff --git a/src/inet/inet.gni b/src/inet/inet.gni index 997ae034c8eaa4..1c19551da374c6 100644 --- a/src/inet/inet.gni +++ b/src/inet/inet.gni @@ -27,7 +27,9 @@ declare_args() { chip_inet_config_enable_tcp_endpoint = true # Inet implementation type. - if (chip_system_config_use_lwip) { + if (chip_system_config_use_open_thread_inet_endpoints) { + chip_system_config_inet = "OpenThread" + } else if (chip_system_config_use_lwip) { chip_system_config_inet = "LwIP" } else { chip_system_config_inet = "Sockets" diff --git a/src/platform/EFR32/args.gni b/src/platform/EFR32/args.gni index 73e2fc12c4be01..82f7ac5de6794f 100644 --- a/src/platform/EFR32/args.gni +++ b/src/platform/EFR32/args.gni @@ -32,6 +32,9 @@ lwip_platform = "efr32" chip_inet_config_enable_ipv4 = false +chip_inet_config_enable_tcp_endpoint = false +chip_system_config_use_open_thread_inet_endpoints = true + chip_build_tests = false openthread_core_config_platform_check_file = diff --git a/src/platform/EFR32/wifi_args.gni b/src/platform/EFR32/wifi_args.gni index fc6660bc825d73..344e8058adf86d 100644 --- a/src/platform/EFR32/wifi_args.gni +++ b/src/platform/EFR32/wifi_args.gni @@ -34,6 +34,7 @@ chip_device_platform = "efr32" chip_enable_openthread = false chip_inet_config_enable_ipv4 = true chip_inet_config_enable_dns_resolver = false +chip_inet_config_enable_tcp_endpoint = true chip_build_tests = false chip_config_memory_management = "platform" diff --git a/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread_LwIP.cpp b/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread_LwIP.cpp index 9073db2d194b04..de0947b6c2796f 100644 --- a/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread_LwIP.cpp +++ b/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread_LwIP.cpp @@ -233,14 +233,14 @@ void GenericThreadStackManagerImpl_OpenThread_LwIP::UpdateThreadInter // Multicast won't work with LWIP on top of OT // Duplication of listeners, unecessary timers, buffer duplication, hardfault etc... -#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT // Refresh Multicast listening if (GenericThreadStackManagerImpl_OpenThread::IsThreadAttachedNoLock()) { ChipLogDetail(DeviceLayer, "Thread Attached updating Multicast address"); Server::GetInstance().RejoinExistingMulticastGroups(); } -#endif // CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#endif // CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT } ChipLogDetail(DeviceLayer, "LwIP Thread interface addresses %s", isInterfaceUp ? "updated" : "cleared"); diff --git a/src/system/BUILD.gn b/src/system/BUILD.gn index 680b431e406360..4d4dfccb05706b 100644 --- a/src/system/BUILD.gn +++ b/src/system/BUILD.gn @@ -59,7 +59,7 @@ buildconfig_header("system_buildconfig") { "CHIP_WITH_NLFAULTINJECTION=${chip_with_nlfaultinjection}", "CHIP_SYSTEM_CONFIG_USE_DISPATCH=${chip_system_config_use_dispatch}", "CHIP_SYSTEM_CONFIG_USE_LWIP=${chip_system_config_use_lwip}", - "CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP=${chip_system_config_use_open_thread_udp}", + "CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT=${chip_system_config_use_open_thread_inet_endpoints}", "CHIP_SYSTEM_CONFIG_USE_SOCKETS=${chip_system_config_use_sockets}", "CHIP_SYSTEM_CONFIG_USE_NETWORK_FRAMEWORK=false", "CHIP_SYSTEM_CONFIG_POSIX_LOCKING=${chip_system_config_posix_locking}", diff --git a/src/system/SystemPacketBuffer.h b/src/system/SystemPacketBuffer.h index 1c1887055b0509..b576eb03fb1043 100644 --- a/src/system/SystemPacketBuffer.h +++ b/src/system/SystemPacketBuffer.h @@ -809,7 +809,7 @@ namespace Inet { class UDPEndPointImplLwIP; } // namespace Inet -#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT // TODO : Temp Implementation issue : 13085 // Still use LwIP buffer even if using OpenThread UDP implementation // since decoupling of LwIP from OpenThread is still in progress @@ -835,7 +835,7 @@ class LwIPPacketBufferView : public PacketBufferHandle */ static struct pbuf * UnsafeGetLwIPpbuf(const PacketBufferHandle & handle) { return PacketBufferHandle::GetLwIPpbuf(handle); } friend class Inet::UDPEndPointImplLwIP; -#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT // TODO : Temp Implementation issue : 13085 // Still use LwIP buffer even if using OpenThread UDP implementation // since decoupling of LwIP from OpenThread is still in progress diff --git a/src/system/system.gni b/src/system/system.gni index 71fb601192f99d..e2a3de5eef181c 100644 --- a/src/system/system.gni +++ b/src/system/system.gni @@ -32,8 +32,8 @@ declare_args() { # Enable metrics collection. chip_system_config_provide_statistics = true - # Use OpenThread UDP stack directly - chip_system_config_use_open_thread_udp = false + # Use OpenThread TCP/UDP stack directly + chip_system_config_use_open_thread_inet_endpoints = false } declare_args() { diff --git a/src/test_driver/efr32/args.gni b/src/test_driver/efr32/args.gni index e617862aca0dfe..8e2506c8afb694 100644 --- a/src/test_driver/efr32/args.gni +++ b/src/test_driver/efr32/args.gni @@ -26,3 +26,7 @@ chip_build_tests = true chip_enable_openthread = true chip_openthread_ftd = true chip_monolithic_tests = true + +#Fix me : Test driver should use same config as examples +# Problem : Linker issue if set to true +chip_system_config_use_open_thread_inet_endpoints = false diff --git a/src/transport/raw/UDP.h b/src/transport/raw/UDP.h index 25fb5f3ed71839..bc8f60460fa472 100644 --- a/src/transport/raw/UDP.h +++ b/src/transport/raw/UDP.h @@ -34,9 +34,9 @@ #include #include -#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#if CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT struct otInstance; -#endif // CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_UDP +#endif // CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT namespace chip { namespace Transport { From bab351f243f51cd664d6b17b27b0699f6de975bd Mon Sep 17 00:00:00 2001 From: Carol Yang Date: Fri, 25 Mar 2022 19:57:36 -0700 Subject: [PATCH 10/23] [OTA] Update the READMEs related to software version and image header (#16690) --- .github/.wordlist.txt | 5 + examples/ota-provider-app/linux/README.md | 44 +++++--- examples/ota-requestor-app/linux/README.md | 102 ++++++++++++++---- .../clusters/ota-requestor/OTARequestor.cpp | 6 +- 4 files changed, 124 insertions(+), 33 deletions(-) diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt index 8c987aacb69624..807ce7b5edd996 100644 --- a/.github/.wordlist.txt +++ b/.github/.wordlist.txt @@ -895,6 +895,7 @@ OTADownloader otaDownloadPath otaImageList OTAImageProcessorDriver +OTAImageProcessorImpl OTAImageProcessorInterface OTAProvider OTAProviderIpAddress @@ -1176,6 +1177,7 @@ SulfurDioxideConcentrationMeasurement svg SVR SWD +SWU symlinks sysconfdir SysConfig @@ -1248,6 +1250,7 @@ TotalTrihalomethanesConcentrationMeasurement trackAlloc trackFree transitionTime +TransferSession TransportMgrBase TrustedRootCertificates TSG @@ -1354,12 +1357,14 @@ xab xaver xb xbef +xBEEF xc xcd Xcode xcodeproj xcworkspace xd +xDEAD xDEADBEEF xdeadbeefcafe xds diff --git a/examples/ota-provider-app/linux/README.md b/examples/ota-provider-app/linux/README.md index 7293b068867e0e..a52e87257c7b7f 100644 --- a/examples/ota-provider-app/linux/README.md +++ b/examples/ota-provider-app/linux/README.md @@ -3,7 +3,7 @@ This is a reference application that implements an example of an OTA Provider Cluster Server. -## Building +## Build Suggest doing the following: @@ -29,17 +29,15 @@ scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug c **Using `--filepath` and `--otaImageList`** - The two options cannot be supplied together -- If neither option is supplied, the application will respond with - `NotAvailable` status +- At least one option must be supplied - If `--filepath` is supplied, the application will automatically serve that - file to the OTA Requestor (SoftwareVersion will be requester software - version + 1) + file to the OTA Requestor - If `--otaImageList` is supplied, the application will parse the JSON file and extract all required data. The most recent/valid software version will be selected and the corresponding OTA file will be sent to the OTA Requestor - The SoftwareVersion and SoftwareVersionString sent in the QueryImageResponse is derived from the OTA image header. Please note that if the version in the - `--otaImageList` JSON file does not match that in the header, the + `--otaImageList` JSON file does not match that in the image header, the application will terminate. An example of the `--otaImageList` file contents: @@ -48,15 +46,38 @@ An example of the `--otaImageList` file contents: { "foo": 1, // ignored by parser "deviceSoftwareVersionModel": [ - { "vendorId": 1, "productId": 1, "softwareVersion": 10, "softwareVersionString": "1.0.0", "cDVersionNumber": 18, "softwareVersionValid": true, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota.txt" }, - { "vendorId": 1, "productId": 1, "softwareVersion": 20, "softwareVersionString": "1.0.1", "cDVersionNumber": 18, "softwareVersionValid": false, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota.txt" }, - { "vendorId": 1, "productId": 1, "softwareVersion": 30, "softwareVersionString": "1.0.2", "cDVersionNumber": 18, "softwareVersionValid": true, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota.txt" }, - { "vendorId": 1, "productId": 1, "softwareVersion": 40, "softwareVersionString": "1.1.0", "cDVersionNumber": 18, "softwareVersionValid": true, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota.txt" }, - { "vendorId": 1, "productId": 1, "softwareVersion": 50, "softwareVersionString": "1.1.1", "cDVersionNumber": 18, "softwareVersionValid": false, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota.txt" } + { "vendorId": 1, "productId": 1, "softwareVersion": 10, "softwareVersionString": "1.0.0", "cDVersionNumber": 18, "softwareVersionValid": true, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota_v10.bin" }, + { "vendorId": 1, "productId": 1, "softwareVersion": 20, "softwareVersionString": "1.0.1", "cDVersionNumber": 18, "softwareVersionValid": false, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota_v20.bin" }, + { "vendorId": 1, "productId": 1, "softwareVersion": 30, "softwareVersionString": "1.0.2", "cDVersionNumber": 18, "softwareVersionValid": true, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota_v30.bin" }, + { "vendorId": 1, "productId": 1, "softwareVersion": 40, "softwareVersionString": "1.1.0", "cDVersionNumber": 18, "softwareVersionValid": true, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota_v40.bin" }, + { "vendorId": 1, "productId": 1, "softwareVersion": 50, "softwareVersionString": "1.1.1", "cDVersionNumber": 18, "softwareVersionValid": false, "minApplicableSoftwareVersion": 0, "maxApplicableSoftwareVersion": 100, "otaURL": "/tmp/ota_v50.bin" } ] } ``` +## Software Image Header + +All Matter software images must contain a header as defined in section 11.21.1 +of the specification. The +[ota_image_tool](https://github.com/project-chip/connectedhomeip/blob/master/src/app/ota_image_tool.py) +is available for generating the required header on a software image. + +All images supplied to the OTA Provider application (via `--filepath` or +`--otaImageList`) must contain the software image header. The OTA Provider +application will use the software version specified in the header to set the +`SoftwareVersion` field of the QueryImageResponse. For instance, if the image +supplied represents an image with software version 2, the tool can be used as +follows: + +``` +src/app/ota_image_tool.py create -v 0xDEAD -p 0xBEEF -vn 2 -vs "2.0" -da sha256 firmware.bin firmware.ota +``` + +Please see this +[section](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-requestor-app/linux#generate-images) +for information on building an OTA Requestor application with a specific +software version. + ## Access Control Requirements Commissioner or Administrator SHOULD install necessary ACL entries at @@ -86,5 +107,4 @@ being 0xDEADBEEF on endpoint 0. - Synchronous BDX transfer only - Does not check VID/PID -- No configuration for `AwaitNextAction` - Only one transfer at a time (does not check incoming `UpdateTokens`) diff --git a/examples/ota-requestor-app/linux/README.md b/examples/ota-requestor-app/linux/README.md index ad610c9a56e870..17bab9bd823b1e 100644 --- a/examples/ota-requestor-app/linux/README.md +++ b/examples/ota-requestor-app/linux/README.md @@ -4,7 +4,7 @@ This is a reference application that is both a server for the OTA Requestor Cluster, as well as a client of the OTA Provider Cluster. It can initiate a software update with a given OTA Provider node, and download a file. -## Building +## Build Suggest doing the following: @@ -25,15 +25,70 @@ following command line options are available for the OTA Requestor application. | -u/--userConsentState | The user consent state for the first QueryImage command. For all subsequent commands, the value of granted will be used.
  • granted: Authorize OTA requestor to download an OTA image
  • denied: Forbid OTA requestor to download an OTA image
  • deferred: Defer obtaining user consent | | -a/--autoApplyImage | If supplied, apply the image immediately after download. Otherwise, the OTA update is complete after image download. | -## Software Image Header +## Software Image Version -All Matter software images must contain a header as defined in section 11.21.1 -of the specification. The -[ota_image_tool](https://github.com/project-chip/connectedhomeip/blob/master/src/app/ota_image_tool.py) -is available for generating the required header on a software image. Any -software images that the OTA Requestor application receives must contain the -required header. If the header is missing, the software download will not -succeed. +The current software version of the OTA Requestor application is defined by +`CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION` in +[CHIPProjectConfig.h](https://github.com/project-chip/connectedhomeip/blob/master/config/standalone/CHIPProjectConfig.h). +This value can be confirmed by reading the `SoftwareVersion` attribute of the +Basic Information cluster: + +``` +out/chip-tool basic read software-version 0x1234567890 0 +``` + +### Validations + +On receiving the QueryImageResponse from the OTA Provider application, the OTA +Requestor application will verify that the software version specified in the +`SoftwareVersion` field of the response contains a value newer than the current +running version. If the update supplied does not pass this version check, the +following log message should be expected, indicating the update will not +proceed: + +``` +[1648233572232] [48462:7613274] CHIP: [SWU] Available update version 1 is <= current version 1, update ignored +``` + +If the OTA update progresses to downloading, the process will abort if the +software image +[header](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-provider-app/linux#software-image-header) +is missing. The following log messages should be expected: + +``` +[1648246917398] [71786:7874994] CHIP: [SWU] Image does not contain a valid header +[1648246917399] [71786:7874994] CHIP: [BDX] TransferSession error +``` + +On booting into the new image, if the running version does not match the version +specified in the QueryImageResponse, the following log message should be +expected: + +``` +[1648244159295] [58606:7774255] CHIP: [SWU] Failed to confirm image: ../../examples/ota-requestor-app/linux/third_party/connectedhomeip/src/platform/Linux/OTAImageProcessorImpl.cpp:110: CHIP Error 0x00000003: Incorrect state +``` + +This message serves as a warning that the new image is not expected. However, +the OTA Requestor application will recover gracefully and return to a state +where another OTA update may be initiated. + +### Generate Images + +To validate booting into a newer OTA Requestor image on the Linux platform, the +following must be performed: + +1. Modify `CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION` to a value greater than + the current running version +2. [Build](https://github.com/project-chip/connectedhomeip/blob/master/examples/ota-requestor-app/linux/README.md#build) + an OTA Requestor application with the new version +3. Using the executable created in step 2, generate an image with a software + image + [header](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-provider-app/linux#software-image-header) + that matches the version in step 1 +4. Use this generated binary when supplying the image file to the OTA Provider + application +5. Launch the original application (an OTA Requestor application generated prior + to step 1) with the command line option `--autoApplyImage` ## Common Instructions @@ -47,7 +102,7 @@ are some common instructions for building and commissioning the applications. #### Build the OTA Provider application Follow instructions -[here](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-provider-app/linux#building) +[here](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-provider-app/linux#build) #### Run the OTA Provider application @@ -81,15 +136,15 @@ out/chip-tool pairing onnetwork-long ${PROVIDER_NODE_ID} 20202021 ${PROVIDER_LON ### OTA Requestor application -#### Build the OTA Provider application +#### Build the OTA Requestor application Follow instructions -[here](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-requestor-app/linux#building) +[here](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-requestor-app/linux#build) #### Run the OTA Requestor application: ``` -out/chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --periodicQueryTimeout ${TIME_IN_SECONDS} +out/chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --secured-device-port ${REQUESTOR_UDP_PORT} --KVS ${KVS_STORE_LOCATION} --periodicQueryTimeout ${TIME_IN_SECONDS} --autoApplyImage ``` @@ -106,6 +161,9 @@ out/chip-ota-requestor-app --discriminator ${REQUESTOR_LONG_DISCRIMINATOR} --sec - `${TIME_IN_SECONDS}` is the periodic timeout for querying providers in the default OTA provider list. If none or zero is supplied the timeout is set to every 24 hours. +- `--autoApplyImage` is supplied to indicate the image should be immediately + applied after download. If not supplied, the OTA update is complete after + image download. #### Commission the OTA Requestor application @@ -124,10 +182,18 @@ There are two methods for this reference application to connect to a device running OTA Provider server and download a software image. If the ACL entry on the provider has not been properly installed, the QueryImage -command will be denied. Follow instructions +command will be denied. Logs similar to the following may be observed on the OTA +Provider application: + +``` +[1648244658368] [59686:7786439] CHIP: [DMG] AccessControl: checking f=1 a=c s=0x000000000000FACE t= c=0x0000_0029 e=0 p=o +[1648244658368] [59686:7786439] CHIP: [DMG] AccessControl: denied +``` + +If this is encountered, follow instructions [here](https://github.com/project-chip/connectedhomeip/tree/master/examples/ota-provider-app/linux#access-control-requirements) -to install. Note that this only needs to be done once. There is no need to write -this ACL entry again unless the KVS store has been removed. +to install. Note that this only needs to be performed once. There is no need to +write this ACL entry again unless the KVS store has been removed. ### Trigger using AnnounceOTAProvider Command @@ -145,7 +211,7 @@ scripts/examples/gn_build_example.sh examples/ota-provider-app/linux/ out chip_c **Run the OTA Provider application** ``` -out/chip-ota-provider-app --discriminator 22 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin +out/chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin ``` #### In terminal 2: @@ -203,7 +269,7 @@ scripts/examples/gn_build_example.sh examples/ota-provider-app/linux/ out chip_c **Run the OTA Provider application** ``` -out/chip-ota-provider-app --discriminator 22 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin +out/chip-ota-provider-app --discriminator 22 --secured-device-port 5565 --KVS /tmp/chip_kvs_provider --filepath /tmp/test.bin ``` #### In terminal 2: diff --git a/src/app/clusters/ota-requestor/OTARequestor.cpp b/src/app/clusters/ota-requestor/OTARequestor.cpp index 561c29f5c7f582..6e5b57fb145284 100644 --- a/src/app/clusters/ota-requestor/OTARequestor.cpp +++ b/src/app/clusters/ota-requestor/OTARequestor.cpp @@ -157,8 +157,8 @@ void OTARequestor::OnQueryImageResponse(void * context, const QueryImageResponse if (update.softwareVersion > requestorCore->mCurrentVersion) { - ChipLogDetail(SoftwareUpdate, "Update available from %" PRIu32 " to %" PRIu32 " version", - requestorCore->mCurrentVersion, update.softwareVersion); + ChipLogDetail(SoftwareUpdate, "Update available from version %" PRIu32 " to %" PRIu32, requestorCore->mCurrentVersion, + update.softwareVersion); MutableByteSpan updateToken(requestorCore->mUpdateTokenBuffer); // This function copies the bytespan to mutablebytespan only if size of mutablebytespan buffer is greater or equal to // bytespan otherwise we are copying data upto available size. @@ -188,7 +188,7 @@ void OTARequestor::OnQueryImageResponse(void * context, const QueryImageResponse } else { - ChipLogDetail(SoftwareUpdate, "Version %" PRIu32 " is older or same than current version %" PRIu32 ", not updating", + ChipLogDetail(SoftwareUpdate, "Available update version %" PRIu32 " is <= current version %" PRIu32 ", update ignored", update.softwareVersion, requestorCore->mCurrentVersion); requestorCore->RecordNewUpdateState(OTAUpdateStateEnum::kIdle, OTAChangeReasonEnum::kSuccess); From c62c73115c21b32d0c3b4e47fd0bc2f9113c9908 Mon Sep 17 00:00:00 2001 From: Wang Qixiang <43193572+wqx6@users.noreply.github.com> Date: Sat, 26 Mar 2022 11:43:54 +0800 Subject: [PATCH 11/23] Add NetworkStatusChangeCallback for ESP32 platform (#15850) --- src/platform/ESP32/BUILD.gn | 6 +- .../ESP32/ConnectivityManagerImpl_WiFi.cpp | 2 + src/platform/ESP32/ESP32Utils.cpp | 15 ++++ src/platform/ESP32/ESP32Utils.h | 1 + ...ver.cpp => NetworkCommissioningDriver.cpp} | 87 ++++++++++++++----- .../ESP32/NetworkCommissioningDriver.h | 12 +-- 6 files changed, 93 insertions(+), 30 deletions(-) rename src/platform/ESP32/{NetworkCommissioningWiFiDriver.cpp => NetworkCommissioningDriver.cpp} (83%) diff --git a/src/platform/ESP32/BUILD.gn b/src/platform/ESP32/BUILD.gn index 7aa6ceb0434d47..bc0ddaef2a79a6 100644 --- a/src/platform/ESP32/BUILD.gn +++ b/src/platform/ESP32/BUILD.gn @@ -40,7 +40,6 @@ static_library("ESP32") { "KeyValueStoreManagerImpl.h", "Logging.cpp", "LwIPCoreLock.cpp", - "NetworkCommissioningDriver.h", "PlatformManagerImpl.cpp", "PlatformManagerImpl.h", "SystemTimeSupport.cpp", @@ -68,13 +67,16 @@ static_library("ESP32") { if (chip_enable_wifi) { sources += [ "ConnectivityManagerImpl_WiFi.cpp", - "NetworkCommissioningWiFiDriver.cpp", + "NetworkCommissioningDriver.cpp", + "NetworkCommissioningDriver.h", ] } if (chip_enable_openthread) { sources += [ "../OpenThread/DnssdImpl.cpp", + "../OpenThread/GenericNetworkCommissioningThreadDriver.cpp", + "../OpenThread/GenericNetworkCommissioningThreadDriver.h", "../OpenThread/OpenThreadUtils.cpp", "ThreadStackManagerImpl.cpp", "ThreadStackManagerImpl.h", diff --git a/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp b/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp index f2e5156ca532de..fe21b21f665d52 100644 --- a/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp +++ b/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp @@ -463,6 +463,7 @@ void ConnectivityManagerImpl::OnWiFiPlatformEvent(const ChipDeviceEvent * event) break; case WIFI_EVENT_STA_DISCONNECTED: ChipLogProgress(DeviceLayer, "WIFI_EVENT_STA_DISCONNECTED"); + NetworkCommissioning::ESPWiFiDriver::GetInstance().SetLastDisconnectReason(event); if (mWiFiStationState == kWiFiStationState_Connecting) { ChangeWiFiStationState(kWiFiStationState_Connecting_Failed); @@ -684,6 +685,7 @@ void ConnectivityManagerImpl::ChangeWiFiStationState(WiFiStationState newState) ChipLogProgress(DeviceLayer, "WiFi station state change: %s -> %s", WiFiStationStateToStr(mWiFiStationState), WiFiStationStateToStr(newState)); mWiFiStationState = newState; + SystemLayer().ScheduleLambda([]() { NetworkCommissioning::ESPWiFiDriver::GetInstance().OnNetworkStatusChange(); }); } } diff --git a/src/platform/ESP32/ESP32Utils.cpp b/src/platform/ESP32/ESP32Utils.cpp index e4f30791b0c81c..91d3352cc8fcf5 100644 --- a/src/platform/ESP32/ESP32Utils.cpp +++ b/src/platform/ESP32/ESP32Utils.cpp @@ -54,6 +54,21 @@ CHIP_ERROR ESP32Utils::IsAPEnabled(bool & apEnabled) return CHIP_NO_ERROR; } +CHIP_ERROR ESP32Utils::IsStationEnabled(bool & staEnabled) +{ + wifi_mode_t curWiFiMode; + esp_err_t err = esp_wifi_get_mode(&curWiFiMode); + if (err != ESP_OK) + { + ChipLogError(DeviceLayer, "esp_wifi_get_mode() failed: %s", esp_err_to_name(err)); + return ESP32Utils::MapError(err); + } + + staEnabled = (curWiFiMode == WIFI_MODE_STA || curWiFiMode == WIFI_MODE_APSTA); + + return CHIP_NO_ERROR; +} + bool ESP32Utils::IsStationProvisioned(void) { wifi_config_t stationConfig; diff --git a/src/platform/ESP32/ESP32Utils.h b/src/platform/ESP32/ESP32Utils.h index 9f7f6f0a8bb6be..94a98e0f8b281e 100644 --- a/src/platform/ESP32/ESP32Utils.h +++ b/src/platform/ESP32/ESP32Utils.h @@ -30,6 +30,7 @@ class ESP32Utils { public: static CHIP_ERROR IsAPEnabled(bool & apEnabled); + static CHIP_ERROR IsStationEnabled(bool & staEnabled); static bool IsStationProvisioned(void); static CHIP_ERROR IsStationConnected(bool & connected); static CHIP_ERROR StartWiFiLayer(void); diff --git a/src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp b/src/platform/ESP32/NetworkCommissioningDriver.cpp similarity index 83% rename from src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp rename to src/platform/ESP32/NetworkCommissioningDriver.cpp index 1e4fc0fb9c42d6..b1dda184f2900d 100644 --- a/src/platform/ESP32/NetworkCommissioningWiFiDriver.cpp +++ b/src/platform/ESP32/NetworkCommissioningDriver.cpp @@ -27,7 +27,7 @@ #include using namespace ::chip; -#if CHIP_DEVICE_CONFIG_ENABLE_WIFI +using namespace ::chip::DeviceLayer::Internal; namespace chip { namespace DeviceLayer { namespace NetworkCommissioning { @@ -59,14 +59,16 @@ CHIP_ERROR ESPWiFiDriver::Init(NetworkStatusChangeCallback * networkStatusChange mSavedNetwork.credentialsLen = credentialsLen; mSavedNetwork.ssidLen = ssidLen; - mStagingNetwork = mSavedNetwork; - mpScanCallback = nullptr; - mpConnectCallback = nullptr; + mStagingNetwork = mSavedNetwork; + mpScanCallback = nullptr; + mpConnectCallback = nullptr; + mpStatusChangeCallback = networkStatusChangeCallback; return err; } CHIP_ERROR ESPWiFiDriver::Shutdown() { + mpStatusChangeCallback = nullptr; return CHIP_NO_ERROR; } @@ -276,20 +278,7 @@ void ESPWiFiDriver::OnScanWiFiNetworkDone() } } -void ESPWiFiDriver::ScanNetworks(ByteSpan ssid, WiFiDriver::ScanCallback * callback) -{ - if (callback != nullptr) - { - mpScanCallback = callback; - if (StartScanWiFiNetworks(ssid) != CHIP_NO_ERROR) - { - mpScanCallback = nullptr; - callback->OnFinished(Status::kUnknownError, CharSpan(), nullptr); - } - } -} - -CHIP_ERROR GetConnectedNetwork(Network & network) +CHIP_ERROR GetConfiguredNetwork(Network & network) { wifi_ap_record_t ap_info; esp_err_t err; @@ -308,6 +297,57 @@ CHIP_ERROR GetConnectedNetwork(Network & network) return CHIP_NO_ERROR; } +void ESPWiFiDriver::OnNetworkStatusChange() +{ + Network configuredNetwork; + bool staEnabled = false, staConnected = false; + VerifyOrReturn(ESP32Utils::IsStationEnabled(staEnabled) == CHIP_NO_ERROR); + VerifyOrReturn(staEnabled && mpStatusChangeCallback != nullptr); + CHIP_ERROR err = GetConfiguredNetwork(configuredNetwork); + if (err != CHIP_NO_ERROR) + { + ChipLogError(DeviceLayer, "Failed to get configured network when updating network status: %s", err.AsString()); + return; + } + VerifyOrReturn(ESP32Utils::IsStationConnected(staConnected) == CHIP_NO_ERROR); + if (staConnected) + { + mpStatusChangeCallback->OnNetworkingStatusChange( + Status::kSuccess, MakeOptional(ByteSpan(configuredNetwork.networkID, configuredNetwork.networkIDLen)), NullOptional); + return; + } + mpStatusChangeCallback->OnNetworkingStatusChange( + Status::kUnknownError, MakeOptional(ByteSpan(configuredNetwork.networkID, configuredNetwork.networkIDLen)), + MakeOptional(GetLastDisconnectReason())); +} + +void ESPWiFiDriver::ScanNetworks(ByteSpan ssid, WiFiDriver::ScanCallback * callback) +{ + if (callback != nullptr) + { + mpScanCallback = callback; + if (StartScanWiFiNetworks(ssid) != CHIP_NO_ERROR) + { + mpScanCallback = nullptr; + callback->OnFinished(Status::kUnknownError, CharSpan(), nullptr); + } + } +} + +CHIP_ERROR ESPWiFiDriver::SetLastDisconnectReason(const ChipDeviceEvent * event) +{ + VerifyOrReturnError(event->Type == DeviceEventType::kESPSystemEvent && event->Platform.ESPSystemEvent.Base == WIFI_EVENT && + event->Platform.ESPSystemEvent.Id == WIFI_EVENT_STA_DISCONNECTED, + CHIP_ERROR_INVALID_ARGUMENT); + mLastDisconnectedReason = event->Platform.ESPSystemEvent.Data.WiFiStaDisconnected.reason; + return CHIP_NO_ERROR; +} + +int32_t ESPWiFiDriver::GetLastDisconnectReason() +{ + return mLastDisconnectedReason; +} + size_t ESPWiFiDriver::WiFiNetworkIterator::Count() { return mDriver->mStagingNetwork.ssidLen == 0 ? 0 : 1; @@ -324,12 +364,14 @@ bool ESPWiFiDriver::WiFiNetworkIterator::Next(Network & item) item.connected = false; mExhausted = true; - Network connectedNetwork; - CHIP_ERROR err = GetConnectedNetwork(connectedNetwork); + Network configuredNetwork; + CHIP_ERROR err = GetConfiguredNetwork(configuredNetwork); if (err == CHIP_NO_ERROR) { - if (connectedNetwork.networkIDLen == item.networkIDLen && - memcmp(connectedNetwork.networkID, item.networkID, item.networkIDLen) == 0) + bool isConnected = false; + err = ESP32Utils::IsStationConnected(isConnected); + if (err == CHIP_NO_ERROR && isConnected && configuredNetwork.networkIDLen == item.networkIDLen && + memcmp(configuredNetwork.networkID, item.networkID, item.networkIDLen) == 0) { item.connected = true; } @@ -340,4 +382,3 @@ bool ESPWiFiDriver::WiFiNetworkIterator::Next(Network & item) } // namespace NetworkCommissioning } // namespace DeviceLayer } // namespace chip -#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI diff --git a/src/platform/ESP32/NetworkCommissioningDriver.h b/src/platform/ESP32/NetworkCommissioningDriver.h index decc8e21771466..0370ef4396f4c8 100644 --- a/src/platform/ESP32/NetworkCommissioningDriver.h +++ b/src/platform/ESP32/NetworkCommissioningDriver.h @@ -22,7 +22,6 @@ namespace chip { namespace DeviceLayer { namespace NetworkCommissioning { -#if CHIP_DEVICE_CONFIG_ENABLE_WIFI namespace { constexpr uint8_t kMaxWiFiNetworks = 1; constexpr uint8_t kWiFiScanNetworksTimeOutSeconds = 10; @@ -110,6 +109,11 @@ class ESPWiFiDriver final : public WiFiDriver CHIP_ERROR ConnectWiFiNetwork(const char * ssid, uint8_t ssidLen, const char * key, uint8_t keyLen); void OnConnectWiFiNetwork(); void OnScanWiFiNetworkDone(); + void OnNetworkStatusChange(); + + CHIP_ERROR SetLastDisconnectReason(const ChipDeviceEvent * event); + int32_t GetLastDisconnectReason(); + static ESPWiFiDriver & GetInstance() { static ESPWiFiDriver instance; @@ -125,12 +129,10 @@ class ESPWiFiDriver final : public WiFiDriver WiFiNetwork mStagingNetwork; ScanCallback * mpScanCallback; ConnectCallback * mpConnectCallback; + NetworkStatusChangeCallback * mpStatusChangeCallback = nullptr; + int32_t mLastDisconnectedReason; }; -#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI -#if CHIP_DEVICE_CONFIG_ENABLE_THREAD -// TODO: Add Thread Driver for ESP32H2 platform -#endif } // namespace NetworkCommissioning } // namespace DeviceLayer } // namespace chip From e78b14d5d1ddda87a38bc493ce521c0abc5f4179 Mon Sep 17 00:00:00 2001 From: krypton36 Date: Fri, 25 Mar 2022 20:45:07 -0700 Subject: [PATCH 12/23] Add option to pass in PICS file in runner and set default to ci-pics-values (#16541) --- scripts/tests/chiptest/test_definition.py | 5 +++-- scripts/tests/run_test_suite.py | 9 +++++++-- src/app/tests/suites/certification/PICS.yaml | 3 +++ src/app/tests/suites/certification/ci-pics-values | 1 + 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 src/app/tests/suites/certification/ci-pics-values diff --git a/scripts/tests/chiptest/test_definition.py b/scripts/tests/chiptest/test_definition.py index f9a6463a80984e..31b39e99291725 100644 --- a/scripts/tests/chiptest/test_definition.py +++ b/scripts/tests/chiptest/test_definition.py @@ -201,7 +201,7 @@ class TestDefinition: run_name: str target: TestTarget - def Run(self, runner, apps_register, paths: ApplicationPaths): + def Run(self, runner, apps_register, paths: ApplicationPaths, pics_file: str): """ Executes the given test case using the provided runner for execution. """ @@ -247,7 +247,8 @@ def Run(self, runner, apps_register, paths: ApplicationPaths): runner.RunSubprocess( tool_cmd + ['tests', self.run_name] + - ['--paa-trust-store-path', DEVELOPMENT_PAA_LIST], + ['--paa-trust-store-path', DEVELOPMENT_PAA_LIST] + + ['--PICS', pics_file], name='TEST', dependencies=[apps_register]) except Exception: diff --git a/scripts/tests/run_test_suite.py b/scripts/tests/run_test_suite.py index 345c4835623548..25276b67772011 100755 --- a/scripts/tests/run_test_suite.py +++ b/scripts/tests/run_test_suite.py @@ -175,8 +175,13 @@ def cmd_list(context): '--tv-app', default=FindBinaryPath('chip-tv-app'), help='what tv app to use') +@click.option( + '--pics-file', + type=click.Path(exists=True), + default=FindBinaryPath("ci-pics-values"), + help='PICS file to use for test runs.') @click.pass_context -def cmd_run(context, iterations, all_clusters_app, door_lock_app, tv_app): +def cmd_run(context, iterations, all_clusters_app, door_lock_app, tv_app, pics_file): runner = chiptest.runner.Runner() # Command execution requires an array @@ -210,7 +215,7 @@ def cmd_run(context, iterations, all_clusters_app, door_lock_app, tv_app): for test in context.obj.tests: test_start = time.time() try: - test.Run(runner, apps_register, paths) + test.Run(runner, apps_register, paths, pics_file) test_end = time.time() logging.info('%-20s - Completed in %0.2f seconds' % (test.name, (test_end - test_start))) diff --git a/src/app/tests/suites/certification/PICS.yaml b/src/app/tests/suites/certification/PICS.yaml index 8b8c0851521552..fe086caec192b6 100644 --- a/src/app/tests/suites/certification/PICS.yaml +++ b/src/app/tests/suites/certification/PICS.yaml @@ -299,3 +299,6 @@ PICS: - label: "The optional key PI MAY provide additional information for pairing." id: PI_KEY + + - label: "Prompts user for input. Unable to run in CI" + id: PICS_USER_PROMPT diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values new file mode 100644 index 00000000000000..07155f9a50d43e --- /dev/null +++ b/src/app/tests/suites/certification/ci-pics-values @@ -0,0 +1 @@ +PICS_USER_PROMPT=0 From c13c54a8202670d19e535e2514172a245c28ec30 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 25 Mar 2022 23:46:01 -0400 Subject: [PATCH 13/23] Dynamic response sender count (#16535) * Make tracking responders either static or dynamic based on compiler flags * Ensure linter does not complain about inclusion of std list * Change linux/android/darwin implementations and update tests * Restyle * Fix typo * Switch dynamic address setting to a bool * Review updates --- scripts/tools/check_includes_config.py | 2 + src/lib/core/BUILD.gn | 1 + src/lib/core/CHIPConfig.h | 14 ++++ src/lib/core/core.gni | 8 ++ src/lib/dnssd/minimal_mdns/ResponseSender.cpp | 75 ++++++++++++------- src/lib/dnssd/minimal_mdns/ResponseSender.h | 22 +++++- .../minimal_mdns/tests/TestAdvertiser.cpp | 11 +-- .../minimal_mdns/tests/TestResponseSender.cpp | 27 +++---- 8 files changed, 103 insertions(+), 57 deletions(-) diff --git a/scripts/tools/check_includes_config.py b/scripts/tools/check_includes_config.py index 55b27e9e03e304..72e399bd695317 100644 --- a/scripts/tools/check_includes_config.py +++ b/scripts/tools/check_includes_config.py @@ -143,4 +143,6 @@ 'src/setup_payload/SetupPayloadHelper.h': {'string'}, 'src/setup_payload/SetupPayload.h': {'map', 'string', 'vector'}, + # Uses platform-define to switch between list and array + 'src/lib/dnssd/minimal_mdns/ResponseSender.h': {'list'}, } diff --git a/src/lib/core/BUILD.gn b/src/lib/core/BUILD.gn index 3573f401d0745b..156d79fa5a52b2 100644 --- a/src/lib/core/BUILD.gn +++ b/src/lib/core/BUILD.gn @@ -59,6 +59,7 @@ buildconfig_header("chip_buildconfig") { "CHIP_CONFIG_MEMORY_DEBUG_DMALLOC=${chip_config_memory_debug_dmalloc}", "CHIP_CONFIG_PROVIDE_OBSOLESCENT_INTERFACES=false", "CHIP_CONFIG_TRANSPORT_TRACE_ENABLED=${chip_enable_transport_trace}", + "CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST=${chip_config_minmdns_dynamic_operational_responder_list}", ] } diff --git a/src/lib/core/CHIPConfig.h b/src/lib/core/CHIPConfig.h index 144f38465369b8..a256a0e3fc5123 100644 --- a/src/lib/core/CHIPConfig.h +++ b/src/lib/core/CHIPConfig.h @@ -1771,6 +1771,20 @@ extern const char CHIP_NON_PRODUCTION_MARKER[]; #define CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE 1003 #endif // CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE +/* + * @def CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST + * + * @brief Enables usage of heap in the minmdns DNSSD implementation + * for tracking active operational responder lists. + * + * When this is not set, CHIP_CONFIG_MAX_FABRICS is used to determine + * and statically allocate pointers needed to track active + * operational responder lists. + */ +#ifndef CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST +#define CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST 0 +#endif // CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST + /** * @} */ diff --git a/src/lib/core/core.gni b/src/lib/core/core.gni index 38851271197f4c..44654616b415ba 100644 --- a/src/lib/core/core.gni +++ b/src/lib/core/core.gni @@ -53,6 +53,14 @@ declare_args() { # When enabled traces messages using pw_trace. chip_enable_transport_trace = false + + # Enables using dynamic memory for minmdns tracking of operational + # responders. + # + # When not set, CHIP_CONFIG_MAX_FABRICS is used for static allocation + # of tracking information for operational advertisement. + chip_config_minmdns_dynamic_operational_responder_list = + current_os == "linux" || current_os == "android" || current_os == "darwin" } if (chip_target_style == "") { diff --git a/src/lib/dnssd/minimal_mdns/ResponseSender.cpp b/src/lib/dnssd/minimal_mdns/ResponseSender.cpp index 5d84e851ce3cd3..f3119a27ed8c13 100644 --- a/src/lib/dnssd/minimal_mdns/ResponseSender.cpp +++ b/src/lib/dnssd/minimal_mdns/ResponseSender.cpp @@ -21,15 +21,6 @@ #include -#define RETURN_IF_ERROR(err) \ - do \ - { \ - if (err != CHIP_NO_ERROR) \ - { \ - return; \ - } \ - } while (false) - namespace mdns { namespace Minimal { @@ -61,30 +52,54 @@ bool ResponseSendingState::IncludeQuery() const CHIP_ERROR ResponseSender::AddQueryResponder(QueryResponderBase * queryResponder) { - for (size_t i = 0; i < kMaxQueryResponders; ++i) + // If already existing or we find a free slot, just use it + // Note that dynamic memory implementations are never expected to be nullptr + // + for (auto it = mResponders.begin(); it != mResponders.end(); it++) { - if (mResponder[i] == nullptr || mResponder[i] == queryResponder) + if (*it == nullptr || *it == queryResponder) { - mResponder[i] = queryResponder; + *it = queryResponder; return CHIP_NO_ERROR; } } + +#if CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST + mResponders.push_back(queryResponder); + return CHIP_NO_ERROR; +#else return CHIP_ERROR_NO_MEMORY; +#endif } CHIP_ERROR ResponseSender::RemoveQueryResponder(QueryResponderBase * queryResponder) { - for (size_t i = 0; i < kMaxQueryResponders; ++i) + for (auto it = mResponders.begin(); it != mResponders.end(); it++) { - if (mResponder[i] == queryResponder) + if (*it == queryResponder) { - mResponder[i] = nullptr; + *it = nullptr; +#if CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST + mResponders.erase(it); +#endif return CHIP_NO_ERROR; } } return CHIP_ERROR_NOT_FOUND; } +bool ResponseSender::HasQueryResponders() const +{ + for (auto it = mResponders.begin(); it != mResponders.end(); it++) + { + if (*it != nullptr) + { + return true; + } + } + return false; +} + CHIP_ERROR ResponseSender::Respond(uint32_t messageId, const QueryData & query, const chip::Inet::IPPacketInfo * querySource) { mSendState.Reset(messageId, query, querySource); @@ -92,11 +107,13 @@ CHIP_ERROR ResponseSender::Respond(uint32_t messageId, const QueryData & query, // Responder has a stateful 'additional replies required' that is used within the response // loop. 'no additionals required' is set at the start and additionals are marked as the query // reply is built. - for (size_t i = 0; i < kMaxQueryResponders; ++i) + for (auto it = mResponders.begin(); it != mResponders.end(); it++) { - if (mResponder[i] != nullptr) { - mResponder[i]->ResetAdditionals(); + if (*it != nullptr) + { + (*it)->ResetAdditionals(); + } } } @@ -117,18 +134,18 @@ CHIP_ERROR ResponseSender::Respond(uint32_t messageId, const QueryData & query, // broadcasts on one interface to throttle broadcasts on another interface. responseFilter.SetIncludeOnlyMulticastBeforeMS(kTimeNow - chip::System::Clock::Seconds32(1)); } - for (size_t i = 0; i < kMaxQueryResponders; ++i) + for (auto responder = mResponders.begin(); responder != mResponders.end(); responder++) { - if (mResponder[i] == nullptr) + if (*responder == nullptr) { continue; } - for (auto it = mResponder[i]->begin(&responseFilter); it != mResponder[i]->end(); it++) + for (auto it = (*responder)->begin(&responseFilter); it != (*responder)->end(); it++) { it->responder->AddAllResponses(querySource, this); ReturnErrorOnFailure(mSendState.GetError()); - mResponder[i]->MarkAdditionalRepliesFor(it); + (*responder)->MarkAdditionalRepliesFor(it); if (!mSendState.SendUnicast()) { @@ -150,13 +167,13 @@ CHIP_ERROR ResponseSender::Respond(uint32_t messageId, const QueryData & query, responseFilter .SetReplyFilter(&queryReplyFilter) // .SetIncludeAdditionalRepliesOnly(true); - for (size_t i = 0; i < kMaxQueryResponders; ++i) + for (auto responder = mResponders.begin(); responder != mResponders.end(); responder++) { - if (mResponder[i] == nullptr) + if (*responder == nullptr) { continue; } - for (auto it = mResponder[i]->begin(&responseFilter); it != mResponder[i]->end(); it++) + for (auto it = (*responder)->begin(&responseFilter); it != (*responder)->end(); it++) { it->responder->AddAllResponses(querySource, this); ReturnErrorOnFailure(mSendState.GetError()); @@ -212,12 +229,12 @@ CHIP_ERROR ResponseSender::PrepareNewReplyPacket() void ResponseSender::AddResponse(const ResourceRecord & record) { - RETURN_IF_ERROR(mSendState.GetError()); + ReturnOnFailure(mSendState.GetError()); if (!mResponseBuilder.HasPacketBuffer()) { mSendState.SetError(PrepareNewReplyPacket()); - RETURN_IF_ERROR(mSendState.GetError()); + ReturnOnFailure(mSendState.GetError()); } if (!mResponseBuilder.Ok()) @@ -235,8 +252,8 @@ void ResponseSender::AddResponse(const ResourceRecord & record) { mResponseBuilder.Header().SetFlags(mResponseBuilder.Header().GetFlags().SetTruncated(true)); - RETURN_IF_ERROR(mSendState.SetError(FlushReply())); - RETURN_IF_ERROR(mSendState.SetError(PrepareNewReplyPacket())); + ReturnOnFailure(mSendState.SetError(FlushReply())); + ReturnOnFailure(mSendState.SetError(PrepareNewReplyPacket())); mResponseBuilder.AddRecord(mSendState.GetResourceType(), record); if (!mResponseBuilder.Ok()) diff --git a/src/lib/dnssd/minimal_mdns/ResponseSender.h b/src/lib/dnssd/minimal_mdns/ResponseSender.h index 8e5a2abb063e33..8cba032bd9a771 100644 --- a/src/lib/dnssd/minimal_mdns/ResponseSender.h +++ b/src/lib/dnssd/minimal_mdns/ResponseSender.h @@ -25,6 +25,23 @@ #include +#if CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST + +#include +using QueryResponderPtrPool = std::list; +#else + +#include + +// Note: ptr storage is 2 + number of operational networks required, based on +// the current implementation of Advertiser_ImplMinimalMdns.cpp: +// - 1 for commissionable advertising +// - 1 for commissioner responder +// - extra for every operational advertisement +using QueryResponderPtrPool = std::array; + +#endif + namespace mdns { namespace Minimal { @@ -88,12 +105,11 @@ class ResponseSendingState class ResponseSender : public ResponderDelegate { public: - // TODO(cecille): Template this and set appropriately. Please see issue #8000. - static constexpr size_t kMaxQueryResponders = 7; ResponseSender(ServerBase * server) : mServer(server) {} CHIP_ERROR AddQueryResponder(QueryResponderBase * queryResponder); CHIP_ERROR RemoveQueryResponder(QueryResponderBase * queryResponder); + bool HasQueryResponders() const; /// Send back the response to a particular query CHIP_ERROR Respond(uint32_t messageId, const QueryData & query, const chip::Inet::IPPacketInfo * querySource); @@ -108,7 +124,7 @@ class ResponseSender : public ResponderDelegate CHIP_ERROR PrepareNewReplyPacket(); ServerBase * mServer; - QueryResponderBase * mResponder[kMaxQueryResponders] = {}; + QueryResponderPtrPool mResponders = {}; /// Current send state ResponseBuilder mResponseBuilder; // packet being built diff --git a/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp b/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp index 8de65b7aba222c..3acfa4a88951de 100644 --- a/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp +++ b/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp @@ -328,18 +328,11 @@ void OperationalAdverts(nlTestSuite * inSuite, void * inContext) NL_TEST_ASSERT(inSuite, server.GetSendCalled()); NL_TEST_ASSERT(inSuite, server.GetHeaderFound()); - // We should be able to add several operational networks - // As these are platform::new allocated, there is no upper limit - // TODO: Responder still has an upper limit of responders, which gets checked - // here but should be removed as part of #8000 as we want to not have an - // upper bound on number of operational networks (or at least not memory - // enforced but rather policy enforced) + // All devices should support at least 5 operational network additions (spec min) + // however larger devices may support more. NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams3) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams4) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams5) == CHIP_NO_ERROR); - - // Adding a 6th should return an error - NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams6) == CHIP_ERROR_NO_MEMORY); } void CommissionableAdverts(nlTestSuite * inSuite, void * inContext) diff --git a/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp b/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp index 4a42cd2dcd96ea..c265bdab5a8604 100644 --- a/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp +++ b/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp @@ -253,34 +253,29 @@ void AddManyQueryResponders(nlTestSuite * inSuite, void * inContext) QueryResponder<1> q5; QueryResponder<1> q6; QueryResponder<1> q7; - QueryResponder<1> q8; // We should be able to re-add the same query responder as many times as we want. - for (size_t i = 0; i < ResponseSender::kMaxQueryResponders + 1; ++i) + // and it shold only count as one + constexpr size_t kAddLoopSize = 1000; + for (size_t i = 0; i < kAddLoopSize; ++i) { NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q1) == CHIP_NO_ERROR); } - // There are 7 total + // removing the only copy should clear out everything + responseSender.RemoveQueryResponder(&q1); + NL_TEST_ASSERT(inSuite, !responseSender.HasQueryResponders()); + + // At least 7 should be supported: + // - 5 is the spec minimum + // - 2 for commissionable and commisioner responders + NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q1) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q2) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q3) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q4) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q5) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q6) == CHIP_NO_ERROR); NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q7) == CHIP_NO_ERROR); - - // Last one should return a no memory error (no space) - NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q8) == CHIP_ERROR_NO_MEMORY); - - // can make space - NL_TEST_ASSERT(inSuite, responseSender.RemoveQueryResponder(&q3) == CHIP_NO_ERROR); - NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q8) == CHIP_NO_ERROR); - - // adding back does not fail - NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q8) == CHIP_NO_ERROR); - - // still full and cannot add more - NL_TEST_ASSERT(inSuite, responseSender.AddQueryResponder(&q3) == CHIP_ERROR_NO_MEMORY); } void PtrSrvTxtMultipleRespondersToInstance(nlTestSuite * inSuite, void * inContext) From 2d96f14210bc3625a805b51755b7380751206893 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 25 Mar 2022 23:56:44 -0400 Subject: [PATCH 14/23] Add spec-required checks to CommissioningComplete. (#16642) We were allowing CommissioningComplete over PASE (or group message, for that matter), not checking for a matching fail-safe, etc. --- .../general-commissioning-server.cpp | 43 ++++++++++++++----- src/include/platform/FailSafeContext.h | 2 +- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/src/app/clusters/general-commissioning-server/general-commissioning-server.cpp b/src/app/clusters/general-commissioning-server/general-commissioning-server.cpp index c46cfdd603fe21..fb3db979b8f130 100644 --- a/src/app/clusters/general-commissioning-server/general-commissioning-server.cpp +++ b/src/app/clusters/general-commissioning-server/general-commissioning-server.cpp @@ -40,6 +40,8 @@ using namespace chip::app::Clusters; using namespace chip::app::Clusters::GeneralCommissioning; using namespace chip::app::Clusters::GeneralCommissioning::Attributes; using namespace chip::DeviceLayer; +using Transport::SecureSession; +using Transport::Session; #define CheckSuccess(expr, code) \ do \ @@ -165,19 +167,40 @@ bool emberAfGeneralCommissioningClusterCommissioningCompleteCallback( const Commands::CommissioningComplete::DecodableType & commandData) { MATTER_TRACE_EVENT_SCOPE("CommissioningComplete", "GeneralCommissioning"); - DeviceControlServer * server = &DeviceLayer::DeviceControlServer::DeviceControlSvr(); - - /* - * Pass fabric of commissioner to DeviceControlSvr. - * This allows device to send messages back to commissioner. - * Once bindings are implemented, this may no longer be needed. - */ - SessionHandle handle = commandObj->GetExchangeContext()->GetSessionHandle(); - CheckSuccess(server->CommissioningComplete(handle->AsSecureSession()->GetPeerNodeId(), handle->GetFabricIndex()), Failure); + DeviceControlServer * server = &DeviceLayer::DeviceControlServer::DeviceControlSvr(); + const auto & failSafe = server->GetFailSafeContext(); Commands::CommissioningCompleteResponse::Type response; - response.errorCode = CommissioningError::kOk; + if (!failSafe.IsFailSafeArmed()) + { + response.errorCode = CommissioningError::kNoFailSafe; + } + else + { + SessionHandle handle = commandObj->GetExchangeContext()->GetSessionHandle(); + // If not a CASE session, or the fabric does not match the fail-safe, + // error out. + if (handle->GetSessionType() != Session::SessionType::kSecure || + handle->AsSecureSession()->GetSecureSessionType() != SecureSession::Type::kCASE || + !failSafe.MatchesFabricIndex(commandObj->GetAccessingFabricIndex())) + { + response.errorCode = CommissioningError::kInvalidAuthentication; + } + else + { + /* + * Pass fabric of commissioner to DeviceControlSvr. + * This allows device to send messages back to commissioner. + * Once bindings are implemented, this may no longer be needed. + */ + CheckSuccess(server->CommissioningComplete(handle->AsSecureSession()->GetPeerNodeId(), handle->GetFabricIndex()), + Failure); + + response.errorCode = CommissioningError::kOk; + } + } + CheckSuccess(commandObj->AddResponseData(commandPath, response), Failure); return true; diff --git a/src/include/platform/FailSafeContext.h b/src/include/platform/FailSafeContext.h index 314e9f90493813..7e8b41cb7d74c5 100644 --- a/src/include/platform/FailSafeContext.h +++ b/src/include/platform/FailSafeContext.h @@ -42,7 +42,7 @@ class FailSafeContext CHIP_ERROR ArmFailSafe(FabricIndex accessingFabricIndex, System::Clock::Timeout expiryLength); CHIP_ERROR DisarmFailSafe(); - inline bool IsFailSafeArmed(FabricIndex accessingFabricIndex) + inline bool IsFailSafeArmed(FabricIndex accessingFabricIndex) const { return mFailSafeArmed && MatchesFabricIndex(accessingFabricIndex); } From 44796214073cf017344aa8f376a68425117e931f Mon Sep 17 00:00:00 2001 From: wendythewan <99999710+wendythewan@users.noreply.github.com> Date: Fri, 25 Mar 2022 20:57:25 -0700 Subject: [PATCH 15/23] Guard raw/Ble usage with CONFIG_NETWORK_LAYER_BLE (#16651) * Guard raw/Ble usage with CONFIG_NETWORK_LAYER_BLE * Guard raw/Ble usage with CONFIG_NETWORK_LAYER_BLE --- src/app/server/Server.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/server/Server.h b/src/app/server/Server.h index e05c4ae54b4cb2..b036f96eed08d7 100644 --- a/src/app/server/Server.h +++ b/src/app/server/Server.h @@ -39,7 +39,9 @@ #include #include #include +#if CONFIG_NETWORK_LAYER_BLE #include +#endif #include namespace chip { From f05afad3aa61a0d8e9a56efbb8ce2ddb13d198e3 Mon Sep 17 00:00:00 2001 From: Praveen Chandran Date: Fri, 25 Mar 2022 20:57:58 -0700 Subject: [PATCH 16/23] Update example apps for Infineon P6 Platform (#16652) --- examples/all-clusters-app/p6/args.gni | 6 ----- .../all-clusters-app/p6/include/AppTask.h | 2 +- examples/all-clusters-app/p6/src/AppTask.cpp | 18 ++++++++++----- examples/lighting-app/p6/args.gni | 6 ----- examples/lighting-app/p6/include/AppTask.h | 2 +- examples/lighting-app/p6/src/AppTask.cpp | 19 +++++++++------ examples/lock-app/p6/args.gni | 6 ----- examples/lock-app/p6/include/AppTask.h | 2 ++ examples/lock-app/p6/src/AppTask.cpp | 23 ++++++++++++++----- examples/ota-requestor-app/p6/README.md | 4 ++-- examples/ota-requestor-app/p6/args.gni | 4 ---- examples/ota-requestor-app/p6/src/AppTask.cpp | 14 +++++++---- .../p6/p6_sdk/configs/FreeRTOSConfig.h | 1 + 13 files changed, 58 insertions(+), 49 deletions(-) diff --git a/examples/all-clusters-app/p6/args.gni b/examples/all-clusters-app/p6/args.gni index 43a75f96144ea5..2a93385cf36bd6 100644 --- a/examples/all-clusters-app/p6/args.gni +++ b/examples/all-clusters-app/p6/args.gni @@ -18,9 +18,3 @@ import("${chip_root}/src/platform/P6/args.gni") p6_target_project = get_label_info(":all_clusters_app_sdk_sources", "label_no_toolchain") - -declare_args() { - # Disable lock tracking, since our FreeRTOS configuration does not set - # INCLUDE_xSemaphoreGetMutexHolder - chip_stack_lock_tracking = "none" -} diff --git a/examples/all-clusters-app/p6/include/AppTask.h b/examples/all-clusters-app/p6/include/AppTask.h index 29c06f08792c40..a5f606cc451b85 100644 --- a/examples/all-clusters-app/p6/include/AppTask.h +++ b/examples/all-clusters-app/p6/include/AppTask.h @@ -54,7 +54,7 @@ class AppTask static AppTask sAppTask; void DispatchEvent(AppEvent * event); - static void OnOffUpdateClusterState(void); + static void OnOffUpdateClusterState(intptr_t context); }; inline AppTask & GetAppTask(void) diff --git a/examples/all-clusters-app/p6/src/AppTask.cpp b/examples/all-clusters-app/p6/src/AppTask.cpp index 977730e5845631..927bfcf012683f 100644 --- a/examples/all-clusters-app/p6/src/AppTask.cpp +++ b/examples/all-clusters-app/p6/src/AppTask.cpp @@ -81,6 +81,15 @@ void NetWorkCommissioningInstInit() sWiFiNetworkCommissioningInstance.Init(); } +static void InitServer(intptr_t context) +{ + // Init ZCL Data Model + chip::Server::GetInstance().Init(); + + // Initialize device attestation config + SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); +} + CHIP_ERROR AppTask::StartAppTask() { sAppEventQueue = xQueueCreateStatic(APP_EVENT_QUEUE_SIZE, sizeof(AppEvent), sAppEventQueueBuffer, &sAppEventQueueStruct); @@ -112,11 +121,8 @@ CHIP_ERROR AppTask::Init() } }, 0); - // Init ZCL Data Model - chip::Server::GetInstance().Init(); - // Initialize device attestation config - SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); + chip::DeviceLayer::PlatformMgr().ScheduleWork(InitServer, reinterpret_cast(nullptr)); // Initialise WSTK buttons PB0 and PB1 (including debounce). ButtonHandler::Init(); @@ -166,7 +172,7 @@ void AppTask::LightActionEventHandler(AppEvent * aEvent) sLightLED.Invert(); /* Update OnOff Cluster state */ - sAppTask.OnOffUpdateClusterState(); + chip::DeviceLayer::PlatformMgr().ScheduleWork(OnOffUpdateClusterState, reinterpret_cast(nullptr)); } void AppTask::ButtonEventHandler(uint8_t btnIdx, uint8_t btnAction) @@ -232,7 +238,7 @@ void AppTask::DispatchEvent(AppEvent * aEvent) } } -void AppTask::OnOffUpdateClusterState(void) +void AppTask::OnOffUpdateClusterState(intptr_t context) { uint8_t onoff = sLightLED.Get(); diff --git a/examples/lighting-app/p6/args.gni b/examples/lighting-app/p6/args.gni index 5f9b284655b922..f239efee01e5da 100644 --- a/examples/lighting-app/p6/args.gni +++ b/examples/lighting-app/p6/args.gni @@ -18,9 +18,3 @@ import("${chip_root}/src/platform/P6/args.gni") p6_target_project = get_label_info(":lighting_app_sdk_sources", "label_no_toolchain") - -declare_args() { - # Disable lock tracking, since our FreeRTOS configuration does not set - # INCLUDE_xSemaphoreGetMutexHolder - chip_stack_lock_tracking = "none" -} diff --git a/examples/lighting-app/p6/include/AppTask.h b/examples/lighting-app/p6/include/AppTask.h index c7f9a23f48a495..cf8feffb2c7f08 100644 --- a/examples/lighting-app/p6/include/AppTask.h +++ b/examples/lighting-app/p6/include/AppTask.h @@ -67,7 +67,7 @@ class AppTask static void LightActionEventHandler(AppEvent * aEvent); static void TimerEventHandler(TimerHandle_t xTimer); - static void UpdateClusterState(void); + static void UpdateClusterState(intptr_t context); void StartTimer(uint32_t aTimeoutMs); diff --git a/examples/lighting-app/p6/src/AppTask.cpp b/examples/lighting-app/p6/src/AppTask.cpp index ab50aefb66f9c3..5bcc08727672de 100644 --- a/examples/lighting-app/p6/src/AppTask.cpp +++ b/examples/lighting-app/p6/src/AppTask.cpp @@ -85,6 +85,15 @@ void NetWorkCommissioningInstInit() sWiFiNetworkCommissioningInstance.Init(); } +static void InitServer(intptr_t context) +{ + // Init ZCL Data Model + chip::Server::GetInstance().Init(); + + // Initialize device attestation config + SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); +} + CHIP_ERROR AppTask::StartAppTask() { sAppEventQueue = xQueueCreateStatic(APP_EVENT_QUEUE_SIZE, sizeof(AppEvent), sAppEventQueueBuffer, &sAppEventQueueStruct); @@ -117,11 +126,8 @@ CHIP_ERROR AppTask::Init() } }, 0); - // Init ZCL Data Model - chip::Server::GetInstance().Init(); - // Initialize device attestation config - SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); + chip::DeviceLayer::PlatformMgr().ScheduleWork(InitServer, reinterpret_cast(nullptr)); // Initialise WSTK buttons PB0 and PB1 (including debounce). ButtonHandler::Init(); @@ -153,7 +159,6 @@ CHIP_ERROR AppTask::Init() sStatusLED.Init(SYSTEM_STATE_LED); sLightLED.Init(LIGHT_LED); sLightLED.Set(LightMgr().IsLightOn()); - UpdateClusterState(); ConfigurationMgr().LogDeviceConfig(); @@ -445,7 +450,7 @@ void AppTask::ActionCompleted(LightingManager::Action_t aAction) if (sAppTask.mSyncClusterToButtonAction) { - UpdateClusterState(); + chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState, reinterpret_cast(nullptr)); sAppTask.mSyncClusterToButtonAction = false; } } @@ -504,7 +509,7 @@ void AppTask::DispatchEvent(AppEvent * aEvent) } } -void AppTask::UpdateClusterState(void) +void AppTask::UpdateClusterState(intptr_t context) { uint8_t newValue = LightMgr().IsLightOn(); diff --git a/examples/lock-app/p6/args.gni b/examples/lock-app/p6/args.gni index c0b6f98e878997..a83cf1abdcb38e 100644 --- a/examples/lock-app/p6/args.gni +++ b/examples/lock-app/p6/args.gni @@ -18,9 +18,3 @@ import("${chip_root}/src/platform/P6/args.gni") p6_target_project = get_label_info(":lock_app_sdk_sources", "label_no_toolchain") - -declare_args() { - # Disable lock tracking, since our FreeRTOS configuration does not set - # INCLUDE_xSemaphoreGetMutexHolder - chip_stack_lock_tracking = "none" -} diff --git a/examples/lock-app/p6/include/AppTask.h b/examples/lock-app/p6/include/AppTask.h index e4da2aba0aa403..854d70efdb9744 100644 --- a/examples/lock-app/p6/include/AppTask.h +++ b/examples/lock-app/p6/include/AppTask.h @@ -68,6 +68,8 @@ class AppTask static void LockActionEventHandler(AppEvent * event); static void TimerEventHandler(TimerHandle_t timer); + static void UpdateCluster(intptr_t context); + void StartTimer(uint32_t aTimeoutMs); enum class Function diff --git a/examples/lock-app/p6/src/AppTask.cpp b/examples/lock-app/p6/src/AppTask.cpp index a4e0cbb5e35739..3f0b37e2f340e5 100644 --- a/examples/lock-app/p6/src/AppTask.cpp +++ b/examples/lock-app/p6/src/AppTask.cpp @@ -83,6 +83,15 @@ void NetWorkCommissioningInstInit() sWiFiNetworkCommissioningInstance.Init(); } +static void InitServer(intptr_t context) +{ + // Init ZCL Data Model + chip::Server::GetInstance().Init(); + + // Initialize device attestation config + SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); +} + CHIP_ERROR AppTask::StartAppTask() { sAppEventQueue = xQueueCreate(APP_EVENT_QUEUE_SIZE, sizeof(AppEvent)); @@ -115,11 +124,8 @@ CHIP_ERROR AppTask::Init() } }, 0); - // Init ZCL Data Model - chip::Server::GetInstance().Init(); - // Initialize device attestation config - SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); + chip::DeviceLayer::PlatformMgr().ScheduleWork(InitServer, reinterpret_cast(nullptr)); // Initialise WSTK buttons PB0 and PB1 (including debounce). ButtonHandler::Init(); @@ -151,7 +157,6 @@ CHIP_ERROR AppTask::Init() sStatusLED.Init(SYSTEM_STATE_LED); sLockLED.Init(LOCK_STATE_LED); sLockLED.Set(!BoltLockMgr().IsUnlocked()); - UpdateClusterState(); ConfigurationMgr().LogDeviceConfig(); @@ -490,7 +495,7 @@ void AppTask::DispatchEvent(AppEvent * event) } } -void AppTask::UpdateClusterState(void) +void AppTask::UpdateCluster(intptr_t context) { uint8_t newValue = !BoltLockMgr().IsUnlocked(); @@ -502,6 +507,12 @@ void AppTask::UpdateClusterState(void) P6_LOG("ERR: updating on/off %x", status); } } + +void AppTask::UpdateClusterState(void) +{ + chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateCluster, reinterpret_cast(nullptr)); +} + void vApplicationStackOverflowHook(TaskHandle_t pxTask, char * pcTaskName) { (void) pxTask; diff --git a/examples/ota-requestor-app/p6/README.md b/examples/ota-requestor-app/p6/README.md index 73c5361389fe6b..e63b3a5842444f 100644 --- a/examples/ota-requestor-app/p6/README.md +++ b/examples/ota-requestor-app/p6/README.md @@ -54,11 +54,11 @@ will then join the network. * Build the P6 OTA Requestor application from the chip root dir: - $ ./examples/ota-requestor-app/examples/ota_base_build.sh + $ ./examples/ota-requestor-app/p6/ota_base_build.sh * Build the P6 OTA Update application from the chip root dir: - $ ./examples/ota-requestor-app/examples/ota_update_build.sh + $ ./examples/ota-requestor-app/p6/ota_update_build.sh * On a RPi4: Build the Linux OTA Provider application from the chip root dir: diff --git a/examples/ota-requestor-app/p6/args.gni b/examples/ota-requestor-app/p6/args.gni index 0afa5bc4780513..43c58836f60ddf 100644 --- a/examples/ota-requestor-app/p6/args.gni +++ b/examples/ota-requestor-app/p6/args.gni @@ -18,10 +18,6 @@ import("${chip_root}/src/platform/P6/args.gni") declare_args() { chip_enable_ota_requestor = true - - # Disable lock tracking, since our FreeRTOS configuration does not set - # INCLUDE_xSemaphoreGetMutexHolder - chip_stack_lock_tracking = "none" } p6_target_project = diff --git a/examples/ota-requestor-app/p6/src/AppTask.cpp b/examples/ota-requestor-app/p6/src/AppTask.cpp index 5a6018a039a324..1e4333037aefa6 100644 --- a/examples/ota-requestor-app/p6/src/AppTask.cpp +++ b/examples/ota-requestor-app/p6/src/AppTask.cpp @@ -112,6 +112,15 @@ void NetWorkCommissioningInstInit() sWiFiNetworkCommissioningInstance.Init(); } +static void InitServer(intptr_t context) +{ + // Init ZCL Data Model + chip::Server::GetInstance().Init(); + + // Initialize device attestation config + SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); +} + CHIP_ERROR AppTask::StartAppTask() { sAppEventQueue = xQueueCreateStatic(APP_EVENT_QUEUE_SIZE, sizeof(AppEvent), sAppEventQueueBuffer, &sAppEventQueueStruct); @@ -151,11 +160,8 @@ CHIP_ERROR AppTask::Init() } }, 0); - // Init ZCL Data Model - chip::Server::GetInstance().Init(); - // Initialize device attestation config - SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); + chip::DeviceLayer::PlatformMgr().ScheduleWork(InitServer, reinterpret_cast(nullptr)); // Initialise WSTK buttons PB0 and PB1 (including debounce). ButtonHandler::Init(); diff --git a/third_party/p6/p6_sdk/configs/FreeRTOSConfig.h b/third_party/p6/p6_sdk/configs/FreeRTOSConfig.h index df4d89c52c93a4..38e058fbec9fbf 100644 --- a/third_party/p6/p6_sdk/configs/FreeRTOSConfig.h +++ b/third_party/p6/p6_sdk/configs/FreeRTOSConfig.h @@ -155,6 +155,7 @@ to exclude the API function. */ #define INCLUDE_vTaskDelay 1 #define INCLUDE_xTaskIsTaskFinished 1 #define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xSemaphoreGetMutexHolder 1 /* Normal assert() semantics without relying on the provision of an assert.h header file. */ From 30b833024ef9f854ea57a952a223a848c9978c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Kr=C3=B3lik?= <66667989+Damian-Nordic@users.noreply.github.com> Date: Sat, 26 Mar 2022 04:59:46 +0100 Subject: [PATCH 17/23] [general-diagnostics] Use type-safe BootReasonType enum (#16556) * [general-diagnostics] Use type-safe BootReaonType enum 1. Switch from EmberAfBootReasonType to type-safe BootReasonType. 2. Use BootReasonType in DiagnosticDataProvider interface. * Fix K32W build --- examples/platform/linux/AppMain.cpp | 14 +++++----- .../general-diagnostics-server.cpp | 13 +++------- src/app/zap-templates/templates/app/helper.js | 1 - src/include/platform/DiagnosticDataProvider.h | 16 +++--------- .../internal/GenericPlatformManagerImpl.ipp | 4 +-- .../Ameba/ConfigurationManagerImpl.cpp | 2 +- .../Ameba/DiagnosticDataProviderImpl.cpp | 4 +-- .../Ameba/DiagnosticDataProviderImpl.h | 2 +- .../Darwin/ConfigurationManagerImpl.cpp | 2 +- .../EFR32/ConfigurationManagerImpl.cpp | 26 +++++++++---------- .../EFR32/DiagnosticDataProviderImpl.cpp | 4 +-- .../EFR32/DiagnosticDataProviderImpl.h | 2 +- .../ESP32/DiagnosticDataProviderImpl.cpp | 14 +++++----- .../ESP32/DiagnosticDataProviderImpl.h | 2 +- .../Linux/ConfigurationManagerImpl.cpp | 2 +- .../Linux/DiagnosticDataProviderImpl.cpp | 4 +-- .../Linux/DiagnosticDataProviderImpl.h | 2 +- .../P6/DiagnosticDataProviderImpl.cpp | 12 ++++----- src/platform/P6/DiagnosticDataProviderImpl.h | 2 +- .../Zephyr/DiagnosticDataProviderImpl.cpp | 18 ++++++------- .../Zephyr/DiagnosticDataProviderImpl.h | 4 +-- .../fake/DiagnosticDataProviderImpl.h | 2 +- .../k32w/k32w0/ConfigurationManagerImpl.cpp | 18 ++++++------- .../k32w/k32w0/DiagnosticDataProviderImpl.cpp | 4 +-- .../k32w/k32w0/DiagnosticDataProviderImpl.h | 2 +- .../app-common/zap-generated/cluster-enums.h | 6 ----- .../app-common/zap-generated/enums.h | 12 --------- 27 files changed, 80 insertions(+), 114 deletions(-) diff --git a/examples/platform/linux/AppMain.cpp b/examples/platform/linux/AppMain.cpp index a3901bd2c990da..22d9052686fac2 100644 --- a/examples/platform/linux/AppMain.cpp +++ b/examples/platform/linux/AppMain.cpp @@ -104,26 +104,26 @@ void OnSignalHandler(int signum) // The BootReason attribute SHALL indicate the reason for the Node’s most recent boot, the real usecase // for this attribute is embedded system. In Linux simulation, we use different signals to tell the current // running process to terminate with different reasons. - BootReasonType bootReason = BootReasonType::Unspecified; + BootReasonType bootReason = BootReasonType::kUnspecified; switch (signum) { case SIGVTALRM: - bootReason = BootReasonType::PowerOnReboot; + bootReason = BootReasonType::kPowerOnReboot; break; case SIGALRM: - bootReason = BootReasonType::BrownOutReset; + bootReason = BootReasonType::kBrownOutReset; break; case SIGILL: - bootReason = BootReasonType::SoftwareWatchdogReset; + bootReason = BootReasonType::kSoftwareWatchdogReset; break; case SIGTRAP: - bootReason = BootReasonType::HardwareWatchdogReset; + bootReason = BootReasonType::kHardwareWatchdogReset; break; case SIGIO: - bootReason = BootReasonType::SoftwareUpdateCompleted; + bootReason = BootReasonType::kSoftwareUpdateCompleted; break; case SIGINT: - bootReason = BootReasonType::SoftwareReset; + bootReason = BootReasonType::kSoftwareReset; break; default: IgnoreUnusedVariable(bootReason); diff --git a/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp b/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp index 8608c1f99a9748..cc6ec9d355f2ad 100644 --- a/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp +++ b/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp @@ -36,13 +36,6 @@ using chip::DeviceLayer::ConnectivityMgr; using chip::DeviceLayer::DiagnosticDataProvider; using chip::DeviceLayer::GetDiagnosticDataProvider; -static_assert(sizeof(chip::DeviceLayer::BootReasonType) == sizeof(EmberAfBootReasonType), - "BootReasonType size doesn't match EmberAfBootReasonType size"); -static_assert(static_cast(chip::DeviceLayer::BootReasonType::Unspecified) == EMBER_ZCL_BOOT_REASON_TYPE_UNSPECIFIED && - static_cast(chip::DeviceLayer::BootReasonType::SoftwareReset) == - EMBER_ZCL_BOOT_REASON_TYPE_SOFTWARE_RESET, - "BootReasonType and EmberAfBootReasonType values does not match."); - namespace { class GeneralDiagosticsAttrAccess : public AttributeAccessInterface @@ -71,7 +64,7 @@ CHIP_ERROR GeneralDiagosticsAttrAccess::ReadIfSupported(CHIP_ERROR (DiagnosticDa CHIP_ERROR err = (GetDiagnosticDataProvider().*getter)(data); if (err == CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE) { - data = 0; + data = {}; } else if (err != CHIP_NO_ERROR) { @@ -195,7 +188,7 @@ class GeneralDiagnosticsDelegate : public DeviceLayer::ConnectivityManagerDelega } // Gets called when the device has been rebooted. - void OnDeviceRebooted(chip::DeviceLayer::BootReasonType bootReason) override + void OnDeviceRebooted(BootReasonType bootReason) override { ChipLogDetail(Zcl, "GeneralDiagnosticsDelegate: OnDeviceRebooted"); @@ -203,7 +196,7 @@ class GeneralDiagnosticsDelegate : public DeviceLayer::ConnectivityManagerDelega // GeneralDiagnostics cluster should exist only for endpoint 0. - Events::BootReason::Type event{ static_cast(bootReason) }; + Events::BootReason::Type event{ bootReason }; EventNumber eventNumber; CHIP_ERROR err = LogEvent(event, 0, eventNumber); diff --git a/src/app/zap-templates/templates/app/helper.js b/src/app/zap-templates/templates/app/helper.js index 04817befafbd26..326960bc6e1f01 100644 --- a/src/app/zap-templates/templates/app/helper.js +++ b/src/app/zap-templates/templates/app/helper.js @@ -754,7 +754,6 @@ function isWeaklyTypedEnum(label) "AttributeWritePermission", "BarrierControlBarrierPosition", "BarrierControlMovingState", - "BootReasonType", "ColorControlOptions", "ColorLoopAction", "ColorLoopDirection", diff --git a/src/include/platform/DiagnosticDataProvider.h b/src/include/platform/DiagnosticDataProvider.h index 1c634f63a6ed67..0d576e4ae1c103 100644 --- a/src/include/platform/DiagnosticDataProvider.h +++ b/src/include/platform/DiagnosticDataProvider.h @@ -23,6 +23,7 @@ #pragma once #include +#include #include #include @@ -41,16 +42,7 @@ constexpr size_t kMaxIPv6AddrSize = 16; constexpr size_t kMaxIPv4AddrCount = 4; constexpr size_t kMaxIPv6AddrCount = 8; -enum BootReasonType : uint8_t -{ - Unspecified = 0, - PowerOnReboot = 1, - BrownOutReset = 2, - SoftwareWatchdogReset = 3, - HardwareWatchdogReset = 4, - SoftwareUpdateCompleted = 5, - SoftwareReset = 6, -}; +using BootReasonType = app::Clusters::GeneralDiagnostics::BootReasonType; struct ThreadMetrics : public app::Clusters::SoftwareDiagnostics::Structs::ThreadMetrics::Type { @@ -168,7 +160,7 @@ class DiagnosticDataProvider virtual CHIP_ERROR GetRebootCount(uint16_t & rebootCount); virtual CHIP_ERROR GetUpTime(uint64_t & upTime); virtual CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours); - virtual CHIP_ERROR GetBootReason(uint8_t & bootReason); + virtual CHIP_ERROR GetBootReason(BootReasonType & bootReason); virtual CHIP_ERROR GetActiveHardwareFaults(GeneralFaults & hardwareFaults); virtual CHIP_ERROR GetActiveRadioFaults(GeneralFaults & radioFaults); virtual CHIP_ERROR GetActiveNetworkFaults(GeneralFaults & networkFaults); @@ -296,7 +288,7 @@ inline CHIP_ERROR DiagnosticDataProvider::GetTotalOperationalHours(uint32_t & to return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE; } -inline CHIP_ERROR DiagnosticDataProvider::GetBootReason(uint8_t & bootReason) +inline CHIP_ERROR DiagnosticDataProvider::GetBootReason(BootReasonType & bootReason) { return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE; } diff --git a/src/include/platform/internal/GenericPlatformManagerImpl.ipp b/src/include/platform/internal/GenericPlatformManagerImpl.ipp index cc14a287abba2e..9bb7dd8065e654 100644 --- a/src/include/platform/internal/GenericPlatformManagerImpl.ipp +++ b/src/include/platform/internal/GenericPlatformManagerImpl.ipp @@ -207,10 +207,10 @@ void GenericPlatformManagerImpl::_HandleServerStarted() if (generalDiagnosticsDelegate != nullptr) { - uint8_t bootReason; + BootReasonType bootReason; if (GetDiagnosticDataProvider().GetBootReason(bootReason) == CHIP_NO_ERROR) - generalDiagnosticsDelegate->OnDeviceRebooted(static_cast(bootReason)); + generalDiagnosticsDelegate->OnDeviceRebooted(bootReason); } } diff --git a/src/platform/Ameba/ConfigurationManagerImpl.cpp b/src/platform/Ameba/ConfigurationManagerImpl.cpp index 44485c1d12e94f..64abfe8a6bcbed 100644 --- a/src/platform/Ameba/ConfigurationManagerImpl.cpp +++ b/src/platform/Ameba/ConfigurationManagerImpl.cpp @@ -80,7 +80,7 @@ CHIP_ERROR ConfigurationManagerImpl::Init() if (!AmebaConfig::ConfigValueExists(AmebaConfig::kCounterKey_BootReason)) { - err = StoreBootReason(BootReasonType::Unspecified); + err = StoreBootReason(to_underlying(BootReasonType::kUnspecified)); SuccessOrExit(err); } diff --git a/src/platform/Ameba/DiagnosticDataProviderImpl.cpp b/src/platform/Ameba/DiagnosticDataProviderImpl.cpp index a9cf100558f315..19330b84472b7a 100644 --- a/src/platform/Ameba/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Ameba/DiagnosticDataProviderImpl.cpp @@ -103,7 +103,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetTotalOperationalHours(uint32_t & total return CHIP_ERROR_INVALID_TIME; } -CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) +CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(BootReasonType & bootReason) { uint32_t reason = 0; @@ -112,7 +112,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) if (err == CHIP_NO_ERROR) { VerifyOrReturnError(reason <= UINT8_MAX, CHIP_ERROR_INVALID_INTEGER_VALUE); - bootReason = static_cast(reason); + bootReason = static_cast(reason); } return err; diff --git a/src/platform/Ameba/DiagnosticDataProviderImpl.h b/src/platform/Ameba/DiagnosticDataProviderImpl.h index 9190c1a3bdc9e8..0d07a529731ce7 100644 --- a/src/platform/Ameba/DiagnosticDataProviderImpl.h +++ b/src/platform/Ameba/DiagnosticDataProviderImpl.h @@ -44,7 +44,7 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; CHIP_ERROR GetNetworkInterfaces(NetworkInterface ** netifpp) override; void ReleaseNetworkInterfaces(NetworkInterface * netifp) override; diff --git a/src/platform/Darwin/ConfigurationManagerImpl.cpp b/src/platform/Darwin/ConfigurationManagerImpl.cpp index d48f7e21e77afe..2d1ae1b8921e35 100644 --- a/src/platform/Darwin/ConfigurationManagerImpl.cpp +++ b/src/platform/Darwin/ConfigurationManagerImpl.cpp @@ -160,7 +160,7 @@ CHIP_ERROR ConfigurationManagerImpl::Init() if (!PosixConfig::ConfigValueExists(PosixConfig::kCounterKey_BootReason)) { - ReturnErrorOnFailure(StoreBootReason(BootReasonType::Unspecified)); + ReturnErrorOnFailure(StoreBootReason(to_underlying(BootReasonType::kUnspecified))); } if (!PosixConfig::ConfigValueExists(PosixConfig::kConfigKey_RegulatoryLocation)) diff --git a/src/platform/EFR32/ConfigurationManagerImpl.cpp b/src/platform/EFR32/ConfigurationManagerImpl.cpp index c99bfa734caca5..a333ff00988325 100644 --- a/src/platform/EFR32/ConfigurationManagerImpl.cpp +++ b/src/platform/EFR32/ConfigurationManagerImpl.cpp @@ -107,57 +107,57 @@ CHIP_ERROR ConfigurationManagerImpl::IncreaseBootCount(void) uint32_t ConfigurationManagerImpl::GetBootReason(void) { // rebootCause is obtained at bootup. - uint32_t matterBootCause; + BootReasonType matterBootCause; #if defined(_SILICON_LABS_32B_SERIES_1) if (rebootCause & RMU_RSTCAUSE_PORST || rebootCause & RMU_RSTCAUSE_EXTRST) // PowerOn or External pin reset { - matterBootCause = BootReasonType::PowerOnReboot; + matterBootCause = BootReasonType::kPowerOnReboot; } else if (rebootCause & RMU_RSTCAUSE_AVDDBOD || rebootCause & RMU_RSTCAUSE_DVDDBOD || rebootCause & RMU_RSTCAUSE_DECBOD) { - matterBootCause = BootReasonType::BrownOutReset; + matterBootCause = BootReasonType::kBrownOutReset; } else if (rebootCause & RMU_RSTCAUSE_SYSREQRST) { - matterBootCause = BootReasonType::SoftwareReset; + matterBootCause = BootReasonType::kSoftwareReset; } else if (rebootCause & RMU_RSTCAUSE_WDOGRST) { - matterBootCause = BootReasonType::SoftwareWatchdogReset; + matterBootCause = BootReasonType::kSoftwareWatchdogReset; } else { - matterBootCause = BootReasonType::Unspecified; + matterBootCause = BootReasonType::kUnspecified; } // Not tracked HARDWARE_WATCHDOG_RESET && SOFTWARE_UPDATE_COMPLETED #elif defined(_SILICON_LABS_32B_SERIES_2) if (rebootCause & EMU_RSTCAUSE_POR || rebootCause & EMU_RSTCAUSE_PIN) // PowerOn or External pin reset { - matterBootCause = BootReasonType::PowerOnReboot; + matterBootCause = BootReasonType::kPowerOnReboot; } else if (rebootCause & EMU_RSTCAUSE_AVDDBOD || rebootCause & EMU_RSTCAUSE_DVDDBOD || rebootCause & EMU_RSTCAUSE_DECBOD || rebootCause & EMU_RSTCAUSE_VREGIN || rebootCause & EMU_RSTCAUSE_IOVDD0BOD || rebootCause & EMU_RSTCAUSE_DVDDLEBOD) { - matterBootCause = BootReasonType::BrownOutReset; + matterBootCause = BootReasonType::kBrownOutReset; } else if (rebootCause & EMU_RSTCAUSE_SYSREQ) { - matterBootCause = BootReasonType::SoftwareReset; + matterBootCause = BootReasonType::kSoftwareReset; } else if (rebootCause & EMU_RSTCAUSE_WDOG0 || rebootCause & EMU_RSTCAUSE_WDOG1) { - matterBootCause = BootReasonType::SoftwareWatchdogReset; + matterBootCause = BootReasonType::kSoftwareWatchdogReset; } else { - matterBootCause = BootReasonType::Unspecified; + matterBootCause = BootReasonType::kUnspecified; } // Not tracked HARDWARE_WATCHDOG_RESET && SOFTWARE_UPDATE_COMPLETED #else - matterBootCause = BootReasonType::Unspecified; + matterBootCause = BootReasonType::kUnspecified; #endif - return matterBootCause; + return to_underlying(matterBootCause); } CHIP_ERROR ConfigurationManagerImpl::GetTotalOperationalHours(uint32_t & totalOperationalHours) diff --git a/src/platform/EFR32/DiagnosticDataProviderImpl.cpp b/src/platform/EFR32/DiagnosticDataProviderImpl.cpp index bea3c052e0d428..442f51174369db 100644 --- a/src/platform/EFR32/DiagnosticDataProviderImpl.cpp +++ b/src/platform/EFR32/DiagnosticDataProviderImpl.cpp @@ -98,7 +98,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetRebootCount(uint16_t & rebootCount) return err; } -CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) +CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(BootReasonType & bootReason) { uint32_t reason = 0; CHIP_ERROR err = ConfigurationMgr().GetBootReason(reason); @@ -106,7 +106,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) if (err == CHIP_NO_ERROR) { VerifyOrReturnError(reason <= UINT8_MAX, CHIP_ERROR_INVALID_INTEGER_VALUE); - bootReason = static_cast(reason); + bootReason = static_cast(reason); } return err; diff --git a/src/platform/EFR32/DiagnosticDataProviderImpl.h b/src/platform/EFR32/DiagnosticDataProviderImpl.h index f2618e0fae6d80..a10259e6f7b336 100644 --- a/src/platform/EFR32/DiagnosticDataProviderImpl.h +++ b/src/platform/EFR32/DiagnosticDataProviderImpl.h @@ -43,7 +43,7 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetCurrentHeapUsed(uint64_t & currentHeapUsed) override; CHIP_ERROR GetCurrentHeapHighWatermark(uint64_t & currentHeapHighWatermark) override; CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; CHIP_ERROR GetActiveHardwareFaults(GeneralFaults & hardwareFaults) override; diff --git a/src/platform/ESP32/DiagnosticDataProviderImpl.cpp b/src/platform/ESP32/DiagnosticDataProviderImpl.cpp index 62e942ee5a4316..ecab9d96252190 100644 --- a/src/platform/ESP32/DiagnosticDataProviderImpl.cpp +++ b/src/platform/ESP32/DiagnosticDataProviderImpl.cpp @@ -165,30 +165,30 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetTotalOperationalHours(uint32_t & total return CHIP_ERROR_INVALID_TIME; } -CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) +CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(BootReasonType & bootReason) { - bootReason = BootReasonType::Unspecified; + bootReason = BootReasonType::kUnspecified; uint8_t reason; reason = static_cast(esp_reset_reason()); if (reason == ESP_RST_UNKNOWN) { - bootReason = BootReasonType::Unspecified; + bootReason = BootReasonType::kUnspecified; } else if (reason == ESP_RST_POWERON) { - bootReason = BootReasonType::PowerOnReboot; + bootReason = BootReasonType::kPowerOnReboot; } else if (reason == ESP_RST_BROWNOUT) { - bootReason = BootReasonType::BrownOutReset; + bootReason = BootReasonType::kBrownOutReset; } else if (reason == ESP_RST_SW) { - bootReason = BootReasonType::SoftwareReset; + bootReason = BootReasonType::kSoftwareReset; } else if (reason == ESP_RST_INT_WDT) { - bootReason = BootReasonType::SoftwareWatchdogReset; + bootReason = BootReasonType::kSoftwareWatchdogReset; /* Reboot can be due to hardware or software watchdog*/ } return CHIP_NO_ERROR; diff --git a/src/platform/ESP32/DiagnosticDataProviderImpl.h b/src/platform/ESP32/DiagnosticDataProviderImpl.h index 46257d5ce1a0d6..1142a7dcdcbb9c 100644 --- a/src/platform/ESP32/DiagnosticDataProviderImpl.h +++ b/src/platform/ESP32/DiagnosticDataProviderImpl.h @@ -46,7 +46,7 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; CHIP_ERROR GetNetworkInterfaces(NetworkInterface ** netifpp) override; void ReleaseNetworkInterfaces(NetworkInterface * netifp) override; diff --git a/src/platform/Linux/ConfigurationManagerImpl.cpp b/src/platform/Linux/ConfigurationManagerImpl.cpp index 64b14d3067ec97..4d96e3ddfaf830 100644 --- a/src/platform/Linux/ConfigurationManagerImpl.cpp +++ b/src/platform/Linux/ConfigurationManagerImpl.cpp @@ -88,7 +88,7 @@ CHIP_ERROR ConfigurationManagerImpl::Init() if (!PosixConfig::ConfigValueExists(PosixConfig::kCounterKey_BootReason)) { - err = StoreBootReason(BootReasonType::Unspecified); + err = StoreBootReason(to_underlying(BootReasonType::kUnspecified)); SuccessOrExit(err); } diff --git a/src/platform/Linux/DiagnosticDataProviderImpl.cpp b/src/platform/Linux/DiagnosticDataProviderImpl.cpp index 12beb5a882589a..a869d9373371d4 100644 --- a/src/platform/Linux/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Linux/DiagnosticDataProviderImpl.cpp @@ -368,7 +368,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetTotalOperationalHours(uint32_t & total return CHIP_ERROR_INVALID_TIME; } -CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) +CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(BootReasonType & bootReason) { uint32_t reason = 0; @@ -377,7 +377,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) if (err == CHIP_NO_ERROR) { VerifyOrReturnError(reason <= UINT8_MAX, CHIP_ERROR_INVALID_INTEGER_VALUE); - bootReason = static_cast(reason); + bootReason = static_cast(reason); } return err; diff --git a/src/platform/Linux/DiagnosticDataProviderImpl.h b/src/platform/Linux/DiagnosticDataProviderImpl.h index f143c041661de8..36e5f221878dbb 100644 --- a/src/platform/Linux/DiagnosticDataProviderImpl.h +++ b/src/platform/Linux/DiagnosticDataProviderImpl.h @@ -48,7 +48,7 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; CHIP_ERROR GetActiveHardwareFaults(GeneralFaults & hardwareFaults) override; CHIP_ERROR GetActiveRadioFaults(GeneralFaults & radioFaults) override; diff --git a/src/platform/P6/DiagnosticDataProviderImpl.cpp b/src/platform/P6/DiagnosticDataProviderImpl.cpp index 9f04ab543dbaf5..d5df791b23cbae 100644 --- a/src/platform/P6/DiagnosticDataProviderImpl.cpp +++ b/src/platform/P6/DiagnosticDataProviderImpl.cpp @@ -114,28 +114,28 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetTotalOperationalHours(uint32_t & total return CHIP_ERROR_INVALID_TIME; } -CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) +CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(BootReasonType & bootReason) { cyhal_reset_reason_t reset_reason = cyhal_system_get_reset_reason(); if (reset_reason == CYHAL_SYSTEM_RESET_NONE) { - bootReason = BootReasonType::PowerOnReboot; + bootReason = BootReasonType::kPowerOnReboot; } else if (reset_reason == CYHAL_SYSTEM_RESET_WDT) { - bootReason = BootReasonType::SoftwareWatchdogReset; + bootReason = BootReasonType::kSoftwareWatchdogReset; } else if (reset_reason == CYHAL_SYSTEM_RESET_SOFT) { - bootReason = BootReasonType::SoftwareReset; + bootReason = BootReasonType::kSoftwareReset; } else if (reset_reason == CYHAL_SYSTEM_RESET_HIB_WAKEUP) { - bootReason = BootReasonType::HardwareWatchdogReset; + bootReason = BootReasonType::kHardwareWatchdogReset; } else { - bootReason = BootReasonType::Unspecified; + bootReason = BootReasonType::kUnspecified; } return CHIP_NO_ERROR; } diff --git a/src/platform/P6/DiagnosticDataProviderImpl.h b/src/platform/P6/DiagnosticDataProviderImpl.h index aa0af35c04ce94..908f28afdbf2a7 100644 --- a/src/platform/P6/DiagnosticDataProviderImpl.h +++ b/src/platform/P6/DiagnosticDataProviderImpl.h @@ -71,7 +71,7 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; CHIP_ERROR GetNetworkInterfaces(NetworkInterface ** netifpp) override; void ReleaseNetworkInterfaces(NetworkInterface * netifp) override; diff --git a/src/platform/Zephyr/DiagnosticDataProviderImpl.cpp b/src/platform/Zephyr/DiagnosticDataProviderImpl.cpp index b6958451aa0001..8d16ac3df55d9d 100644 --- a/src/platform/Zephyr/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Zephyr/DiagnosticDataProviderImpl.cpp @@ -40,14 +40,14 @@ namespace DeviceLayer { namespace { -uint8_t DetermineBootReason() +BootReasonType DetermineBootReason() { #ifdef CONFIG_HWINFO uint32_t reason; if (hwinfo_get_reset_cause(&reason) != 0) { - return BootReasonType::Unspecified; + return BootReasonType::kUnspecified; } // Bits returned by hwinfo_get_reset_cause() are accumulated between subsequent resets, so @@ -58,17 +58,17 @@ uint8_t DetermineBootReason() // If no reset cause is provided, it indicates a power-on-reset. if (reason == 0 || reason & (RESET_POR | RESET_PIN)) { - return BootReasonType::PowerOnReboot; + return BootReasonType::kPowerOnReboot; } if (reason & RESET_WATCHDOG) { - return BootReasonType::HardwareWatchdogReset; + return BootReasonType::kHardwareWatchdogReset; } if (reason & RESET_BROWNOUT) { - return BootReasonType::BrownOutReset; + return BootReasonType::kBrownOutReset; } if (reason & RESET_SOFTWARE) @@ -76,14 +76,14 @@ uint8_t DetermineBootReason() #ifdef CONFIG_MCUBOOT_IMG_MANAGER if (mcuboot_swap_type() == BOOT_SWAP_TYPE_REVERT) { - return BootReasonType::SoftwareUpdateCompleted; + return BootReasonType::kSoftwareUpdateCompleted; } #endif - return BootReasonType::SoftwareReset; + return BootReasonType::kSoftwareReset; } #endif - return BootReasonType::Unspecified; + return BootReasonType::kUnspecified; } } // namespace @@ -180,7 +180,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetTotalOperationalHours(uint32_t & total return CHIP_NO_ERROR; } -CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) +CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(BootReasonType & bootReason) { #if CONFIG_HWINFO bootReason = mBootReason; diff --git a/src/platform/Zephyr/DiagnosticDataProviderImpl.h b/src/platform/Zephyr/DiagnosticDataProviderImpl.h index b8b05591332b2f..a90cf4eb43e24d 100644 --- a/src/platform/Zephyr/DiagnosticDataProviderImpl.h +++ b/src/platform/Zephyr/DiagnosticDataProviderImpl.h @@ -46,14 +46,14 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; CHIP_ERROR GetNetworkInterfaces(NetworkInterface ** netifpp) override; void ReleaseNetworkInterfaces(NetworkInterface * netifp) override; private: DiagnosticDataProviderImpl(); - const uint8_t mBootReason; + const BootReasonType mBootReason; }; } // namespace DeviceLayer diff --git a/src/platform/fake/DiagnosticDataProviderImpl.h b/src/platform/fake/DiagnosticDataProviderImpl.h index f58c6d712d81cf..dd69739f15563b 100644 --- a/src/platform/fake/DiagnosticDataProviderImpl.h +++ b/src/platform/fake/DiagnosticDataProviderImpl.h @@ -48,7 +48,7 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; CHIP_ERROR GetActiveHardwareFaults(GeneralFaults & hardwareFaults) override; CHIP_ERROR GetActiveRadioFaults(GeneralFaults & radioFaults) override; diff --git a/src/platform/nxp/k32w/k32w0/ConfigurationManagerImpl.cpp b/src/platform/nxp/k32w/k32w0/ConfigurationManagerImpl.cpp index 947e0194df35a2..bf8c73c578c801 100644 --- a/src/platform/nxp/k32w/k32w0/ConfigurationManagerImpl.cpp +++ b/src/platform/nxp/k32w/k32w0/ConfigurationManagerImpl.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -75,7 +76,7 @@ CHIP_ERROR ConfigurationManagerImpl::Init() if (!K32WConfig::ConfigValueExists(K32WConfig::kCounterKey_BootReason)) { - err = StoreBootReason(EMBER_ZCL_BOOT_REASON_TYPE_UNSPECIFIED); + err = StoreBootReason(to_underlying(BootReasonType::kUnspecified)); SuccessOrExit(err); } @@ -119,29 +120,28 @@ CHIP_ERROR ConfigurationManagerImpl::StoreTotalOperationalHours(uint32_t totalOp CHIP_ERROR ConfigurationManagerImpl::GetBootReason(uint32_t & bootReason) { - bootReason = EMBER_ZCL_BOOT_REASON_TYPE_UNSPECIFIED; - uint8_t reason; - reason = POWER_GetResetCause(); + bootReason = to_underlying(BootReasonType::kUnspecified); + uint8_t reason = POWER_GetResetCause(); if (reason == RESET_UNDEFINED) { - bootReason = EMBER_ZCL_BOOT_REASON_TYPE_UNSPECIFIED; + bootReason = to_underlying(BootReasonType::kUnspecified); } else if ((reason == RESET_POR) || (reason == RESET_EXT_PIN)) { - bootReason = EMBER_ZCL_BOOT_REASON_TYPE_POWER_ON_REBOOT; + bootReason = to_underlying(BootReasonType::kPowerOnReboot); } else if (reason == RESET_BOR) { - bootReason = EMBER_ZCL_BOOT_REASON_TYPE_BROWN_OUT_RESET; + bootReason = to_underlying(BootReasonType::kBrownOutReset); } else if (reason == RESET_SW_REQ) { - bootReason = EMBER_ZCL_BOOT_REASON_TYPE_SOFTWARE_RESET; + bootReason = to_underlying(BootReasonType::kSoftwareReset); } else if (reason == RESET_WDT) { - bootReason = EMBER_ZCL_BOOT_REASON_TYPE_SOFTWARE_WATCHDOG_RESET; + bootReason = to_underlying(BootReasonType::kSoftwareWatchdogReset); /* Reboot can be due to hardware or software watchdog */ } diff --git a/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.cpp b/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.cpp index 58d6503b869fad..14e4126a066166 100644 --- a/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.cpp +++ b/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.cpp @@ -117,7 +117,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetTotalOperationalHours(uint32_t & total return CHIP_ERROR_INVALID_TIME; } -CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) +CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(BootReasonType & bootReason) { uint32_t reason = 0; @@ -126,7 +126,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetBootReason(uint8_t & bootReason) if (err == CHIP_NO_ERROR) { VerifyOrReturnError(reason <= UINT8_MAX, CHIP_ERROR_INVALID_INTEGER_VALUE); - bootReason = static_cast(reason); + bootReason = static_cast(reason); } return err; diff --git a/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.h b/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.h index cd33af8885df15..dadada68c197a5 100644 --- a/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.h +++ b/src/platform/nxp/k32w/k32w0/DiagnosticDataProviderImpl.h @@ -46,7 +46,7 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider CHIP_ERROR GetRebootCount(uint16_t & rebootCount) override; CHIP_ERROR GetUpTime(uint64_t & upTime) override; CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; - CHIP_ERROR GetBootReason(uint8_t & bootReason) override; + CHIP_ERROR GetBootReason(BootReasonType & bootReason) override; }; } // namespace DeviceLayer diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 2eba257609d968..8143c3ba3653b4 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -652,9 +652,6 @@ enum class LogsTransferProtocol : uint8_t namespace GeneralDiagnostics { -// Need to convert consumers to using the new enum classes, so we -// don't just have casts all over. -#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM // Enum for BootReasonType enum class BootReasonType : uint8_t { @@ -666,9 +663,6 @@ enum class BootReasonType : uint8_t kSoftwareUpdateCompleted = 0x05, kSoftwareReset = 0x06, }; -#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM -using BootReasonType = EmberAfBootReasonType; -#endif // Need to convert consumers to using the new enum classes, so we // don't just have casts all over. diff --git a/zzz_generated/app-common/app-common/zap-generated/enums.h b/zzz_generated/app-common/app-common/zap-generated/enums.h index e2fd7404f342ba..0d9a75d32f1371 100644 --- a/zzz_generated/app-common/app-common/zap-generated/enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/enums.h @@ -52,18 +52,6 @@ enum EmberAfBarrierControlMovingState : uint8_t EMBER_ZCL_BARRIER_CONTROL_MOVING_STATE_OPENING = 2, }; -// Enum for BootReasonType -enum EmberAfBootReasonType : uint8_t -{ - EMBER_ZCL_BOOT_REASON_TYPE_UNSPECIFIED = 0, - EMBER_ZCL_BOOT_REASON_TYPE_POWER_ON_REBOOT = 1, - EMBER_ZCL_BOOT_REASON_TYPE_BROWN_OUT_RESET = 2, - EMBER_ZCL_BOOT_REASON_TYPE_SOFTWARE_WATCHDOG_RESET = 3, - EMBER_ZCL_BOOT_REASON_TYPE_HARDWARE_WATCHDOG_RESET = 4, - EMBER_ZCL_BOOT_REASON_TYPE_SOFTWARE_UPDATE_COMPLETED = 5, - EMBER_ZCL_BOOT_REASON_TYPE_SOFTWARE_RESET = 6, -}; - // Enum for ColorControlOptions enum EmberAfColorControlOptions : uint8_t { From e5c39d460974a2819ace470d3f508a933cfdca93 Mon Sep 17 00:00:00 2001 From: krypton36 Date: Fri, 25 Mar 2022 21:01:08 -0700 Subject: [PATCH 18/23] Add Door Lock management to all clusters app. (#16687) --- examples/all-clusters-app/linux/BUILD.gn | 9 +- examples/door-lock-app/linux/BUILD.gn | 1 + examples/door-lock-app/linux/main.cpp | 93 ------------------- .../linux/src/ZCLDoorLockCallbacks.cpp | 91 ++++++++++++++++++ 4 files changed, 99 insertions(+), 95 deletions(-) create mode 100644 examples/door-lock-app/linux/src/ZCLDoorLockCallbacks.cpp diff --git a/examples/all-clusters-app/linux/BUILD.gn b/examples/all-clusters-app/linux/BUILD.gn index 36d3d0aa3c10a9..c2b386767c7f96 100644 --- a/examples/all-clusters-app/linux/BUILD.gn +++ b/examples/all-clusters-app/linux/BUILD.gn @@ -23,6 +23,9 @@ source_set("chip-all-clusters-common") { "${chip_root}/examples/all-clusters-app/all-clusters-common/src/binding-handler.cpp", "${chip_root}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp", "${chip_root}/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp", + "${chip_root}/examples/door-lock-app/linux/src/LockEndpoint.cpp", + "${chip_root}/examples/door-lock-app/linux/src/LockManager.cpp", + "${chip_root}/examples/door-lock-app/linux/src/ZCLDoorLockCallbacks.cpp", "include/tv-callbacks.cpp", "include/tv-callbacks.h", "main-common.cpp", @@ -34,8 +37,10 @@ source_set("chip-all-clusters-common") { "${chip_root}/src/lib", ] - include_dirs = - [ "${chip_root}/examples/all-clusters-app/all-clusters-common/include" ] + include_dirs = [ + "${chip_root}/examples/all-clusters-app/all-clusters-common/include", + "${chip_root}/examples/door-lock-app/linux/include", + ] cflags = [ "-Wconversion" ] diff --git a/examples/door-lock-app/linux/BUILD.gn b/examples/door-lock-app/linux/BUILD.gn index ff0f13d217d852..90dd96b3d23bb1 100644 --- a/examples/door-lock-app/linux/BUILD.gn +++ b/examples/door-lock-app/linux/BUILD.gn @@ -20,6 +20,7 @@ executable("chip-door-lock-app") { "main.cpp", "src/LockEndpoint.cpp", "src/LockManager.cpp", + "src/ZCLDoorLockCallbacks.cpp", ] deps = [ diff --git a/examples/door-lock-app/linux/main.cpp b/examples/door-lock-app/linux/main.cpp index 542d901191e5d2..5f7f27c7d9d96e 100644 --- a/examples/door-lock-app/linux/main.cpp +++ b/examples/door-lock-app/linux/main.cpp @@ -16,101 +16,8 @@ * limitations under the License. */ -#include -#include - -#include "LockManager.h" - #include "AppMain.h" -using namespace chip; -using namespace chip::app::Clusters; -using namespace chip::app::Clusters::DoorLock; - -// App handles physical aspects of locking but not locking logic. That is it -// should wait for door to be locked on lock command and return success) but -// door lock server should check pin before even calling the lock-door -// callback. -bool emberAfPluginDoorLockOnDoorLockCommand(chip::EndpointId endpointId, const Optional & pinCode, DlOperationError & err) -{ - return LockManager::Instance().Lock(endpointId, pinCode, err); -} - -bool emberAfPluginDoorLockOnDoorUnlockCommand(chip::EndpointId endpointId, const Optional & pinCode, - DlOperationError & err) -{ - return LockManager::Instance().Unlock(endpointId, pinCode, err); -} - -bool emberAfPluginDoorLockGetUser(chip::EndpointId endpointId, uint16_t userIndex, EmberAfPluginDoorLockUserInfo & user) -{ - return LockManager::Instance().GetUser(endpointId, userIndex, user); -} - -bool emberAfPluginDoorLockSetUser(chip::EndpointId endpointId, uint16_t userIndex, chip::FabricIndex creator, - chip::FabricIndex modifier, const chip::CharSpan & userName, uint32_t uniqueId, - DlUserStatus userStatus, DlUserType usertype, DlCredentialRule credentialRule, - const DlCredential * credentials, size_t totalCredentials) -{ - - return LockManager::Instance().SetUser(endpointId, userIndex, creator, modifier, userName, uniqueId, userStatus, usertype, - credentialRule, credentials, totalCredentials); -} - -bool emberAfPluginDoorLockGetCredential(chip::EndpointId endpointId, uint16_t credentialIndex, DlCredentialType credentialType, - EmberAfPluginDoorLockCredentialInfo & credential) -{ - return LockManager::Instance().GetCredential(endpointId, credentialIndex, credentialType, credential); -} - -bool emberAfPluginDoorLockSetCredential(chip::EndpointId endpointId, uint16_t credentialIndex, DlCredentialStatus credentialStatus, - DlCredentialType credentialType, const chip::ByteSpan & credentialData) -{ - return LockManager::Instance().SetCredential(endpointId, credentialIndex, credentialStatus, credentialType, credentialData); -} - -DlStatus emberAfPluginDoorLockGetSchedule(chip::EndpointId endpointId, uint8_t weekdayIndex, uint16_t userIndex, - EmberAfPluginDoorLockWeekDaySchedule & schedule) -{ - return LockManager::Instance().GetSchedule(endpointId, weekdayIndex, userIndex, schedule); -} - -DlStatus emberAfPluginDoorLockSetSchedule(chip::EndpointId endpointId, uint8_t weekdayIndex, uint16_t userIndex, - DlScheduleStatus status, DlDaysMaskMap daysMask, uint8_t startHour, uint8_t startMinute, - uint8_t endHour, uint8_t endMinute) -{ - return LockManager::Instance().SetSchedule(endpointId, weekdayIndex, userIndex, status, daysMask, startHour, startMinute, - endHour, endMinute); -} - -DlStatus emberAfPluginDoorLockSetSchedule(chip::EndpointId endpointId, uint8_t yearDayIndex, uint16_t userIndex, - DlScheduleStatus status, uint32_t localStartTime, uint32_t localEndTime) -{ - return LockManager::Instance().SetSchedule(endpointId, yearDayIndex, userIndex, status, localStartTime, localEndTime); -} - -DlStatus emberAfPluginDoorLockGetSchedule(chip::EndpointId endpointId, uint8_t yearDayIndex, uint16_t userIndex, - EmberAfPluginDoorLockYearDaySchedule & schedule) -{ - return LockManager::Instance().GetSchedule(endpointId, yearDayIndex, userIndex, schedule); -} - -void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t mask, uint8_t type, - uint16_t size, uint8_t * value) -{ - // TODO: Watch for LockState, DoorState, Mode, etc changes and trigger appropriate action - if (attributePath.mClusterId == DoorLock::Id) - { - emberAfDoorLockClusterPrintln("Door Lock attribute changed"); - } -} - -void emberAfDoorLockClusterInitCallback(EndpointId endpoint) -{ - DoorLockServer::Instance().InitServer(endpoint); - LockManager::Instance().InitEndpoint(endpoint); -} - void ApplicationInit() {} int main(int argc, char * argv[]) diff --git a/examples/door-lock-app/linux/src/ZCLDoorLockCallbacks.cpp b/examples/door-lock-app/linux/src/ZCLDoorLockCallbacks.cpp new file mode 100644 index 00000000000000..24a17b8f1131a2 --- /dev/null +++ b/examples/door-lock-app/linux/src/ZCLDoorLockCallbacks.cpp @@ -0,0 +1,91 @@ +#include +#include + +#include "LockManager.h" + +using namespace chip; +using namespace chip::app::Clusters; +using namespace chip::app::Clusters::DoorLock; +// App handles physical aspects of locking but not locking logic. That is it +// should wait for door to be locked on lock command and return success) but +// door lock server should check pin before even calling the lock-door +// callback. +bool emberAfPluginDoorLockOnDoorLockCommand(chip::EndpointId endpointId, const Optional & pinCode, DlOperationError & err) +{ + return LockManager::Instance().Lock(endpointId, pinCode, err); +} + +bool emberAfPluginDoorLockOnDoorUnlockCommand(chip::EndpointId endpointId, const Optional & pinCode, + DlOperationError & err) +{ + return LockManager::Instance().Unlock(endpointId, pinCode, err); +} + +bool emberAfPluginDoorLockGetUser(chip::EndpointId endpointId, uint16_t userIndex, EmberAfPluginDoorLockUserInfo & user) +{ + return LockManager::Instance().GetUser(endpointId, userIndex, user); +} + +bool emberAfPluginDoorLockSetUser(chip::EndpointId endpointId, uint16_t userIndex, chip::FabricIndex creator, + chip::FabricIndex modifier, const chip::CharSpan & userName, uint32_t uniqueId, + DlUserStatus userStatus, DlUserType usertype, DlCredentialRule credentialRule, + const DlCredential * credentials, size_t totalCredentials) +{ + + return LockManager::Instance().SetUser(endpointId, userIndex, creator, modifier, userName, uniqueId, userStatus, usertype, + credentialRule, credentials, totalCredentials); +} + +bool emberAfPluginDoorLockGetCredential(chip::EndpointId endpointId, uint16_t credentialIndex, DlCredentialType credentialType, + EmberAfPluginDoorLockCredentialInfo & credential) +{ + return LockManager::Instance().GetCredential(endpointId, credentialIndex, credentialType, credential); +} + +bool emberAfPluginDoorLockSetCredential(chip::EndpointId endpointId, uint16_t credentialIndex, DlCredentialStatus credentialStatus, + DlCredentialType credentialType, const chip::ByteSpan & credentialData) +{ + return LockManager::Instance().SetCredential(endpointId, credentialIndex, credentialStatus, credentialType, credentialData); +} + +DlStatus emberAfPluginDoorLockGetSchedule(chip::EndpointId endpointId, uint8_t weekdayIndex, uint16_t userIndex, + EmberAfPluginDoorLockWeekDaySchedule & schedule) +{ + return LockManager::Instance().GetSchedule(endpointId, weekdayIndex, userIndex, schedule); +} + +DlStatus emberAfPluginDoorLockSetSchedule(chip::EndpointId endpointId, uint8_t weekdayIndex, uint16_t userIndex, + DlScheduleStatus status, DlDaysMaskMap daysMask, uint8_t startHour, uint8_t startMinute, + uint8_t endHour, uint8_t endMinute) +{ + return LockManager::Instance().SetSchedule(endpointId, weekdayIndex, userIndex, status, daysMask, startHour, startMinute, + endHour, endMinute); +} + +DlStatus emberAfPluginDoorLockSetSchedule(chip::EndpointId endpointId, uint8_t yearDayIndex, uint16_t userIndex, + DlScheduleStatus status, uint32_t localStartTime, uint32_t localEndTime) +{ + return LockManager::Instance().SetSchedule(endpointId, yearDayIndex, userIndex, status, localStartTime, localEndTime); +} + +DlStatus emberAfPluginDoorLockGetSchedule(chip::EndpointId endpointId, uint8_t yearDayIndex, uint16_t userIndex, + EmberAfPluginDoorLockYearDaySchedule & schedule) +{ + return LockManager::Instance().GetSchedule(endpointId, yearDayIndex, userIndex, schedule); +} + +void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t mask, uint8_t type, + uint16_t size, uint8_t * value) +{ + // TODO: Watch for LockState, DoorState, Mode, etc changes and trigger appropriate action + if (attributePath.mClusterId == DoorLock::Id) + { + emberAfDoorLockClusterPrintln("Door Lock attribute changed"); + } +} + +void emberAfDoorLockClusterInitCallback(EndpointId endpoint) +{ + DoorLockServer::Instance().InitServer(endpoint); + LockManager::Instance().InitEndpoint(endpoint); +} From 4eb825dbdf524868e67255e1ba56bbd8b9112153 Mon Sep 17 00:00:00 2001 From: Marc Lepage <67919234+mlepage-google@users.noreply.github.com> Date: Sat, 26 Mar 2022 01:36:59 -0400 Subject: [PATCH 19/23] Add RemoveFabric to AccessControl (#16685) Use the "public" API to delete entries for a fabric. Tested (on Linux using chip-all-clusters-app and chip-tool) by commissioning on three fabrics, with 3, 2, and 2 distinct ACLs, then removing the second (middle) fabric, and verifying that the remaining 5 ACLs are preserved, even after restart. Part of issue #13876 (fabric removal and factory reset) --- src/access/AccessControl.cpp | 16 ++++++++++++++++ src/access/AccessControl.h | 2 ++ src/app/server/Server.h | 1 + 3 files changed, 19 insertions(+) diff --git a/src/access/AccessControl.cpp b/src/access/AccessControl.cpp index 2a2f37beb40fa7..f9cb48a20f18b2 100644 --- a/src/access/AccessControl.cpp +++ b/src/access/AccessControl.cpp @@ -188,6 +188,22 @@ CHIP_ERROR AccessControl::Finish() return retval; } +CHIP_ERROR AccessControl::RemoveFabric(FabricIndex fabricIndex) +{ + ChipLogProgress(DataManagement, "AccessControl: removing fabric %u", fabricIndex); + + CHIP_ERROR err; + do + { + err = DeleteEntry(0, &fabricIndex); + } while (err == CHIP_NO_ERROR); + + // Sentinel error is OK, just means there was no such entry. + ReturnErrorCodeIf(err != CHIP_ERROR_SENTINEL, err); + + return CHIP_NO_ERROR; +} + CHIP_ERROR AccessControl::Check(const SubjectDescriptor & subjectDescriptor, const RequestPath & requestPath, Privilege requestPrivilege) { diff --git a/src/access/AccessControl.h b/src/access/AccessControl.h index dd74167f0891d5..be1c268e3628b5 100644 --- a/src/access/AccessControl.h +++ b/src/access/AccessControl.h @@ -468,6 +468,8 @@ class AccessControl return mDelegate->DeleteEntry(index, fabricIndex); } + CHIP_ERROR RemoveFabric(FabricIndex fabricIndex); + /** * Iterates over entries in the access control list. * diff --git a/src/app/server/Server.h b/src/app/server/Server.h index b036f96eed08d7..ca5bdcfa99a394 100644 --- a/src/app/server/Server.h +++ b/src/app/server/Server.h @@ -223,6 +223,7 @@ class Server { groupDataProvider->RemoveFabric(fabricIndex); } + Access::GetAccessControl().RemoveFabric(fabricIndex); }; void OnFabricRetrievedFromStorage(FabricInfo * fabricInfo) override { (void) fabricInfo; } From 58cd5fb0ab06e2233ef52c1e575e0d750d13a833 Mon Sep 17 00:00:00 2001 From: krypton36 Date: Sat, 26 Mar 2022 20:29:26 -0700 Subject: [PATCH 20/23] Add BLE and thread pairing capabilities to chip-tool-darwin. (#16126) --- .../commands/pairing/Commands.h | 23 ++++++++---- .../commands/pairing/PairingCommandBridge.h | 36 +++++++++++++++++-- .../commands/pairing/PairingCommandBridge.mm | 34 ++++++++++++++++-- .../commands/pairing/PairingDelegateBridge.h | 3 ++ .../commands/pairing/PairingDelegateBridge.mm | 14 ++++++-- src/darwin/Framework/CHIP/BUILD.gn | 1 + 6 files changed, 98 insertions(+), 13 deletions(-) diff --git a/examples/chip-tool-darwin/commands/pairing/Commands.h b/examples/chip-tool-darwin/commands/pairing/Commands.h index dcfd6fc789c7cb..4e88b1ea3a502a 100644 --- a/examples/chip-tool-darwin/commands/pairing/Commands.h +++ b/examples/chip-tool-darwin/commands/pairing/Commands.h @@ -23,19 +23,31 @@ class PairQRCode : public PairingCommandBridge { public: - PairQRCode() : PairingCommandBridge("qrcode", PairingMode::QRCode) {} + PairQRCode() : PairingCommandBridge("qrcode", PairingMode::QRCode, PairingNetworkType::None) {} }; class PairManualCode : public PairingCommandBridge { public: - PairManualCode() : PairingCommandBridge("manualcode", PairingMode::ManualCode) {} + PairManualCode() : PairingCommandBridge("manualcode", PairingMode::ManualCode, PairingNetworkType::None) {} }; class PairWithIPAddress : public PairingCommandBridge { public: - PairWithIPAddress() : PairingCommandBridge("ethernet", PairingMode::Ethernet) {} + PairWithIPAddress() : PairingCommandBridge("ethernet", PairingMode::Ethernet, PairingNetworkType::Ethernet) {} +}; + +class PairBleWiFi : public PairingCommandBridge +{ +public: + PairBleWiFi() : PairingCommandBridge("ble-wifi", PairingMode::Ble, PairingNetworkType::WiFi) {} +}; + +class PairBleThread : public PairingCommandBridge +{ +public: + PairBleThread() : PairingCommandBridge("ble-thread", PairingMode::Ble, PairingNetworkType::Thread) {} }; void registerCommandsPairing(Commands & commands) @@ -43,9 +55,8 @@ void registerCommandsPairing(Commands & commands) const char * clusterName = "Pairing"; commands_list clusterCommands = { - make_unique(), - make_unique(), - make_unique(), + make_unique(), make_unique(), make_unique(), + make_unique(), make_unique(), }; commands.Register(clusterName, clusterCommands); diff --git a/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.h b/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.h index 917d7e2bf9521d..92dcff9b3cf072 100644 --- a/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.h +++ b/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.h @@ -25,15 +25,38 @@ enum class PairingMode { QRCode, ManualCode, - Ethernet + Ethernet, + Ble, +}; + +enum class PairingNetworkType +{ + None, + WiFi, + Thread, + Ethernet, }; class PairingCommandBridge : public CHIPCommandBridge { public: - PairingCommandBridge(const char * commandName, PairingMode mode) : CHIPCommandBridge(commandName), mPairingMode(mode) + PairingCommandBridge(const char * commandName, PairingMode mode, PairingNetworkType networkType) : + CHIPCommandBridge(commandName), mPairingMode(mode), mNetworkType(networkType) { AddArgument("node-id", 0, UINT64_MAX, &mNodeId); + switch (networkType) + { + case PairingNetworkType::None: + case PairingNetworkType::Ethernet: + break; + case PairingNetworkType::WiFi: + AddArgument("ssid", &mSSID); + AddArgument("password", &mPassword); + break; + case PairingNetworkType::Thread: + AddArgument("operationalDataset", &mOperationalDataset); + break; + } switch (mode) { @@ -49,6 +72,10 @@ class PairingCommandBridge : public CHIPCommandBridge AddArgument("device-remote-ip", &ipAddress); AddArgument("device-remote-port", 0, UINT16_MAX, &mRemotePort); break; + case PairingMode::Ble: + AddArgument("setup-pin-code", 0, 134217727, &mSetupPINCode); + AddArgument("discriminator", 0, 4096, &mDiscriminator); + break; } } @@ -58,10 +85,15 @@ class PairingCommandBridge : public CHIPCommandBridge private: void PairWithCode(NSError * __autoreleasing * error); + void PairWithPayload(NSError * __autoreleasing * error); void PairWithIPAddress(NSError * __autoreleasing * error); void SetUpPairingDelegate(); const PairingMode mPairingMode; + const PairingNetworkType mNetworkType; + chip::ByteSpan mOperationalDataset; + chip::ByteSpan mSSID; + chip::ByteSpan mPassword; chip::NodeId mNodeId; uint16_t mRemotePort; uint16_t mDiscriminator; diff --git a/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.mm b/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.mm index 31c2e73fffbfbd..3b90ece6bbdf72 100644 --- a/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.mm +++ b/examples/chip-tool-darwin/commands/pairing/PairingCommandBridge.mm @@ -16,7 +16,10 @@ * */ +#import #import +#import +#import #include "../common/CHIPCommandBridge.h" #include "PairingCommandBridge.h" @@ -31,9 +34,25 @@ { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.pairing", DISPATCH_QUEUE_SERIAL); CHIPToolPairingDelegate * pairing = [[CHIPToolPairingDelegate alloc] init]; + CHIPCommissioningParameters * params = [[CHIPCommissioningParameters alloc] init]; - pairing.deviceID = mNodeId; - pairing.commandBridge = this; + [pairing setDeviceID:mNodeId]; + switch (mNetworkType) { + case PairingNetworkType::None: + case PairingNetworkType::Ethernet: + break; + case PairingNetworkType::WiFi: + [params setWifiSSID:[NSData dataWithBytes:mSSID.data() length:mSSID.size()]]; + [params setWifiCredentials:[NSData dataWithBytes:mPassword.data() length:mPassword.size()]]; + break; + case PairingNetworkType::Thread: + [params setThreadOperationalDataset:[NSData dataWithBytes:mOperationalDataset.data() length:mOperationalDataset.size()]]; + break; + } + + [pairing setCommandBridge:this]; + [pairing setParams:params]; + [pairing setCommissioner:CurrentCommissioner()]; [CurrentCommissioner() setPairingDelegate:pairing queue:callbackQueue]; } @@ -44,17 +63,26 @@ switch (mPairingMode) { case PairingMode::QRCode: case PairingMode::ManualCode: - PairWithCode(&error); + PairWithPayload(&error); break; case PairingMode::Ethernet: PairWithIPAddress(&error); break; + case PairingMode::Ble: + PairWithCode(&error); + break; } return [CHIPError errorToCHIPErrorCode:error]; } void PairingCommandBridge::PairWithCode(NSError * __autoreleasing * error) +{ + SetUpPairingDelegate(); + [CurrentCommissioner() pairDevice:mNodeId discriminator:mDiscriminator setupPINCode:mSetupPINCode error:error]; +} + +void PairingCommandBridge::PairWithPayload(NSError * __autoreleasing * error) { NSString * payload = [NSString stringWithUTF8String:mOnboardingPayload]; diff --git a/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.h b/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.h index fbe026e398f15b..641ac77e79501a 100644 --- a/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.h +++ b/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.h @@ -21,6 +21,9 @@ @interface CHIPToolPairingDelegate : NSObject @property PairingCommandBridge * commandBridge; @property chip::NodeId deviceID; +@property CHIPDeviceController * commissioner; +@property CHIPCommissioningParameters * params; + - (void)onPairingComplete:(NSError *)error; - (void)onPairingDeleted:(NSError *)error; - (void)onCommissioningComplete:(NSError *)error; diff --git a/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.mm b/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.mm index 4a52f65ce10455..b35b22737a3b20 100644 --- a/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.mm +++ b/examples/chip-tool-darwin/commands/pairing/PairingDelegateBridge.mm @@ -17,6 +17,7 @@ */ #include "PairingDelegateBridge.h" +#import #import @interface CHIPToolPairingDelegate () @@ -41,10 +42,19 @@ - (void)onStatusUpdate:(CHIPPairingStatus)status - (void)onPairingComplete:(NSError *)error { + NSError * __block commissionError; CHIP_ERROR err = [CHIPError errorToCHIPErrorCode:error]; + if (err != CHIP_NO_ERROR) { + _commandBridge->SetCommandExitStatus(err); + return; + } ChipLogProgress(chipTool, "Pairing Complete: %s", chip::ErrorStr(err)); - - _commandBridge->SetCommandExitStatus(err); + [_commissioner commissionDevice:_deviceID commissioningParams:_params error:&commissionError]; + err = [CHIPError errorToCHIPErrorCode:commissionError]; + if (err != CHIP_NO_ERROR) { + _commandBridge->SetCommandExitStatus(err); + return; + } } - (void)onPairingDeleted:(NSError *)error diff --git a/src/darwin/Framework/CHIP/BUILD.gn b/src/darwin/Framework/CHIP/BUILD.gn index 198fdf371da18a..31ef2e0d94ecaa 100644 --- a/src/darwin/Framework/CHIP/BUILD.gn +++ b/src/darwin/Framework/CHIP/BUILD.gn @@ -30,6 +30,7 @@ static_library("framework") { sources = [ "CHIP.h", "CHIPCluster.mm", + "CHIPCommissioningParameters.m", "CHIPControllerAccessControl.h", "CHIPControllerAccessControl.mm", "CHIPDevice.h", From 1676f1b461eafe6eb2160fc4d71e38451d58997e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Ba=C5=82ys?= Date: Mon, 28 Mar 2022 10:37:20 +0200 Subject: [PATCH 21/23] [nrfconnect] Added Lighting-Switch-App example (#16668) * [nrfconnect] Added Lighting-Switch-App example Problem Add Lighting-Switch-App example for nrfconnect boards. Change overview Added example of Light-Switch-App for nRF52DK and nRF53DK boards Added documentation for example Testing Tested manually on nRF52DK and nRF53DK using lighting-app example as bound device. * Restyled by clang-format * Restyled by prettier-markdown * Restyled by prettier-markdown Co-authored-by: Restyled.io --- config/nrfconnect/app/sample-defaults.conf | 5 +- .../light-switch-app/nrfconnect/.gitignore | 1 + .../nrfconnect/CMakeLists.txt | 103 +++ examples/light-switch-app/nrfconnect/Kconfig | 26 + .../light-switch-app/nrfconnect/README.md | 721 ++++++++++++++++++ .../boards/nrf52840dk_nrf52840.conf | 17 + .../boards/nrf52840dk_nrf52840.overlay | 33 + .../boards/nrf5340dk_nrf5340_cpuapp.conf | 17 + .../boards/nrf5340dk_nrf5340_cpuapp.overlay | 66 ++ .../child_image/multiprotocol_rpmsg.conf | 22 + .../mcuboot_multi_image_dfu.conf | 48 ++ .../mcuboot_single_image_dfu.conf | 38 + .../nrf52840dk_nrf52840/pm_static.yml | 38 + .../nrf5340dk_nrf5340_cpuapp/pm_static.yml | 52 ++ .../nrfconnect/main/AppTask.cpp | 588 ++++++++++++++ .../nrfconnect/main/BindingHandler.cpp | 269 +++++++ .../nrfconnect/main/LightSwitch.cpp | 84 ++ .../nrfconnect/main/ShellCommands.cpp | 225 ++++++ .../nrfconnect/main/include/AppConfig.h | 32 + .../nrfconnect/main/include/AppEvent.h | 67 ++ .../nrfconnect/main/include/AppTask.h | 96 +++ .../nrfconnect/main/include/BindingHandler.h | 50 ++ .../main/include/CHIPProjectConfig.h | 33 + .../nrfconnect/main/include/LightSwitch.h | 50 ++ .../nrfconnect/main/include/ShellCommands.h | 31 + .../light-switch-app/nrfconnect/main/main.cpp | 33 + .../nrfconnect/overlay-low_power.conf | 30 + examples/light-switch-app/nrfconnect/prj.conf | 39 + .../nrfconnect/third_party/connectedhomeip | 1 + 29 files changed, 2814 insertions(+), 1 deletion(-) create mode 100644 examples/light-switch-app/nrfconnect/.gitignore create mode 100644 examples/light-switch-app/nrfconnect/CMakeLists.txt create mode 100644 examples/light-switch-app/nrfconnect/Kconfig create mode 100644 examples/light-switch-app/nrfconnect/README.md create mode 100644 examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.conf create mode 100644 examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.overlay create mode 100644 examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.conf create mode 100644 examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.overlay create mode 100644 examples/light-switch-app/nrfconnect/child_image/multiprotocol_rpmsg.conf create mode 100644 examples/light-switch-app/nrfconnect/configuration/mcuboot_multi_image_dfu.conf create mode 100644 examples/light-switch-app/nrfconnect/configuration/mcuboot_single_image_dfu.conf create mode 100644 examples/light-switch-app/nrfconnect/configuration/nrf52840dk_nrf52840/pm_static.yml create mode 100644 examples/light-switch-app/nrfconnect/configuration/nrf5340dk_nrf5340_cpuapp/pm_static.yml create mode 100644 examples/light-switch-app/nrfconnect/main/AppTask.cpp create mode 100644 examples/light-switch-app/nrfconnect/main/BindingHandler.cpp create mode 100644 examples/light-switch-app/nrfconnect/main/LightSwitch.cpp create mode 100644 examples/light-switch-app/nrfconnect/main/ShellCommands.cpp create mode 100644 examples/light-switch-app/nrfconnect/main/include/AppConfig.h create mode 100644 examples/light-switch-app/nrfconnect/main/include/AppEvent.h create mode 100644 examples/light-switch-app/nrfconnect/main/include/AppTask.h create mode 100644 examples/light-switch-app/nrfconnect/main/include/BindingHandler.h create mode 100644 examples/light-switch-app/nrfconnect/main/include/CHIPProjectConfig.h create mode 100644 examples/light-switch-app/nrfconnect/main/include/LightSwitch.h create mode 100644 examples/light-switch-app/nrfconnect/main/include/ShellCommands.h create mode 100644 examples/light-switch-app/nrfconnect/main/main.cpp create mode 100644 examples/light-switch-app/nrfconnect/overlay-low_power.conf create mode 100644 examples/light-switch-app/nrfconnect/prj.conf create mode 120000 examples/light-switch-app/nrfconnect/third_party/connectedhomeip diff --git a/config/nrfconnect/app/sample-defaults.conf b/config/nrfconnect/app/sample-defaults.conf index 7145c2d7b704c9..22625d175148f1 100644 --- a/config/nrfconnect/app/sample-defaults.conf +++ b/config/nrfconnect/app/sample-defaults.conf @@ -41,9 +41,12 @@ CONFIG_NET_SOCKETS_POSIX_NAMES=n CONFIG_MAIN_STACK_SIZE=8192 CONFIG_INIT_STACKS=y +# Enable Zephyr IPv6 multicast +CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=14 +CONFIG_NET_IPV6_MLD=y + # Disable certain parts of Zephyr IPv6 stack CONFIG_NET_IPV6_NBR_CACHE=n -CONFIG_NET_IPV6_MLD=n # Network buffers CONFIG_NET_PKT_RX_COUNT=16 diff --git a/examples/light-switch-app/nrfconnect/.gitignore b/examples/light-switch-app/nrfconnect/.gitignore new file mode 100644 index 00000000000000..84c048a73cc2e5 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/.gitignore @@ -0,0 +1 @@ +/build/ diff --git a/examples/light-switch-app/nrfconnect/CMakeLists.txt b/examples/light-switch-app/nrfconnect/CMakeLists.txt new file mode 100644 index 00000000000000..3610cbfc72b526 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/CMakeLists.txt @@ -0,0 +1,103 @@ +# +# 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. +# + +cmake_minimum_required(VERSION 3.20.0) + +get_filename_component(CHIP_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/third_party/connectedhomeip REALPATH) +get_filename_component(NRFCONNECT_COMMON ${CHIP_ROOT}/examples/platform/nrfconnect REALPATH) +get_filename_component(GEN_DIR ${CHIP_ROOT}/zzz_generated/ REALPATH) + +include(${CHIP_ROOT}/config/nrfconnect/app/check-nrfconnect-version.cmake) + +# Load NCS/Zephyr build system +set(CONF_FILE ${CHIP_ROOT}/config/nrfconnect/app/sample-defaults.conf prj.conf) + +if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/boards/${BOARD}.conf) + list(APPEND CONF_FILE boards/${BOARD}.conf) +endif() + +set(BUILD_WITH_DFU "MATTER" CACHE STRING "Build target with Device Firmware Upgrade support") + +if(NOT BUILD_WITH_DFU STREQUAL "OFF") + if(BUILD_WITH_DFU STREQUAL "BLE") + if(BOARD STREQUAL "nrf5340dk_nrf5340_cpuapp") + list(INSERT OVERLAY_CONFIG 0 ${CHIP_ROOT}/config/nrfconnect/app/overlay-multi_image_smp_dfu_support.conf) + else() + list(INSERT OVERLAY_CONFIG 0 ${CHIP_ROOT}/config/nrfconnect/app/overlay-single_image_smp_dfu_support.conf) + endif() + elseif(NOT BUILD_WITH_DFU STREQUAL "MATTER") + message(FATAL_ERROR "Selected invalid BUILD_WITH_DFU value: ${BUILD_WITH_DFU}") + endif() + + list(INSERT OVERLAY_CONFIG 0 ${CHIP_ROOT}/config/nrfconnect/app/overlay-mcuboot_qspi_nor_support.conf) + list(INSERT OVERLAY_CONFIG 0 ${CHIP_ROOT}/config/nrfconnect/app/overlay-ota_requestor.conf) + + if(BOARD STREQUAL "nrf5340dk_nrf5340_cpuapp") + # DFU over Matter doesn't support multi-image update yet, but using this configs should not harm it anyway. + set(mcuboot_OVERLAY_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/configuration/mcuboot_multi_image_dfu.conf CACHE INTERNAL "") + else() + set(mcuboot_OVERLAY_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/configuration/mcuboot_single_image_dfu.conf CACHE INTERNAL "") + endif() + + set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_SOURCE_DIR}/configuration/${BOARD}/pm_static.yml) +endif() + +list(APPEND ZEPHYR_EXTRA_MODULES ${CHIP_ROOT}/config/nrfconnect/chip-module) +find_package(Zephyr HINTS $ENV{ZEPHYR_BASE}) + +# -Wmaybe-uninitialized has too many false positives, including on std::optional +# and chip::Optional. Make it nonfatal. +# +# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 +target_compile_options(app PRIVATE -Werror -Wno-error=maybe-uninitialized) + +project(chip-nrfconnect-light-switch-example) + +include(${CHIP_ROOT}/config/nrfconnect/app/enable-gnu-std.cmake) +include(${CHIP_ROOT}/config/nrfconnect/app/flashing.cmake) +include(${CHIP_ROOT}/src/app/chip_data_model.cmake) + +target_include_directories(app PRIVATE + main/include + ${GEN_DIR}/app-common + ${GEN_DIR}/light-switch-app + ${NRFCONNECT_COMMON}/util/include + ${NRFCONNECT_COMMON}/app/include) + +target_sources(app PRIVATE + main/AppTask.cpp + main/main.cpp + main/LightSwitch.cpp + main/ShellCommands.cpp + main/BindingHandler.cpp + ${GEN_DIR}/light-switch-app/zap-generated/callback-stub.cpp + ${GEN_DIR}/light-switch-app/zap-generated/IMClusterCommandHandler.cpp + ${NRFCONNECT_COMMON}/util/LEDWidget.cpp + ${NRFCONNECT_COMMON}/util/ThreadUtil.cpp) + + +if(CONFIG_CHIP_OTA_REQUESTOR) + target_sources(app PRIVATE ${NRFCONNECT_COMMON}/util/OTAUtil.cpp) +endif() + +if(BUILD_WITH_DFU STREQUAL "BLE") + target_sources(app PRIVATE ${NRFCONNECT_COMMON}/util/DFUOverSMP.cpp) +endif() + +chip_configure_data_model(app + INCLUDE_SERVER + ZAP_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../light-switch-common/light-switch-app.zap +) diff --git a/examples/light-switch-app/nrfconnect/Kconfig b/examples/light-switch-app/nrfconnect/Kconfig new file mode 100644 index 00000000000000..9bee833c7681de --- /dev/null +++ b/examples/light-switch-app/nrfconnect/Kconfig @@ -0,0 +1,26 @@ +# +# 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. +# +mainmenu "Matter nRF Connect Light Switch Example Application" + +config STATE_LEDS + bool "Use LEDs to indicate the device state" + default y + help + Use LEDs to render the current state of the device such as the progress of commissioning of + the device into a network or the factory reset initiation. Note that setting this option to + 'n' does not disable the LED indicating the state of the simulated bolt. + +source "Kconfig.zephyr" diff --git a/examples/light-switch-app/nrfconnect/README.md b/examples/light-switch-app/nrfconnect/README.md new file mode 100644 index 00000000000000..a11642be5d72a6 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/README.md @@ -0,0 +1,721 @@ +# Matter nRF Connect Light Switch Example Application + +The nRF Connect Light Switch Example demonstrates how to remotely control a +lighting devices such as light bulbs or LEDs. The application should be used +together with the +[lighting app example](../../lighting-app/nrfconnect/README.md). The light +switch uses buttons to test changing the lighting application example LED state +and works as a brightness dimmer. You can use this example as a reference for +creating your own application. + +

    + Nordic Semiconductor logo + nRF52840 DK +

    + +The example is based on +[Matter](https://github.com/project-chip/connectedhomeip) and Nordic +Semiconductor's nRF Connect SDK, and supports remote access and control of a +lighting examples over a low-power, 802.15.4 Thread network. + +The example behaves as a Matter accessory, that is a device that can be paired +into an existing Matter network and can be controlled by this network. + +
    + +- [Overview](#overview) + - [Bluetooth LE advertising](#bluetooth-le-advertising) + - [Bluetooth LE rendezvous](#bluetooth-le-rendezvous) + - [Device Firmware Upgrade](#device-firmware-upgrade) +- [Requirements](#requirements) + - [Supported devices](#supported_devices) +- [Device UI](#device-ui) + - [LEDs](#leds) + - [Buttons](#buttons) + - [Matter CLI](#matter-cli-commands) +- [Setting up the environment](#setting-up-the-environment) + - [Using Docker container for setup](#using-docker-container-for-setup) + - [Using native shell for setup](#using-native-shell-for-setup) +- [Building](#building) + - [Removing build artifacts](#removing-build-artifacts) + - [Building with release configuration](#building-with-release-configuration) + - [Building with low-power configuration](#building-with-low-power-configuration) + - [Building with Device Firmware Upgrade support](#building-with-device-firmware-upgrade-support) +- [Configuring the example](#configuring-the-example) +- [Flashing and debugging](#flashing-and-debugging) +- [Testing the example](#testing-the-example) + - [Binding process](#binding-process) + - [Testing Device Firmware Upgrade](#testing-device-firmware-upgrade) + +
    + + + +## Overview + +This example is running on the nRF Connect platform, which is based on Nordic +Semiconductor's +[nRF Connect SDK](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html) +and [Zephyr RTOS](https://zephyrproject.org/). Visit Matter's +[nRF Connect platform overview](../../../docs/guides/nrfconnect_platform_overview.md) +to read more about the platform structure and dependencies. + +A light switch device is a simple embedded controller, which has the ability to +control lighting devices, such as light bulbs or LEDs. After commissioning into +a Matter network, the light switch device does not know what it can control. In +other words, it has no information about another device being connected to the +same network. You must provide this information to the light switch through the +process called binding, which links clusters and endpoints on both devices, so +that the devices can interact with each other. + +The Matter device that runs the light switch application is controlled by the +Matter controller device over the Thread protocol. By default, the Matter device +has Thread disabled, and it should be paired with Matter controller and get +configuration from it. Some actions required before establishing full +communication are described below. + +The example also comes with a test mode, which allows to start Thread with the +default settings by pressing button manually. However, this mode does not +guarantee that the device will be able to communicate with the Matter controller +and other devices. + +The example can be configured to use the secure bootloader and utilize it for +performing over-the-air Device Firmware Upgrade using Bluetooth LE. + +### Bluetooth LE advertising + +In this example, to commission the device onto a Matter network, it must be +discoverable over Bluetooth LE. For security reasons, you must start Bluetooth +LE advertising manually after powering up the device by pressing **Button 4**. + +### Bluetooth LE rendezvous + +In this example, the commissioning procedure is done over Bluetooth LE between a +Matter device and the Matter controller, where the controller has the +commissioner role. + +To start the rendezvous, the controller must get the commissioning information +from the Matter device. The data payload is encoded within a QR code, printed to +the UART console, and shared using an NFC tag. NFC tag emulation starts +automatically when Bluetooth LE advertising is started and stays enabled until +Bluetooth LE advertising timeout expires. + +#### Thread provisioning + +Last part of the rendezvous procedure, the provisioning operation involves +sending the Thread network credentials from the Matter controller to the Matter +device. As a result, the device is able to join the Thread network and +communicate with other Thread devices in the network. + +### Device Firmware Upgrade + +The example supports over-the-air (OTA) device firmware upgrade (DFU) using one +of the two available methods: + +- Matter OTA DFU that is mandatory for Matter-compliant devices. This option + is enabled by default. +- [Simple Management Protocol](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/device_mgmt/index.html#device-mgmt) + over Bluetooth LE from Nordic Semiconductor's nRF Connect SDK. This is an + optional proprietary method that is not part of the Matter specification and + can be enabled to work alongside the default Matter OTA DFU. + +For both methods, the +[MCUboot](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/index.html) +bootloader solution is used to replace the old firmware image with the new one. + +#### Matter Over-the-Air DFU + +The Matter over-the-air DFU distinguishes two types of nodes: OTA Provider and +OTA Requestor. + +An OTA Provider is a node that hosts a new firmware image and is able to respond +on an OTA Requestor's queries regarding availability of new firmware images or +requests to start sending the update packages. + +An OTA Requestor is a node that wants to download a new firmware image and sends +requests to an OTA Provider to start the update process. + +#### Simple Management Protocol + +Simple Management Protocol (SMP) is a basic transfer encoding that is used for +device management purposes, including application image management. SMP supports +using different transports, such as Bluetooth LE, UDP, or serial USB/UART. + +In this example, the Matter device runs the SMP Server to download the +application update image using the Bluetooth LE transport. + +See the +[Building with Device Firmware Upgrade support](#building-with-device-firmware-upgrade-support) +section to learn how to enable SMP and use it for the DFU purpose in this +example. + +#### Bootloader + +MCUboot is a secure bootloader used for swapping firmware images of different +versions and generating proper build output files that can be used in the device +firmware upgrade process. + +The bootloader solution requires an area of flash memory to swap application +images during the firmware upgrade. Nordic Semiconductor devices use an external +memory chip for this purpose. The memory chip communicates with the +microcontroller through the QSPI bus. + +See the +[Building with Device Firmware Upgrade support](#building-with-device-firmware-upgrade-support) +section to learn how to change MCUboot and flash configuration in this example. + +
    + + + +## Requirements + +The application requires a specific revision of the nRF Connect SDK to work +correctly. See [Setting up the environment](#setting-up-the-environment) for +more information. + + + +### Supported devices + +The example supports building and running on the following devices: + +| Hardware platform | Build target | Platform image | +| ----------------------------------------------------------------------------------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| [nRF52840 DK](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK) | `nrf52840dk_nrf52840` |
    nRF52840 DKnRF52840 DK
    | +| [nRF5340 DK](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF5340-DK) | `nrf5340dk_nrf5340_cpuapp` |
    nRF5340 DKnRF5340 DK
    | + +### Additional requirements for testing + +If you want to test the Light Switch Example application with other devices, you +also need to flash and program the following examples using the compatible +development kits: + +- [Lighting Example Application](../../lighting-app/nrfconnect/README.md) + +Read the [CHIP Tool user guide](../../../docs/guides/chip_tool_guide.md) to +learn how to commission the lighting device to the same Matter network using the +CHIP Tool. + +
    + + + +## Device UI + +This section lists the User Interface elements that you can use to control and +monitor the state of the device. These correspond to PCB components on the +platform image. + +### LEDs + +This section describes all behaviors of LEDs located on platform image. + +**LED 1** shows the overall state of the device and its connectivity. The +following states are possible: + +- _Short Flash On (50 ms on/950 ms off)_ — The device is in the + unprovisioned (unpaired) state and is waiting for a commissioning + application to connect. + +- _Rapid Even Flashing (100 ms on/100 ms off)_ — The device is in the + unprovisioned state and a commissioning application is connected through + Bluetooth LE. + +- _Short Flash Off (950ms on/50ms off)_ — The device is fully + provisioned, but does not yet have full Thread network or service + connectivity. + +- _Solid On_ — The device is fully provisioned and has full Thread + network and service connectivity. + +**LED 2** simulates the BLE DFU process. The following states are possible: + +- _Off_ — BLE is not advertising and DFU can not be performed. + +- _Rapid Even Flashing (30 ms off / 170 ms on)_ — BLE is advertising, + DFU process can be started. + +**LED 3** can be used to identify the device. The LED starts blinking evenly +(500 ms on/500 ms off) when the Identify command of the Identify cluster is +received. The command's argument can be used to specify the duration of the +effect. + +### Buttons + +This section describes a reaction to pressing or holding buttons located on the +platform image. + +**Button 1** can be used for the following purposes: + +- _Pressed for 6 s_ — Initiates the factory reset of the device. + Releasing the button within the 3-second window cancels the factory reset + procedure. **LEDs 1-4** blink in unison when the factory reset procedure is + initiated. + +- _Pressed for less than 3 s_ — Initiates the OTA software update + process. This feature is disabled by default, but can be enabled by + following the + [Building with Device Firmware Upgrade support](#building-with-device-firmware-upgrade-support) + instruction. + +**Button 2** can be used for the following purposes: + +- _Pressed once_ — Changes the light state to the opposite one on a + bound lighting bulb device ([lighting-app](../../lighting-app/nrfconnect/) + example). + +- _Pressed for more than 2 s_ — Changes the brightness of the light on a + bound lighting bulb device ([lighting-app](../../lighting-app/nrfconnect/) + example) (dimmer functionality). The brightness is changing from 0% to 100% + with 1% increments every 300 milliseconds as long as **Button 2** is + pressed. + +**Button 4** can be used to start the NFC tag emulation and enable Bluetooth LE +advertising for the predefined period of time (15 minutes by default). + +**SEGGER J-Link USB port** can be used to get logs from the device or +communicate with it using the +[command line interface](../../../docs/guides/nrfconnect_examples_cli.md). + +**NFC port with antenna attached** can be used to start the +[rendezvous](#bluetooth-le-rendezvous) by providing the commissioning +information from the Matter device in a data payload that can be shared using +NFC. + +### Matter CLI commands + +The Matter CLI allows to run commands via serial interface after USB cable +connection to Nordic Semiconductor's kit. + +To enable the Matter CLI, you must compile the Light Switch Example application +with the additional option **-DCONFIG_CHIP_LIB_SHELL=y**. Run the following +command with _build-target_ replaced with the build target name of Nordic +Semiconductor's kit you are using (for example, `nrf52840dk_nrf52840`): + + west build -b build-target -- -DCONFIG_CHIP_LIB_SHELL=y + +You can use the following commands to control a device that is programmed with +the Light Switch Example application by using the Matter CLI: + + uart:~$ switch onoff on : sends unicast On command to bound device + uart:~$ switch onoff off : sends unicast Off command to bound device + uart:~$ switch onoff toggle : sends unicast Toggle command to bound device + +You can use the following commands a group of devices that are programmed with +the Light Switch Example application by using the Matter CLI: + + uart:~$ switch groups onoff on : sends multicast On command to all bound devices in a group + uart:~$ switch groups onoff off : sends multicast Off command to all bound devices in a group + uart:~$ switch groups onoff toggle : sends multicast Toggle command to all bound devices in a group + +Check the [CLI user guide](../../../docs/guides/nrfconnect_examples_cli.md) to +learn how to use other CLI commands of the application. + +
    + +## Setting up the environment + +Before building the example, check out the Matter repository and sync submodules +using the following command: + + $ git submodule update --init + +The example requires a specific revision of the nRF Connect SDK. You can either +install it along with the related tools directly on your system or use a Docker +image that has the tools pre-installed. + +If you are a macOS user, you won't be able to use the Docker container to flash +the application onto a Nordic development kit due to +[certain limitations of Docker for macOS](https://docs.docker.com/docker-for-mac/faqs/#can-i-pass-through-a-usb-device-to-a-container). +Use the [native shell](#using-native-shell) for building instead. + +### Using Docker container for setup + +To use the Docker container for setup, complete the following steps: + +1. If you do not have the nRF Connect SDK installed yet, create a directory for + it by running the following command: + + $ mkdir ~/nrfconnect + +2. Download the latest version of the nRF Connect SDK Docker image by running + the following command: + + $ docker pull nordicsemi/nrfconnect-chip + +3. Start Docker with the downloaded image by running the following command, + customized to your needs as described below: + + $ docker run --rm -it -e RUNAS=$(id -u) -v ~/nrfconnect:/var/ncs -v ~/connectedhomeip:/var/chip \ + -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" nordicsemi/nrfconnect-chip + + In this command: + + - _~/nrfconnect_ can be replaced with an absolute path to the nRF Connect + SDK source directory. + - _~/connectedhomeip_ must be replaced with an absolute path to the CHIP + source directory. + - _-v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:_ rmw"\* + parameters can be omitted if you are not planning to flash the example + onto hardware. These parameters give the container access to USB devices + connected to your computer such as the nRF52840 DK. + - _--rm_ can be omitted if you do not want the container to be + auto-removed when you exit the container shell session. + - _-e RUNAS=\$(id -u)_ is needed to start the container session as the + current user instead of root. + +4. Update the nRF Connect SDK to the most recent supported revision, by running + the following command: + + $ cd /var/chip + $ python3 scripts/setup/nrfconnect/update_ncs.py --update + +Now you can proceed with the [Building](#building) instruction. + +### Using native shell for setup + +To use the native shell for setup, complete the following steps: + +1. Download and install the following additional software: + + - [nRF Command Line Tools](https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools) + - [GN meta-build system](https://gn.googlesource.com/gn/) + +2. If you do not have the nRF Connect SDK installed, follow the + [guide](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_assistant.html#) + in the nRF Connect SDK documentation to install the latest stable nRF + Connect SDK version. Since command-line tools will be used for building the + example, installing SEGGER Embedded Studio is not required. + + If you have the SDK already installed, continue to the next step and update + the nRF Connect SDK after initializing environment variables. + +3. Initialize environment variables referred to by the CHIP and the nRF Connect + SDK build scripts. Replace _nrfconnect-dir_ with the path to your nRF + Connect SDK installation directory, and _toolchain-dir_ with the path to GNU + Arm Embedded Toolchain. + + $ source nrfconnect-dir/zephyr/zephyr-env.sh + $ export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb + $ export GNUARMEMB_TOOLCHAIN_PATH=toolchain-dir + +4. Update the nRF Connect SDK to the most recent supported revision by running + the following command (replace _matter-dir_ with the path to Matter + repository directory): + + $ cd matter-dir + $ python3 scripts/setup/nrfconnect/update_ncs.py --update + +Now you can proceed with the [Building](#building) instruction. + +
    + + + +## Building + +Complete the following steps, regardless of the method used for setting up the +environment: + +1. Navigate to the example's directory: + + $ cd examples/light-switch-app/nrfconnect + +2. Run the following command to build the example, with _build-target_ replaced + with the build target name of the Nordic Semiconductor's kit you own, for + example `nrf52840dk_nrf52840`: + + $ west build -b build-target + + You only need to specify the build target on the first build. See + [Requirements](#requirements) for the build target names of compatible kits. + +The output `zephyr.hex` file will be available in the `build/zephyr/` directory. + +### Removing build artifacts + +If you're planning to build the example for a different kit or make changes to +the configuration, remove all build artifacts before building. To do so, use the +following command: + + $ rm -r build + +### Building with release configuration + +To build the example with release configuration that disables the diagnostic +features like logs and command-line interface, run the following command: + + $ west build -b build-target -- -DOVERLAY_CONFIG=third_party/connectedhomeip/config/nrfconnect/app/release.conf + +Remember to replace _build-target_ with the build target name of the Nordic +Semiconductor's kit you own. + +### Building with low-power configuration + +You can build the example using the low-power configuration, which enables +Thread's Sleepy End Device mode and disables debug features, such as the UART +console or the **LED 1** usage. + +To build for the low-power configuration, run the following command with +_build-target_ replaced with the build target name of the Nordic Semiconductor's +kit you own (for example `nrf52840dk_nrf52840`): + + $ west build -b build-target -- -DOVERLAY_CONFIG=overlay-low_power.conf + +For example, use the following command for `nrf52840dk_nrf52840`: + + $ west build -b nrf52840dk_nrf52840 -- -DOVERLAY_CONFIG=overlay-low_power.conf + +### Building with Device Firmware Upgrade support + +Support for DFU using Matter OTA is enabled by default. + +To enable DFU over Bluetooth LE, run the following command with _build-target_ +replaced with the build target name of the Nordic Semiconductor kit you are +using (for example `nrf52840dk_nrf52840`): + + $ west build -b build-target -- -DBUILD_WITH_DFU=BLE + +To completely disable support for both DFU methods, run the following command +with _build-target_ replaced with the build target name of the Nordic +Semiconductor kit you are using (for example `nrf52840dk_nrf52840`): + + $ west build -b build-target -- -DBUILD_WITH_DFU=OFF + +> **Note**: +> +> There are two types of Device Firmware Upgrade modes: single-image DFU and +> multi-image DFU. Single-image mode supports upgrading only one firmware image, +> the application image, and should be used for single-core nRF52840 DK devices. +> Multi-image mode allows to upgrade more firmware images and is suitable for +> upgrading the application core and network core firmware in two-core nRF5340 +> DK devices. + +#### Changing Device Firmware Upgrade configuration + +To change the default DFU configuration, edit the following overlay files +corresponding to the selected configuration: + +- `overlay-mcuboot_qspi_nor_support.conf` - general file enabling MCUboot and + QSPI NOR support, used by all DFU configurations +- `overlay-single_image_smp_dfu_support.conf` - file enabling single-image DFU + over Bluetooth LE using SMP +- `overlay-multi_image_smp_dfu_support.conf` - file enabling multi-image DFU + over Bluetooth LE using SMP +- `overlay-ota_requestor.conf` - file enabling Matter OTA Requestor support. + +The files are located in the `config/nrfconnect/app` directory. You can also +define the desired options in your example's `prj.conf` file. + +#### Changing bootloader configuration + +To change the default MCUboot configuration, edit the +`mcuboot_single_image_dfu.conf` or `mcuboot_multi_image_dfu.conf` overlay files +depending on whether the build target device supports multi-image DFU (nRF5340 +DK) or single-image DFU (nRF52840 DK). The files are located in the +`configuration` directory. + +Make sure to keep the configuration consistent with changes made to the +application configuration. This is necessary for the configuration to work, as +the bootloader image is a separate application from the user application and it +has its own configuration file. + +#### Changing flash memory settings + +In the default configuration, the MCUboot uses the +[Partition Manager](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#partition-manager) +to configure flash partitions used for the bootloader application image slot +purposes. You can change these settings by defining +[static partitions](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#ug-pm-static). +This example uses this option to define using an external flash. + +To modify the flash settings of your board (that is, your _build-target_, for +example `nrf52840dk_nrf52840`), edit the `pm_static.yml` file located in the +`configuration/build-target/` directory. + +
    + + + +## Configuring the example + +The Zephyr ecosystem is based on Kconfig files and the settings can be modified +using the menuconfig utility. + +To open the menuconfig utility, run the following command from the example +directory: + + $ west build -b build-target -t menuconfig + +Remember to replace _build-target_ with the build target name of the Nordic +Semiconductor's kit you own. + +Changes done with menuconfig will be lost if the `build` directory is deleted. +To make them persistent, save the configuration options in the `prj.conf` file. +For more information, see the +[Configuring nRF Connect SDK examples](../../../docs/guides/nrfconnect_examples_configuration.md) +page. + +
    + + + +## Flashing and debugging + +To flash the application to the device, use the west tool and run the following +command from the example directory: + + $ west flash --erase + +If you have multiple development kits connected, west will prompt you to pick +the correct one. + +To debug the application on target, run the following command from the example +directory: + + $ west debug + +
    + + + +## Testing the example + +After building and flashing the example, you can test its functionalities. For +this purpose, you need to prepare a second device that is programmed with the +[Lighting Example](../../lighting-app/nrfconnect/), perform the binding process, +and add Access Control Lists (ACLs). + +### Commissioning the lighting device + +To commission the Lighting Example Application to the same Matter network, read +the [CHIP Tool user guide](../../../docs/guides/chip_tool_guide.md). + +### Binding cluster and endpoints + +Binding links clusters and endpoints on both devices, which enables them to +communicate with each other. + +To perform binding, you need a controller that can write the binding table to +the light switch device and write proper ACL to the endpoint light bulb on the +[Lighting Example application](../../lighting-app/nrfconnect/)). For example, +you can use the [CHIP Tool for Windows or Linux](../../chip-tool/README.md) as +the controller. The ACL should contain information about all clusters that can +be called by the light switch application. See the section about +[interacting with ZCL clusters](../../../docs/guides/chip_tool_guide.md#interacting-with-zcl-clusters) +in the CHIP Tool's user guide for more information about ACLs. + +You can perform the binding process to a single remote endpoint (unicast +binding) or to a group of remote endpoints (group multicast). + +> **Note:** To use a light switch without brightness dimmer, apply only the +> first binding command with cluster no. 6. + +#### Unicast binding to a remote endpoint using the CHIP Tool for Windows or Linux + +In this scenario, commands are provided for a light switch device with the +`nodeId = 2` and a light bulb device with `nodeId = 1`, both commissioned to the +same Matter network. + +To perform the unicast binding process, complete the following steps: + +1. Build the CHIP Tool according to the steps from the + [CHIP Tool user guide](../../../docs/guides/chip_tool_guide.md#building). +2. Go to the CHIP Tool build directory. +3. Add an ACL to the development kit that is programmed with the + [Lighting Application Example](../../lighting-app/nrfconnect/) by running + the following command: + + chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, {"fabricIndex": 1, "privilege": 3, "authMode": 2, "subjects": [2], "targets": [{"cluster": 6, "endpoint": 1, "deviceType": null}, {"cluster": 8, "endpoint": 1, "deviceType": null}]}]' 1 0 + + In this command: + + - `{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}` + is an ACL for the communication with the CHIP Tool. + - `{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [2], "targets": [{"cluster": 6, "endpoint": 1, "deviceType": null}, {"cluster": 8, "endpoint": 1, "deviceType": null}]}` + is an ACL for binding (cluster no. 6 is the On/Off cluster and the + cluster no. 8 is the Level Control cluster). + + This command adds permissions on the lighting application device that allows + it to receive commands from the light switch device. + +4. Add a binding table to the Light Switch binding cluster: + + chip-tool binding write binding '[{"fabricIndex": 1, "node": 1, "endpoint": 1, "cluster": 6}, {"fabricIndex": 1, "node": 1, "endpoint": 1, "cluster": 8}]' 2 1 + + In this command: + + - `{"fabricIndex": 1, "node": <1>, "endpoint": 1, "cluster": 6}` is a + binding for the On/Off cluster. + - `{"fabricIndex": 1, "node": <1>, "endpoint": 1, "cluster": 8}` is a + binding for the Level Control cluster. + +> **Note:** When a light switch device reboots, the binding table is restored +> from flash memory and the device tries to bind a known device that is +> programmed with the Lighting Application Example. + +#### Group multicast binding to the group of remote endpoints using the CHIP Tool for Windows or Linux + +The group multicast binding lets you control more than one lighting device at a +time using a single light switch. + +The group multicast binding targets all development kits that are programmed +with the [Lighting Application Example](../../lighting-app/nrfconnect/) and +added to the same multicast group. After the binding is established, the light +switch device can send multicast requests, and all of the devices in the bound +groups can run the received command. + +In this scenario, commands are provided for a light switch device with the +`nodeId = 2` and a light bulb device with `nodeId = 1`, both commissioned to the +same Matter network. + +To perform the unicast binding process, complete the following steps: + +1. Build the CHIP Tool according to the steps from the + [CHIP Tool user guide](../../../docs/guides/chip_tool_guide.md#building). +2. Go to the CHIP Tool build directory. +3. Add an ACL to the [lighting endpoint](../../lighting-app/nrfconnect/) + permissions by running the following command: + + chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}, {"fabricIndex": 1, "privilege": 3, "authMode": 2, "subjects": [2], "targets": [{"cluster": 6, "endpoint": 1, "deviceType": null}, {"cluster": 8, "endpoint": 1, "deviceType": null}]}]' 1 0 + + In this command: + + - `{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null}` + is an ACL for the communication with the CHIP Tool. + - `{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [2], "targets": [{"cluster": 6, "endpoint": 1, "deviceType": null}, {"cluster": 8, "endpoint": 1, "deviceType": null}]}` + is an ACL for binding (cluster `no. 6` is the On/Off cluster and the + cluster `no. 8` is the Level Control cluster). + + This allows the lighting application device to receive commands from the + light switch device. + +4. Add the light switch device to the multicast group by running the following + command: + + chip-tool tests TestGroupDemoConfig --nodeId 1 + +5. Add all light bulbs to the same multicast group by applying command below + for each of the light bulbs, using the appropriate `` (the + user-defined ID of the node being commissioned except `2` due to use this + `` for light-switch) for each of them: + + chip-tool tests TestGroupDemoConfig --nodeId + +6. Add Binding commands for group multicast: + + chip-tool binding write binding '[{"fabricIndex": 1, "group": 257}]' 2 1 + +### Testing the communication + +To test the communication between the light switch device and the bound devices, +use [light switch buttons](#buttons) or +[Matter CLI commands](#matter-cli-commands), as described in the +[Device UI](#device-ui) section. + +### Testing Device Firmware Upgrade + +Read the +[DFU tutorial](../../../docs/guides/nrfconnect_examples_software_update.md) to +see how to upgrade your device firmware. diff --git a/examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.conf b/examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.conf new file mode 100644 index 00000000000000..fb419f0c7aa921 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.conf @@ -0,0 +1,17 @@ +# +# 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_BT_CTLR_DATA_LENGTH_MAX=251 diff --git a/examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.overlay b/examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.overlay new file mode 100644 index 00000000000000..b03d3f032eb0e1 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/boards/nrf52840dk_nrf52840.overlay @@ -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. + */ + +/ { + chosen { + nordic,pm-ext-flash = &mx25r64; + }; + + /* + * In some default configurations within the nRF Connect SDK, + * e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell. + * This devicetree overlay ensures that default is overridden wherever it + * is set, as this application uses the RNG node for entropy exclusively. + */ + + chosen { + zephyr,entropy = &rng; + }; + +}; diff --git a/examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.conf b/examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.conf new file mode 100644 index 00000000000000..ce2e61edce82ca --- /dev/null +++ b/examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.conf @@ -0,0 +1,17 @@ +# +# 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_XOROSHIRO_RANDOM_GENERATOR=y diff --git a/examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.overlay b/examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.overlay new file mode 100644 index 00000000000000..16973a1b1570ee --- /dev/null +++ b/examples/light-switch-app/nrfconnect/boards/nrf5340dk_nrf5340_cpuapp.overlay @@ -0,0 +1,66 @@ +/* + * 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. + */ + +/ { + chosen { + nordic,pm-ext-flash = &mx25r64; + }; + + soc { + /* Add a flash controller which has the compatible + * 'zephyr,sim-flash'. This will ensure that the flash + * simulator can use it. None of the other properties in this + * node is used for anything. + */ + nordic_ram_flash_controller: nordic_ram-flash-controller@0 { + compatible = "zephyr,sim-flash"; + reg = <0x00000000 DT_SIZE_K(40)>; + #address-cells = <1>; + #size-cells = <1>; + erase-value = <0xff>; + label = "nordic_ram_flash_flash_controller"; + + /* This node label must match that used in the flash + * simulator. + */ + flash_sim0: flash_sim@0 { + status = "okay"; + compatible = "soc-nv-flash"; + label = "simulated_flash"; + erase-block-size = <4096>; + write-block-size = <4>; + reg = <0x00000000 DT_SIZE_K(256)>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* This partition must be defined for + * MCUboot to find the partition ID + * of the primary slot for image 1, + * which is stored in this partition. + */ + slot2_partition: partition@0 { + label = "image-2"; + reg = <0x00000000 0x00000A000>; + }; + }; + }; + }; + }; + +}; diff --git a/examples/light-switch-app/nrfconnect/child_image/multiprotocol_rpmsg.conf b/examples/light-switch-app/nrfconnect/child_image/multiprotocol_rpmsg.conf new file mode 100644 index 00000000000000..329d787b50feab --- /dev/null +++ b/examples/light-switch-app/nrfconnect/child_image/multiprotocol_rpmsg.conf @@ -0,0 +1,22 @@ +# +# 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. +# + +CONFIG_BT_PERIPHERAL=y +CONFIG_BT_CENTRAL=n +CONFIG_BT_MAX_CONN=1 +CONFIG_BT_BUF_ACL_RX_SIZE=502 +CONFIG_BT_BUF_ACL_TX_SIZE=251 +CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 diff --git a/examples/light-switch-app/nrfconnect/configuration/mcuboot_multi_image_dfu.conf b/examples/light-switch-app/nrfconnect/configuration/mcuboot_multi_image_dfu.conf new file mode 100644 index 00000000000000..2c4579fd928b52 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/configuration/mcuboot_multi_image_dfu.conf @@ -0,0 +1,48 @@ +# +# 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. +# + +# QSPI configuration +CONFIG_NORDIC_QSPI_NOR=y +CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 +CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16 + +CONFIG_BOOT_MAX_IMG_SECTORS=256 + +# The following configurations are required to support simultaneous multi image update +CONFIG_PCD_APP=y +CONFIG_UPDATEABLE_IMAGE_NUMBER=2 +CONFIG_BOOT_UPGRADE_ONLY=y +# The network core cannot access external flash directly. The flash simulator must be used to +# provide a memory region that is used to forward the new firmware to the network core. +CONFIG_FLASH_SIMULATOR=y +CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y +CONFIG_FLASH_SIMULATOR_STATS=n + +# bootloader size optimization +CONFIG_LOG=n +CONFIG_CONSOLE=n +CONFIG_SERIAL=n +CONFIG_UART_CONSOLE=n +CONFIG_CONSOLE_HANDLER=n +CONFIG_BOOT_BANNER=n +CONFIG_TIMESLICING=n +CONFIG_RESET_ON_FATAL_ERROR=n +CONFIG_MULTITHREADING=n +CONFIG_TICKLESS_KERNEL=n +CONFIG_TIMEOUT_64BIT=n +CONFIG_USE_SEGGER_RTT=n +CONFIG_GPIO=n +CONFIG_NRF_ENABLE_ICACHE=n diff --git a/examples/light-switch-app/nrfconnect/configuration/mcuboot_single_image_dfu.conf b/examples/light-switch-app/nrfconnect/configuration/mcuboot_single_image_dfu.conf new file mode 100644 index 00000000000000..56e61619aef7d4 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/configuration/mcuboot_single_image_dfu.conf @@ -0,0 +1,38 @@ +# +# 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. +# + +# QSPI configuration +CONFIG_NORDIC_QSPI_NOR=y +CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 +CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16 + +CONFIG_BOOT_MAX_IMG_SECTORS=256 + +# bootloader size optimization +CONFIG_LOG=n +CONFIG_CONSOLE=n +CONFIG_SERIAL=n +CONFIG_UART_CONSOLE=n +CONFIG_CONSOLE_HANDLER=n +CONFIG_BOOT_BANNER=n +CONFIG_TIMESLICING=n +CONFIG_RESET_ON_FATAL_ERROR=n +CONFIG_MULTITHREADING=n +CONFIG_TICKLESS_KERNEL=n +CONFIG_TIMEOUT_64BIT=n +CONFIG_USE_SEGGER_RTT=n +CONFIG_GPIO=n +CONFIG_NRF_ENABLE_ICACHE=n diff --git a/examples/light-switch-app/nrfconnect/configuration/nrf52840dk_nrf52840/pm_static.yml b/examples/light-switch-app/nrfconnect/configuration/nrf52840dk_nrf52840/pm_static.yml new file mode 100644 index 00000000000000..9c26550c0902be --- /dev/null +++ b/examples/light-switch-app/nrfconnect/configuration/nrf52840dk_nrf52840/pm_static.yml @@ -0,0 +1,38 @@ +mcuboot: + address: 0x0 + size: 0x7000 + region: flash_primary +mcuboot_pad: + address: 0x7000 + size: 0x200 +app: + address: 0x7200 + size: 0xf0e00 +mcuboot_primary: + orig_span: &id001 + - mcuboot_pad + - app + span: *id001 + address: 0x7000 + size: 0xf1000 + region: flash_primary +mcuboot_primary_app: + orig_span: &id002 + - app + span: *id002 + address: 0x7200 + size: 0xf0e00 +settings_storage: + address: 0xf8000 + size: 0x8000 + region: flash_primary +mcuboot_secondary: + address: 0x0 + size: 0xf1000 + device: MX25R64 + region: external_flash +external_flash: + address: 0xf1000 + size: 0x70f000 + device: MX25R64 + region: external_flash diff --git a/examples/light-switch-app/nrfconnect/configuration/nrf5340dk_nrf5340_cpuapp/pm_static.yml b/examples/light-switch-app/nrfconnect/configuration/nrf5340dk_nrf5340_cpuapp/pm_static.yml new file mode 100644 index 00000000000000..9f9f677d8af4fc --- /dev/null +++ b/examples/light-switch-app/nrfconnect/configuration/nrf5340dk_nrf5340_cpuapp/pm_static.yml @@ -0,0 +1,52 @@ +mcuboot: + address: 0x0 + size: 0xC000 + region: flash_primary +mcuboot_pad: + address: 0xC000 + size: 0x200 +app: + address: 0xC200 + size: 0xebe00 +mcuboot_primary: + orig_span: &id001 + - mcuboot_pad + - app + span: *id001 + address: 0xC000 + size: 0xec000 + region: flash_primary +mcuboot_primary_app: + orig_span: &id002 + - app + span: *id002 + address: 0xC200 + size: 0xebe00 +settings_storage: + address: 0xf8000 + size: 0x8000 + region: flash_primary +mcuboot_primary_1: + address: 0x0 + size: 0x40000 + device: flash_ctrl + region: ram_flash +mcuboot_secondary: + address: 0x0 + size: 0xec000 + device: MX25R64 + region: external_flash +mcuboot_secondary_1: + address: 0xec000 + size: 0x40000 + device: MX25R64 + region: external_flash +external_flash: + address: 0x12C000 + size: 0x6D4000 + device: MX25R64 + region: external_flash +pcd_sram: + address: 0x20000000 + size: 0x2000 + region: sram_primary diff --git a/examples/light-switch-app/nrfconnect/main/AppTask.cpp b/examples/light-switch-app/nrfconnect/main/AppTask.cpp new file mode 100644 index 00000000000000..49605a58fdcf3a --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/AppTask.cpp @@ -0,0 +1,588 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#include "AppTask.h" +#include "AppConfig.h" +#include "BindingHandler.h" +#include "LEDWidget.h" +#include "LightSwitch.h" +#include "ThreadUtil.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef CONFIG_CHIP_OTA_REQUESTOR +#include "OTAUtil.h" +#endif + +#include +#include +#include + +using namespace ::chip; +using namespace ::chip::app; +using namespace ::chip::Credentials; +using namespace ::chip::DeviceLayer; + +LOG_MODULE_DECLARE(app); +namespace { +constexpr EndpointId kLightSwitchEndpointId = 1; +constexpr EndpointId kLightEndpointId = 1; +constexpr uint32_t kFactoryResetTriggerTimeout = 3000; +constexpr uint32_t kFactoryResetCancelWindow = 3000; +constexpr uint32_t kDimmerTriggeredTimeout = 500; +constexpr uint32_t kDimmerInterval = 300; +constexpr uint32_t kIdentifyBlinkRateMs = 500; +constexpr size_t kAppEventQueueSize = 10; + +K_MSGQ_DEFINE(sAppEventQueue, sizeof(AppEvent), kAppEventQueueSize, alignof(AppEvent)); + +Identify sIdentify = { kLightEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler, + EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED }; + +LEDWidget sStatusLED; +LEDWidget sBleLED; +LEDWidget sIdentifyLED; +LEDWidget sUnusedLED; + +bool sIsThreadProvisioned = false; +bool sIsThreadEnabled = false; +bool sIsThreadBLEAdvertising = false; +bool sIsSMPAdvertising = false; +bool sHaveBLEConnections = false; +bool sWasDimmerTriggered = false; + +k_timer sFunctionTimer; +k_timer sDimmerPressKeyTimer; +k_timer sDimmerTimer; + +} /* namespace */ + +AppTask AppTask::sAppTask; + +CHIP_ERROR AppTask::Init() +{ + // Initialize CHIP + LOG_INF("Init CHIP stack"); + + CHIP_ERROR err = Platform::MemoryInit(); + if (err != CHIP_NO_ERROR) + { + LOG_ERR("Platform::MemoryInit() failed"); + return err; + } + + err = PlatformMgr().InitChipStack(); + if (err != CHIP_NO_ERROR) + { + LOG_ERR("PlatformMgr().InitChipStack() failed"); + return err; + } + + err = ThreadStackMgr().InitThreadStack(); + if (err != CHIP_NO_ERROR) + { + LOG_ERR("ThreadStackMgr().InitThreadStack() failed: %s", ErrorStr(err)); + return err; + } + +#ifdef CONFIG_OPENTHREAD_MTD_SED + err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_SleepyEndDevice); +#elif CONFIG_OPENTHREAD_MTD + err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_MinimalEndDevice); +#else + err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_FullEndDevice); +#endif + if (err != CHIP_NO_ERROR) + { + LOG_ERR("ConnectivityMgr().SetThreadDeviceType() failed: %s", ErrorStr(err)); + return err; + } + + LightSwitch::GetInstance().Init(kLightSwitchEndpointId); + + // Initialize UI components + LEDWidget::InitGpio(); + LEDWidget::SetStateUpdateCallback(LEDStateUpdateHandler); + sStatusLED.Init(SYSTEM_STATE_LED); + sBleLED.Init(DFU_BLE_LED); + sIdentifyLED.Init(IDENTIFY_LED); + sUnusedLED.Init(DK_LED4); + UpdateStatusLED(); + + int ret = dk_buttons_init(ButtonEventHandler); + + if (ret) + { + LOG_ERR("dk_buttons_init() failed"); + return System::MapErrorZephyr(ret); + } + + // Initialize Timers + k_timer_init(&sFunctionTimer, AppTask::TimerEventHandler, nullptr); + k_timer_init(&sDimmerPressKeyTimer, AppTask::TimerEventHandler, nullptr); + k_timer_init(&sDimmerTimer, AppTask::TimerEventHandler, nullptr); + k_timer_user_data_set(&sDimmerTimer, this); + k_timer_user_data_set(&sDimmerPressKeyTimer, this); + k_timer_user_data_set(&sFunctionTimer, this); + + // Initialize DFU +#ifdef CONFIG_MCUMGR_SMP_BT + GetDFUOverSMP().Init(RequestSMPAdvertisingStart); + GetDFUOverSMP().ConfirmNewImage(); +#endif + + // Print initial configs + SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); + ReturnErrorOnFailure(Server::GetInstance().Init()); +#if CONFIG_CHIP_OTA_REQUESTOR + InitBasicOTARequestor(); +#endif + ConfigurationMgr().LogDeviceConfig(); + PrintOnboardingCodes(RendezvousInformationFlags(RendezvousInformationFlag::kBLE)); + + // Add CHIP event handler and start CHIP thread. + // Note that all the initialization code should happen prior to this point + // to avoid data races between the main and the CHIP threads. + PlatformMgr().AddEventHandler(ChipEventHandler, 0); + + err = PlatformMgr().StartEventLoopTask(); + if (err != CHIP_NO_ERROR) + { + LOG_ERR("PlatformMgr().StartEventLoopTask() failed"); + return err; + } + + return err; +} + +CHIP_ERROR AppTask::StartApp() +{ + ReturnErrorOnFailure(Init()); + + AppEvent event{}; + + while (true) + { + k_msgq_get(&sAppEventQueue, &event, K_FOREVER); + DispatchEvent(&event); + } + + return CHIP_NO_ERROR; +} + +void AppTask::ButtonPushHandler(AppEvent * aEvent) +{ + if (aEvent->Type == AppEvent::kEventType_Button) + { + switch (aEvent->ButtonEvent.PinNo) + { + case FUNCTION_BUTTON: + sAppTask.StartTimer(Timer::Function, kFactoryResetTriggerTimeout); + sAppTask.mFunction = TimerFunction::SoftwareUpdate; + break; + case SWITCH_BUTTON: + LOG_INF("Button has been pressed, keep in this state for at least 500 ms to change light sensitivity of binded " + "lighting devices."); + sAppTask.StartTimer(Timer::DimmerTrigger, kDimmerTriggeredTimeout); + break; + default: + break; + } + } +} + +void AppTask::ButtonReleaseHandler(AppEvent * aEvent) +{ + + if (aEvent->Type == AppEvent::kEventType_Button) + { + switch (aEvent->ButtonEvent.PinNo) + { + case FUNCTION_BUTTON: + if (sAppTask.mFunction == TimerFunction::SoftwareUpdate) + { + sAppTask.CancelTimer(Timer::Function); + sAppTask.mFunction = TimerFunction::NoneSelected; + +#ifdef CONFIG_MCUMGR_SMP_BT + GetDFUOverSMP().StartServer(); + sIsSMPAdvertising = true; + UpdateStatusLED(); +#else + LOG_INF("Software update is disabled"); +#endif + } + else if (sAppTask.mFunction == TimerFunction::FactoryReset) + { + UpdateStatusLED(); + + sAppTask.CancelTimer(Timer::Function); + sAppTask.mFunction = TimerFunction::NoneSelected; + LOG_INF("Factory Reset has been canceled"); + } + break; + case SWITCH_BUTTON: + if (!sWasDimmerTriggered) + { + LightSwitch::GetInstance().InitiateActionSwitch(LightSwitch::Action::Toggle); + } + sAppTask.CancelTimer(Timer::Dimmer); + sAppTask.CancelTimer(Timer::DimmerTrigger); + sWasDimmerTriggered = false; + break; + default: + break; + } + } +} + +void AppTask::TimerEventHandler(AppEvent * aEvent) +{ + if (aEvent->Type == AppEvent::kEventType_Timer) + { + switch ((Timer) aEvent->TimerEvent.TimerType) + { + case Timer::Function: + if (sAppTask.mFunction == TimerFunction::SoftwareUpdate) + { + LOG_INF("Factory Reset has been triggered. Release button within %u ms to cancel.", kFactoryResetCancelWindow); + sAppTask.StartTimer(Timer::Function, kFactoryResetCancelWindow); + sAppTask.mFunction = TimerFunction::FactoryReset; + +#ifdef CONFIG_STATE_LEDS + // reset all LEDs to synchronize factory reset blinking + sStatusLED.Set(false); + sIdentifyLED.Set(false); + sBleLED.Set(false); + sUnusedLED.Set(false); + + sStatusLED.Blink(500); + sIdentifyLED.Blink(500); + sBleLED.Blink(500); + sUnusedLED.Blink(500); +#endif + } + else if (sAppTask.mFunction == TimerFunction::FactoryReset) + { + sAppTask.mFunction = TimerFunction::NoneSelected; + LOG_INF("Factory Reset triggered"); + ConfigurationMgr().InitiateFactoryReset(); + } + break; + case Timer::DimmerTrigger: + LOG_INF("Dimming started..."); + sWasDimmerTriggered = true; + LightSwitch::GetInstance().InitiateActionSwitch(LightSwitch::Action::On); + sAppTask.StartTimer(Timer::Dimmer, kDimmerInterval); + sAppTask.CancelTimer(Timer::DimmerTrigger); + break; + case Timer::Dimmer: + LightSwitch::GetInstance().DimmerChangeBrightness(); + break; + default: + break; + } + } +} + +void AppTask::IdentifyStartHandler(Identify *) +{ + AppEvent event; + event.Type = AppEvent::kEventType_IdentifyStart; + event.Handler = [](AppEvent *) { sIdentifyLED.Blink(kIdentifyBlinkRateMs); }; + sAppTask.PostEvent(&event); +} + +void AppTask::IdentifyStopHandler(Identify *) +{ + AppEvent event; + event.Type = AppEvent::kEventType_IdentifyStop; + event.Handler = [](AppEvent *) { sIdentifyLED.Set(false); }; + sAppTask.PostEvent(&event); +} + +void AppTask::StartBLEAdvertisingHandler(AppEvent * aEvent) +{ + /// Don't allow on starting Matter service BLE advertising after Thread provisioning. + if (Server::GetInstance().GetFabricTable().FabricCount() != 0) + { + LOG_INF("Matter service BLE advertising not started - device is already commissioned"); + return; + } + + if (ConnectivityMgr().IsBLEAdvertisingEnabled()) + { + LOG_INF("BLE advertising is already enabled"); + return; + } + + LOG_INF("Enabling BLE advertising..."); + if (Server::GetInstance().GetCommissioningWindowManager().OpenBasicCommissioningWindow() != CHIP_NO_ERROR) + { + LOG_ERR("OpenBasicCommissioningWindow() failed"); + } +} + +void AppTask::ChipEventHandler(const ChipDeviceEvent * aEvent, intptr_t /* arg */) +{ + switch (aEvent->Type) + { + case DeviceEventType::kCHIPoBLEAdvertisingChange: + sIsThreadBLEAdvertising = true; + UpdateStatusLED(); +#ifdef CONFIG_CHIP_NFC_COMMISSIONING + if (aEvent->CHIPoBLEAdvertisingChange.Result == kActivity_Started) + { + if (NFCMgr().IsTagEmulationStarted()) + { + LOG_INF("NFC Tag emulation is already started"); + } + else + { + ShareQRCodeOverNFC(RendezvousInformationFlags(RendezvousInformationFlag::kBLE)); + } + } + else if (aEvent->CHIPoBLEAdvertisingChange.Result == kActivity_Stopped) + { + NFCMgr().StopTagEmulation(); + } +#endif + sHaveBLEConnections = ConnectivityMgr().NumBLEConnections() != 0; + UpdateStatusLED(); + break; + case DeviceEventType::kThreadStateChange: + sIsThreadProvisioned = ConnectivityMgr().IsThreadProvisioned(); + sIsThreadEnabled = ConnectivityMgr().IsThreadEnabled(); + UpdateStatusLED(); + break; + default: + if ((ConnectivityMgr().NumBLEConnections() == 0) && (!sIsThreadProvisioned || !sIsThreadEnabled)) + { + LOG_ERR("Commissioning with a Thread network has not been done. An error occurred..."); + sIsThreadBLEAdvertising = false; + sHaveBLEConnections = false; + UpdateStatusLED(); + } + break; + } +} + +void AppTask::UpdateStatusLED() +{ +#ifdef CONFIG_STATE_LEDS + sUnusedLED.Set(false); + + // Status LED indicates: + // - blinking 1 s - advertising, ready to commission + // - blinking 200 ms - commissioning in progress + // - constant lightning means commissioned with Thread network + if (sIsThreadBLEAdvertising && !sHaveBLEConnections) + { + sStatusLED.Blink(50, 950); + } + else if (sIsThreadProvisioned && sIsThreadEnabled) + { + sStatusLED.Set(true); + } + else if (sHaveBLEConnections) + { + sStatusLED.Blink(30, 170); + } + else + { + sStatusLED.Set(false); + } + + // Ble LED indicates BLE connectivity: + //- blinking 200 ms means BLE advertising + if (sIsSMPAdvertising) + { + sBleLED.Blink(30, 170); + } + else + { + sBleLED.Set(false); + } +#endif +} + +void AppTask::ButtonEventHandler(uint32_t aButtonState, uint32_t aHasChanged) +{ + + AppEvent buttonEvent; + buttonEvent.Type = AppEvent::kEventType_Button; + + if (FUNCTION_BUTTON_MASK & aButtonState & aHasChanged) + { + buttonEvent.ButtonEvent.PinNo = FUNCTION_BUTTON; + buttonEvent.ButtonEvent.Action = AppEvent::kButtonPushEvent; + buttonEvent.Handler = ButtonPushHandler; + sAppTask.PostEvent(&buttonEvent); + } + else if (FUNCTION_BUTTON_MASK & aHasChanged) + { + buttonEvent.ButtonEvent.PinNo = FUNCTION_BUTTON; + buttonEvent.ButtonEvent.Action = AppEvent::kButtonReleaseEvent; + buttonEvent.Handler = ButtonReleaseHandler; + sAppTask.PostEvent(&buttonEvent); + } + + if (SWITCH_BUTTON_MASK & aButtonState & aHasChanged) + { + buttonEvent.ButtonEvent.PinNo = SWITCH_BUTTON; + buttonEvent.ButtonEvent.Action = AppEvent::kButtonPushEvent; + buttonEvent.Handler = ButtonPushHandler; + sAppTask.PostEvent(&buttonEvent); + } + else if (SWITCH_BUTTON_MASK & aHasChanged) + { + buttonEvent.ButtonEvent.PinNo = SWITCH_BUTTON; + buttonEvent.ButtonEvent.Action = AppEvent::kButtonReleaseEvent; + buttonEvent.Handler = ButtonReleaseHandler; + sAppTask.PostEvent(&buttonEvent); + } + + if (BLE_ADVERTISEMENT_START_BUTTON_MASK & aHasChanged & aButtonState) + { + buttonEvent.ButtonEvent.PinNo = BLE_ADVERTISEMENT_START_BUTTON; + buttonEvent.ButtonEvent.Action = AppEvent::kButtonPushEvent; + buttonEvent.Handler = StartBLEAdvertisingHandler; + sAppTask.PostEvent(&buttonEvent); + } +} + +void AppTask::StartTimer(Timer aTimer, uint32_t aTimeoutMs) +{ + switch (aTimer) + { + case Timer::Function: + k_timer_start(&sFunctionTimer, K_MSEC(aTimeoutMs), K_NO_WAIT); + break; + case Timer::DimmerTrigger: + k_timer_start(&sDimmerPressKeyTimer, K_MSEC(aTimeoutMs), K_NO_WAIT); + break; + case Timer::Dimmer: + k_timer_start(&sDimmerTimer, K_MSEC(aTimeoutMs), K_MSEC(aTimeoutMs)); + break; + default: + break; + } +} + +void AppTask::CancelTimer(Timer aTimer) +{ + switch (aTimer) + { + case Timer::Function: + k_timer_stop(&sFunctionTimer); + break; + case Timer::DimmerTrigger: + k_timer_stop(&sDimmerPressKeyTimer); + break; + case Timer::Dimmer: + k_timer_stop(&sDimmerTimer); + break; + default: + break; + } +} + +void AppTask::UpdateLedStateEventHandler(AppEvent * aEvent) +{ + if (aEvent->Type == AppEvent::kEventType_UpdateLedState) + { + aEvent->UpdateLedStateEvent.LedWidget->UpdateState(); + } +} + +void AppTask::LEDStateUpdateHandler(LEDWidget & aLedWidget) +{ + AppEvent event; + event.Type = AppEvent::kEventType_UpdateLedState; + event.Handler = UpdateLedStateEventHandler; + event.UpdateLedStateEvent.LedWidget = &aLedWidget; + sAppTask.PostEvent(&event); +} + +void AppTask::TimerEventHandler(k_timer * aTimer) +{ + AppEvent event; + if (aTimer == &sFunctionTimer) + { + event.Type = AppEvent::kEventType_Timer; + event.TimerEvent.TimerType = (uint8_t) Timer::Function; + event.TimerEvent.Context = k_timer_user_data_get(aTimer); + event.Handler = TimerEventHandler; + sAppTask.PostEvent(&event); + } + if (aTimer == &sDimmerPressKeyTimer) + { + event.Type = AppEvent::kEventType_Timer; + event.TimerEvent.TimerType = (uint8_t) Timer::DimmerTrigger; + event.TimerEvent.Context = k_timer_user_data_get(aTimer); + event.Handler = TimerEventHandler; + sAppTask.PostEvent(&event); + } + if (aTimer == &sDimmerTimer) + { + event.Type = AppEvent::kEventType_Timer; + event.TimerEvent.TimerType = (uint8_t) Timer::Dimmer; + event.TimerEvent.Context = k_timer_user_data_get(aTimer); + event.Handler = TimerEventHandler; + sAppTask.PostEvent(&event); + } +} + +#ifdef CONFIG_MCUMGR_SMP_BT +void AppTask::RequestSMPAdvertisingStart(void) +{ + AppEvent event; + event.Type = AppEvent::kEventType_StartSMPAdvertising; + event.Handler = [](AppEvent *) { GetDFUOverSMP().StartBLEAdvertising(); }; + sAppTask.PostEvent(&event); +} +#endif + +void AppTask::PostEvent(AppEvent * aEvent) +{ + if (k_msgq_put(&sAppEventQueue, aEvent, K_NO_WAIT) != 0) + { + LOG_INF("Failed to post event to app task event queue"); + } +} + +void AppTask::DispatchEvent(AppEvent * aEvent) +{ + if (aEvent->Handler) + { + aEvent->Handler(aEvent); + } + else + { + LOG_INF("Event received with no handler. Dropping event."); + } +} diff --git a/examples/light-switch-app/nrfconnect/main/BindingHandler.cpp b/examples/light-switch-app/nrfconnect/main/BindingHandler.cpp new file mode 100644 index 00000000000000..7fb16ad754d005 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/BindingHandler.cpp @@ -0,0 +1,269 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#include "BindingHandler.h" +#ifdef CONFIG_CHIP_LIB_SHELL +#include "ShellCommands.h" +#endif + +#include +LOG_MODULE_DECLARE(app); + +using namespace chip; +using namespace chip::app; + +void BindingHandler::Init() +{ +#ifdef CONFIG_CHIP_LIB_SHELL + SwitchCommands::RegisterSwitchCommands(); +#endif + DeviceLayer::PlatformMgr().ScheduleWork(InitInternal); +} + +void BindingHandler::OnOffProcessCommand(CommandId aCommandId, const EmberBindingTableEntry & aBinding, DeviceProxy * aDevice, + void * aContext) +{ + CHIP_ERROR ret = CHIP_NO_ERROR; + + auto onSuccess = [](const ConcreteCommandPath & commandPath, const StatusIB & status, const auto & dataResponse) { + LOG_DBG("Binding command applied successfully!"); + }; + + auto onFailure = [](CHIP_ERROR error) { + LOG_INF("Binding command was not applied! Reason: %" CHIP_ERROR_FORMAT, error.Format()); + }; + + switch (aCommandId) + { + case Clusters::OnOff::Commands::Toggle::Id: + Clusters::OnOff::Commands::Toggle::Type toggleCommand; + if (aDevice) + { + ret = Controller::InvokeCommandRequest(aDevice->GetExchangeManager(), aDevice->GetSecureSession().Value(), + aBinding.remote, toggleCommand, onSuccess, onFailure); + } + else + { + + NodeId sourceNodeId = Server::GetInstance().GetFabricTable().FindFabricWithIndex(aBinding.fabricIndex)->GetNodeId(); + Messaging::ExchangeManager & exchangeMgr = Server::GetInstance().GetExchangeManager(); + ret = Controller::InvokeGroupCommandRequest(&exchangeMgr, aBinding.fabricIndex, aBinding.groupId, sourceNodeId, + toggleCommand); + } + break; + + case Clusters::OnOff::Commands::On::Id: + Clusters::OnOff::Commands::On::Type onCommand; + if (aDevice) + { + ret = Controller::InvokeCommandRequest(aDevice->GetExchangeManager(), aDevice->GetSecureSession().Value(), + aBinding.remote, onCommand, onSuccess, onFailure); + } + else + { + NodeId sourceNodeId = Server::GetInstance().GetFabricTable().FindFabricWithIndex(aBinding.fabricIndex)->GetNodeId(); + Messaging::ExchangeManager & exchangeMgr = Server::GetInstance().GetExchangeManager(); + ret = Controller::InvokeGroupCommandRequest(&exchangeMgr, aBinding.fabricIndex, aBinding.groupId, sourceNodeId, + onCommand); + } + break; + + case Clusters::OnOff::Commands::Off::Id: + Clusters::OnOff::Commands::Off::Type offCommand; + if (aDevice) + { + ret = Controller::InvokeCommandRequest(aDevice->GetExchangeManager(), aDevice->GetSecureSession().Value(), + aBinding.remote, offCommand, onSuccess, onFailure); + } + else + { + NodeId sourceNodeId = Server::GetInstance().GetFabricTable().FindFabricWithIndex(aBinding.fabricIndex)->GetNodeId(); + Messaging::ExchangeManager & exchangeMgr = Server::GetInstance().GetExchangeManager(); + ret = Controller::InvokeGroupCommandRequest(&exchangeMgr, aBinding.fabricIndex, aBinding.groupId, sourceNodeId, + onCommand); + } + break; + default: + LOG_DBG("Invalid binding command data - commandId is not supported"); + break; + } + if (CHIP_NO_ERROR != ret) + { + LOG_ERR("Invoke OnOff Command Request ERROR: %s", ErrorStr(ret)); + } +} + +void BindingHandler::LevelControlProcessCommand(CommandId aCommandId, const EmberBindingTableEntry & aBinding, + DeviceProxy * aDevice, void * aContext) +{ + auto onSuccess = [](const ConcreteCommandPath & commandPath, const StatusIB & status, const auto & dataResponse) { + LOG_DBG("Binding command applied successfully!"); + }; + + auto onFailure = [](CHIP_ERROR error) { + LOG_INF("Binding command was not applied! Reason: %" CHIP_ERROR_FORMAT, error.Format()); + }; + + CHIP_ERROR ret = CHIP_NO_ERROR; + + switch (aCommandId) + { + case Clusters::LevelControl::Commands::MoveToLevel::Id: { + Clusters::LevelControl::Commands::MoveToLevel::Type moveToLevelCommand; + BindingData * data = reinterpret_cast(aContext); + moveToLevelCommand.level = data->Value; + if (aDevice) + { + ret = Controller::InvokeCommandRequest(aDevice->GetExchangeManager(), aDevice->GetSecureSession().Value(), + aBinding.remote, moveToLevelCommand, onSuccess, onFailure); + } + else + { + NodeId sourceNodeId = Server::GetInstance().GetFabricTable().FindFabricWithIndex(aBinding.fabricIndex)->GetNodeId(); + Messaging::ExchangeManager & exchangeMgr = Server::GetInstance().GetExchangeManager(); + ret = Controller::InvokeGroupCommandRequest(&exchangeMgr, aBinding.fabricIndex, aBinding.groupId, sourceNodeId, + moveToLevelCommand); + } + } + break; + default: + LOG_DBG("Invalid binding command data - commandId is not supported"); + break; + } + if (CHIP_NO_ERROR != ret) + { + LOG_ERR("Invoke Group Command Request ERROR: %s", ErrorStr(ret)); + } +} + +void BindingHandler::LightSwitchChangedHandler(const EmberBindingTableEntry & binding, DeviceProxy * deviceProxy, void * context) +{ + VerifyOrReturn(context != nullptr, LOG_ERR("Invalid context for Light switch handler");); + BindingData * data = static_cast(context); + + if (binding.type == EMBER_MULTICAST_BINDING && data->IsGroup) + { + switch (data->ClusterId) + { + case Clusters::OnOff::Id: + OnOffProcessCommand(data->CommandId, binding, nullptr, context); + break; + case Clusters::LevelControl::Id: + LevelControlProcessCommand(data->CommandId, binding, nullptr, context); + break; + default: + ChipLogError(NotSpecified, "Invalid binding group command data"); + break; + } + } + else if (binding.type == EMBER_UNICAST_BINDING && !data->IsGroup) + { + switch (data->ClusterId) + { + case Clusters::OnOff::Id: + OnOffProcessCommand(data->CommandId, binding, deviceProxy, context); + break; + case Clusters::LevelControl::Id: + LevelControlProcessCommand(data->CommandId, binding, deviceProxy, context); + break; + default: + ChipLogError(NotSpecified, "Invalid binding unicast command data"); + break; + } + } +} + +void BindingHandler::InitInternal(intptr_t aArg) +{ + LOG_INF("Initialize binding Handler"); + auto & server = Server::GetInstance(); + if (CHIP_NO_ERROR != + BindingManager::GetInstance().Init( + { &server.GetFabricTable(), server.GetCASESessionManager(), &server.GetPersistentStorage() })) + { + LOG_ERR("BindingHandler::InitInternal failed"); + } + + BindingManager::GetInstance().RegisterBoundDeviceChangedHandler(LightSwitchChangedHandler); + PrintBindingTable(); +} + +bool BindingHandler::IsGroupBound() +{ + BindingTable & bindingTable = BindingTable::GetInstance(); + + for (auto & entry : bindingTable) + { + if (EMBER_MULTICAST_BINDING == entry.type) + { + return true; + } + } + return false; +} + +void BindingHandler::PrintBindingTable() +{ + BindingTable & bindingTable = BindingTable::GetInstance(); + + LOG_INF("Binding Table size: [%d]:", bindingTable.Size()); + uint8_t i = 0; + for (auto & entry : bindingTable) + { + switch (entry.type) + { + case EMBER_UNICAST_BINDING: + LOG_INF("[%d] UNICAST:", i++); + LOG_INF("\t\t+ Fabric: %d\n \ + \t+ LocalEndpoint %d \n \ + \t+ ClusterId %d \n \ + \t+ RemoteEndpointId %d \n \ + \t+ NodeId %d", + (int) entry.fabricIndex, (int) entry.local, (int) entry.clusterId.Value(), (int) entry.remote, + (int) entry.nodeId); + break; + case EMBER_MULTICAST_BINDING: + LOG_INF("[%d] GROUP:", i++); + LOG_INF("\t\t+ Fabric: %d\n \ + \t+ LocalEndpoint %d \n \ + \t+ RemoteEndpointId %d \n \ + \t+ GroupId %d", + (int) entry.fabricIndex, (int) entry.local, (int) entry.remote, (int) entry.groupId); + break; + case EMBER_UNUSED_BINDING: + LOG_INF("[%d] UNUSED", i++); + break; + case EMBER_MANY_TO_ONE_BINDING: + LOG_INF("[%d] MANY TO ONE", i++); + break; + default: + break; + } + } +} + +void BindingHandler::SwitchWorkerHandler(intptr_t aContext) +{ + VerifyOrReturn(aContext != 0, LOG_ERR("Invalid Swich data")); + + BindingData * data = reinterpret_cast(aContext); + LOG_INF("Notify Bounded Cluster | endpoint: %d cluster: %d", data->EndpointId, data->ClusterId); + BindingManager::GetInstance().NotifyBoundClusterChanged(data->EndpointId, data->ClusterId, static_cast(data)); + + Platform::Delete(data); +} diff --git a/examples/light-switch-app/nrfconnect/main/LightSwitch.cpp b/examples/light-switch-app/nrfconnect/main/LightSwitch.cpp new file mode 100644 index 00000000000000..275dcdceccf1f4 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/LightSwitch.cpp @@ -0,0 +1,84 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#include "LightSwitch.h" +#include "AppEvent.h" +#include "BindingHandler.h" + +#include +#include +#include + +using namespace chip; +using namespace chip::app; + +void LightSwitch::Init(chip::EndpointId aLightSwitchEndpoint) +{ + BindingHandler::Init(); + mLightSwitchEndpoint = aLightSwitchEndpoint; +} + +void LightSwitch::InitiateActionSwitch(Action mAction) +{ + BindingHandler::BindingData * data = Platform::New(); + if (data) + { + data->EndpointId = mLightSwitchEndpoint; + data->ClusterId = Clusters::OnOff::Id; + switch (mAction) + { + case Action::Toggle: + data->CommandId = Clusters::OnOff::Commands::Toggle::Id; + break; + case Action::On: + data->CommandId = Clusters::OnOff::Commands::On::Id; + break; + case Action::Off: + data->CommandId = Clusters::OnOff::Commands::Off::Id; + break; + default: + Platform::Delete(data); + return; + } + data->IsGroup = BindingHandler::IsGroupBound(); + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + Platform::Delete(data); + } +} + +void LightSwitch::DimmerChangeBrightness() +{ + static uint16_t sBrightness; + BindingHandler::BindingData * data = Platform::New(); + if (data) + { + data->EndpointId = mLightSwitchEndpoint; + data->CommandId = Clusters::LevelControl::Commands::MoveToLevel::Id; + data->ClusterId = Clusters::LevelControl::Id; + // add to brightness 3 to approximate 1% step of brightness after each call dimmer change. + sBrightness += kOnePercentBrightnessApproximation; + if (sBrightness > kMaximumBrightness) + { + sBrightness = 0; + } + data->Value = (uint8_t) sBrightness; + data->IsGroup = BindingHandler::IsGroupBound(); + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + Platform::Delete(data); + } +} diff --git a/examples/light-switch-app/nrfconnect/main/ShellCommands.cpp b/examples/light-switch-app/nrfconnect/main/ShellCommands.cpp new file mode 100644 index 00000000000000..4dc0a3db58258c --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/ShellCommands.cpp @@ -0,0 +1,225 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#include "ShellCommands.h" +#include "LightSwitch.h" +#include + +#include "BindingHandler.h" + +#ifdef CONFIG_CHIP_LIB_SHELL + +using namespace chip; +using namespace chip::app; + +namespace SwitchCommands { +using Shell::Engine; +using Shell::shell_command_t; +using Shell::streamer_get; +using Shell::streamer_printf; + +Engine sShellSwitchSubCommands; +Engine sShellSwitchOnOffSubCommands; +Engine sShellSwitchGroupsSubCommands; +Engine sShellSwitchGroupsOnOffSubCommands; + +static CHIP_ERROR SwitchHelpHandler(int argc, char ** argv) +{ + sShellSwitchSubCommands.ForEachCommand(Shell::PrintCommandHelp, nullptr); + return CHIP_NO_ERROR; +} + +static CHIP_ERROR SwitchCommandHandler(int argc, char ** argv) +{ + if (argc == 0) + { + return SwitchHelpHandler(argc, argv); + } + return sShellSwitchSubCommands.ExecCommand(argc, argv); +} + +static CHIP_ERROR TableCommandHelper(int argc, char ** argv) +{ + BindingHandler::PrintBindingTable(); + return CHIP_NO_ERROR; +} + +namespace Unicast { + +static CHIP_ERROR OnOffHelpHandler(int argc, char ** argv) +{ + sShellSwitchOnOffSubCommands.ForEachCommand(Shell::PrintCommandHelp, nullptr); + return CHIP_NO_ERROR; +} + +static CHIP_ERROR OnOffCommandHandler(int argc, char ** argv) +{ + if (argc == 0) + { + return OnOffHelpHandler(argc, argv); + } + return sShellSwitchOnOffSubCommands.ExecCommand(argc, argv); +} + +static CHIP_ERROR OnCommandHandler(int argc, char ** argv) +{ + BindingHandler::BindingData * data = Platform::New(); + data->EndpointId = LightSwitch::GetInstance().GetLightSwitchEndpointId(); + data->CommandId = Clusters::OnOff::Commands::On::Id; + data->ClusterId = Clusters::OnOff::Id; + + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + return CHIP_NO_ERROR; +} + +static CHIP_ERROR OffCommandHandler(int argc, char ** argv) +{ + BindingHandler::BindingData * data = Platform::New(); + data->EndpointId = LightSwitch::GetInstance().GetLightSwitchEndpointId(); + data->CommandId = Clusters::OnOff::Commands::Off::Id; + data->ClusterId = Clusters::OnOff::Id; + + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + return CHIP_NO_ERROR; +} + +static CHIP_ERROR ToggleCommandHandler(int argc, char ** argv) +{ + BindingHandler::BindingData * data = Platform::New(); + data->EndpointId = LightSwitch::GetInstance().GetLightSwitchEndpointId(); + data->CommandId = Clusters::OnOff::Commands::Toggle::Id; + data->ClusterId = Clusters::OnOff::Id; + + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + return CHIP_NO_ERROR; +} +} // namespace Unicast + +namespace Group { + +CHIP_ERROR SwitchHelpHandler(int argc, char ** argv) +{ + sShellSwitchGroupsSubCommands.ForEachCommand(Shell::PrintCommandHelp, nullptr); + return CHIP_NO_ERROR; +} + +CHIP_ERROR SwitchCommandHandler(int argc, char ** argv) +{ + if (argc == 0) + { + return SwitchHelpHandler(argc, argv); + } + + return sShellSwitchGroupsSubCommands.ExecCommand(argc, argv); +} + +static CHIP_ERROR OnOffHelpHandler(int argc, char ** argv) +{ + sShellSwitchGroupsOnOffSubCommands.ForEachCommand(Shell::PrintCommandHelp, nullptr); + return CHIP_NO_ERROR; +} + +static CHIP_ERROR OnOffCommandHandler(int argc, char ** argv) +{ + if (argc == 0) + { + return OnOffHelpHandler(argc, argv); + } + + return sShellSwitchGroupsOnOffSubCommands.ExecCommand(argc, argv); +} + +CHIP_ERROR OnCommandHandler(int argc, char ** argv) +{ + BindingHandler::BindingData * data = Platform::New(); + data->EndpointId = LightSwitch::GetInstance().GetLightSwitchEndpointId(); + data->CommandId = Clusters::OnOff::Commands::On::Id; + data->ClusterId = Clusters::OnOff::Id; + data->IsGroup = true; + + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR OffCommandHandler(int argc, char ** argv) +{ + BindingHandler::BindingData * data = Platform::New(); + data->EndpointId = LightSwitch::GetInstance().GetLightSwitchEndpointId(); + data->CommandId = Clusters::OnOff::Commands::Off::Id; + data->ClusterId = Clusters::OnOff::Id; + data->IsGroup = true; + + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + return CHIP_NO_ERROR; +} + +CHIP_ERROR ToggleCommandHandler(int argc, char ** argv) +{ + BindingHandler::BindingData * data = Platform::New(); + data->EndpointId = LightSwitch::GetInstance().GetLightSwitchEndpointId(); + data->CommandId = Clusters::OnOff::Commands::Toggle::Id; + data->ClusterId = Clusters::OnOff::Id; + data->IsGroup = true; + + DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerHandler, reinterpret_cast(data)); + return CHIP_NO_ERROR; +} + +} // namespace Group + +void RegisterSwitchCommands() +{ + static const shell_command_t sSwitchSubCommands[] = { + { &SwitchHelpHandler, "help", "Switch commands" }, + { &Unicast::OnOffCommandHandler, "onoff", "Usage: switch onoff [on|off|toggle]" }, + { &Group::SwitchCommandHandler, "groups", "Usage: switch groups onoff [on|off|toggle]" }, + { &TableCommandHelper, "table", "Print a binding table" } + }; + + static const shell_command_t sSwitchOnOffSubCommands[] = { + { &Unicast::OnOffHelpHandler, "help", "Usage : switch ononff [on|off|toggle]" }, + { &Unicast::OnCommandHandler, "on", "Sends on command to bound lighting app" }, + { &Unicast::OffCommandHandler, "off", "Sends off command to bound lighting app" }, + { &Unicast::ToggleCommandHandler, "toggle", "Sends toggle command to bound lighting app" } + }; + + static const shell_command_t sSwitchGroupsSubCommands[] = { + { &Group::SwitchHelpHandler, "help", "switch a group of bounded lightning apps" }, + { &Group::OnOffCommandHandler, "onoff", "Usage: switch groups onoff [on|off|toggle]" } + }; + + static const shell_command_t sSwichGroupsOnOffSubCommands[] = { + { &Group::OnOffHelpHandler, "help", "Usage: switch groups onoff [on|off|toggle]" }, + { &Group::OnCommandHandler, "on", "Sends on command to bound Group" }, + { &Group::OffCommandHandler, "off", "Sends off command to bound Group" }, + { &Group::ToggleCommandHandler, "toggle", "Sends toggle command to bound Group" } + }; + + static const shell_command_t sSwitchCommand = { &SwitchCommandHandler, "switch", + "Light-switch commands. Usage: switch [onoff|groups]" }; + + sShellSwitchGroupsOnOffSubCommands.RegisterCommands(sSwichGroupsOnOffSubCommands, ArraySize(sSwichGroupsOnOffSubCommands)); + sShellSwitchOnOffSubCommands.RegisterCommands(sSwitchOnOffSubCommands, ArraySize(sSwitchOnOffSubCommands)); + sShellSwitchGroupsSubCommands.RegisterCommands(sSwitchGroupsSubCommands, ArraySize(sSwitchGroupsSubCommands)); + sShellSwitchSubCommands.RegisterCommands(sSwitchSubCommands, ArraySize(sSwitchSubCommands)); + + Engine::Root().RegisterCommands(&sSwitchCommand, 1); +} + +} // namespace SwitchCommands +#endif diff --git a/examples/light-switch-app/nrfconnect/main/include/AppConfig.h b/examples/light-switch-app/nrfconnect/main/include/AppConfig.h new file mode 100644 index 00000000000000..4981ca6aadfc04 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/include/AppConfig.h @@ -0,0 +1,32 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#pragma once + +// ---- Lighting Example App Config ---- + +#define FUNCTION_BUTTON DK_BTN1 +#define FUNCTION_BUTTON_MASK DK_BTN1_MSK +#define SWITCH_BUTTON DK_BTN2 +#define SWITCH_BUTTON_MASK DK_BTN2_MSK +#define BLE_ADVERTISEMENT_START_BUTTON DK_BTN4 +#define BLE_ADVERTISEMENT_START_BUTTON_MASK DK_BTN4_MSK + +#define SYSTEM_STATE_LED DK_LED1 +#define DFU_BLE_LED DK_LED2 +#define IDENTIFY_LED DK_LED3 diff --git a/examples/light-switch-app/nrfconnect/main/include/AppEvent.h b/examples/light-switch-app/nrfconnect/main/include/AppEvent.h new file mode 100644 index 00000000000000..4a2bd347290703 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/include/AppEvent.h @@ -0,0 +1,67 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#pragma once +#include + +#include "LEDWidget.h" + +struct AppEvent; +typedef void (*EventHandler)(AppEvent *); + +struct AppEvent +{ + + constexpr static uint8_t kButtonPushEvent = 1; + constexpr static uint8_t kButtonReleaseEvent = 0; + + enum AppEventTypes : uint8_t + { + kEventType_StartBLEAdvertising, + kEventType_Button, + kEventType_Timer, + kEventType_UpdateLedState, + kEventType_IdentifyStart, + kEventType_IdentifyStop, +#ifdef CONFIG_MCUMGR_SMP_BT + kEventType_StartSMPAdvertising, +#endif + }; + + uint8_t Type; + + union + { + struct + { + uint8_t PinNo; + uint8_t Action; + } ButtonEvent; + struct + { + uint8_t TimerType; + void * Context; + } TimerEvent; + struct + { + LEDWidget * LedWidget; + } UpdateLedStateEvent; + }; + + EventHandler Handler; +}; diff --git a/examples/light-switch-app/nrfconnect/main/include/AppTask.h b/examples/light-switch-app/nrfconnect/main/include/AppTask.h new file mode 100644 index 00000000000000..2f72dd5758b6c2 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/include/AppTask.h @@ -0,0 +1,96 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#pragma once + +#include "AppEvent.h" +#include "LEDWidget.h" + +#include +#include + +#ifdef CONFIG_MCUMGR_SMP_BT +#include "DFUOverSMP.h" +#endif + +#include + +struct k_timer; +struct Identify; + +class AppTask +{ +public: + CHIP_ERROR StartApp(); + void PostEvent(AppEvent *); + void UpdateClusterState(); + static void IdentifyStartHandler(Identify *); + static void IdentifyStopHandler(Identify *); + +private: + enum class Timer : uint8_t + { + Function, + DimmerTrigger, + Dimmer + }; + enum class TimerFunction : uint8_t + { + NoneSelected = 0, + SoftwareUpdate, + FactoryReset + }; + TimerFunction mFunction = TimerFunction::NoneSelected; + + enum class Button : uint8_t + { + Function, + Dimmer, + }; + + friend AppTask & GetAppTask(); + static AppTask sAppTask; + + CHIP_ERROR Init(); + + void DispatchEvent(AppEvent *); + + static void ButtonPushHandler(AppEvent *); + static void ButtonReleaseHandler(AppEvent *); + static void TimerEventHandler(AppEvent *); + static void StartBLEAdvertisingHandler(AppEvent *); + static void UpdateLedStateEventHandler(AppEvent *); + + static void ChipEventHandler(const chip::DeviceLayer::ChipDeviceEvent *, intptr_t); + static void UpdateStatusLED(); + static void ButtonEventHandler(uint32_t, uint32_t); + static void LEDStateUpdateHandler(LEDWidget &); + + static void StartTimer(Timer, uint32_t); + static void CancelTimer(Timer); + static void TimerEventHandler(k_timer *); + +#ifdef CONFIG_MCUMGR_SMP_BT + static void RequestSMPAdvertisingStart(void); +#endif +}; + +inline AppTask & GetAppTask() +{ + return AppTask::sAppTask; +} diff --git a/examples/light-switch-app/nrfconnect/main/include/BindingHandler.h b/examples/light-switch-app/nrfconnect/main/include/BindingHandler.h new file mode 100644 index 00000000000000..02aed9d7aedc49 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/include/BindingHandler.h @@ -0,0 +1,50 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#pragma once + +#include +#include +#include +#include +#include +#include + +class BindingHandler +{ +public: + static void Init(); + static void SwitchWorkerHandler(intptr_t); + static void PrintBindingTable(); + static bool IsGroupBound(); + + struct BindingData + { + chip::EndpointId EndpointId; + chip::CommandId CommandId; + chip::ClusterId ClusterId; + uint8_t Value; + bool IsGroup{ false }; + }; + +private: + static void OnOffProcessCommand(chip::CommandId, const EmberBindingTableEntry &, chip::DeviceProxy *, void *); + static void LevelControlProcessCommand(chip::CommandId, const EmberBindingTableEntry &, chip::DeviceProxy *, void *); + static void LightSwitchChangedHandler(const EmberBindingTableEntry &, chip::DeviceProxy *, void *); + static void InitInternal(intptr_t); +}; diff --git a/examples/light-switch-app/nrfconnect/main/include/CHIPProjectConfig.h b/examples/light-switch-app/nrfconnect/main/include/CHIPProjectConfig.h new file mode 100644 index 00000000000000..b5a27150a26404 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/include/CHIPProjectConfig.h @@ -0,0 +1,33 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +/** + * @file + * Example project configuration file for CHIP. + * + * This is a place to put application or project-specific overrides + * to the default configuration values for general CHIP features. + * + */ + +#pragma once + +/* Use a default pairing code if one hasn't been provisioned in flash. */ +#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021 +#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00 +#define CHIP_DEVICE_CONFIG_SED_SLOW_POLLING_INTERVAL 2000_ms32 diff --git a/examples/light-switch-app/nrfconnect/main/include/LightSwitch.h b/examples/light-switch-app/nrfconnect/main/include/LightSwitch.h new file mode 100644 index 00000000000000..222bb5216f4fae --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/include/LightSwitch.h @@ -0,0 +1,50 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#pragma once + +#include +#include + +class LightSwitch +{ +public: + enum class Action : uint8_t + { + Toggle, /// Switch state on lighting-app device + On, /// Turn on light on lighting-app device + Off /// Turn off light on lighting-app device + }; + + void Init(chip::EndpointId aLightSwitchEndpoint); + void InitiateActionSwitch(Action); + void DimmerChangeBrightness(); + chip::EndpointId GetLightSwitchEndpointId() { return mLightSwitchEndpoint; } + + static LightSwitch & GetInstance() + { + static LightSwitch sLightSwitch; + return sLightSwitch; + } + +private: + constexpr static auto kOnePercentBrightnessApproximation = 3; + constexpr static auto kMaximumBrightness = 254; + + chip::EndpointId mLightSwitchEndpoint; +}; diff --git a/examples/light-switch-app/nrfconnect/main/include/ShellCommands.h b/examples/light-switch-app/nrfconnect/main/include/ShellCommands.h new file mode 100644 index 00000000000000..915d90437bdcb0 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/include/ShellCommands.h @@ -0,0 +1,31 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ +#pragma once + +#ifdef CONFIG_CHIP_LIB_SHELL +#include +#include +#include + +namespace SwitchCommands { + +void RegisterSwitchCommands(); + +} // namespace SwitchCommands + +#endif diff --git a/examples/light-switch-app/nrfconnect/main/main.cpp b/examples/light-switch-app/nrfconnect/main/main.cpp new file mode 100644 index 00000000000000..68db7f7f258fa8 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/main/main.cpp @@ -0,0 +1,33 @@ +/* + * + * Copyright (c) 2022 Project CHIP Authors + * All rights reserved. + * + * 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. + */ + +#include "AppTask.h" + +#include + +LOG_MODULE_REGISTER(app); + +using namespace ::chip; + +int main() +{ + CHIP_ERROR err = GetAppTask().StartApp(); + + LOG_ERR("Exited with code %" CHIP_ERROR_FORMAT, err.Format()); + return err == CHIP_NO_ERROR ? EXIT_SUCCESS : EXIT_FAILURE; +} diff --git a/examples/light-switch-app/nrfconnect/overlay-low_power.conf b/examples/light-switch-app/nrfconnect/overlay-low_power.conf new file mode 100644 index 00000000000000..c962425f6ef937 --- /dev/null +++ b/examples/light-switch-app/nrfconnect/overlay-low_power.conf @@ -0,0 +1,30 @@ +# +# 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. +# + +# Enable MTD Sleepy End Device +CONFIG_CHIP_ENABLE_SLEEPY_END_DEVICE_SUPPORT=y + +# Disable UART console +CONFIG_SHELL=n +CONFIG_LOG=n +CONFIG_UART_CONSOLE=n +CONFIG_SERIAL=n + +# Suspend devices when the CPU goes to sleep +CONFIG_PM_DEVICE=y + +# Disable auxiliary state LEDs +CONFIG_STATE_LEDS=n diff --git a/examples/light-switch-app/nrfconnect/prj.conf b/examples/light-switch-app/nrfconnect/prj.conf new file mode 100644 index 00000000000000..e40660a99c276f --- /dev/null +++ b/examples/light-switch-app/nrfconnect/prj.conf @@ -0,0 +1,39 @@ +# +# 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 sample uses sample-defaults.conf to set options common for all +# samples. This file should contain only options specific for this sample +# or overrides of default values. + +# Add support for LEDs and buttons on Nordic development kits +CONFIG_DK_LIBRARY=y + +# OpenThread configs +CONFIG_OPENTHREAD_NORDIC_LIBRARY_MTD=y +CONFIG_OPENTHREAD_MTD=y +CONFIG_OPENTHREAD_FTD=n + +# Bluetooth overrides +CONFIG_BT_DEVICE_NAME="MatterSwitch" + +# Additional configs for debbugging experience. +CONFIG_THREAD_NAME=y +CONFIG_MPU_STACK_GUARD=y + +# CHIP configuration +CONFIG_CHIP_PROJECT_CONFIG="main/include/CHIPProjectConfig.h" +# 32772 == 0x8004 (example light-switch-app) +CONFIG_CHIP_DEVICE_PRODUCT_ID=32772 diff --git a/examples/light-switch-app/nrfconnect/third_party/connectedhomeip b/examples/light-switch-app/nrfconnect/third_party/connectedhomeip new file mode 120000 index 00000000000000..c866b86874994d --- /dev/null +++ b/examples/light-switch-app/nrfconnect/third_party/connectedhomeip @@ -0,0 +1 @@ +../../../.. \ No newline at end of file From 467c696fd5b7b8b6b531024d0148cdbe65bd14cd Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 28 Mar 2022 04:38:26 -0400 Subject: [PATCH 22/23] Stop using a fixed salt when opening commissioning windows. (#16645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Stop using a fixed salt when opening commissioning windows. Fixes https://github.com/project-chip/connectedhomeip/issues/10586 * Address review comment. * Apply suggestions from code review to fix bug in salt size checking. Co-authored-by: Damian Królik <66667989+Damian-Nordic@users.noreply.github.com> Co-authored-by: Damian Królik <66667989+Damian-Nordic@users.noreply.github.com> --- .../OpenCommissioningWindowCommand.cpp | 2 +- src/controller/CommissioningWindowOpener.cpp | 44 ++++++++++++------- src/controller/CommissioningWindowOpener.h | 18 +++++--- .../java/CHIPDeviceController-JNI.cpp | 6 +-- .../ChipDeviceController-ScriptBinding.cpp | 3 +- .../Framework/CHIP/CHIPDeviceController.mm | 3 +- 6 files changed, 46 insertions(+), 30 deletions(-) diff --git a/examples/chip-tool/commands/pairing/OpenCommissioningWindowCommand.cpp b/examples/chip-tool/commands/pairing/OpenCommissioningWindowCommand.cpp index bd39eb855b715b..6624443b137f9c 100644 --- a/examples/chip-tool/commands/pairing/OpenCommissioningWindowCommand.cpp +++ b/examples/chip-tool/commands/pairing/OpenCommissioningWindowCommand.cpp @@ -35,7 +35,7 @@ CHIP_ERROR OpenCommissioningWindowCommand::RunCommand() { SetupPayload ignored; return mWindowOpener->OpenCommissioningWindow(mNodeId, System::Clock::Seconds16(mTimeout), mIteration, mDiscriminator, - NullOptional, &mOnOpenCommissioningWindowCallback, ignored, + NullOptional, NullOptional, &mOnOpenCommissioningWindowCallback, ignored, /* readVIDPIDAttributes */ true); } diff --git a/src/controller/CommissioningWindowOpener.cpp b/src/controller/CommissioningWindowOpener.cpp index 977c44ffc74245..9ff1c486ee6a8f 100644 --- a/src/controller/CommissioningWindowOpener.cpp +++ b/src/controller/CommissioningWindowOpener.cpp @@ -55,11 +55,19 @@ CHIP_ERROR CommissioningWindowOpener::OpenBasicCommissioningWindow(NodeId device CHIP_ERROR CommissioningWindowOpener::OpenCommissioningWindow(NodeId deviceId, Seconds16 timeout, uint32_t iteration, uint16_t discriminator, Optional setupPIN, + Optional salt, Callback::Callback * callback, SetupPayload & payload, bool readVIDPIDAttributes) { VerifyOrReturnError(mNextStep == Step::kAcceptCommissioningStart, CHIP_ERROR_INCORRECT_STATE); + VerifyOrReturnError(kSpake2p_Min_PBKDF_Iterations <= iteration && iteration <= kSpake2p_Max_PBKDF_Iterations, + CHIP_ERROR_INVALID_ARGUMENT); + VerifyOrReturnError( + !salt.HasValue() || + (salt.Value().size() >= kSpake2p_Min_PBKDF_Salt_Length && salt.Value().size() <= kSpake2p_Max_PBKDF_Salt_Length), + CHIP_ERROR_INVALID_ARGUMENT); + mSetupPayload = SetupPayload(); if (setupPIN.HasValue()) @@ -72,6 +80,17 @@ CHIP_ERROR CommissioningWindowOpener::OpenCommissioningWindow(NodeId deviceId, S mCommissioningWindowOption = CommissioningWindowOption::kTokenWithRandomPIN; } + if (salt.HasValue()) + { + memcpy(mPBKDFSaltBuffer, salt.Value().data(), salt.Value().size()); + mPBKDFSalt = ByteSpan(mPBKDFSaltBuffer, salt.Value().size()); + } + else + { + ReturnErrorOnFailure(DRBG_get_bytes(mPBKDFSaltBuffer, sizeof(mPBKDFSaltBuffer))); + mPBKDFSalt = ByteSpan(mPBKDFSaltBuffer); + } + mSetupPayload.version = 0; mSetupPayload.discriminator = discriminator; mSetupPayload.rendezvousInformation = RendezvousInformationFlags(RendezvousInformationFlag::kOnNetwork); @@ -80,11 +99,11 @@ CHIP_ERROR CommissioningWindowOpener::OpenCommissioningWindow(NodeId deviceId, S mBasicCommissioningWindowCallback = nullptr; mNodeId = deviceId; mCommissioningWindowTimeout = timeout; - mCommissioningWindowIteration = iteration; + mPBKDFIterations = iteration; bool randomSetupPIN = !setupPIN.HasValue(); - ReturnErrorOnFailure(PASESession::GeneratePASEVerifier(mVerifier, mCommissioningWindowIteration, GetSPAKE2Salt(), - randomSetupPIN, mSetupPayload.setUpPINCode)); + ReturnErrorOnFailure( + PASESession::GeneratePASEVerifier(mVerifier, mPBKDFIterations, mPBKDFSalt, randomSetupPIN, mSetupPayload.setUpPINCode)); payload = mSetupPayload; @@ -119,8 +138,8 @@ CHIP_ERROR CommissioningWindowOpener::OpenCommissioningWindowInternal(Operationa request.commissioningTimeout = mCommissioningWindowTimeout.count(); request.PAKEVerifier = serializedVerifierSpan; request.discriminator = mSetupPayload.discriminator; - request.iterations = mCommissioningWindowIteration; - request.salt = GetSPAKE2Salt(); + request.iterations = mPBKDFIterations; + request.salt = mPBKDFSalt; ReturnErrorOnFailure(cluster.InvokeCommand(request, this, OnOpenCommissioningWindowSuccess, OnOpenCommissioningWindowFailure, MakeOptional(kTimedInvokeTimeoutMs))); @@ -277,15 +296,6 @@ void CommissioningWindowOpener::OnDeviceConnectionFailureCallback(void * context OnOpenCommissioningWindowFailure(context, error); } -namespace { -constexpr char kSpake2pKeyExchangeSalt[] = "SPAKE2P Key Salt"; -} // anonymous namespace - -ByteSpan CommissioningWindowOpener::GetSPAKE2Salt() -{ - return ByteSpan(Uint8::from_const_char(kSpake2pKeyExchangeSalt), sizeof(kSpake2pKeyExchangeSalt) - 1); -} - AutoCommissioningWindowOpener::AutoCommissioningWindowOpener(DeviceController * controller) : CommissioningWindowOpener(controller), mOnOpenCommissioningWindowCallback(OnOpenCommissioningWindowResponse, this), mOnOpenBasicCommissioningWindowCallback(OnOpenBasicCommissioningWindowResponse, this) @@ -313,8 +323,8 @@ CHIP_ERROR AutoCommissioningWindowOpener::OpenBasicCommissioningWindow(DeviceCon CHIP_ERROR AutoCommissioningWindowOpener::OpenCommissioningWindow(DeviceController * controller, NodeId deviceId, Seconds16 timeout, uint32_t iteration, uint16_t discriminator, - Optional setupPIN, SetupPayload & payload, - bool readVIDPIDAttributes) + Optional setupPIN, Optional salt, + SetupPayload & payload, bool readVIDPIDAttributes) { // Not using Platform::New because we want to keep our constructor private. auto * opener = new AutoCommissioningWindowOpener(controller); @@ -324,7 +334,7 @@ CHIP_ERROR AutoCommissioningWindowOpener::OpenCommissioningWindow(DeviceControll } CHIP_ERROR err = opener->CommissioningWindowOpener::OpenCommissioningWindow( - deviceId, timeout, iteration, discriminator, setupPIN, &opener->mOnOpenCommissioningWindowCallback, payload, + deviceId, timeout, iteration, discriminator, setupPIN, salt, &opener->mOnOpenCommissioningWindowCallback, payload, readVIDPIDAttributes); if (err != CHIP_NO_ERROR) { diff --git a/src/controller/CommissioningWindowOpener.h b/src/controller/CommissioningWindowOpener.h index d3bc789d35c06f..30be3d90051557 100644 --- a/src/controller/CommissioningWindowOpener.h +++ b/src/controller/CommissioningWindowOpener.h @@ -84,6 +84,11 @@ class CommissioningWindowOpener * PAKE passcode verifier to be used for this commissioning. * @param[in] discriminator The long discriminator for the DNS-SD advertisement. * @param[in] setupPIN The setup PIN to use, or NullOptional to use a randomly-generated one. + * @param[in] salt The salt to use, or NullOptional to use a + * randomly-generated one. If provided, must be at + * least kSpake2p_Min_PBKDF_Salt_Length bytes and + * at most kSpake2p_Max_PBKDF_Salt_Length bytes in + * length. * @param[in] callback The function to be called on success or failure of opening of commissioning window. * @param[out] payload The setup payload, not including the VID/PID bits, * even if those were asked for, that is generated @@ -98,7 +103,7 @@ class CommissioningWindowOpener * callback. */ CHIP_ERROR OpenCommissioningWindow(NodeId deviceId, System::Clock::Seconds16 timeout, uint32_t iteration, - uint16_t discriminator, Optional setupPIN, + uint16_t discriminator, Optional setupPIN, Optional salt, Callback::Callback * callback, SetupPayload & payload, bool readVIDPIDAttributes = false); @@ -124,10 +129,6 @@ class CommissioningWindowOpener static void OnDeviceConnectedCallback(void * context, OperationalDeviceProxy * device); static void OnDeviceConnectionFailureCallback(void * context, PeerId peerId, CHIP_ERROR error); - // TODO: Salt should be provided as an input or it should be randomly generated when - // the PIN is randomly generated. - static ByteSpan GetSPAKE2Salt(); - DeviceController * const mController = nullptr; Step mNextStep = Step::kAcceptCommissioningStart; @@ -136,9 +137,12 @@ class CommissioningWindowOpener SetupPayload mSetupPayload; NodeId mNodeId = kUndefinedNodeId; System::Clock::Seconds16 mCommissioningWindowTimeout = System::Clock::kZero; - uint32_t mCommissioningWindowIteration = 0; CommissioningWindowOption mCommissioningWindowOption = CommissioningWindowOption::kOriginalSetupCode; Spake2pVerifier mVerifier; // Used for non-basic commissioning. + // Parameters needed for non-basic commissioning. + uint32_t mPBKDFIterations = 0; + uint8_t mPBKDFSaltBuffer[kSpake2p_Max_PBKDF_Salt_Length]; + ByteSpan mPBKDFSalt; Callback::Callback mDeviceConnected; Callback::Callback mDeviceConnectionFailure; @@ -160,7 +164,7 @@ class AutoCommissioningWindowOpener : private CommissioningWindowOpener // callback. static CHIP_ERROR OpenCommissioningWindow(DeviceController * controller, NodeId deviceId, System::Clock::Seconds16 timeout, uint32_t iteration, uint16_t discriminator, Optional setupPIN, - SetupPayload & payload, bool readVIDPIDAttributes = false); + Optional salt, SetupPayload & payload, bool readVIDPIDAttributes = false); private: AutoCommissioningWindowOpener(DeviceController * controller); diff --git a/src/controller/java/CHIPDeviceController-JNI.cpp b/src/controller/java/CHIPDeviceController-JNI.cpp index b4338f067e5b66..7c34725b446a22 100644 --- a/src/controller/java/CHIPDeviceController-JNI.cpp +++ b/src/controller/java/CHIPDeviceController-JNI.cpp @@ -624,9 +624,9 @@ JNI_METHOD(jboolean, openPairingWindowWithPIN) AndroidDeviceControllerWrapper * wrapper = AndroidDeviceControllerWrapper::FromJNIHandle(handle); chip::SetupPayload setupPayload; - err = AutoCommissioningWindowOpener::OpenCommissioningWindow(wrapper->Controller(), chipDevice->GetDeviceId(), - System::Clock::Seconds16(duration), iteration, discriminator, - MakeOptional(static_cast(setupPinCode)), setupPayload); + err = AutoCommissioningWindowOpener::OpenCommissioningWindow( + wrapper->Controller(), chipDevice->GetDeviceId(), System::Clock::Seconds16(duration), iteration, discriminator, + MakeOptional(static_cast(setupPinCode)), NullOptional, setupPayload); if (err != CHIP_NO_ERROR) { diff --git a/src/controller/python/ChipDeviceController-ScriptBinding.cpp b/src/controller/python/ChipDeviceController-ScriptBinding.cpp index 482a062e924f34..919809b4479b21 100644 --- a/src/controller/python/ChipDeviceController-ScriptBinding.cpp +++ b/src/controller/python/ChipDeviceController-ScriptBinding.cpp @@ -426,7 +426,8 @@ ChipError::StorageType pychip_DeviceController_OpenCommissioningWindow(chip::Con { SetupPayload payload; return Controller::AutoCommissioningWindowOpener::OpenCommissioningWindow( - devCtrl, nodeid, System::Clock::Seconds16(timeout), iteration, discriminator, NullOptional, payload) + devCtrl, nodeid, System::Clock::Seconds16(timeout), iteration, discriminator, NullOptional, NullOptional, + payload) .AsInteger(); } diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController.mm b/src/darwin/Framework/CHIP/CHIPDeviceController.mm index cd15f0bf622c11..738d5b79839e55 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController.mm +++ b/src/darwin/Framework/CHIP/CHIPDeviceController.mm @@ -527,7 +527,8 @@ - (NSString *)openPairingWindowWithPIN:(uint64_t)deviceID chip::SetupPayload setupPayload; err = chip::Controller::AutoCommissioningWindowOpener::OpenCommissioningWindow(self.cppCommissioner, deviceID, chip::System::Clock::Seconds16(static_cast(duration)), chip::Crypto::kSpake2p_Min_PBKDF_Iterations, - static_cast(discriminator), chip::MakeOptional(static_cast(setupPIN)), setupPayload); + static_cast(discriminator), chip::MakeOptional(static_cast(setupPIN)), chip::NullOptional, + setupPayload); if (err != CHIP_NO_ERROR) { CHIP_LOG_ERROR("Error(%s): Open Pairing Window failed", chip::ErrorStr(err)); From 125e73c1148979432b19ff692e5d0f83c6778586 Mon Sep 17 00:00:00 2001 From: Song GUO Date: Mon, 28 Mar 2022 17:59:35 +0800 Subject: [PATCH 23/23] [IM] Record LastReportTick and DirtyTick in ReadHandler (#16060) * [IM] Record LastRecordTimestamp and DirtyTimestamp in ReadHandler * Update naming and comments * Add more tests * Fix * Update tests * Address comments * Resolve compile error * Drive IO for a bit longer time * Address comments * Lift timelimit for darwin * Tick -> Generation --- .github/workflows/darwin.yaml | 6 +- src/app/AttributePathExpandIterator.cpp | 21 ++ src/app/AttributePathExpandIterator.h | 9 + src/app/AttributePathParams.h | 1 + src/app/ReadHandler.cpp | 47 ++- src/app/ReadHandler.h | 75 ++++- src/app/reporting/Engine.cpp | 50 ++- src/app/reporting/Engine.h | 33 +- src/app/tests/TestReadInteraction.cpp | 15 +- src/controller/tests/TestReadChunking.cpp | 382 ++++++++++++++++++++++ 10 files changed, 603 insertions(+), 36 deletions(-) diff --git a/.github/workflows/darwin.yaml b/.github/workflows/darwin.yaml index f47b1587e46b20..38de448ba5146f 100644 --- a/.github/workflows/darwin.yaml +++ b/.github/workflows/darwin.yaml @@ -91,11 +91,11 @@ jobs: run: xcodebuild clean working-directory: src/darwin/Framework - name: Build example chip-tool-darwin - timeout-minutes: 10 + timeout-minutes: 15 run: | scripts/examples/gn_build_example.sh examples/chip-tool-darwin out/debug chip_config_network_layer_ble=false is_asan=true - name: Build example All Clusters Server - timeout-minutes: 10 + timeout-minutes: 15 run: | scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug chip_config_network_layer_ble=false - name: Build example OTA Provider @@ -110,7 +110,7 @@ jobs: run: defaults delete com.apple.dt.xctest.tool continue-on-error: true - name: Run Framework Tests - timeout-minutes: 10 + timeout-minutes: 15 run: | mkdir -p /tmp/darwin/framework-tests ../../../out/debug/chip-all-clusters-app > >(tee /tmp/darwin/framework-tests/all-cluster-app.log) 2> >(tee /tmp/darwin/framework-tests/all-cluster-app-err.log >&2) & diff --git a/src/app/AttributePathExpandIterator.cpp b/src/app/AttributePathExpandIterator.cpp index 3409808ff7c8b5..013cd2fac62652 100644 --- a/src/app/AttributePathExpandIterator.cpp +++ b/src/app/AttributePathExpandIterator.cpp @@ -140,6 +140,27 @@ void AttributePathExpandIterator::PrepareAttributeIndexRange(const AttributePath } } +void AttributePathExpandIterator::ResetCurrentCluster() +{ + // If this is a null iterator, or the attribute id of current cluster info is not a wildcard attribute id, then this function + // will do nothing, since we won't be expanding the wildcard attribute ids under a cluster. + VerifyOrReturn(mpAttributePath != nullptr && mpAttributePath->mValue.HasWildcardAttributeId()); + + // Otherwise, we will reset the index for iterating the attributes, so we report the attributes for this cluster again. This + // will ensure that the client sees a coherent view of the cluster from the reports generated by a single (wildcard) attribute + // path in the request. + // + // Note that when Next() returns, we must be in one of the following states: + // - This is not a wildcard path + // - We just expanded some attribute id field + // - We have exhausted all paths + // Only the second case will happen here since the above check will fail for 1 and 3, so the following Next() call must result + // in a valid path, which is the first attribute id we will emit for the current cluster. + mAttributeIndex = UINT16_MAX; + mGlobalAttributeIndex = UINT8_MAX; + Next(); +} + bool AttributePathExpandIterator::Next() { for (; mpAttributePath != nullptr; (mpAttributePath = mpAttributePath->mpNext, mEndpointIndex = UINT16_MAX)) diff --git a/src/app/AttributePathExpandIterator.h b/src/app/AttributePathExpandIterator.h index 693c20cb024ba9..9b5e170c72552e 100644 --- a/src/app/AttributePathExpandIterator.h +++ b/src/app/AttributePathExpandIterator.h @@ -88,6 +88,15 @@ class AttributePathExpandIterator return Valid(); } + /** + * Reset the iterator to the beginning of current cluster if we are in the middle of expanding a wildcard attribute id for some + * cluster. + * + * When attributes are changed in the middle of expanding a wildcard attribute, we need to reset the iterator, to provide the + * client with a consistent state of the cluster. + */ + void ResetCurrentCluster(); + /** * Returns if the iterator is valid (not exhausted). An iterator is exhausted if and only if: * - Next() is called after iterating last path. diff --git a/src/app/AttributePathParams.h b/src/app/AttributePathParams.h index 6dd9b135ca9f5d..515c2f2b322cde 100644 --- a/src/app/AttributePathParams.h +++ b/src/app/AttributePathParams.h @@ -86,5 +86,6 @@ struct AttributePathParams EndpointId mEndpointId = kInvalidEndpointId; // uint16 ListIndex mListIndex = kInvalidListIndex; // uint16 }; + } // namespace app } // namespace chip diff --git a/src/app/ReadHandler.cpp b/src/app/ReadHandler.cpp index 7e15f22b708c9d..b5e7ba7d033872 100644 --- a/src/app/ReadHandler.cpp +++ b/src/app/ReadHandler.cpp @@ -132,8 +132,8 @@ CHIP_ERROR ReadHandler::OnInitialRequest(System::PacketBufferHandle && aPayload) } else { - // Mark read handler dirty for read/subscribe priming stage - mDirty = true; + // Force us to be in a dirty state so we get processed by the reporting + mForceDirty = true; } return err; @@ -226,6 +226,10 @@ CHIP_ERROR ReadHandler::SendReportData(System::PacketBufferHandle && aPayload, b } VerifyOrReturnLogError(mpExchangeCtx != nullptr, CHIP_ERROR_INCORRECT_STATE); + if (!IsReporting()) + { + mCurrentReportsBeginGeneration = InteractionModelEngine::GetInstance()->GetReportingEngine().GetDirtySetGeneration(); + } mIsChunkedReport = aMoreChunks; bool noResponseExpected = IsType(InteractionType::Read) && !mIsChunkedReport; if (!noResponseExpected) @@ -252,6 +256,7 @@ CHIP_ERROR ReadHandler::SendReportData(System::PacketBufferHandle && aPayload, b } if (!aMoreChunks) { + mPreviousReportsBeginGeneration = mCurrentReportsBeginGeneration; ClearDirty(); InteractionModelEngine::GetInstance()->ReleaseDataVersionFilterList(mpDataVersionFilterList); } @@ -710,7 +715,7 @@ void ReadHandler::OnUnblockHoldReportCallback(System::Layer * apSystemLayer, voi ReadHandler * readHandler = static_cast(apAppState); ChipLogDetail(DataManagement, "Unblock report hold after min %d seconds", readHandler->mMinIntervalFloorSeconds); readHandler->mHoldReport = false; - if (readHandler->mDirty) + if (readHandler->IsDirty()) { InteractionModelEngine::GetInstance()->GetReportingEngine().ScheduleRun(); } @@ -744,5 +749,41 @@ CHIP_ERROR ReadHandler::RefreshSubscribeSyncTimer() return CHIP_NO_ERROR; } + +void ReadHandler::ResetPathIterator() +{ + mAttributePathExpandIterator = AttributePathExpandIterator(mpAttributePathList); + mAttributeEncoderState = AttributeValueEncoder::AttributeEncodeState(); +} + +void ReadHandler::SetDirty(const AttributePathParams & aAttributeChanged) +{ + ConcreteAttributePath path; + + mDirtyGeneration = InteractionModelEngine::GetInstance()->GetReportingEngine().GetDirtySetGeneration(); + + // We won't reset the path iterator for every SetDirty call to reduce the number of full data reports. + // The iterator will be reset after finishing each report session. + // + // Here we just reset the iterator to the beginning of the current cluster, if the dirty path affects it. + // This will ensure the reports are consistent within a single cluster generated from a single path in the request. + + // TODO (#16699): Currently we can only gurentee the reports generated from a single path in the request are consistent. The + // data might be inconsistent if the user send a request with two paths from the same cluster. We need to clearify the behavior + // or make it consistent. + if (mAttributePathExpandIterator.Get(path) && + (aAttributeChanged.HasWildcardEndpointId() || aAttributeChanged.mEndpointId == path.mEndpointId) && + (aAttributeChanged.HasWildcardClusterId() || aAttributeChanged.mClusterId == path.mClusterId)) + { + ChipLogDetail(DataManagement, + "The dirty path intersects the cluster we are currently reporting; reset the iterator to the beginning of " + "that cluster"); + // If we're currently in the middle of generating reports for a given cluster and that in turn is marked dirty, let's reset + // our iterator to point back to the beginning of that cluster. This ensures that the receiver will get a coherent view of + // the state of the cluster as present on the server + mAttributePathExpandIterator.ResetCurrentCluster(); + mAttributeEncoderState = AttributeValueEncoder::AttributeEncodeState(); + } +} } // namespace app } // namespace chip diff --git a/src/app/ReadHandler.h b/src/app/ReadHandler.h index 8259c455a5a9f5..78062a16f84777 100644 --- a/src/app/ReadHandler.h +++ b/src/app/ReadHandler.h @@ -131,10 +131,13 @@ class ReadHandler : public Messaging::ExchangeDelegate */ bool IsFromSubscriber(Messaging::ExchangeContext & apExchangeContext) const; - bool IsReportable() const { return mState == HandlerState::GeneratingReports && !mHoldReport && (mDirty || !mHoldSync); } + bool IsReportable() const { return mState == HandlerState::GeneratingReports && !mHoldReport && (IsDirty() || !mHoldSync); } bool IsGeneratingReports() const { return mState == HandlerState::GeneratingReports; } bool IsAwaitingReportResponse() const { return mState == HandlerState::AwaitingReportResponse; } + // Resets the path iterator to the beginning of the whole report for generating a series of new reports. + void ResetPathIterator(); + CHIP_ERROR ProcessDataVersionFilterList(DataVersionFilterIBs::Parser & aDataVersionFilterListParser); ObjectList * GetAttributePathList() { return mpAttributePathList; } ObjectList * GetEventPathList() { return mpEventPathList; } @@ -149,22 +152,23 @@ class ReadHandler : public Messaging::ExchangeDelegate bool IsType(InteractionType type) const { return (mInteractionType == type); } bool IsChunkedReport() const { return mIsChunkedReport; } + // Is reporting indicates whether we are in the middle of a series chunks. As we will set mIsChunkedReport on the first chunk + // and clear that flag on the last chunk, we can use mIsChunkedReport to indicate this state. + bool IsReporting() const { return mIsChunkedReport; } bool IsPriming() const { return mIsPrimingReports; } bool IsActiveSubscription() const { return mActiveSubscription; } bool IsFabricFiltered() const { return mIsFabricFiltered; } CHIP_ERROR OnSubscribeRequest(Messaging::ExchangeContext * apExchangeContext, System::PacketBufferHandle && aPayload); void GetSubscriptionId(uint64_t & aSubscriptionId) const { aSubscriptionId = mSubscriptionId; } AttributePathExpandIterator * GetAttributePathExpandIterator() { return &mAttributePathExpandIterator; } - void SetDirty() - { - mDirty = true; - // If the contents of the global dirty set have changed, we need to reset the iterator since the paths - // we've sent up till now are no longer valid and need to be invalidated. - mAttributePathExpandIterator = AttributePathExpandIterator(mpAttributePathList); - mAttributeEncoderState = AttributeValueEncoder::AttributeEncodeState(); - } - void ClearDirty() { mDirty = false; } - bool IsDirty() const { return mDirty; } + + /** + * Notify the read handler that a set of attribute paths has been marked dirty. + */ + void SetDirty(const AttributePathParams & aAttributeChanged); + bool IsDirty() const { return (mDirtyGeneration > mPreviousReportsBeginGeneration) || mForceDirty; } + void ClearDirty() { mForceDirty = false; } + NodeId GetInitiatorNodeId() const { return mInitiatorNodeId; } FabricIndex GetAccessingFabricIndex() const { return mSubjectDescriptor.fabricIndex; } @@ -173,7 +177,7 @@ class ReadHandler : public Messaging::ExchangeDelegate void UnblockUrgentEventDelivery() { mHoldReport = false; - mDirty = true; + mForceDirty = true; } const AttributeValueEncoder::AttributeEncodeState & GetAttributeEncodeState() const { return mAttributeEncoderState; } @@ -271,7 +275,6 @@ class ReadHandler : public Messaging::ExchangeDelegate // report immediately due to an urgent event being queued, // UnblockUrgentEventDelivery can be used to force mHoldReport to false. bool mHoldReport = false; - bool mDirty = false; bool mActiveSubscription = false; // The flag indicating we are in the middle of a series of chunked report messages, this flag will be cleared during sending // last chunked message. @@ -283,7 +286,51 @@ class ReadHandler : public Messaging::ExchangeDelegate // are waiting for the max reporting interval to elaps. When mHoldSync // becomes false, we are allowed to send an empty report to keep the // subscription alive on the client. - bool mHoldSync = false; + bool mHoldSync = false; + + // The current generation of the reporting engine dirty set the last time we were notified that a path we're interested in was + // marked dirty. + // + // This allows us to detemine whether any paths we care about might have + // been marked dirty after we had already sent reports for them, which would + // mean we should report those paths again, by comparing this generation to the + // current generation when we started sending the last set reports that we completed. + // + // This allows us to reset the iterator to the beginning of the current + // cluster instead of the beginning of the whole report in SetDirty, without + // permanently missing dirty any paths. + uint64_t mDirtyGeneration = 0; + // For subscriptions, we record the dirty set generation when we started to generate the last report. + // The mCurrentReportsBeginGeneration records the generation at the start of the current report. This only/ + // has a meaningful value while IsReporting() is true. + // + // mPreviousReportsBeginGeneration will be set to mCurrentReportsBeginGeneration after we send the last + // chunk of the current report. Anything that was dirty with a generation earlier than + // mPreviousReportsBeginGeneration has had its value sent to the client. + bool mForceDirty = false; + // For subscriptions, we record the timestamp when we started to generate the last report. + // The mCurrentReportsBeginGeneration records the timestamp for the current report, which won;t be used for checking if this + // ReadHandler is dirty. + // mPreviousReportsBeginGeneration will be set to mCurrentReportsBeginGeneration after we sent the last chunk of the current + // report. + uint64_t mPreviousReportsBeginGeneration = 0; + uint64_t mCurrentReportsBeginGeneration = 0; + /* + * (mDirtyGeneration = b > a, this is a dirty read handler) + * +- Start Report -> mCurrentReportsBeginGeneration = c + * | +- SetDirty (Attribute Y) -> mDirtyGeneration = d + * | | +- Last Chunk -> mPreviousReportsBeginGeneration = mCurrentReportsBeginGeneration = c + * | | | +- (mDirtyGeneration = d) > (mPreviousReportsBeginGeneration = c), this is a dirty read handler + * | | | | Attribute X has a dirty generation less than c, Attribute Y has a dirty generation larger than c + * | | | | So Y will be included in the report but X will not be inclued in this report. + * -a--b--c------d-----e---f---> Generation + * | | + * | +- SetDirty (Attribute X) (mDirtyGeneration = b) + * +- mPreviousReportsBeginGeneration + * For read handler, if mDirtyGeneration > mPreviousReportsBeginGeneration, then we regard it as a dirty read handler, and it + * should generate report on timeout reached. + */ + uint32_t mLastWrittenEventsBytes = 0; SubjectDescriptor mSubjectDescriptor; // The detailed encoding state for a single attribute, used by list chunking feature. diff --git a/src/app/reporting/Engine.cpp b/src/app/reporting/Engine.cpp index 6dff530476d39e..3b681230c47930 100644 --- a/src/app/reporting/Engine.cpp +++ b/src/app/reporting/Engine.cpp @@ -111,6 +111,20 @@ CHIP_ERROR Engine::BuildSingleReportDataAttributeReportIBs(ReportDataMessage::Bu // vs write paths. ConcreteAttributePath readPath; + ChipLogDetail(DataManagement, + "Building Reports for ReadHandler with LastReportGeneration = %" PRIu64 " DirtyGeneration = %" PRIu64, + apReadHandler->mPreviousReportsBeginGeneration, apReadHandler->mDirtyGeneration); + + // This ReadHandler is not generating reports, so we reset the iterator for a clean start. + if (!apReadHandler->IsReporting()) + { + apReadHandler->ResetPathIterator(); + } + +#if CONFIG_IM_BUILD_FOR_UNIT_TEST + uint32_t attributesRead = 0; +#endif + // For each path included in the interested path of the read handler... for (; apReadHandler->GetAttributePathExpandIterator()->Get(readPath); apReadHandler->GetAttributePathExpandIterator()->Next()) @@ -122,8 +136,13 @@ CHIP_ERROR Engine::BuildSingleReportDataAttributeReportIBs(ReportDataMessage::Bu mGlobalDirtySet.ForEachActiveObject([&](auto * dirtyPath) { if (dirtyPath->IsAttributePathSupersetOf(readPath)) { - concretePathDirty = true; - return Loop::Break; + // We don't need to worry about paths that were already marked dirty before the last time this read handler + // started a report that it completed: those paths already got reported. + if (dirtyPath->mGeneration > apReadHandler->mPreviousReportsBeginGeneration) + { + concretePathDirty = true; + return Loop::Break; + } } return Loop::Continue; }); @@ -142,7 +161,16 @@ CHIP_ERROR Engine::BuildSingleReportDataAttributeReportIBs(ReportDataMessage::Bu } } - // If we are processing a read request, or the initial report of a subscription, just regard all paths as dirty paths. +#if CONFIG_IM_BUILD_FOR_UNIT_TEST + attributesRead++; + if (attributesRead > mMaxAttributesPerChunk) + { + ExitNow(err = CHIP_ERROR_BUFFER_TOO_SMALL); + } +#endif + + // If we are processing a read request, or the initial report of a subscription, just regard all paths as dirty + // paths. TLV::TLVWriter attributeBackup; attributeReportIBs.Checkpoint(attributeBackup); ConcreteReadAttributePath pathForRetrieval(readPath); @@ -580,6 +608,8 @@ void Engine::Run() if (allReadClean) { + ChipLogDetail(DataManagement, "All ReadHandler-s are clean, clear GlobalDirtySet"); + mGlobalDirtySet.ReleaseAll(); } } @@ -589,10 +619,12 @@ bool Engine::MergeOverlappedAttributePath(AttributePathParams & aAttributePath) return Loop::Break == mGlobalDirtySet.ForEachActiveObject([&](auto * path) { if (path->IsAttributePathSupersetOf(aAttributePath)) { + path->mGeneration = GetDirtySetGeneration(); return Loop::Break; } if (aAttributePath.IsAttributePathSupersetOf(*path)) { + path->mGeneration = GetDirtySetGeneration(); path->mListIndex = aAttributePath.mListIndex; path->mAttributeId = aAttributePath.mAttributeId; return Loop::Break; @@ -603,6 +635,8 @@ bool Engine::MergeOverlappedAttributePath(AttributePathParams & aAttributePath) CHIP_ERROR Engine::SetDirty(AttributePathParams & aAttributePath) { + BumpDirtySetGeneration(); + InteractionModelEngine::GetInstance()->mReadHandlers.ForEachActiveObject([&aAttributePath](ReadHandler * handler) { // We call SetDirty for both read interactions and subscribe interactions, since we may sent inconsistent attribute data // between two chunks. SetDirty will be ignored automatically by read handlers which is waiting for response to last message @@ -614,7 +648,7 @@ CHIP_ERROR Engine::SetDirty(AttributePathParams & aAttributePath) if (aAttributePath.IsAttributePathSupersetOf(object->mValue) || object->mValue.IsAttributePathSupersetOf(aAttributePath)) { - handler->SetDirty(); + handler->SetDirty(aAttributePath); break; } } @@ -632,7 +666,8 @@ CHIP_ERROR Engine::SetDirty(AttributePathParams & aAttributePath) ChipLogError(DataManagement, "mGlobalDirtySet pool full, cannot handle more entries!"); return CHIP_ERROR_NO_MEMORY; } - *object = aAttributePath; + *object = aAttributePath; + object->mGeneration = GetDirtySetGeneration(); } // Schedule work to run asynchronously on the CHIP thread. The scheduled @@ -662,7 +697,8 @@ void Engine::UpdateReadHandlerDirty(ReadHandler & aReadHandler) for (auto object = aReadHandler.GetAttributePathList(); object != nullptr; object = object->mpNext) { mGlobalDirtySet.ForEachActiveObject([&](auto * path) { - if (path->IsAttributePathSupersetOf(object->mValue) || object->mValue.IsAttributePathSupersetOf(*path)) + if ((path->IsAttributePathSupersetOf(object->mValue) || object->mValue.IsAttributePathSupersetOf(*path)) && + path->mGeneration > aReadHandler.mPreviousReportsBeginGeneration) { intersected = true; return Loop::Break; @@ -676,8 +712,8 @@ void Engine::UpdateReadHandlerDirty(ReadHandler & aReadHandler) } if (!intersected) { - ChipLogDetail(InteractionModel, "clear read handler dirty in UpdateReadHandlerDirty!"); aReadHandler.ClearDirty(); + ChipLogDetail(InteractionModel, "clear read handler dirty in UpdateReadHandlerDirty!"); } } diff --git a/src/app/reporting/Engine.h b/src/app/reporting/Engine.h index 3a26abba3ef040..d0fb3d57adda76 100644 --- a/src/app/reporting/Engine.h +++ b/src/app/reporting/Engine.h @@ -65,6 +65,8 @@ class Engine #if CONFIG_IM_BUILD_FOR_UNIT_TEST void SetWriterReserved(uint32_t aReservedSize) { mReservedSize = aReservedSize; } + + void SetMaxAttributesPerChunk(uint32_t aMaxAttributesPerChunk) { mMaxAttributesPerChunk = aMaxAttributesPerChunk; } #endif /** @@ -120,10 +122,20 @@ class Engine uint32_t GetNumReportsInFlight() const { return mNumReportsInFlight; } + uint64_t GetDirtySetGeneration() const { return mDirtyGeneration; } + void ScheduleUrgentEventDeliverySync(); private: friend class TestReportingEngine; + + struct AttributePathParamsWithGeneration : public AttributePathParams + { + AttributePathParamsWithGeneration() {} + AttributePathParamsWithGeneration(const AttributePathParams aPath) : AttributePathParams(aPath) {} + uint64_t mGeneration = 0; + }; + /** * Build Single Report Data including attribute changes and event data stream, and send out * @@ -175,6 +187,8 @@ class Engine */ bool MergeOverlappedAttributePath(AttributePathParams & aAttributePath); + inline void BumpDirtySetGeneration() { mDirtyGeneration++; } + /** * Boolean to indicate if ScheduleRun is pending. This flag is used to prevent calling ScheduleRun multiple times * within the same execution context to avoid applying too much pressure on platforms that use small, fixed size event queues. @@ -203,10 +217,25 @@ class Engine * mGlobalDirtySet is used to track the set of attribute/event paths marked dirty for reporting purposes. * */ - ObjectPool mGlobalDirtySet; + ObjectPool mGlobalDirtySet; + + /** + * A generation counter for the dirty attrbute set. + * ReadHandlers can save the generation value when generating reports. + * + * Then we can tell whether they might have missed reporting an attribute by + * comparing its generation counter to the saved one. + * + * mDirtySetGeneration will increase by one when SetDirty is called. + * + * Count it from 1, so 0 can be used in ReadHandler to indicate "the read handler has never + * completed a report". + */ + uint64_t mDirtyGeneration = 1; #if CONFIG_IM_BUILD_FOR_UNIT_TEST - uint32_t mReservedSize = 0; + uint32_t mReservedSize = 0; + uint32_t mMaxAttributesPerChunk = UINT32_MAX; #endif }; diff --git a/src/app/tests/TestReadInteraction.cpp b/src/app/tests/TestReadInteraction.cpp index e9ed676ec99b69..7cf1032ae3d175 100644 --- a/src/app/tests/TestReadInteraction.cpp +++ b/src/app/tests/TestReadInteraction.cpp @@ -1319,10 +1319,11 @@ void TestReadInteraction::TestSetDirtyBetweenChunks(nlTestSuite * apSuite, void ctx.DrainAndServiceIO(); - // We should receive another 2 * (6 + 1) = 14 attribute reports since the underlying path iterator should be reset. + // We should receive another (6 + 1) = 7 attribute reports since the underlying path iterator should be reset to the + // beginning of the cluster it is currently iterating. ChipLogError(DataManagement, "OLD: %d\n", currentAttributeResponsesWhenSetDirty); ChipLogError(DataManagement, "NEW: %d\n", delegate.mNumAttributeResponse); - NL_TEST_ASSERT(apSuite, delegate.mNumAttributeResponse == currentAttributeResponsesWhenSetDirty + 14); + NL_TEST_ASSERT(apSuite, delegate.mNumAttributeResponse == currentAttributeResponsesWhenSetDirty + 7); NL_TEST_ASSERT(apSuite, delegate.mGotReport); NL_TEST_ASSERT(apSuite, !delegate.mReadError); // By now we should have closed all exchanges and sent all pending acks, so @@ -1523,7 +1524,7 @@ void TestReadInteraction::TestSubscribeRoundtrip(nlTestSuite * apSuite, void * a GenerateEvents(apSuite, apContext); NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mHoldReport == false); - NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mDirty == true); + NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->IsDirty()); chip::app::AttributePathParams dirtyPath1; dirtyPath1.mClusterId = kTestClusterId; dirtyPath1.mEndpointId = kTestEndpointId; @@ -1702,7 +1703,7 @@ void TestReadInteraction::TestSubscribeUrgentWildcardEvent(nlTestSuite * apSuite GenerateEvents(apSuite, apContext); NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mHoldReport == false); - NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mDirty == true); + NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->IsDirty() == true); delegate.mGotEventResponse = false; delegate.mGotReport = false; ctx.DrainAndServiceIO(); @@ -2083,7 +2084,7 @@ void TestReadInteraction::TestPostSubscribeRoundtripStatusReportTimeout(nlTestSu GenerateEvents(apSuite, apContext); NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mHoldReport == false); - NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mDirty == true); + NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->IsDirty()); chip::app::AttributePathParams dirtyPath1; dirtyPath1.mClusterId = kTestClusterId; dirtyPath1.mEndpointId = kTestEndpointId; @@ -2402,7 +2403,7 @@ void TestReadInteraction::TestPostSubscribeRoundtripChunkStatusReportTimeout(nlT GenerateEvents(apSuite, apContext); NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mHoldReport == false); - NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mDirty == true); + NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->IsDirty()); chip::app::AttributePathParams dirtyPath1; dirtyPath1.mClusterId = Test::MockClusterId(2); dirtyPath1.mEndpointId = Test::kMockEndpoint3; @@ -2499,7 +2500,7 @@ void TestReadInteraction::TestPostSubscribeRoundtripChunkReportTimeout(nlTestSui GenerateEvents(apSuite, apContext); NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mHoldReport == false); - NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->mDirty == true); + NL_TEST_ASSERT(apSuite, delegate.mpReadHandler->IsDirty()); chip::app::AttributePathParams dirtyPath1; dirtyPath1.mClusterId = Test::MockClusterId(2); dirtyPath1.mEndpointId = Test::kMockEndpoint3; diff --git a/src/controller/tests/TestReadChunking.cpp b/src/controller/tests/TestReadChunking.cpp index a3020ff5e4872e..32ece2aceadf09 100644 --- a/src/controller/tests/TestReadChunking.cpp +++ b/src/controller/tests/TestReadChunking.cpp @@ -31,13 +31,16 @@ #include #include #include +#include #include #include #include #include #include +#include #include #include +#include using TestContext = chip::Test::AppContext; using namespace chip; @@ -47,6 +50,7 @@ namespace { uint32_t gIterationCount = 0; nlTestSuite * gSuite = nullptr; +TestContext * gCtx = nullptr; // // The generated endpoint_config for the controller app has Endpoint 1 @@ -58,6 +62,7 @@ constexpr EndpointId kTestEndpointId = 2; constexpr EndpointId kTestEndpointId3 = 3; // Another endpoint, for adding / enabling during running. constexpr EndpointId kTestEndpointId4 = 4; +constexpr EndpointId kTestEndpointId5 = 5; constexpr AttributeId kTestListAttribute = 6; constexpr AttributeId kTestBadAttribute = 7; // Reading this attribute will return CHIP_NO_MEMORY but nothing is actually encoded. @@ -69,6 +74,7 @@ class TestCommandInteraction static void TestListChunking(nlTestSuite * apSuite, void * apContext); static void TestBadChunking(nlTestSuite * apSuite, void * apContext); static void TestDynamicEndpoint(nlTestSuite * apSuite, void * apContext); + static void TestSetDirtyBetweenChunks(nlTestSuite * apSuite, void * apContext); private: }; @@ -101,6 +107,16 @@ DECLARE_DYNAMIC_CLUSTER(TestCluster::Id, testClusterAttrsOnEndpoint4, nullptr, n DECLARE_DYNAMIC_ENDPOINT(testEndpoint4, testEndpoint4Clusters); +// Unlike endpoint 1, we can modify the values for values in endpoint 5 +DECLARE_DYNAMIC_ATTRIBUTE_LIST_BEGIN(testClusterAttrsOnEndpoint5) +DECLARE_DYNAMIC_ATTRIBUTE(0x00000001, INT8U, 1, 0), DECLARE_DYNAMIC_ATTRIBUTE(0x00000002, INT8U, 1, 0), + DECLARE_DYNAMIC_ATTRIBUTE(0x00000003, INT8U, 1, 0), DECLARE_DYNAMIC_ATTRIBUTE_LIST_END(); + +DECLARE_DYNAMIC_CLUSTER_LIST_BEGIN(testEndpoint5Clusters) +DECLARE_DYNAMIC_CLUSTER(TestCluster::Id, testClusterAttrsOnEndpoint5, nullptr, nullptr), DECLARE_DYNAMIC_CLUSTER_LIST_END; + +DECLARE_DYNAMIC_ENDPOINT(testEndpoint5, testEndpoint5Clusters); + //clang-format on uint8_t sAnStringThatCanNeverFitIntoTheMTU[4096] = { 0 }; @@ -184,6 +200,45 @@ void TestReadCallback::OnAttributeData(const app::ConcreteDataAttributePath & aP void TestReadCallback::OnDone() {} +class TestMutableAttrAccess +{ +public: + CHIP_ERROR Read(const app::ConcreteReadAttributePath & aPath, app::AttributeValueEncoder & aEncoder); + + void SetDirty(AttributeId attr) + { + app::AttributePathParams path; + path.mEndpointId = kTestEndpointId5; + path.mClusterId = TestCluster::Id; + path.mAttributeId = attr; + app::InteractionModelEngine::GetInstance()->GetReportingEngine().SetDirty(path); + } + + // These setters + void SetVal(uint8_t attribute, uint8_t newVal) + { + uint8_t index = static_cast(attribute - 1); + if (index < ArraySize(val) && val[index] != newVal) + { + val[index] = newVal; + SetDirty(attribute); + } + } + + void Reset() { val[0] = val[1] = val[2] = 0; } + + uint8_t val[3] = { 0, 0, 0 }; +}; + +CHIP_ERROR TestMutableAttrAccess::Read(const app::ConcreteReadAttributePath & aPath, app::AttributeValueEncoder & aEncoder) +{ + uint8_t index = static_cast(aPath.mAttributeId - 1); + VerifyOrReturnError(aPath.mEndpointId == kTestEndpointId5 && index < ArraySize(val), CHIP_ERROR_NOT_FOUND); + return aEncoder.Encode(val[index]); +} + +TestMutableAttrAccess gMutableAttrAccess; + class TestAttrAccess : public app::AttributeAccessInterface { public: @@ -201,6 +256,12 @@ TestAttrAccess gAttrAccess; CHIP_ERROR TestAttrAccess::Read(const app::ConcreteReadAttributePath & aPath, app::AttributeValueEncoder & aEncoder) { + CHIP_ERROR err = gMutableAttrAccess.Read(aPath, aEncoder); + if (err != CHIP_ERROR_NOT_FOUND) + { + return err; + } + switch (aPath.mAttributeId) { case kTestListAttribute: @@ -227,6 +288,58 @@ CHIP_ERROR TestAttrAccess::Write(const app::ConcreteDataAttributePath & aPath, a return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE; } +class TestMutableReadCallback : public app::ReadClient::Callback +{ +public: + TestMutableReadCallback() : mBufferedCallback(*this) {} + void OnAttributeData(const app::ConcreteDataAttributePath & aPath, TLV::TLVReader * apData, + const app::StatusIB & aStatus) override; + + void OnDone() override {} + + void OnReportBegin() override { mAttributeCount = 0; } + + void OnReportEnd() override { mOnReportEnd = true; } + + void OnSubscriptionEstablished(uint64_t aSubscriptionId) override { mOnSubscriptionEstablished = true; } + + uint32_t mAttributeCount = 0; + // We record every dataversion field from every attribute IB. + std::map, DataVersion> mDataVersions; + std::map, uint8_t> mValues; + std::map, std::function> mActionOn; + bool mOnReportEnd = false; + bool mOnSubscriptionEstablished = false; + app::BufferedReadCallback mBufferedCallback; +}; + +void TestMutableReadCallback::OnAttributeData(const app::ConcreteDataAttributePath & aPath, TLV::TLVReader * apData, + const app::StatusIB & aStatus) +{ + VerifyOrReturn(apData != nullptr); + NL_TEST_ASSERT(gSuite, aPath.mClusterId == TestCluster::Id); + + mAttributeCount++; + if (aPath.mAttributeId <= 5) + { + uint8_t v; + NL_TEST_ASSERT(gSuite, app::DataModel::Decode(*apData, v) == CHIP_NO_ERROR); + mValues[std::make_pair(aPath.mEndpointId, aPath.mAttributeId)] = v; + + auto action = mActionOn.find(std::make_pair(aPath.mEndpointId, aPath.mAttributeId)); + if (action != mActionOn.end() && action->second) + { + action->second(); + } + } + + if (aPath.mDataVersion.HasValue()) + { + mDataVersions[std::make_pair(aPath.mEndpointId, aPath.mAttributeId)] = aPath.mDataVersion.Value(); + } + // Ignore all other attributes, we don't care above the global attributes. +} + /* * This validates all the various corner cases encountered during chunking by * artificially reducing the size of a packet buffer used to encode attribute data @@ -509,6 +622,274 @@ void TestCommandInteraction::TestDynamicEndpoint(nlTestSuite * apSuite, void * a emberAfClearDynamicEndpoint(0); } +/* + * The tests below are for testing deatiled bwhavior when the attributes are modified between two chunks. In this test, we only care + * above whether we will receive correct attribute values in reasonable messages with reduced reporting traffic. + */ + +namespace TestSetDirtyBetweenChunksUtil { + +using AttributeIdWithEndpointId = std::pair; + +template +constexpr AttributeIdWithEndpointId AttrOnEp1 = AttributeIdWithEndpointId(kTestEndpointId, id); + +template +constexpr AttributeIdWithEndpointId AttrOnEp5 = AttributeIdWithEndpointId(kTestEndpointId5, id); + +auto WriteAttrOp(AttributeIdWithEndpointId attr, uint8_t val) +{ + return [=]() { gMutableAttrAccess.SetVal(static_cast(attr.second), val); }; +} + +auto TouchAttrOp(AttributeIdWithEndpointId attr) +{ + return [=]() { + app::AttributePathParams path; + path.mEndpointId = attr.first; + path.mClusterId = TestCluster::Id; + path.mAttributeId = attr.second; + gIterationCount++; + app::InteractionModelEngine::GetInstance()->GetReportingEngine().SetDirty(path); + }; +} + +enum AttrIds +{ + Attr1 = 1, + Attr2 = 2, + Attr3 = 3, +}; + +using AttributeWithValue = std::pair; +using AttributesList = std::vector; + +struct Instruction +{ + // The maximum number of attributes should be iterated in a single report chunk. + uint32_t chunksize; + // A list of functions that will be executed before driving the main loop. + std::vector> preworks; + // A list of pair for attributes and their expected values in the report. + std::vector expectedValues; + // A list of list of various attributes which should have the same data version in the report. + std::vector attributesWithSameDataVersion; +}; + +void DriveIOUntilSubscriptionEstablished(TestMutableReadCallback * callback) +{ + callback->mOnReportEnd = false; + gCtx->GetIOContext().DriveIOUntil(System::Clock::Seconds16(5), [&]() { return callback->mOnSubscriptionEstablished; }); + NL_TEST_ASSERT(gSuite, callback->mOnReportEnd); + NL_TEST_ASSERT(gSuite, callback->mOnSubscriptionEstablished); + callback->mActionOn.clear(); +} + +void DriveIOUntilEndOfReport(TestMutableReadCallback * callback) +{ + callback->mOnReportEnd = false; + gCtx->GetIOContext().DriveIOUntil(System::Clock::Seconds16(5), [&]() { return callback->mOnReportEnd; }); + NL_TEST_ASSERT(gSuite, callback->mOnReportEnd); + callback->mActionOn.clear(); +} + +void CheckValues(TestMutableReadCallback * callback, std::vector expectedValues = {}) +{ + for (const auto & vals : expectedValues) + { + NL_TEST_ASSERT(gSuite, callback->mValues[vals.first] == vals.second); + } +} + +void ExpectSameDataVersions(TestMutableReadCallback * callback, AttributesList attrList) +{ + if (attrList.size() == 0) + { + return; + } + DataVersion expectedVersion = callback->mDataVersions[attrList[0]]; + for (const auto & attr : attrList) + { + NL_TEST_ASSERT(gSuite, callback->mDataVersions[attr] == expectedVersion); + } +} + +void DoTest(TestMutableReadCallback * callback, Instruction instruction) +{ + app::InteractionModelEngine::GetInstance()->GetReportingEngine().SetMaxAttributesPerChunk(instruction.chunksize); + + for (const auto & act : instruction.preworks) + { + act(); + } + + DriveIOUntilEndOfReport(callback); + + CheckValues(callback, instruction.expectedValues); + + for (const auto & attrList : instruction.attributesWithSameDataVersion) + { + ExpectSameDataVersions(callback, attrList); + } +} + +}; // namespace TestSetDirtyBetweenChunksUtil + +void TestCommandInteraction::TestSetDirtyBetweenChunks(nlTestSuite * apSuite, void * apContext) +{ + using namespace TestSetDirtyBetweenChunksUtil; + TestContext & ctx = *static_cast(apContext); + auto sessionHandle = ctx.GetSessionBobToAlice(); + app::InteractionModelEngine * engine = app::InteractionModelEngine::GetInstance(); + + gCtx = &ctx; + gSuite = apSuite; + + // Initialize the ember side server logic + InitDataModelHandler(&ctx.GetExchangeManager()); + + app::InteractionModelEngine::GetInstance()->GetReportingEngine().SetWriterReserved(0); + app::InteractionModelEngine::GetInstance()->GetReportingEngine().SetMaxAttributesPerChunk(2); + + DataVersion dataVersionStorage1[ArraySize(testEndpointClusters)]; + DataVersion dataVersionStorage5[ArraySize(testEndpoint5Clusters)]; + + gMutableAttrAccess.Reset(); + + // Register our fake dynamic endpoint. + emberAfSetDynamicEndpoint(0, kTestEndpointId, &testEndpoint, 0, 0, Span(dataVersionStorage1)); + emberAfSetDynamicEndpoint(1, kTestEndpointId5, &testEndpoint5, 0, 0, Span(dataVersionStorage5)); + + { + app::AttributePathParams attributePath; + app::ReadPrepareParams readParams(sessionHandle); + + readParams.mpAttributePathParamsList = &attributePath; + readParams.mAttributePathParamsListSize = 1; + readParams.mMinIntervalFloorSeconds = 0; + readParams.mMaxIntervalCeilingSeconds = 2; + + // TEST 1 -- Read using wildcard paths + ChipLogProgress(DataManagement, "Test 1: Read using wildcard paths."); + { + TestMutableReadCallback readCallback; + + gIterationCount = 1; + + app::ReadClient readClient(engine, &ctx.GetExchangeManager(), readCallback.mBufferedCallback, + app::ReadClient::InteractionType::Subscribe); + + NL_TEST_ASSERT(apSuite, readClient.SendRequest(readParams) == CHIP_NO_ERROR); + + // CASE 1 -- Touch an attribute during priming report, then verify it is included in first report after priming report. + { + // When the report engine starts to report attributes in endpoint 5, mark cluster 1 as dirty. + // The report engine should NOT include it in initial report to reduce traffic. + // We are expected to miss attributes on kTestEndpointId during initial reports. + ChipLogProgress(DataManagement, "Case 1-1: Set dirty during priming report."); + readCallback.mActionOn[AttrOnEp5] = TouchAttrOp(AttrOnEp1); + DriveIOUntilSubscriptionEstablished(&readCallback); + CheckValues(&readCallback, { { AttrOnEp1, 1 } }); + + ChipLogProgress(DataManagement, "Case 1-2: Check for attributes missed last report."); + DoTest(&readCallback, Instruction{ .chunksize = 2, .expectedValues = { { AttrOnEp1, 2 } } }); + } + + // CASE 2 -- Set dirty during chunked report, the attribute is already dirty. + { + ChipLogProgress(DataManagement, "Case 2: Set dirty during chunked report by wildcard path."); + readCallback.mActionOn[AttrOnEp5] = WriteAttrOp(AttrOnEp5, 3); + DoTest( + &readCallback, + Instruction{ .chunksize = 2, + .preworks = { WriteAttrOp(AttrOnEp5, 2), WriteAttrOp(AttrOnEp5, 2), + WriteAttrOp(AttrOnEp5, 2) }, + .expectedValues = { { AttrOnEp5, 2 }, { AttrOnEp5, 2 }, { AttrOnEp5, 3 } }, + .attributesWithSameDataVersion = { { AttrOnEp5, AttrOnEp5, AttrOnEp5 } } }); + } + + // CASE 3 -- Set dirty during chunked report, the attribute is not dirty, and it may catch / missed the current report. + { + ChipLogProgress(DataManagement, + "Case 3-1: Set dirty during chunked report by wildcard path -- new dirty attribute."); + readCallback.mActionOn[AttrOnEp5] = WriteAttrOp(AttrOnEp5, 4); + DoTest( + &readCallback, + Instruction{ .chunksize = 1, + .preworks = { WriteAttrOp(AttrOnEp5, 4), WriteAttrOp(AttrOnEp5, 4) }, + .expectedValues = { { AttrOnEp5, 4 }, { AttrOnEp5, 4 }, { AttrOnEp5, 4 } }, + .attributesWithSameDataVersion = { { AttrOnEp5, AttrOnEp5, AttrOnEp5 } } }); + + ChipLogProgress(DataManagement, + "Case 3-2: Set dirty during chunked report by wildcard path -- new dirty attribute."); + app::InteractionModelEngine::GetInstance()->GetReportingEngine().SetMaxAttributesPerChunk(1); + readCallback.mActionOn[AttrOnEp5] = WriteAttrOp(AttrOnEp5, 5); + DoTest( + &readCallback, + Instruction{ .chunksize = 1, + .preworks = { WriteAttrOp(AttrOnEp5, 5), WriteAttrOp(AttrOnEp5, 5) }, + .expectedValues = { { AttrOnEp5, 5 }, { AttrOnEp5, 5 }, { AttrOnEp5, 5 } }, + .attributesWithSameDataVersion = { { AttrOnEp5, AttrOnEp5, AttrOnEp5 } } }); + } + } + } + // The read client is destructed, server will shutdown the corresponding subscription later. + + // TEST 2 -- Read using concrete paths. + ChipLogProgress(DataManagement, "Test 2: Read using concrete paths."); + { + app::AttributePathParams attributePath[3]; + app::ReadPrepareParams readParams(sessionHandle); + + attributePath[0] = app::AttributePathParams(kTestEndpointId5, TestCluster::Id, Attr1); + attributePath[1] = app::AttributePathParams(kTestEndpointId5, TestCluster::Id, Attr2); + attributePath[2] = app::AttributePathParams(kTestEndpointId5, TestCluster::Id, Attr3); + + readParams.mpAttributePathParamsList = attributePath; + readParams.mAttributePathParamsListSize = 3; + readParams.mMinIntervalFloorSeconds = 0; + readParams.mMaxIntervalCeilingSeconds = 2; + gMutableAttrAccess.Reset(); + + // CASE 1 -- Touch an attribute during priming report, then verify it is included in first report after priming report. + { + TestMutableReadCallback readCallback; + + app::ReadClient readClient(engine, &ctx.GetExchangeManager(), readCallback.mBufferedCallback, + app::ReadClient::InteractionType::Subscribe); + + NL_TEST_ASSERT(apSuite, readClient.SendRequest(readParams) == CHIP_NO_ERROR); + + DriveIOUntilSubscriptionEstablished(&readCallback); + + // Note, although the two attributes comes from the same cluster, they are generated by different interested paths. + // In this case, we won't reset the path iterator. + ChipLogProgress(DataManagement, "Case 1-1: Test set dirty during reports generated by concrete paths."); + readCallback.mActionOn[AttrOnEp5] = WriteAttrOp(AttrOnEp5, 4); + DoTest(&readCallback, + Instruction{ .chunksize = 1, + .preworks = { WriteAttrOp(AttrOnEp5, 3), WriteAttrOp(AttrOnEp5, 3), + WriteAttrOp(AttrOnEp5, 3) }, + .expectedValues = { { AttrOnEp5, 3 }, { AttrOnEp5, 3 }, { AttrOnEp5, 3 } } }); + + // The attribute failed to catch last report will be picked by this report. + ChipLogProgress(DataManagement, "Case 1-2: Check for attributes missed last report."); + DoTest(&readCallback, { .chunksize = 1, .expectedValues = { { AttrOnEp5, 4 } } }); + } + } + + chip::test_utils::SleepMillis(secondsToMilliseconds(3)); + + // Destroying the read client will terminate the subscription transaction. + ctx.DrainAndServiceIO(); + + NL_TEST_ASSERT(apSuite, ctx.GetExchangeManager().GetNumActiveExchanges() == 0); + + emberAfClearDynamicEndpoint(1); + emberAfClearDynamicEndpoint(0); + app::InteractionModelEngine::GetInstance()->GetReportingEngine().SetMaxAttributesPerChunk(UINT32_MAX); +} + // clang-format off const nlTest sTests[] = { @@ -516,6 +897,7 @@ const nlTest sTests[] = NL_TEST_DEF("TestListChunking", TestCommandInteraction::TestListChunking), NL_TEST_DEF("TestBadChunking", TestCommandInteraction::TestBadChunking), NL_TEST_DEF("TestDynamicEndpoint", TestCommandInteraction::TestDynamicEndpoint), + NL_TEST_DEF("TestSetDirtyBetweenChunks", TestCommandInteraction::TestSetDirtyBetweenChunks), NL_TEST_SENTINEL() };