Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[un-revert] Occupancy sensing updates for Matter 1.4 #34593

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

tcarmelveilleux
Copy link
Contributor

PR #34293 was merged by mistake with ESP32 break. This PR brings back the code to fix and land.

  • Updated occupancy sensing cluster SDK implementation based on XML changes(PR#34163) for Occupancy Sensing rev 5

  • Updated occupancy sensing cluster sample app(all-clusters-app) implementation to Rev 5 in the zap and matter file of all-clusters-app

  • Remove "occupancy-sensor-server" from "ClientDirectories" in zap_cluster_list.json to resolve a building issue found from rebuilding the chip-tool

…(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Copy link

semanticdiff-com bot commented Jul 29, 2024

Review changes with SemanticDiff.

Analyzed 1 of 9 files.

Filename Status
✔️ src/app/zap_cluster_list.json Analyzed
src/app/clusters/occupancy-sensor-server/occupancy-sensor-server.cpp Unsupported file format
src/app/clusters/occupancy-sensor-server/occupancy-sensor-server.h Unsupported file format
examples/light-switch-app/esp32/main/CMakeLists.txt Unsupported file format
examples/energy-management-app/esp32/main/CMakeLists.txt Unsupported file format
examples/all-clusters-app/linux/BUILD.gn Unsupported file format
examples/all-clusters-app/all-clusters-common/all-clusters-app.matter Unsupported file format
examples/all-clusters-app/all-clusters-common/all-clusters-app.zap Unsupported file format
examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp Unsupported file format

Copy link

github-actions bot commented Jul 29, 2024

PR #34593: Size comparison from 3d9ada2 to 6971f61

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 3d9ada2 6971f61 change % change
bl602 lighting-app bl602 FLASH 1276462 1276462 0 0.0
RAM 95576 95576 0 0.0
bl602+mfd FLASH 1290720 1290720 0 0.0
RAM 95728 95728 0 0.0
bl602+rpc FLASH 1315430 1315430 0 0.0
RAM 104000 104000 0 0.0
bl702 lighting-app bl702 FLASH 1097356 1097356 0 0.0
RAM 15257 15257 0 0.0
bl702+mfd FLASH 1108050 1108050 0 0.0
RAM 15401 15401 0 0.0
bl702+rpc FLASH 1187422 1187422 0 0.0
RAM 24253 24253 0 0.0
bl706-eth FLASH 880656 880656 0 0.0
RAM 27360 27360 0 0.0
bl706-wifi FLASH 1133608 1133608 0 0.0
RAM 14693 14693 0 0.0
bl702l lighting-app bl702l FLASH 1084254 1084254 0 0.0
RAM 21812 21812 0 0.0
bl702l+mfd FLASH 1095516 1095516 0 0.0
RAM 21964 21964 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 801924 801924 0 0.0
RAM 109428 109428 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117028 117028 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808652 808652 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 762416 762416 0 0.0
RAM 105448 105448 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747068 747068 0 0.0
RAM 105640 105640 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606674 606674 0 0.0
RAM 204580 204580 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652210 652210 0 0.0
RAM 204852 204852 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671001 671001 0 0.0
RAM 77892 77892 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 690861 690861 0 0.0
RAM 80524 80524 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 690861 690861 0 0.0
RAM 80524 80524 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 647797 647797 0 0.0
RAM 72960 72960 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609713 609713 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629341 629341 0 0.0
RAM 73436 73436 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629341 629341 0 0.0
RAM 73436 73436 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625409 625409 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 645117 645117 0 0.0
RAM 76452 76452 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 645117 645117 0 0.0
RAM 76452 76452 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593637 593637 0 0.0
RAM 67860 67860 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 929000 928992 -8 -0.0
RAM 134700 134700 0 0.0
lock-app BRD4338a FLASH 734716 734716 0 0.0
RAM 207988 207988 0 0.0
window-app BRD4187C FLASH 1014780 1014772 -8 -0.0
RAM 126636 126636 0 0.0
esp32 all-clusters-app c3devkit DRAM 91180 91212 32 0.0
FLASH 1484266 1485268 1002 0.1
IRAM 75570 75570 0 0.0
m5stack DRAM 117660 117692 32 0.0
FLASH 1553239 1554159 920 0.1
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710605 2710605 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 5911254 5917272 6018 0.1
RAM 500312 500544 232 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5315394 5315366 -28 -0.0
RAM 236592 236592 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4707196 4707196 0 0.0
RAM 214048 214048 0 0.0
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12337160 12337160 0 0.0
RAM 553522 553522 0 0.0
chip-tool-ipv6only arm64 unknown 20192 20192 0 0.0
FLASH 11035980 11035980 0 0.0
RAM 603240 603240 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11343261 11343261 0 0.0
RAM 550362 550362 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4463232 4463232 0 0.0
RAM 199248 199248 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5640753 5640737 -16 -0.0
RAM 225136 225136 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757986 4757986 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402452 4402452 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540598 4540598 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3000653 3000621 -32 -0.0
RAM 154760 154824 64 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259860 4259860 0 0.0
RAM 236368 236368 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5983453 5983453 0 0.0
RAM 578176 578176 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10549869 10549869 0 0.0
RAM 638984 638984 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503444 1503444 0 0.0
RAM 226728 226728 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 898960 899020 60 0.0
RAM 141757 141761 4 0.0
nrf7002dk_nrf5340_cpuapp FLASH 964548 964604 56 0.0
RAM 140861 140865 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 834276 834276 0 0.0
RAM 140612 140612 0 0.0
nxp contact k32w0+release FLASH 576084 576084 0 0.0
RAM 70112 70112 0 0.0
k32w1+release FLASH 591784 591784 0 0.0
RAM 74152 74152 0 0.0
light k32w0+release FLASH 611696 611696 0 0.0
RAM 69616 69616 0 0.0
k32w1+release FLASH 676528 676528 0 0.0
RAM 82928 82928 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1625044 1625108 64 0.0
RAM 209936 209944 8 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1535284 1535284 0 0.0
RAM 206728 206728 0 0.0
light cy8ckit_062s2_43012 FLASH 1462532 1462532 0 0.0
RAM 200000 200000 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459668 1459668 0 0.0
RAM 224344 224344 0 0.0
qpg lighting-app qpg6105+debug FLASH 654812 654812 0 0.0
RAM 104844 104844 0 0.0
lock-app qpg6105+debug FLASH 612264 612264 0 0.0
RAM 99328 99328 0 0.0
stm32 light STM32WB5MM-DK FLASH 477112 477112 0 0.0
RAM 144452 144452 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619000 619000 0 0.0
RAM 50664 50664 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 671138 671138 0 0.0
RAM 148088 148092 4 0.0
all-clusters-minimal-app tlsr9528a FLASH 767122 767122 0 0.0
RAM 110284 110284 0 0.0
bridge-app tlsr9258a FLASH 677616 677616 0 0.0
RAM 91320 91320 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620592 620592 0 0.0
RAM 50708 50708 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 706436 706436 0 0.0
RAM 74036 74036 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 619218 619218 0 0.0
RAM 144272 144272 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 805362 805362 0 0.0
RAM 99200 99200 0 0.0
lock-app-dfu tlsr9528a FLASH 652370 652370 0 0.0
RAM 66740 66740 0 0.0
ota-requestor-app tlsr9258a FLASH 695652 695652 0 0.0
RAM 91004 91004 0 0.0
pump-app-usb tlsr9518adk80d FLASH 629946 629946 0 0.0
RAM 55484 55484 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607548 607548 0 0.0
RAM 52728 52728 0 0.0
shell tlsr9518adk80d FLASH 466654 466654 0 0.0
RAM 68412 68412 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 627334 627334 0 0.0
RAM 52344 52344 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651370 651370 0 0.0
RAM 56364 56364 0 0.0
thermostat tlsr9518adk80d FLASH 626256 626256 0 0.0
RAM 53052 53052 0 0.0
window-covering tlsr9118bdk40d FLASH 521454 521454 0 0.0
RAM 97260 97260 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1674116 1674136 20 0.0
RAM 49636 49644 8 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16382014 16382014 0 0.0
RAM 7190464 7190464 0 0.0

…witch app.

This app does not actually use occupancy-sensor-server, which means that
ZAP-provided information the cluster server implementation needs is not
available.  And light-switch-app does not use occupancy sensor in any way.
@bzbarsky-apple
Copy link
Contributor

Fast-tracking, since assuming CI passes this is just a clone of #34293 (which had approvals), with a CI fix.

Copy link

github-actions bot commented Jul 29, 2024

PR #34593: Size comparison from 3d9ada2 to d534299

Increases above 0.2%:

platform target config section 3d9ada2 d534299 change % change
linux shell debug RAM 154760 155368 608 0.4
telink all-clusters-app tlsr9118bdk40d RAM 148088 149124 1036 0.7
lighting-app-ota-factory-data tlsr9118bdk40d RAM 144272 145276 1004 0.7
window-covering tlsr9118bdk40d RAM 97260 98264 1004 1.0
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 3d9ada2 d534299 change % change
bl602 lighting-app bl602 FLASH 1276462 1276462 0 0.0
RAM 95576 95576 0 0.0
bl602+mfd FLASH 1290720 1290720 0 0.0
RAM 95728 95728 0 0.0
bl602+rpc FLASH 1315430 1315430 0 0.0
RAM 104000 104000 0 0.0
bl702 lighting-app bl702 FLASH 1097356 1097356 0 0.0
RAM 15257 15257 0 0.0
bl702+mfd FLASH 1108050 1108050 0 0.0
RAM 15401 15401 0 0.0
bl702+rpc FLASH 1187422 1187422 0 0.0
RAM 24253 24253 0 0.0
bl706-eth FLASH 880656 880656 0 0.0
RAM 27360 27360 0 0.0
bl706-wifi FLASH 1133608 1133608 0 0.0
RAM 14693 14693 0 0.0
bl702l lighting-app bl702l FLASH 1084254 1084254 0 0.0
RAM 21812 21812 0 0.0
bl702l+mfd FLASH 1095516 1095516 0 0.0
RAM 21964 21964 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 801924 801924 0 0.0
RAM 109428 109428 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117028 117028 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808652 808652 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 762416 762416 0 0.0
RAM 105448 105448 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747068 747068 0 0.0
RAM 105640 105640 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606674 606674 0 0.0
RAM 204580 204580 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652210 652210 0 0.0
RAM 204852 204852 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671001 671001 0 0.0
RAM 77892 77892 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 690861 690861 0 0.0
RAM 80524 80524 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 690861 690861 0 0.0
RAM 80524 80524 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 647797 647797 0 0.0
RAM 72960 72960 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609713 609713 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629341 629341 0 0.0
RAM 73436 73436 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629341 629341 0 0.0
RAM 73436 73436 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625409 625409 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 645117 645117 0 0.0
RAM 76452 76452 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 645117 645117 0 0.0
RAM 76452 76452 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593637 593637 0 0.0
RAM 67860 67860 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 929000 928992 -8 -0.0
RAM 134700 134700 0 0.0
lock-app BRD4338a FLASH 734716 734716 0 0.0
RAM 207988 207988 0 0.0
window-app BRD4187C FLASH 1014780 1014772 -8 -0.0
RAM 126636 126636 0 0.0
esp32 all-clusters-app c3devkit DRAM 91180 91276 96 0.1
FLASH 1484266 1485590 1324 0.1
IRAM 75570 75570 0 0.0
m5stack DRAM 117660 117748 88 0.1
FLASH 1553239 1554487 1248 0.1
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710605 2710605 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 5911254 5919564 8310 0.1
RAM 500312 501248 936 0.2
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5315394 5315366 -28 -0.0
RAM 236592 236592 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4707196 4707196 0 0.0
RAM 214048 214048 0 0.0
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12337160 12337160 0 0.0
RAM 553522 553522 0 0.0
chip-tool-ipv6only arm64 unknown 20192 20192 0 0.0
FLASH 11035980 11035980 0 0.0
RAM 603240 603240 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11343261 11343261 0 0.0
RAM 550362 550362 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4463232 4463232 0 0.0
RAM 199248 199248 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5640753 5640737 -16 -0.0
RAM 225136 225136 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757986 4757986 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402452 4402452 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540598 4540598 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3000653 3000685 32 0.0
RAM 154760 155368 608 0.4
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259860 4259860 0 0.0
RAM 236368 236368 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5983453 5983453 0 0.0
RAM 578176 578176 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10549869 10549869 0 0.0
RAM 638984 638984 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503444 1503444 0 0.0
RAM 226728 226728 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 898960 899348 388 0.0
RAM 141757 141791 34 0.0
nrf7002dk_nrf5340_cpuapp FLASH 964548 964916 368 0.0
RAM 140861 140895 34 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 834276 834276 0 0.0
RAM 140612 140612 0 0.0
nxp contact k32w0+release FLASH 576084 576084 0 0.0
RAM 70112 70112 0 0.0
k32w1+release FLASH 591784 591784 0 0.0
RAM 74152 74152 0 0.0
light k32w0+release FLASH 611696 611696 0 0.0
RAM 69616 69616 0 0.0
k32w1+release FLASH 676528 676528 0 0.0
RAM 82928 82928 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1625044 1625420 376 0.0
RAM 209936 210000 64 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1535284 1535284 0 0.0
RAM 206728 206728 0 0.0
light cy8ckit_062s2_43012 FLASH 1462532 1462532 0 0.0
RAM 200000 200000 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459668 1459668 0 0.0
RAM 224344 224344 0 0.0
qpg lighting-app qpg6105+debug FLASH 654812 654812 0 0.0
RAM 104844 104844 0 0.0
lock-app qpg6105+debug FLASH 612264 612264 0 0.0
RAM 99328 99328 0 0.0
stm32 light STM32WB5MM-DK FLASH 477112 477112 0 0.0
RAM 144452 144452 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619000 619000 0 0.0
RAM 50664 50664 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 671138 671198 60 0.0
RAM 148088 149124 1036 0.7
all-clusters-minimal-app tlsr9528a FLASH 767122 767122 0 0.0
RAM 110284 110284 0 0.0
bridge-app tlsr9258a FLASH 677616 677616 0 0.0
RAM 91320 91320 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620592 620592 0 0.0
RAM 50708 50708 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 706436 706436 0 0.0
RAM 74036 74036 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 619218 619276 58 0.0
RAM 144272 145276 1004 0.7
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 805362 805362 0 0.0
RAM 99200 99200 0 0.0
lock-app-dfu tlsr9528a FLASH 652370 652370 0 0.0
RAM 66740 66740 0 0.0
ota-requestor-app tlsr9258a FLASH 695652 695652 0 0.0
RAM 91004 91004 0 0.0
pump-app-usb tlsr9518adk80d FLASH 629946 629946 0 0.0
RAM 55484 55484 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607548 607548 0 0.0
RAM 52728 52728 0 0.0
shell tlsr9518adk80d FLASH 466654 466654 0 0.0
RAM 68412 68412 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 627334 627334 0 0.0
RAM 52344 52344 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651370 651370 0 0.0
RAM 56364 56364 0 0.0
thermostat tlsr9518adk80d FLASH 626256 626256 0 0.0
RAM 53052 53052 0 0.0
window-covering tlsr9118bdk40d FLASH 521454 521510 56 0.0
RAM 97260 98264 1004 1.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1674116 1674464 348 0.0
RAM 49636 49700 64 0.1
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16382014 16382014 0 0.0
RAM 7190464 7190464 0 0.0

Copy link

github-actions bot commented Jul 29, 2024

PR #34593: Size comparison from 3d9ada2 to 4770b9f

Increases above 0.2%:

platform target config section 3d9ada2 4770b9f change % change
linux chip-tool debug unknown 5784 5832 48 0.8
shell debug RAM 154760 155368 608 0.4
telink all-clusters-app tlsr9118bdk40d RAM 148088 149124 1036 0.7
lighting-app-ota-factory-data tlsr9118bdk40d RAM 144272 145276 1004 0.7
window-covering tlsr9118bdk40d RAM 97260 98264 1004 1.0
tizen chip-tool-ubsan arm unknown 2388 2404 16 0.7
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 3d9ada2 4770b9f change % change
bl602 lighting-app bl602 FLASH 1276462 1276462 0 0.0
RAM 95576 95576 0 0.0
bl602+mfd FLASH 1290720 1290720 0 0.0
RAM 95728 95728 0 0.0
bl602+rpc FLASH 1315430 1315430 0 0.0
RAM 104000 104000 0 0.0
bl702 lighting-app bl702 FLASH 1097356 1097356 0 0.0
RAM 15257 15257 0 0.0
bl702+mfd FLASH 1108050 1108050 0 0.0
RAM 15401 15401 0 0.0
bl702+rpc FLASH 1187422 1187422 0 0.0
RAM 24253 24253 0 0.0
bl706-eth FLASH 880656 880656 0 0.0
RAM 27360 27360 0 0.0
bl706-wifi FLASH 1133608 1133608 0 0.0
RAM 14693 14693 0 0.0
bl702l lighting-app bl702l FLASH 1084254 1084254 0 0.0
RAM 21812 21812 0 0.0
bl702l+mfd FLASH 1095516 1095516 0 0.0
RAM 21964 21964 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 801924 801924 0 0.0
RAM 109428 109428 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117028 117028 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808652 808652 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 762416 762416 0 0.0
RAM 105448 105448 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747068 747068 0 0.0
RAM 105640 105640 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606674 606674 0 0.0
RAM 204580 204580 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652210 652210 0 0.0
RAM 204852 204852 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671001 671001 0 0.0
RAM 77892 77892 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 690861 690861 0 0.0
RAM 80524 80524 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 690861 690861 0 0.0
RAM 80524 80524 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 647797 647797 0 0.0
RAM 72960 72960 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609713 609713 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629341 629341 0 0.0
RAM 73436 73436 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629341 629341 0 0.0
RAM 73436 73436 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625409 625409 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 645117 645117 0 0.0
RAM 76452 76452 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 645117 645117 0 0.0
RAM 76452 76452 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593637 593637 0 0.0
RAM 67860 67860 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 929000 928992 -8 -0.0
RAM 134700 134700 0 0.0
lock-app BRD4338a FLASH 734716 734716 0 0.0
RAM 207988 207988 0 0.0
window-app BRD4187C FLASH 1014780 1014772 -8 -0.0
RAM 126636 126636 0 0.0
esp32 all-clusters-app c3devkit DRAM 91180 91276 96 0.1
FLASH 1484266 1485590 1324 0.1
IRAM 75570 75570 0 0.0
m5stack DRAM 117660 117748 88 0.1
FLASH 1553239 1554487 1248 0.1
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710605 2710605 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 5911254 5919564 8310 0.1
RAM 500312 501248 936 0.2
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5315394 5315366 -28 -0.0
RAM 236592 236592 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4707196 4707196 0 0.0
RAM 214048 214048 0 0.0
chip-tool debug unknown 5784 5832 48 0.8
FLASH 12337160 12347182 10022 0.1
RAM 553522 553626 104 0.0
chip-tool-ipv6only arm64 unknown 20192 20208 16 0.1
FLASH 11035980 11044732 8752 0.1
RAM 603240 603384 144 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11343261 11343357 96 0.0
RAM 550362 550394 32 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4463232 4463232 0 0.0
RAM 199248 199248 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5640753 5640737 -16 -0.0
RAM 225136 225136 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757986 4757986 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402452 4402452 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540598 4540598 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3000653 3000685 32 0.0
RAM 154760 155368 608 0.4
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259860 4259860 0 0.0
RAM 236368 236368 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5983453 5983549 96 0.0
RAM 578176 578176 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10549869 10550253 384 0.0
RAM 638984 638984 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503444 1503444 0 0.0
RAM 226728 226728 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 898960 899348 388 0.0
RAM 141757 141791 34 0.0
nrf7002dk_nrf5340_cpuapp FLASH 964548 964916 368 0.0
RAM 140861 140895 34 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 834276 834276 0 0.0
RAM 140612 140612 0 0.0
nxp contact k32w0+release FLASH 576084 576084 0 0.0
RAM 70112 70112 0 0.0
k32w1+release FLASH 591784 591784 0 0.0
RAM 74152 74152 0 0.0
light k32w0+release FLASH 611696 611696 0 0.0
RAM 69616 69616 0 0.0
k32w1+release FLASH 676528 676528 0 0.0
RAM 82928 82928 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1625044 1625420 376 0.0
RAM 209936 210000 64 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1535284 1535284 0 0.0
RAM 206728 206728 0 0.0
light cy8ckit_062s2_43012 FLASH 1462532 1462532 0 0.0
RAM 200000 200000 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459668 1459668 0 0.0
RAM 224344 224344 0 0.0
qpg lighting-app qpg6105+debug FLASH 654812 654812 0 0.0
RAM 104844 104844 0 0.0
lock-app qpg6105+debug FLASH 612264 612264 0 0.0
RAM 99328 99328 0 0.0
stm32 light STM32WB5MM-DK FLASH 477112 477112 0 0.0
RAM 144452 144452 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619000 619000 0 0.0
RAM 50664 50664 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 671138 671198 60 0.0
RAM 148088 149124 1036 0.7
all-clusters-minimal-app tlsr9528a FLASH 767122 767122 0 0.0
RAM 110284 110284 0 0.0
bridge-app tlsr9258a FLASH 677616 677616 0 0.0
RAM 91320 91320 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620592 620592 0 0.0
RAM 50708 50708 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 706436 706436 0 0.0
RAM 74036 74036 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 619218 619276 58 0.0
RAM 144272 145276 1004 0.7
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 805362 805362 0 0.0
RAM 99200 99200 0 0.0
lock-app-dfu tlsr9528a FLASH 652370 652370 0 0.0
RAM 66740 66740 0 0.0
ota-requestor-app tlsr9258a FLASH 695652 695652 0 0.0
RAM 91004 91004 0 0.0
pump-app-usb tlsr9518adk80d FLASH 629946 629946 0 0.0
RAM 55484 55484 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607548 607548 0 0.0
RAM 52728 52728 0 0.0
shell tlsr9518adk80d FLASH 466654 466654 0 0.0
RAM 68412 68412 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 627334 627334 0 0.0
RAM 52344 52344 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651370 651370 0 0.0
RAM 56364 56364 0 0.0
thermostat tlsr9518adk80d FLASH 626256 626256 0 0.0
RAM 53052 53052 0 0.0
window-covering tlsr9118bdk40d FLASH 521454 521510 56 0.0
RAM 97260 98264 1004 1.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1674116 1674464 348 0.0
RAM 49636 49700 64 0.1
chip-tool-ubsan arm unknown 2388 2404 16 0.7
FLASH 16382014 16397530 15516 0.1
RAM 7190464 7197224 6760 0.1

@mergify mergify bot merged commit 08dfc13 into project-chip:master Jul 30, 2024
69 checks passed
Comment on lines +31 to +33
static std::unique_ptr<OccupancySensingAttrAccess>
gAttrAccess[MATTER_DM_OCCUPANCY_SENSING_CLUSTER_SERVER_ENDPOINT_COUNT + CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT];

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OliverFan1 This should be mapped to the EndpointId and not the array index. If I have OccupancySensingCluster in endpoints 1, 2, and 5, the code will crash on endpoint 5.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be fixed in the follow-up PR #34658


void emberAfOccupancySensingClusterInitCallback(EndpointId endpointId)
{
VerifyOrDie(!gAttrAccess[endpointId]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's crashing for ESP over here because the array is mapped by the index and not by endpointId.

j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>

* Don't try to built occupancy-sensor-server as part of the ESP light-switch app.

This app does not actually use occupancy-sensor-server, which means that
ZAP-provided information the cluster server implementation needs is not
available.  And light-switch-app does not use occupancy sensor in any way.

* Don't try to built occupancy-sensor-server as part of the ESP energy-management-app.

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Oliver FAN <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>

* Don't try to built occupancy-sensor-server as part of the ESP light-switch app.

This app does not actually use occupancy-sensor-server, which means that
ZAP-provided information the cluster server implementation needs is not
available.  And light-switch-app does not use occupancy sensor in any way.

* Don't try to built occupancy-sensor-server as part of the ESP energy-management-app.

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Oliver FAN <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants