Skip to content

Commit 558f354

Browse files
authored
Merge branch 'master' into add_multi_sensor
2 parents 9716d65 + 61e288a commit 558f354

File tree

327 files changed

+10169
-9177
lines changed

Some content is hidden

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

327 files changed

+10169
-9177
lines changed

.vscode/launch.json

+37
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@
3434
"args": [],
3535
"cwd": "${workspaceFolder}"
3636
},
37+
38+
{
39+
"name": "Run pw FuzzTest (Linux x64) UnitTest Mode",
40+
"type": "cppdbg",
41+
"request": "launch",
42+
"program": "${workspaceFolder}/out/${input:outPWFuzzTestLinux}",
43+
"cwd": "${workspaceFolder}"
44+
},
45+
46+
{
47+
"name": "Run pw FuzzTest (Linux x64) Continuous Fuzzing Mode",
48+
"type": "cppdbg",
49+
"request": "launch",
50+
"program": "${workspaceFolder}/out/${input:outPWFuzzTestLinux}",
51+
"args": ["-fuzz=${input:fuzzTestName}"],
52+
"cwd": "${workspaceFolder}",
53+
"preLaunchTask": ""
54+
},
55+
3756
{
3857
"name": "QRCode Tests",
3958
"type": "cppdbg",
@@ -528,6 +547,24 @@
528547
"description": "Select the test to run"
529548
}
530549
},
550+
{
551+
"type": "command",
552+
"id": "outPWFuzzTestLinux",
553+
"command": "shellCommand.execute",
554+
"args": {
555+
"command": "find ${workspaceFolder}/out/linux-x64-*/chip_pw_fuzztest/tests -type f -executable |sort |sed 's$${workspaceFolder}/out/$$'",
556+
"description": "Select the FuzzTest to run"
557+
}
558+
},
559+
{
560+
"id": "fuzzTestName",
561+
"type": "command",
562+
"command": "shellCommand.execute",
563+
"args": {
564+
"command": "./out/${input:outPWFuzzTestLinux} --list_fuzz_tests | grep 'Fuzz test:' | awk -F ': ' '{print $2}'",
565+
"description": "Select the specific FuzzTest to fuzz continuously"
566+
}
567+
},
531568
{
532569
"type": "pickString",
533570
"id": "mbedDebugProfile",

config/esp32/components/chip/CMakeLists.txt

+8-2
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ if (CONFIG_ENABLE_ESP_INSIGHTS_TRACE)
310310
target_include_directories(${COMPONENT_LIB} INTERFACE "${CHIP_ROOT}/src/tracing/esp32_trace/include")
311311
endif()
312312

313+
if (CONFIG_CHIP_DEVICE_ENABLE_DYNAMIC_SERVER)
314+
chip_gn_arg_append("chip_build_controller_dynamic_server" "true")
315+
endif()
316+
313317
set(args_gn_input "${CMAKE_CURRENT_BINARY_DIR}/args.gn.in")
314318
file(GENERATE OUTPUT "${args_gn_input}" CONTENT "${chip_gn_args}")
315319

@@ -508,9 +512,11 @@ endif()
508512
idf_component_get_property(lwip_lib lwip COMPONENT_LIB)
509513
list(APPEND chip_libraries $<TARGET_FILE:${lwip_lib}>)
510514

515+
if ("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3" OR CONFIG_ESP32_WIFI_ENABLED)
516+
idf_component_get_property(esp_wifi_lib esp_wifi COMPONENT_LIB)
517+
list(APPEND chip_libraries $<TARGET_FILE:${esp_wifi_lib}>)
518+
endif()
511519

512-
idf_component_get_property(esp_wifi_lib esp_wifi COMPONENT_LIB)
513-
list(APPEND chip_libraries $<TARGET_FILE:${esp_wifi_lib}>)
514520
if (CONFIG_ESP32_WIFI_ENABLED)
515521
idf_component_get_property(esp_wifi_dir esp_wifi COMPONENT_DIR)
516522
if (CONFIG_IDF_TARGET_ESP32C2)

config/esp32/components/chip/Kconfig

+7-10
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ menu "CHIP Core"
3737
exchange (conversation) with a peer, e.g. a cloud service, a mobile application, or
3838
another device.
3939

40-
config MAX_BINDINGS
41-
int "Max Bindings"
42-
range 0 65535
43-
default 8
44-
help
45-
The maximum number of simultaneously active CHIP Binding objects.
46-
47-
A Binding object is used to configure how the local device communicates with
48-
a remote entity, be it a cloud service, a mobile application, or another device.
49-
5040
config MAX_FABRICS
5141
int "Max Fabrics"
5242
range 5 255
@@ -203,6 +193,13 @@ menu "CHIP Core"
203193
help
204194
Specifies the maximum number of group key sets supported per fabric.
205195

196+
config CHIP_DEVICE_ENABLE_DYNAMIC_SERVER
197+
bool "Enable dynamic server"
198+
default n
199+
help
200+
Enable dynamic server to handle a different interaction model dispatch.
201+
Can be implied when users do not want to use the same server clusters.
202+
206203
endmenu # "General Options"
207204

208205
menu "Networking Options"

config/telink/app/bootloader.conf

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ CONFIG_BOOT_SWAP_USING_SCRATCH=n
3030
CONFIG_BOOT_VALIDATE_SLOT0=y
3131

3232
# Maximum number of image sectors supported by the bootloader.
33-
CONFIG_BOOT_MAX_IMG_SECTORS=4096
33+
# Maximum signed image size: 512 * 4096 = 2M Bytes
34+
CONFIG_BOOT_MAX_IMG_SECTORS=512
3435

3536
# Sets log level for modules which don't specify it explicitly.
3637
# When set to 0 it means log will not be activated for those modules.
@@ -40,4 +41,4 @@ CONFIG_BOOT_MAX_IMG_SECTORS=4096
4041
# - 2 WARNING, default to write LOG_LEVEL_WRN
4142
# - 3 INFO, default to write LOG_LEVEL_INFO
4243
# - 4 DEBUG, default to write LOG_LEVEL_DBG
43-
CONFIG_LOG_DEFAULT_LEVEL=1
44+
CONFIG_LOG_DEFAULT_LEVEL=3

config/telink/chip-module/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ config CHIP_ENABLE_POWER_ON_FACTORY_RESET
246246

247247
config CHIP_TASK_STACK_SIZE
248248
int
249+
default 4864 if PM
249250
default 8192
250251

251252
config CHIP_USE_MARS_SENSOR

config/telink/chip-module/Kconfig.defaults

+19-6
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ config IDLE_STACK_SIZE
7171
default 512 if PM
7272

7373
config ISR_STACK_SIZE
74-
default 502 if PM
74+
default 576 if PM
7575

7676
config SYSTEM_WORKQUEUE_STACK_SIZE
7777
default 616 if PM
@@ -154,7 +154,7 @@ config BT_DEVICE_NAME_GATT_WRITABLE
154154
default n
155155

156156
config B9X_BLE_CTRL_THREAD_STACK_SIZE
157-
default 576
157+
default 648
158158

159159
config B9X_BLE_CTRL_MASTER_MAX_NUM
160160
default 0
@@ -261,10 +261,10 @@ config CHIP_ENABLE_ICD_SUPPORT
261261
default y if CHIP_THREAD_DEVICE_ROLE_SLEEPY_END_DEVICE
262262

263263
config OPENTHREAD_THREAD_STACK_SIZE
264-
default 2178 if PM
264+
default 2400 if PM
265265

266266
config OPENTHREAD_RADIO_WORKQUEUE_STACK_SIZE
267-
default 361 if PM
267+
default 432 if PM
268268
default 608
269269

270270
config OPENTHREAD_SLAAC
@@ -366,6 +366,9 @@ config CHIP_WIFI_CONNECTION_RECOVERY_JITTER
366366
a random jitter interval is added to it to avoid periodicity. The random jitter is selected
367367
within range [-JITTER; +JITTER].
368368

369+
config NET_MGMT_EVENT_STACK_SIZE
370+
default 1128
371+
369372
endif # CHIP_WIFI
370373

371374
config CHIP_ENABLE_PAIRING_AUTOSTART
@@ -448,7 +451,17 @@ config PWM_SHELL
448451
config OPENTHREAD_SHELL
449452
default n
450453

451-
config CHIP_TASK_STACK_SIZE
452-
default 4864 if PM
454+
# Thread analyzer
455+
config THREAD_ANALYZER
456+
default n
457+
select THREAD_ANALYZER_AUTO
458+
459+
config THREAD_ANALYZER_AUTO_INTERVAL
460+
default 5
461+
depends on THREAD_ANALYZER_AUTO
462+
463+
config THREAD_ANALYZER_LOG_LEVEL
464+
default 3 # info
465+
depends on THREAD_ANALYZER
453466

454467
endif

examples/air-quality-sensor-app/silabs/build_for_wifi_args.gni

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import("//build_overrides/chip.gni")
1515
import("${chip_root}/config/standalone/args.gni")
1616

1717
silabs_sdk_target = get_label_info(":sdk", "label_no_toolchain")
18-
import("${chip_root}/src/platform/silabs/wifi_args.gni")
18+
import("${chip_root}/src/platform/silabs/wifi/args.gni")
1919
chip_enable_wifi = true
2020
chip_enable_ota_requestor = true
2121
app_data_model =

examples/all-clusters-app/all-clusters-common/src/fan-stub.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <app-common/zap-generated/cluster-objects.h>
2020
#include <app-common/zap-generated/ids/Attributes.h>
2121
#include <app-common/zap-generated/ids/Clusters.h>
22+
#include <app/AttributeAccessInterface.h>
2223
#include <app/AttributeAccessInterfaceRegistry.h>
2324
#include <app/clusters/fan-control-server/fan-control-server.h>
2425
#include <app/util/attribute-storage.h>
@@ -33,11 +34,13 @@ using namespace chip::app::Clusters::FanControl::Attributes;
3334
using Protocols::InteractionModel::Status;
3435

3536
namespace {
36-
class FanControlManager : public FanControlAttributeAccessInterface, public Delegate
37+
class FanControlManager : public AttributeAccessInterface, public Delegate
3738
{
3839
public:
3940
// Register for the FanControl cluster on all endpoints.
40-
FanControlManager(EndpointId aEndpointId) : FanControlAttributeAccessInterface(aEndpointId), Delegate(aEndpointId) {}
41+
FanControlManager(EndpointId aEndpointId) :
42+
AttributeAccessInterface(Optional<EndpointId>(aEndpointId), FanControl::Id), Delegate(aEndpointId)
43+
{}
4144

4245
CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override;
4346
Status HandleStep(StepDirectionEnum aDirection, bool aWrap, bool aLowestOff) override;

examples/all-clusters-app/esp32/main/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ set(SRC_DIRS_LIST
4545
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/server"
4646
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/icd/server"
4747
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
48+
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util/persistence"
4849
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/reporting"
4950
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/administrator-commissioning-server"
5051
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/air-quality-server"

examples/all-clusters-app/nrfconnect/prj.conf

+3
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ CONFIG_CHIP_QSPI_NOR=n
5454

5555
# Enable the Read Client for binding purposes
5656
CONFIG_CHIP_ENABLE_READ_CLIENT=y
57+
58+
# Increase the settings partition
59+
CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x8000

examples/all-clusters-app/nxp/mw320/include/CHIPProjectConfig.h

-9
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,6 @@
143143
*/
144144
#define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 0
145145

146-
/**
147-
* CHIP_CONFIG_MAX_BINDINGS
148-
*
149-
* Maximum number of simultaneously active bindings per ChipExchangeManager
150-
* 1 (Time Sync) + 2 (Two 1-way subscriptions) + 1 (Software Update) = 4
151-
* in the worst case. Keeping another 4 as buffer.
152-
*/
153-
#define CHIP_CONFIG_MAX_BINDINGS 6
154-
155146
/**
156147
* CHIP_CONFIG_EVENT_LOGGING_WDM_OFFLOAD
157148
*

examples/all-clusters-app/nxp/rt/rt1060/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt106
310310
build-time which will enable the device to join the Wi-Fi AP at startup):
311311

312312
```
313-
user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt1060$ gn gen --args="chip_enable_wifi=true iwx12_transceiver=true evkname=\"evkcmimxrt1060\" chip_config_network_layer_ble=false tcp_download=true wifi_ssid=\"your_wifi_ssid\" wifi_password=\"your_wifi_password\"" out/debug
313+
user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt1060$ export ssid_name=<nwk_ssid> && export ssid_password=<nwk_password> && gn gen --args="chip_enable_wifi=true iwx12_transceiver=true evkname=\"evkcmimxrt1060\" chip_config_network_layer_ble=false wifi_auto_connect_at_boot=true wifi_auto_connect_at_boot_ssid=\"${ssid_name}\" wifi_auto_connect_at_boot_password=\"${ssid_password}\"" out/debug
314314
user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt1060$ ninja -C out/debug
315315
```
316316

@@ -400,7 +400,7 @@ user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt106
400400
- Build Matter with Border Router configuration with onnetwork commissioning:
401401

402402
```
403-
user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt1060$ gn gen --args="chip_enable_wifi=true w8801_transceiver=true nxp_enable_matter_cli=true chip_config_network_layer_ble=false wifi_auto_connect_at_boot=true wifi_auto_connect_at_boot_ssid=\"your_wifi_ssid\" wifi_auto_connect_at_boot_password=\"your_wifi_password\" chip_enable_openthread=true k32w0_transceiver=true k32w0_transceiver_bin_path=\"/path/to/ot-rcp/ot-rcp-ble-hci-bb-k32w061.elf.bin.h\"" out/debug
403+
user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt1060$ export ssid_name=<nwk_ssid> && export ssid_password=<nwk_password> && gn gen --args="chip_enable_wifi=true w8801_transceiver=true nxp_enable_matter_cli=true chip_config_network_layer_ble=false wifi_auto_connect_at_boot=true wifi_auto_connect_at_boot_ssid=\"${ssid_name}\" wifi_auto_connect_at_boot_password=\"${ssid_password}\" chip_enable_openthread=true k32w0_transceiver=true k32w0_transceiver_bin_path=\"/path/to/ot-rcp/ot-rcp-ble-hci-bb-k32w061.elf.bin.h\"" out/debug
404404
user@ubuntu:~/Desktop/git/connectedhomeip/examples/all-clusters-app/nxp/rt/rt1060$ ninja -C out/debug
405405
```
406406

examples/all-clusters-app/nxp/rt/rt1060/include/config/CHIPProjectConfig.h

-9
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,6 @@
167167
*/
168168
// #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 1
169169

170-
/**
171-
* CHIP_CONFIG_MAX_BINDINGS
172-
*
173-
* Maximum number of simultaneously active bindings per ChipExchangeManager
174-
* 1 (Time Sync) + 2 (Two 1-way subscriptions) + 1 (Software Update) = 4
175-
* in the worst case. Keeping another 4 as buffer.
176-
*/
177-
#define CHIP_CONFIG_MAX_BINDINGS 6
178-
179170
/**
180171
* CHIP_CONFIG_EVENT_LOGGING_WDM_OFFLOAD
181172
*

examples/all-clusters-app/nxp/rt/rt1170/include/config/CHIPProjectConfig.h

-9
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,6 @@
167167
*/
168168
// #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 1
169169

170-
/**
171-
* CHIP_CONFIG_MAX_BINDINGS
172-
*
173-
* Maximum number of simultaneously active bindings per ChipExchangeManager
174-
* 1 (Time Sync) + 2 (Two 1-way subscriptions) + 1 (Software Update) = 4
175-
* in the worst case. Keeping another 4 as buffer.
176-
*/
177-
#define CHIP_CONFIG_MAX_BINDINGS 6
178-
179170
/**
180171
* CHIP_CONFIG_EVENT_LOGGING_WDM_OFFLOAD
181172
*

examples/all-clusters-app/nxp/rt/rw61x/include/config/CHIPProjectConfig.h

-9
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,6 @@
168168
*/
169169
// #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 1
170170

171-
/**
172-
* CHIP_CONFIG_MAX_BINDINGS
173-
*
174-
* Maximum number of simultaneously active bindings per ChipExchangeManager
175-
* 1 (Time Sync) + 2 (Two 1-way subscriptions) + 1 (Software Update) = 4
176-
* in the worst case. Keeping another 4 as buffer.
177-
*/
178-
#define CHIP_CONFIG_MAX_BINDINGS 6
179-
180171
/**
181172
* CHIP_CONFIG_EVENT_LOGGING_WDM_OFFLOAD
182173
*

examples/all-clusters-minimal-app/esp32/main/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ set(SRC_DIRS_LIST
3838
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/server"
3939
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/icd"
4040
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
41+
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util/persistence"
4142
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/reporting"
4243
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/administrator-commissioning-server"
4344
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/application-basic-server"

examples/all-clusters-minimal-app/nrfconnect/prj.conf

+3
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ CONFIG_CHIP_QSPI_NOR=n
5555
# Enable Factory Data feature
5656
CONFIG_CHIP_FACTORY_DATA=y
5757
CONFIG_CHIP_FACTORY_DATA_BUILD=y
58+
59+
# Increase the settings partition
60+
CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x8000

examples/bridge-app/esp32/main/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ idf_component_register(PRIV_INCLUDE_DIRS
2323
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated"
2424
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/server"
2525
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
26+
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util/persistence"
2627
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/reporting"
2728
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/access-control-server"
2829
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/administrator-commissioning-server"

0 commit comments

Comments
 (0)