Skip to content

Commit

Permalink
Merge branch 'master' into drlk-2_2-2_3-2_12-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhees-cae committed Aug 10, 2023
2 parents 3d7bf64 + 95e3d94 commit b9afdc0
Show file tree
Hide file tree
Showing 772 changed files with 76,471 additions and 73,291 deletions.
1 change: 1 addition & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ blocklist
blockquote
bluetoothd
bluez
BOOL
BooleanState
bootable
Bootloader
Expand Down
7 changes: 6 additions & 1 deletion .github/actions/bootstrap/action.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Bootstrap
description: Bootstrap
inputs:
platform:
description: "Platform name"
required: false
default: none
runs:
using: "composite"
steps:
- name: Bootstrap
shell: bash
run: bash scripts/bootstrap.sh
run: bash scripts/bootstrap.sh -p all,${{ inputs.platform }}
2 changes: 2 additions & 0 deletions .github/actions/checkout-submodules-and-bootstrap/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ runs:
uses: ./.github/actions/bootstrap-cache
- name: Bootstrap
uses: ./.github/actions/bootstrap
with:
platform: ${{ inputs.platform }}
- name: Upload Bootstrap Logs
uses: ./.github/actions/upload-bootstrap-logs
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples-ameba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-ameba:1
image: ghcr.io/project-chip/chip-build-ameba:4
options: --user root

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd4187c-thermostat-openthread_mtd \
--target efr32-brd4187c-switch-sed-shell-use_ot_coap_lib \
--target efr32-brd4187c-switch-shell-use_ot_coap_lib \
--target efr32-brd4187c-unit-test \
build \
--copy-artifacts-to out/artifacts \
Expand All @@ -81,7 +81,7 @@ jobs:
--enable-flashbundle \
--target efr32-brd4187c-light-use_ot_lib \
--target efr32-brd4187c-pump \
--target efr32-brd4187c-lock-rpc-shell-enable_heap_monitoring \
--target efr32-brd4187c-lock-shell-enable_heap_monitoring \
build \
--copy-artifacts-to out/artifacts \
"
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,15 @@ jobs:
esp32 c3devkit all-clusters-app \
example_binaries/esp32-build/chip-all-clusters-app.elf \
/tmp/bloat_reports/
- name: Build example Pigweed App
run: scripts/examples/esp_example.sh pigweed-app sdkconfig.defaults
- name: Build example Lighting App
run: scripts/examples/esp_example.sh lighting-app sdkconfig.defaults
- name: Build example Lock App
run: scripts/examples/esp_example.sh lock-app sdkconfig.defaults

- name: Build example Lighting App (Target:ESP32H2)
run: scripts/examples/esp_example.sh lighting-app sdkconfig.defaults.esp32h2

- name: Build example Lock App (Target:ESP32C6)
run: scripts/examples/esp_example.sh lock-app sdkconfig.defaults.esp32c6

- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
Expand Down Expand Up @@ -156,3 +159,6 @@ jobs:

- name: Build example OTA Provider App
run: scripts/examples/esp_example.sh ota-provider-app sdkconfig.defaults

- name: Build example Light Switch App (Target:ESP32C3)
run: scripts/examples/esp_example.sh light-switch-app sdkconfig.defaults.esp32c3
2 changes: 1 addition & 1 deletion .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-k32w:1
image: ghcr.io/project-chip/chip-build-k32w:5
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/minimal-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap

- name: Checkout submodules # but don't bootstrap!
uses: ./.github/actions/checkout-submodules
with:
platform: linux

- name: Configure and build All Clusters App
run: |
CC=gcc CXX=g++ scripts/configure --project=examples/all-clusters-app/linux && ./ninja-build
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ jobs:
- name: Build Python REPL and example apps
run: |
scripts/run_in_build_env.sh './scripts/build_python.sh --install_virtual_env out/venv --extra_packages "mobly"'
scripts/run_in_build_env.sh './scripts/build_python.sh --install_virtual_env out/venv'
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test \
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/zap_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: linux

# Java formatting requires a newer java to run ktfmt
# TODO: this should be eventually inside Docker files
- name: Update java
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -fy --fix-missing openjdk-17-jre
- name: Generate all
run: ./scripts/run_in_build_env.sh scripts/tools/zap_regen_all.py
- name: Ensure git works in current working directory
Expand Down
8 changes: 8 additions & 0 deletions config/esp32/components/chip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,18 @@ if(CONFIG_DISABLE_IPV4)
chip_gn_arg_append("chip_inet_config_enable_ipv4" "false")
endif()

if(CONFIG_DISABLE_READ_CLIENT)
chip_gn_arg_append("chip_enable_read_client" "false")
endif()

if(CHIP_CODEGEN_PREGEN_DIR)
chip_gn_arg_append("chip_code_pre_generated_directory" "\"${CHIP_CODEGEN_PREGEN_DIR}\"")
endif()

if(CONFIG_ENABLE_ICD_SERVER)
chip_gn_arg_append("chip_enable_icd_server" "true")
endif()

if(CONFIG_ENABLE_PW_RPC)
string(APPEND chip_gn_args "import(\"//build_overrides/pigweed.gni\")\n")
chip_gn_arg_append("remove_default_configs" "[\"//third_party/connectedhomeip/third_party/pigweed/repo/pw_build:toolchain_cpp_standard\"]")
Expand Down
64 changes: 31 additions & 33 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ menu "CHIP Core"
help
Matter spec is based on IPv6 communication only. Enabling this option may save some flash/ram.

config DISABLE_READ_CLIENT
bool "Disable read client in Interaction Model"
default n
help
Some device types don't require the read client. Enabling this option may save some flash/ram.

config BUILD_CHIP_TESTS
bool "Build CHIP tests"
default n
Expand Down Expand Up @@ -286,6 +292,31 @@ menu "CHIP Device Layer"
help
Enables or Disables the support for Commissionable Device Type.

config ENABLE_ICD_SERVER
bool "Enable ICD server"
depends on OPENTHREAD_MTD
default n
help
Enables or Disables ICD server

config ICD_SLOW_POLL_INTERVAL
int "ICD Slow Polling Interval"
depends on ENABLE_ICD_SERVER
default 5000
help
The value defines the fastest frequency at which the device will typically receive
messages in Idle Mode. The Slow Polling interval MAY be the same as the Idle Mode
Interval.

config ICD_FAST_POLL_INTERVAL
int "ICD Fast Polling Interval"
depends on ENABLE_ICD_SERVER
default 200
help
Fast Polling defines the fastest frequency at which the device can receive messages
in Active Mode. The Fast Polling interval SHALL be smaller than the Active Mode
Interval.

config ENABLE_BG_EVENT_PROCESSING
bool "Enable Background event processing"
default n
Expand Down Expand Up @@ -429,39 +460,6 @@ menu "CHIP Device Layer"
The amount of time (in milliseconds) to wait for Internet connectivity to be established on
the device's WiFi station interface during a Network Provisioning TestConnectivity operation.

choice WIFI_POWER_SAVE_MODE
prompt "WiFi power-saving mode"
default WIFI_POWER_SAVE_MIN
depends on ENABLE_WIFI_STATION && !ENABLE_WIFI_AP
help
The Modem-sleep mode which refers to the legacy power-saving mode in the IEEE 802.11 protocol.

config WIFI_POWER_SAVE_MIN
bool "Minimal power-saving mode"
help
In minimum power-saving mode, station wakes up every DTIM to receive beacon.

config WIFI_POWER_SAVE_MAX
bool "Maximum power-saving mode"
help
In maximum power-saving mode, station wakes up in every listen interval to receive beacon.
Listen interval can be configured by calling API 'esp_wifi_set_config()' before connecting
to AP.

config WIFI_POWER_SAVE_NONE
bool "No power-saving"
help
No power save

endchoice

config WIFI_PS_LISTEN_INTERVAL
int "Listen interval for maximum power-saving mode"
depends on WIFI_POWER_SAVE_MAX
default 3
help
Interval for station to listen to beacon from AP. The unit of listen interval is one beacon interval.

endmenu

menu "WiFi AP Options"
Expand Down
8 changes: 8 additions & 0 deletions config/telink/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,11 @@ config CHIP_MAX_PREFERRED_SUBSCRIPTION_REPORT_INTERVAL
the initiator device to detect the publisher absence reasonably fast due to not sending
the reports too rarely. The current algorithm is to select bigger value from the one
requested by the initiator and the one preferred by the publisher.

config CHIP_ENABLE_POWER_ON_FACTORY_RESET
bool "Enable power on factory reset sequence"
default n
help
Enable power on factory reset sequence. If device power triggered off during
first 5 seconds after power on and this sequence repeated 5 times - factory
reset will be involved.
9 changes: 9 additions & 0 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
The Matter SDK provides examples of Matter devices for different development
platforms.

## Air Quality Sensor example

```{toctree}
:glob:
:maxdepth: 1
air-quality-sensor-app/**/README
```

## All clusters example

```{toctree}
Expand Down
21 changes: 11 additions & 10 deletions docs/guides/esp32/setup_idf_chip.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@ step.
[v5.1 release](https://github.com/espressif/esp-idf/releases/tag/v5.1)

```
$ git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git
$ cd esp-idf
$ ./install.sh
git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh
```
- To update an existing esp-idf toolchain to v5.1:
```
$ cd path/to/esp-idf
$ git fetch origin
$ git checkout v5.1
$ git reset --hard origin/v5.1
$ git submodule update --recursive --init
$ git clean -fdx
$ ./install.sh
cd path/to/esp-idf
git fetch --depth 1 origin v5.1
git reset --hard FETCH_HEAD
git submodule update --depth 1 --recursive --init
# -ff is for cleaning untracked files as well as submodules
git clean -ffdx
./install.sh
```
## Setup Matter environment
Expand Down
27 changes: 9 additions & 18 deletions ...ication/Test_TC_FLABEL_3_1_Simulated.yaml → ...or-app/air-quality-sensor-common/BUILD.gn
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Project CHIP Authors
# Copyright (c) 2020 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.
Expand All @@ -12,22 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: 98.3.1. [TC-FLABEL-1.1] Global Attributes with DUT as Server
import("//build_overrides/chip.gni")
import("${chip_root}/src/app/chip_data_model.gni")

PICS:
- FLABEL.C
chip_data_model("air-quality-sensor-common") {
zap_file = "air-quality-sensor-app.zap"

config:
nodeId: 0x12344321
cluster: "Fixed Label"
endpoint: 1

tests:
#- label: "Wait for the device to be commissioned"
# cluster: "DelayCommands"
# command: "WaitForCommissioning"

- label: "DUT reads LabelList from the TH"
PICS: FLABEL.C.A0000
wait: "readAttribute"
attribute: "LabelList"
zap_pregenerated_dir =
"${chip_root}/zzz_generated/air-quality-sensor-app/zap-generated"
is_server = true
}
Loading

0 comments on commit b9afdc0

Please sign in to comment.