Skip to content

Commit bddae82

Browse files
Merge branch 'master' into feature/increase_kvs_entries
2 parents 0ac8eed + 83d345e commit bddae82

File tree

87 files changed

+10821
-9437
lines changed

Some content is hidden

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

87 files changed

+10821
-9437
lines changed

.devcontainer/Dockerfile

+22-16
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,19 @@ ARG USER_UID=1000
2424
ARG USER_GID=$USER_UID
2525
ENV LANG en_US.utf8
2626

27-
# these are installed for terminal/dev convenience. If more tooling for build is required, please
28-
# add them to chip-build (in integrations/docker/images/chip-build)
27+
28+
# These are installed for terminal/dev convenience. If more tooling for build is required, please
29+
# add them to chip-build (in integrations/docker/images/chip-build).
2930
RUN apt-get update \
3031
&& apt-get install -y locales \
3132
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
32-
&& apt-get -fy install git vim emacs sudo \
33+
&& apt-get -fy install vim emacs sudo \
3334
apt-utils dialog zsh \
34-
iproute2 procps lsb-release \
35+
lsb-release \
3536
bash-completion \
36-
build-essential cmake cppcheck valgrind \
37-
wget curl telnet \
37+
valgrind \
3838
docker.io \
39-
iputils-ping net-tools \
40-
libncurses5 \
41-
libncursesw5 \
42-
libpython2.7 \
39+
iputils-ping \
4340
&& :
4441

4542
RUN groupadd -g $USER_GID $USERNAME \
@@ -55,13 +52,22 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
5552
RUN mkdir -p /opt/sdk/sdks/ \
5653
&& chown -R $USERNAME:$USERNAME \
5754
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
58-
/opt/NordicSemiconductor/nrfconnect/ `# $USERNAME needs to own west configuration to build nRF Connect examples` \
59-
$IDF_PATH `# $USERNAME needs to own the esp-idf and tools for the examples to build` \
55+
$ANDROID_HOME \
56+
$IDF_TOOLS_PATH \
57+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
58+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
59+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
60+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
61+
&& chmod -R +x \
62+
$ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
63+
&& chmod -R +w \
6064
$IDF_TOOLS_PATH \
61-
$SYSROOT_AARCH64 `# allow read/write access to header and libraries` \
62-
$ANDROID_HOME `# allow licenses to be accepted` \
63-
$AMEBA_PATH `# AmebaD requires access to change build_info.h` \
64-
$IMX_SDK_ROOT \
65+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
66+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
67+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
68+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
69+
# Safe directory is preffered over chown.
70+
&& git config --global --add safe.directory "*" \
6571
&& :
6672

6773
# Fix Tizen SDK paths for new user

.devcontainer/devcontainer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"mounts": [
1515
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
1616
],
17-
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 22",
17+
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
1818
"image": "matter-dev-environment:local",
1919
"remoteUser": "vscode",
20+
"containerEnv": {
21+
"PW_ENVIRONMENT_ROOT": "${containerWorkspaceFolder}/.environment-vscode"
22+
},
2023
"customizations": {
2124
"vscode": {
2225
// Add the IDs of extensions you want installed when the container is created in the array below.

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ out/
1515
/src/darwin/Framework/build/
1616

1717
# Pigweed Environment
18-
.environment/
18+
.environment*/
1919
build_overrides/pigweed_environment.gni
2020

2121
# Temporary Directories
@@ -84,4 +84,3 @@ examples/*/esp32/dependencies.lock
8484

8585
# jupyter temporary files
8686
.ipynb_checkpoints
87-

config/esp32/components/chip/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,25 @@ if (CONFIG_CHIP_CONFIG_IM_PRETTY_PRINT)
8787
endif()
8888

8989
# Config the chip log level by IDF menuconfig
90-
if (CONFIG_LOG_DEFAULT_LEVEL GREATER_EQUAL 1)
90+
if (CONFIG_CHIP_LOG_DEFAULT_LEVEL GREATER_EQUAL 1)
9191
chip_gn_arg_bool ("chip_error_logging" "true")
9292
else()
9393
chip_gn_arg_bool ("chip_error_logging" "false")
9494
endif()
9595

96-
if (CONFIG_LOG_DEFAULT_LEVEL GREATER_EQUAL 3)
96+
if (CONFIG_CHIP_LOG_DEFAULT_LEVEL GREATER_EQUAL 3)
9797
chip_gn_arg_bool ("chip_progress_logging" "true")
9898
else()
9999
chip_gn_arg_bool ("chip_progress_logging" "false")
100100
endif()
101101

102-
if (CONFIG_LOG_DEFAULT_LEVEL GREATER_EQUAL 4)
102+
if (CONFIG_CHIP_LOG_DEFAULT_LEVEL GREATER_EQUAL 4)
103103
chip_gn_arg_bool ("chip_detail_logging" "true")
104104
else()
105105
chip_gn_arg_bool ("chip_detail_logging" "false")
106106
endif()
107107

108-
if (CONFIG_LOG_DEFAULT_LEVEL GREATER_EQUAL 5)
108+
if (CONFIG_CHIP_LOG_DEFAULT_LEVEL GREATER_EQUAL 5)
109109
chip_gn_arg_bool ("chip_automation_logging" "true")
110110
else()
111111
chip_gn_arg_bool ("chip_automation_logging" "false")

config/esp32/components/chip/Kconfig

+30
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,36 @@ menu "CHIP Device Layer"
11721172
To see detailed logging please set default log level to Debug.
11731173
(Component config --> Log output --> Default log verbosity --> Debug)
11741174

1175+
choice CHIP_LOG_DEFAULT_LEVEL
1176+
bool "CHIP default log verbosity"
1177+
default CHIP_LOG_DEFAULT_LEVEL_EQUALS_LOG_DEFAULT_LEVEL
1178+
help
1179+
Default log level for CHIP logs. Note that CHIP_LOG_DEFAULT_LEVEL can only be less than or equal to LOG_DEFAULT_LEVEL.
1180+
1181+
config CHIP_LOG_DEFAULT_LEVEL_EQUALS_LOG_DEFAULT_LEVEL
1182+
bool "Same as default log level"
1183+
config CHIP_LOG_DEFAULT_LEVEL_NONE
1184+
bool "CHIP logging disabled"
1185+
config CHIP_LOG_DEFAULT_LEVEL_ERROR
1186+
bool "Enable Error Logs"
1187+
config CHIP_LOG_DEFAULT_LEVEL_PROGRESS
1188+
bool "Enable Progress Logs"
1189+
config CHIP_LOG_DEFAULT_LEVEL_DETAIL
1190+
bool "Enable Detail Logs"
1191+
config CHIP_LOG_DEFAULT_LEVEL_AUTOMATION
1192+
bool "Enable Automation Logs"
1193+
endchoice
1194+
1195+
config CHIP_LOG_DEFAULT_LEVEL
1196+
int
1197+
range 0 LOG_DEFAULT_LEVEL
1198+
default LOG_DEFAULT_LEVEL if CHIP_LOG_DEFAULT_LEVEL_EQUALS_LOG_DEFAULT_LEVEL
1199+
default 0 if CHIP_LOG_DEFAULT_LEVEL_NONE
1200+
default 1 if CHIP_LOG_DEFAULT_LEVEL_ERROR
1201+
default 3 if CHIP_LOG_DEFAULT_LEVEL_PROGRESS
1202+
default 4 if CHIP_LOG_DEFAULT_LEVEL_DETAIL
1203+
default 5 if CHIP_LOG_DEFAULT_LEVEL_AUTOMATION
1204+
11751205
endmenu
11761206

11771207
config CHIP_ENABLE_BDX_LOG_TRANSFER

examples/all-clusters-app/all-clusters-common/all-clusters-app.matter

+108
Original file line numberDiff line numberDiff line change
@@ -2985,6 +2985,16 @@ cluster OvenMode = 73 {
29852985
revision 1;
29862986

29872987
enum ModeTag : enum16 {
2988+
kAuto = 0;
2989+
kQuick = 1;
2990+
kQuiet = 2;
2991+
kLowNoise = 3;
2992+
kLowEnergy = 4;
2993+
kVacation = 5;
2994+
kMin = 6;
2995+
kMax = 7;
2996+
kNight = 8;
2997+
kDay = 9;
29882998
kBake = 16384;
29892999
kConvection = 16385;
29903000
kGrill = 16386;
@@ -3106,6 +3116,16 @@ cluster LaundryWasherMode = 81 {
31063116
revision 2;
31073117

31083118
enum ModeTag : enum16 {
3119+
kAuto = 0;
3120+
kQuick = 1;
3121+
kQuiet = 2;
3122+
kLowNoise = 3;
3123+
kLowEnergy = 4;
3124+
kVacation = 5;
3125+
kMin = 6;
3126+
kMax = 7;
3127+
kNight = 8;
3128+
kDay = 9;
31093129
kNormal = 16384;
31103130
kDelicate = 16385;
31113131
kHeavy = 16386;
@@ -3157,6 +3177,16 @@ cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 {
31573177
revision 2;
31583178

31593179
enum ModeTag : enum16 {
3180+
kAuto = 0;
3181+
kQuick = 1;
3182+
kQuiet = 2;
3183+
kLowNoise = 3;
3184+
kLowEnergy = 4;
3185+
kVacation = 5;
3186+
kMin = 6;
3187+
kMax = 7;
3188+
kNight = 8;
3189+
kDay = 9;
31603190
kRapidCool = 16384;
31613191
kRapidFreeze = 16385;
31623192
}
@@ -3234,6 +3264,16 @@ cluster RvcRunMode = 84 {
32343264
revision 3;
32353265

32363266
enum ModeTag : enum16 {
3267+
kAuto = 0;
3268+
kQuick = 1;
3269+
kQuiet = 2;
3270+
kLowNoise = 3;
3271+
kLowEnergy = 4;
3272+
kVacation = 5;
3273+
kMin = 6;
3274+
kMax = 7;
3275+
kNight = 8;
3276+
kDay = 9;
32373277
kIdle = 16384;
32383278
kCleaning = 16385;
32393279
kMapping = 16386;
@@ -3293,6 +3333,16 @@ cluster RvcCleanMode = 85 {
32933333
revision 3;
32943334

32953335
enum ModeTag : enum16 {
3336+
kAuto = 0;
3337+
kQuick = 1;
3338+
kQuiet = 2;
3339+
kLowNoise = 3;
3340+
kLowEnergy = 4;
3341+
kVacation = 5;
3342+
kMin = 6;
3343+
kMax = 7;
3344+
kNight = 8;
3345+
kDay = 9;
32963346
kDeepClean = 16384;
32973347
kVacuum = 16385;
32983348
kMop = 16386;
@@ -3403,6 +3453,16 @@ cluster DishwasherMode = 89 {
34033453
revision 2;
34043454

34053455
enum ModeTag : enum16 {
3456+
kAuto = 0;
3457+
kQuick = 1;
3458+
kQuiet = 2;
3459+
kLowNoise = 3;
3460+
kLowEnergy = 4;
3461+
kVacation = 5;
3462+
kMin = 6;
3463+
kMax = 7;
3464+
kNight = 8;
3465+
kDay = 9;
34063466
kNormal = 16384;
34073467
kHeavy = 16385;
34083468
kLight = 16386;
@@ -3644,6 +3704,16 @@ cluster MicrowaveOvenMode = 94 {
36443704
revision 1;
36453705

36463706
enum ModeTag : enum16 {
3707+
kAuto = 0;
3708+
kQuick = 1;
3709+
kQuiet = 2;
3710+
kLowNoise = 3;
3711+
kLowEnergy = 4;
3712+
kVacation = 5;
3713+
kMin = 6;
3714+
kMax = 7;
3715+
kNight = 8;
3716+
kDay = 9;
36473717
kNormal = 16384;
36483718
kDefrost = 16385;
36493719
}
@@ -3744,6 +3814,10 @@ cluster RvcOperationalState = 97 {
37443814
revision 1;
37453815

37463816
enum ErrorStateEnum : enum8 {
3817+
kNoError = 0;
3818+
kUnableToStartOrResume = 1;
3819+
kUnableToCompleteOperation = 2;
3820+
kCommandInvalidInState = 3;
37473821
kFailedToFindChargingDock = 64;
37483822
kStuck = 65;
37493823
kDustBinMissing = 66;
@@ -3755,6 +3829,10 @@ cluster RvcOperationalState = 97 {
37553829
}
37563830

37573831
enum OperationalStateEnum : enum8 {
3832+
kStopped = 0;
3833+
kRunning = 1;
3834+
kPaused = 2;
3835+
kError = 3;
37583836
kSeekingCharger = 64;
37593837
kCharging = 65;
37603838
kDocked = 66;
@@ -4903,6 +4981,16 @@ cluster EnergyEvseMode = 157 {
49034981
revision 1;
49044982

49054983
enum ModeTag : enum16 {
4984+
kAuto = 0;
4985+
kQuick = 1;
4986+
kQuiet = 2;
4987+
kLowNoise = 3;
4988+
kLowEnergy = 4;
4989+
kVacation = 5;
4990+
kMin = 6;
4991+
kMax = 7;
4992+
kNight = 8;
4993+
kDay = 9;
49064994
kManual = 16384;
49074995
kTimeOfUse = 16385;
49084996
kSolarCharging = 16386;
@@ -4953,6 +5041,16 @@ cluster WaterHeaterMode = 158 {
49535041
revision 1;
49545042

49555043
enum ModeTag : enum16 {
5044+
kAuto = 0;
5045+
kQuick = 1;
5046+
kQuiet = 2;
5047+
kLowNoise = 3;
5048+
kLowEnergy = 4;
5049+
kVacation = 5;
5050+
kMin = 6;
5051+
kMax = 7;
5052+
kNight = 8;
5053+
kDay = 9;
49565054
kOff = 16384;
49575055
kManual = 16385;
49585056
kTimed = 16386;
@@ -5003,6 +5101,16 @@ provisional cluster DeviceEnergyManagementMode = 159 {
50035101
revision 1;
50045102

50055103
enum ModeTag : enum16 {
5104+
kAuto = 0;
5105+
kQuick = 1;
5106+
kQuiet = 2;
5107+
kLowNoise = 3;
5108+
kLowEnergy = 4;
5109+
kVacation = 5;
5110+
kMin = 6;
5111+
kMax = 7;
5112+
kNight = 8;
5113+
kDay = 9;
50065114
kNoOptimization = 16384;
50075115
kDeviceOptimization = 16385;
50085116
kLocalOptimization = 16386;

0 commit comments

Comments
 (0)