From 31156c489865c176b7bbce16d59f2bbc12304d63 Mon Sep 17 00:00:00 2001 From: Praveen Chandran Date: Wed, 1 Dec 2021 09:35:03 -0800 Subject: [PATCH 01/64] Fix IPv6 local link address resolve issue with LWIP latest version (#12396) --- .github/workflows/examples-infineon.yaml | 1 + examples/lighting-app/p6/README.md | 4 ++-- src/inet/IPAddress.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index 3c709c3354aa0b..3a3d4309cffb04 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -88,3 +88,4 @@ jobs: path: | out/infineon-p6-lock/p6-default-lock-app-sizes.json out/infineon-p6-all-clusters/p6-default-all-clusters-app-sizes.json + out/infineon-p6-light/p6-default-light-app-sizes.json diff --git a/examples/lighting-app/p6/README.md b/examples/lighting-app/p6/README.md index 3ef67d0988b81f..89c8c38b50b060 100644 --- a/examples/lighting-app/p6/README.md +++ b/examples/lighting-app/p6/README.md @@ -125,7 +125,7 @@ Once P6 is up and running, we need to set up a device controller on Raspberry Pi - Resolve DNS-SD name and update address of the node in the device controller. - - chip-device-ctrl > resolve 0 1234 + - chip-device-ctrl > resolve 1234 @@ -153,4 +153,4 @@ commands. These power cycle the BlueTooth hardware and disable BR/EDR mode. This button is configured with `APP_LIGHT_BUTTON` in `include/AppConfig.h`. Press `USER_BTN1` on the board to toggle between Light ON and OFF states. Light ON and OFF can be observed with 'LED9' on the board. This LED is - configured with `LIGHT_STATE_LED` in `include/AppConfig.h`. + configured with `LIGHT_LED` in `include/AppConfig.h`. diff --git a/src/inet/IPAddress.cpp b/src/inet/IPAddress.cpp index dc65dce50014bb..cbc1c8d4b08f74 100644 --- a/src/inet/IPAddress.cpp +++ b/src/inet/IPAddress.cpp @@ -177,7 +177,7 @@ lwip_ip_addr_type IPAddress::ToLwIPAddrType(IPAddressType typ) ip6_addr_t IPAddress::ToIPv6() const { - ip6_addr_t ipAddr; + ip6_addr_t ipAddr = { 0 }; static_assert(sizeof(ipAddr.addr) == sizeof(Addr), "ip6_addr_t size mismatch"); memcpy(&ipAddr.addr, Addr, sizeof(ipAddr.addr)); return ipAddr; From 53a5d1ed36c483304ae1f4b5b82dac7a16d0653c Mon Sep 17 00:00:00 2001 From: rgoliver Date: Wed, 1 Dec 2021 12:59:29 -0500 Subject: [PATCH 02/64] Update Pigweed 53f260084d0 (#12336) --- config/mbed/CMakeLists.txt | 1 + examples/common/pigweed/mbed/Rpc.cpp | 2 +- .../common/pigweed/rpc_console/py/BUILD.gn | 7 +++--- .../common/pigweed/rpc_services/Attributes.h | 4 ++-- examples/common/pigweed/rpc_services/Button.h | 2 +- examples/common/pigweed/rpc_services/Device.h | 12 +++++----- .../common/pigweed/rpc_services/Lighting.h | 4 ++-- .../common/pigweed/rpc_services/Locking.h | 4 ++-- .../ipv6only-app/esp32/include/wifi_service.h | 22 +++++++++---------- .../ipv6only-app/esp32/main/wifi_service.cpp | 4 ++-- examples/platform/efr32/Rpc.cpp | 4 ++-- examples/platform/esp32/Rpc.cpp | 4 ++-- examples/platform/nrfconnect/Rpc.cpp | 4 ++-- src/test_driver/efr32/py/BUILD.gn | 6 ++--- src/test_driver/efr32/src/main.cpp | 2 +- third_party/pigweed/repo | 2 +- 16 files changed, 42 insertions(+), 42 deletions(-) diff --git a/config/mbed/CMakeLists.txt b/config/mbed/CMakeLists.txt index b6bf30cfe9453b..b3e362e6ece434 100644 --- a/config/mbed/CMakeLists.txt +++ b/config/mbed/CMakeLists.txt @@ -371,6 +371,7 @@ target_include_directories(${APP_TARGET} PRIVATE ${PIGWEED_ROOT}/pw_log_basic/public_overrides ${PIGWEED_ROOT}/pw_span/public_overrides ${PIGWEED_ROOT}/pw_span/public + ${PIGWEED_ROOT}/pw_sync/public ${PIGWEED_ROOT}/pw_polyfill/public ${PIGWEED_ROOT}/pw_polyfill/standard_library_public ${PIGWEED_ROOT}/pw_polyfill/public_overrides diff --git a/examples/common/pigweed/mbed/Rpc.cpp b/examples/common/pigweed/mbed/Rpc.cpp index 4f9ccde46beecc..e16c3afc816673 100644 --- a/examples/common/pigweed/mbed/Rpc.cpp +++ b/examples/common/pigweed/mbed/Rpc.cpp @@ -58,7 +58,7 @@ namespace rpc { class MbedButton final : public Button { public: - pw::Status Event(ServerContext &, const chip_rpc_ButtonEvent & request, pw_protobuf_Empty & response) + pw::Status Event(const chip_rpc_ButtonEvent & request, pw_protobuf_Empty & response) { GetAppTask().ButtonEventHandler(request.idx, request.pushed); return pw::OkStatus(); diff --git a/examples/common/pigweed/rpc_console/py/BUILD.gn b/examples/common/pigweed/rpc_console/py/BUILD.gn index a9fa6b5797b58e..a7d8ec88ca63c5 100644 --- a/examples/common/pigweed/rpc_console/py/BUILD.gn +++ b/examples/common/pigweed/rpc_console/py/BUILD.gn @@ -15,8 +15,8 @@ import("//build_overrides/chip.gni") import("//build_overrides/pigweed.gni") -import("$dir_pw_build/mirror_tree.gni") import("$dir_pw_build/python.gni") +import("$dir_pw_build/python_dist.gni") import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni") pw_python_package("chip_rpc") { @@ -46,8 +46,7 @@ pw_python_package("chip_rpc") { ] } -pw_mirror_tree("chip_rpc_wheel") { - path_data_keys = [ "pw_python_package_wheels" ] - deps = [ ":chip_rpc.wheel" ] +pw_python_wheels("chip_rpc_wheel") { + packages = [ ":chip_rpc" ] directory = "$root_out_dir/chip_rpc_console_wheels" } diff --git a/examples/common/pigweed/rpc_services/Attributes.h b/examples/common/pigweed/rpc_services/Attributes.h index 6b48fb96f6c62a..93b26f809dd543 100644 --- a/examples/common/pigweed/rpc_services/Attributes.h +++ b/examples/common/pigweed/rpc_services/Attributes.h @@ -32,7 +32,7 @@ namespace rpc { class Attributes : public generated::Attributes { public: - ::pw::Status Write(ServerContext &, const chip_rpc_AttributeWrite & request, pw_protobuf_Empty & response) + ::pw::Status Write(const chip_rpc_AttributeWrite & request, pw_protobuf_Empty & response) { const void * data; switch (request.data.which_data) @@ -70,7 +70,7 @@ class Attributes : public generated::Attributes return pw::OkStatus(); } - ::pw::Status Read(ServerContext &, const chip_rpc_AttributeMetadata & request, chip_rpc_AttributeData & response) + ::pw::Status Read(const chip_rpc_AttributeMetadata & request, chip_rpc_AttributeData & response) { void * data; size_t size = 0; diff --git a/examples/common/pigweed/rpc_services/Button.h b/examples/common/pigweed/rpc_services/Button.h index 87531e2035cb73..924783a5d6f86c 100644 --- a/examples/common/pigweed/rpc_services/Button.h +++ b/examples/common/pigweed/rpc_services/Button.h @@ -28,7 +28,7 @@ class Button : public generated::Button