Skip to content

Commit 316d6d0

Browse files
authored
Merge branch 'master' into impl_basic_information_home_location_attribute
2 parents 6d33cae + 0840ca6 commit 316d6d0

File tree

757 files changed

+26409
-6939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

757 files changed

+26409
-6939
lines changed

.github/workflows/build.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ on:
2626
run-codeql:
2727
required: false
2828
type: boolean
29-
29+
3030
concurrency:
3131
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
3232
cancel-in-progress: true
3333

3434
env:
3535
CHIP_NO_LOG_TIMESTAMPS: true
36-
36+
3737
jobs:
3838
build_linux_gcc_debug:
3939
name: Build on Linux (gcc_debug)
@@ -210,7 +210,7 @@ jobs:
210210
./scripts/run_in_build_env.sh \
211211
"./scripts/run-clang-tidy-on-compile-commands.py \
212212
--compile-database out/sanitizers/compile_commands.json \
213-
--file-exclude-regex '/(repo|zzz_generated|lwip/standalone)/|-ReadImpl|-InvokeSubscribeImpl|CodegenDataModel_Write' \
213+
--file-exclude-regex '/(repo|zzz_generated|lwip/standalone)/|-ReadImpl|-InvokeSubscribeImpl|CodegenDataModel_Write|QuieterReporting' \
214214
check \
215215
"
216216
- name: Clean output
@@ -243,7 +243,7 @@ jobs:
243243
run: |
244244
rm -rf ./zzz_pregenerated
245245
mv scripts/codegen.py.renamed scripts/codegen.py
246-
mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py
246+
mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py
247247
- name: Run fake linux tests with build_examples
248248
run: |
249249
./scripts/run_in_build_env.sh \
@@ -253,7 +253,7 @@ jobs:
253253
uses: ./.github/actions/perform-codeql-analysis
254254
with:
255255
language: cpp
256-
256+
257257
- name: Uploading core files
258258
uses: actions/upload-artifact@v4
259259
if: ${{ failure() && !env.ACT }}
@@ -430,7 +430,7 @@ jobs:
430430
./scripts/run_in_build_env.sh \
431431
"./scripts/run-clang-tidy-on-compile-commands.py \
432432
--compile-database out/default/compile_commands.json \
433-
--file-exclude-regex '/(repo|zzz_generated|lwip/standalone)/|CodegenDataModel_Write' \
433+
--file-exclude-regex '/(repo|zzz_generated|lwip/standalone)/|CodegenDataModel_Write|QuieterReporting' \
434434
check \
435435
"
436436
- name: Uploading diagnostic logs
@@ -445,7 +445,7 @@ jobs:
445445
uses: ./.github/actions/perform-codeql-analysis
446446
with:
447447
language: cpp
448-
448+
449449
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
450450
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
451451

.github/workflows/examples-nxp.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -60,36 +60,36 @@ jobs:
6060
run: |
6161
scripts/run_in_build_env.sh "\
6262
./scripts/build/build_examples.py \
63-
--target nxp-k32w0-lighting \
64-
--target nxp-k32w0-lighting-factory \
65-
--target nxp-k32w0-lighting-rotating-id \
66-
--target nxp-k32w0-contact-sensor \
67-
--target nxp-k32w0-contact-sensor-low-power \
68-
--target nxp-k32w0-contact-sensor-low-power-factory \
69-
--target nxp-k32w1-lighting \
70-
--target nxp-k32w1-contact-sensor-low-power \
63+
--target nxp-k32w0-freertos-lighting \
64+
--target nxp-k32w0-freertos-lighting-factory \
65+
--target nxp-k32w0-freertos-lighting-rotating-id \
66+
--target nxp-k32w0-freertos-contact-sensor \
67+
--target nxp-k32w0-freertos-contact-sensor-low-power \
68+
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
69+
--target nxp-k32w1-freertos-lighting \
70+
--target nxp-k32w1-freertos-contact-sensor-low-power \
7171
build \
7272
--copy-artifacts-to out/artifacts \
7373
"
7474
- name: Get lighting app size stats
7575
run: |
7676
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
7777
nxp k32w0+release light \
78-
out/artifacts/nxp-k32w0-lighting/chip-k32w0x-light-example.elf \
78+
out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
7979
/tmp/bloat_reports/
8080
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
8181
nxp k32w1+release light \
82-
out/artifacts/nxp-k32w1-lighting/chip-k32w1-light-example.elf \
82+
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
8383
/tmp/bloat_reports/
8484
- name: Get contact sensor size stats
8585
run: |
8686
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
8787
nxp k32w0+release contact \
88-
out/artifacts/nxp-k32w0-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
88+
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
8989
/tmp/bloat_reports/
9090
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
9191
nxp k32w1+release contact \
92-
out/artifacts/nxp-k32w1-contact-sensor-low-power/chip-k32w1-contact-example.elf \
92+
out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \
9393
/tmp/bloat_reports/
9494
- name: Uploading Size Reports
9595
uses: ./.github/actions/upload-size-reports

.github/workflows/tests.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
src/app/zap-templates/zcl/data-model/chip/channel-cluster.xml \
113113
src/app/zap-templates/zcl/data-model/chip/clusters-extensions.xml \
114114
src/app/zap-templates/zcl/data-model/chip/color-control-cluster.xml \
115+
src/app/zap-templates/zcl/data-model/chip/commissioner-control-cluster.xml \
115116
src/app/zap-templates/zcl/data-model/chip/concentration-measurement-cluster.xml \
116117
src/app/zap-templates/zcl/data-model/chip/content-launch-cluster.xml \
117118
src/app/zap-templates/zcl/data-model/chip/content-app-observer-cluster.xml \
@@ -191,6 +192,7 @@ jobs:
191192
src/app/zap-templates/zcl/data-model/chip/unit-localization-cluster.xml \
192193
src/app/zap-templates/zcl/data-model/chip/wake-on-lan-cluster.xml \
193194
src/app/zap-templates/zcl/data-model/chip/washer-controls-cluster.xml \
195+
src/app/zap-templates/zcl/data-model/chip/water-heater-management-cluster.xml \
194196
src/app/zap-templates/zcl/data-model/chip/wifi-network-diagnostics-cluster.xml \
195197
src/app/zap-templates/zcl/data-model/chip/wifi-network-management-cluster.xml \
196198
src/app/zap-templates/zcl/data-model/chip/window-covering.xml \
@@ -493,7 +495,7 @@ jobs:
493495
- name: Run Tests
494496
run: |
495497
mkdir -p out/trace_data
496-
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --quiet --app-args "--trace-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script-args "--log-level INFO -t 3600 --disable-test ClusterObjectTests.TestTimedRequestTimeout --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
498+
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/controller/python/test/test_scripts/mobile-device-test.py'
497499
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_ACE_1_2.py'
498500
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_ACE_1_3.py'
499501
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_ACE_1_4.py'
@@ -529,6 +531,7 @@ jobs:
529531
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_ICDManagementCluster.py'
530532
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_IDM_1_2.py'
531533
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_IDM_1_4.py'
534+
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_IDM_4_2.py'
532535
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_PWRTL_2_1.py'
533536
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_RR_1_1.py'
534537
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_SC_3_6.py'
@@ -579,6 +582,7 @@ jobs:
579582
scripts/run_in_python_env.sh out/venv './scripts/tests/TestTimeSyncTrustedTimeSourceRunner.py'
580583
scripts/run_in_python_env.sh out/venv './src/python_testing/test_testing/test_TC_ICDM_2_1.py'
581584
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestIdChecks.py'
585+
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/test_testing/test_IDM_10_4.py'
582586
583587
- name: Uploading core files
584588
uses: actions/upload-artifact@v4

config/esp32/components/chip/Kconfig

+3-1
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,11 @@ menu "CHIP Device Layer"
330330
config MAX_EVENT_QUEUE_SIZE
331331
int "Max Event Queue Size"
332332
range 0 65535
333-
default 25
333+
default 40
334334
help
335335
The maximum number of events that can be held in the CHIP Platform event queue.
336+
Should be set greater than CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM. For SoCs other than
337+
ESP32-C2, where the Wi-Fi buffer number is 8, recommended to use the default value.
336338

337339
config ENABLE_EXTENDED_DISCOVERY
338340
bool "Enable Extended discovery Support"

config/python/CHIPProjectConfig.h

+11-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@
2626
#define CHIP_CONFIG_EVENT_LOGGING_NUM_EXTERNAL_CALLBACKS 2
2727

2828
// Uncomment this for a large Tunnel MTU.
29-
//#define CHIP_CONFIG_TUNNEL_INTERFACE_MTU (9000)
29+
// #define CHIP_CONFIG_TUNNEL_INTERFACE_MTU (9000)
3030

3131
// Enable support functions for parsing command-line arguments
3232
#define CHIP_CONFIG_ENABLE_ARG_PARSER 1
3333

34-
// Use a default pairing code if one hasn't been provisioned in flash.
35-
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
36-
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
34+
// Enable use of test setup parameters for testing purposes only.
35+
//
36+
// WARNING: This option makes it possible to circumvent basic chip security functionality.
37+
// Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.
38+
//
39+
#ifndef CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS
40+
#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 1
41+
#endif
3742

3843
// Enable reading DRBG seed data from /dev/(u)random.
3944
// This is needed for test applications and the CHIP device manager to function
@@ -46,6 +51,8 @@
4651
// WARNING: These options make it possible to circumvent basic Chip security functionality,
4752
// including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
4853
//
54+
// To build with this flag, pass 'treat_warnings_as_errors=false' to gn/ninja.
55+
//
4956
#define CHIP_CONFIG_SECURITY_TEST_MODE 0
5057

5158
#define CHIP_CONFIG_ENABLE_UPDATE 1

data_model/1.3/clusters/ACL-Cluster.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,19 @@ Davis, CA 95616, USA
169169
</attribute>
170170
<attribute id="0x0002" name="SubjectsPerAccessControlEntry" type="uint16" default="4">
171171
<access read="true" readPrivilege="view"/>
172-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
172+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
173173
<mandatoryConform/>
174174
<constraint type="min" value="4"/>
175175
</attribute>
176176
<attribute id="0x0003" name="TargetsPerAccessControlEntry" type="uint16" default="3">
177177
<access read="true" readPrivilege="view"/>
178-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
178+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
179179
<mandatoryConform/>
180180
<constraint type="min" value="3"/>
181181
</attribute>
182182
<attribute id="0x0004" name="AccessControlEntriesPerFabric" type="uint16" default="4">
183183
<access read="true" readPrivilege="view"/>
184-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
184+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
185185
<mandatoryConform/>
186186
<constraint type="min" value="4"/>
187187
</attribute>

data_model/1.3/clusters/AdminCommissioningCluster.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ Davis, CA 95616, USA
9191
</attribute>
9292
<attribute id="0x0001" name="AdminFabricIndex" type="fabric-idx">
9393
<access read="true" readPrivilege="view"/>
94-
<quality changeOmitted="false" nullable="true" scene="false" persistence="volatile" reportable="false"/>
94+
<quality changeOmitted="false" nullable="true" scene="false" persistence="volatile" reportable="false" sourceAttribution="false" quieterReporting="false"/>
9595
<mandatoryConform/>
9696
</attribute>
9797
<attribute id="0x0002" name="AdminVendorId" type="vendor-id">
9898
<access read="true" readPrivilege="view"/>
99-
<quality changeOmitted="false" nullable="true" scene="false" persistence="volatile" reportable="false"/>
99+
<quality changeOmitted="false" nullable="true" scene="false" persistence="volatile" reportable="false" sourceAttribution="false" quieterReporting="false"/>
100100
<mandatoryConform/>
101101
</attribute>
102102
</attributes>

data_model/1.3/clusters/AlarmBase.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Davis, CA 95616, USA
8080
</attribute>
8181
<attribute id="0x0001" name="Latch" type="AlarmBitmap" default="0">
8282
<access read="true" readPrivilege="view"/>
83-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
83+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
8484
<mandatoryConform>
8585
<feature name="RESET"/>
8686
</mandatoryConform>
@@ -91,7 +91,7 @@ Davis, CA 95616, USA
9191
</attribute>
9292
<attribute id="0x0003" name="Supported" type="AlarmBitmap" default="0">
9393
<access read="true" readPrivilege="view"/>
94-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
94+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
9595
<mandatoryConform/>
9696
</attribute>
9797
</attributes>

data_model/1.3/clusters/ApplicationBasic.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,29 @@ Davis, CA 95616, USA
9292
<attributes>
9393
<attribute id="0x0000" name="VendorName" type="string" default="empty">
9494
<access read="true" readPrivilege="view"/>
95-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
95+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
9696
<optionalConform/>
9797
<constraint type="maxLength" value="32"/>
9898
</attribute>
9999
<attribute id="0x0001" name="VendorID" type="vendor-id">
100100
<access read="true" readPrivilege="view"/>
101-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
101+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
102102
<optionalConform/>
103103
</attribute>
104104
<attribute id="0x0002" name="ApplicationName" type="string">
105105
<access read="true" readPrivilege="view"/>
106-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
106+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
107107
<mandatoryConform/>
108108
<constraint type="desc"/>
109109
</attribute>
110110
<attribute id="0x0003" name="ProductID" type="uint16">
111111
<access read="true" readPrivilege="view"/>
112-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
112+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
113113
<optionalConform/>
114114
</attribute>
115115
<attribute id="0x0004" name="Application" type="ApplicationStruct">
116116
<access read="true" readPrivilege="view"/>
117-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
117+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
118118
<mandatoryConform/>
119119
<constraint type="desc"/>
120120
</attribute>
@@ -125,14 +125,14 @@ Davis, CA 95616, USA
125125
</attribute>
126126
<attribute id="0x0006" name="ApplicationVersion" type="string">
127127
<access read="true" readPrivilege="view"/>
128-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
128+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
129129
<mandatoryConform/>
130130
<constraint type="maxLength" value="32"/>
131131
</attribute>
132132
<attribute id="0x0007" name="AllowedVendorList" type="list">
133133
<entry type="vendor-id"/>
134134
<access read="true" readPrivilege="admin"/>
135-
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false"/>
135+
<quality changeOmitted="false" nullable="false" scene="false" persistence="fixed" reportable="false" sourceAttribution="false" quieterReporting="false"/>
136136
<mandatoryConform/>
137137
</attribute>
138138
</attributes>

0 commit comments

Comments
 (0)