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

For CFFI, remove variadic arguments #31159

Merged

Conversation

tehampson
Copy link
Contributor

Fixes: #30986

Removing variadic arguments will make creating pychip_CommandSender_TestOnlySendBatchCommands that will share common implementation with pychip_CommandSender_SendBatchCommands easier to implement and maintain.

Additionally this seems like a more clean way to pass these arguments to c++

Arguable we could follow precedent with passing structures where python side uses construct and we have a packed structure on the c++ side. But I recently discovered that we can share a common struct over CFFI using ctypes.Structure. This seems easier and is a more sane way to build and pass the structure through.

Eventually we should go back and fix all structures to use this, but for now I want this PR to focus on removal of variadic arguments when going from Python to C

Copy link

github-actions bot commented Dec 21, 2023

PR #31159: Size comparison from 3e8aeeb to a1a02a9

Decreases (1 build for efr32)
platform target config section 3e8aeeb a1a02a9 change % change
efr32 lighting-app BRD4187C (read/write) 1101276 1101268 -8 -0.0
.text 901692 901684 -8 -0.0
Full report (72 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 3e8aeeb a1a02a9 change % change
bl602 lighting-app bl602 (read/write) 1418314 1418314 0 0.0
.bss 85224 85224 0 0.0
.data 9416 9416 0 0.0
.rodata 156968 156968 0 0.0
.text 1086064 1086064 0 0.0
bl602+mfd (read/write) 1432786 1432786 0 0.0
.bss 85392 85392 0 0.0
.data 9384 9384 0 0.0
.rodata 155928 155928 0 0.0
.text 1101432 1101432 0 0.0
bl602+rpc (read/write) 1466098 1466098 0 0.0
.bss 93256 93256 0 0.0
.data 9784 9784 0 0.0
.rodata 164592 164592 0 0.0
.text 1117808 1117808 0 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1183315 1183315 0 0.0
.bss 11197 11197 0 0.0
.data 3584 3584 0 0.0
.rodata 106344 106344 0 0.0
.text 955750 955750 0 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1194447 1194447 0 0.0
.bss 11373 11373 0 0.0
.data 3568 3568 0 0.0
.rodata 105284 105284 0 0.0
.text 967814 967814 0 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1275327 1275327 0 0.0
.bss 19677 19677 0 0.0
.data 4144 4144 0 0.0
.rodata 121764 121764 0 0.0
.text 1030812 1030812 0 0.0
bl706-eth (read/write) 1002941 1002941 0 0.0
.bss 23772 23772 0 0.0
.data 3160 3160 0 0.0
.rodata 99676 99676 0 0.0
.text 748646 748646 0 0.0
bl706-wifi (read/write) 1241162 1241162 0 0.0
.bss 10641 10641 0 0.0
.data 3600 3600 0 0.0
.rodata 120656 120656 0 0.0
.text 976028 976028 0 0.0
bl702l lighting-app bl702l (read/write) 1153532 1153532 0 0.0
.bss 16392 16392 0 0.0
.data 4952 4952 0 0.0
.rodata 100348 100348 0 0.0
.text 948876 948876 0 0.0
bl702l+mfd (read only) 512 512 0 0.0
(read/write) 1164472 1164472 0 0.0
.bss 16568 16568 0 0.0
.data 4928 4928 0 0.0
.rodata 99288 99288 0 0.0
.text 961252 961252 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 771928 771928 0 0.0
(read/write) 168164 168164 0 0.0
.bss 90500 90500 0 0.0
.data 3460 3460 0 0.0
.rodata 89560 89560 0 0.0
.text 682104 682104 0 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 788024 788024 0 0.0
(read/write) 178392 178392 0 0.0
.bss 100676 100676 0 0.0
.data 3488 3488 0 0.0
.rodata 83808 83808 0 0.0
.text 703948 703948 0 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 776264 776264 0 0.0
(read/write) 172848 172848 0 0.0
.bss 95132 95132 0 0.0
.data 3488 3488 0 0.0
.rodata 110416 110416 0 0.0
.text 665580 665580 0 0.0
pump-app LP_EM_CC1354P10_6 (read only) 728864 728864 0 0.0
(read/write) 167160 167160 0 0.0
.bss 89272 89272 0 0.0
.data 3448 3448 0 0.0
.rodata 85136 85136 0 0.0
.text 643464 643464 0 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 714408 714408 0 0.0
(read/write) 167340 167340 0 0.0
.bss 89456 89456 0 0.0
.data 3444 3444 0 0.0
.rodata 80968 80968 0 0.0
.text 633176 633176 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 567322 567322 0 0.0
(read/write) 207716 207716 0 0.0
.bss 201180 201180 0 0.0
.data 1412 1412 0 0.0
.rodata 83954 83954 0 0.0
.text 481248 481248 0 0.0
lock CC3235SF_LAUNCHXL (read only) 620650 620650 0 0.0
(read/write) 208112 208112 0 0.0
.bss 201544 201544 0 0.0
.data 1448 1448 0 0.0
.rodata 105826 105826 0 0.0
.text 512704 512704 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 561311 561311 0 0.0
.app_xip_area 451497 451497 0 0.0
.bss 64728 64728 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 543551 543551 0 0.0
.app_xip_area 429001 429001 0 0.0
.bss 69424 69424 0 0.0
.data 700 700 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 562263 562263 0 0.0
.app_xip_area 453905 453905 0 0.0
.bss 63344 63344 0 0.0
.data 588 588 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 557719 557719 0 0.0
.app_xip_area 446137 446137 0 0.0
.bss 66464 66464 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1017428 1017428 0 0.0
.bss 172664 172664 0 0.0
.data 2688 2688 0 0.0
.text 842056 842056 0 0.0
BRD4187C (read/write) 1101276 1101268 -8 -0.0
.bss 196268 196268 0 0.0
.data 3296 3296 0 0.0
.text 901692 901684 -8 -0.0
lock-app BRD4161A+wf200 (read/write) 1115136 1115136 0 0.0
.bss 188880 188880 0 0.0
.data 2712 2712 0 0.0
.text 923524 923524 0 0.0
window-app BRD4187C (read/write) 1136168 1136168 0 0.0
.bss 168300 168300 0 0.0
.data 3168 3168 0 0.0
.text 964680 964680 0 0.0
esp32 all-clusters-app c3devkit (read only) 1138050 1138050 0 0.0
(read/write) 1671636 1671636 0 0.0
.dram0.bss 72936 72936 0 0.0
.dram0.data 12988 12988 0 0.0
.flash.rodata 241840 241840 0 0.0
.flash.text 1138050 1138050 0 0.0
.iram0.text 75694 75694 0 0.0
m5stack (read only) 1183119 1183119 0 0.0
(read/write) 520836 520836 0 0.0
.dram0.bss 79584 79584 0 0.0
.dram0.data 34004 34004 0 0.0
.flash.rodata 272884 272884 0 0.0
.flash.text 1177735 1177735 0 0.0
.iram0.text 123907 123907 0 0.0
k32w contact k32w0+release (read only) 605424 605424 0 0.0
(read/write) 81960 81960 0 0.0
.bss 69808 69808 0 0.0
.data 2168 2168 0 0.0
.text 604888 604888 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 691000 691000 0 0.0
.bss 67664 67664 0 0.0
.data 2716 2716 0 0.0
.text 577144 577144 0 0.0
light k32w0+release (read only) 595128 595128 0 0.0
(read/write) 79176 79176 0 0.0
.bss 67072 67072 0 0.0
.data 2120 2120 0 0.0
.text 594592 594592 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 782820 782820 0 0.0
.bss 77340 77340 0 0.0
.data 1928 1928 0 0.0
.text 660096 660096 0 0.0
lock k32w0+release (read only) 576520 576520 0 0.0
(read/write) 79440 79440 0 0.0
.bss 67360 67360 0 0.0
.data 2096 2096 0 0.0
.text 575984 575984 0 0.0
linux air-purifier-app debug (read only) 2526997 2526997 0 0.0
(read/write) 127240 127240 0 0.0
.bss 46944 46944 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 72856 72856 0 0.0
.dynamic 608 608 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 179304 179304 0 0.0
.text 2172293 2172293 0 0.0
all-clusters-app debug (read only) 5416417 5416417 0 0.0
(read/write) 456264 456264 0 0.0
.bss 131632 131632 0 0.0
.data 3840 3840 0 0.0
.data.rel.ro 313544 313544 0 0.0
.dynamic 624 624 0 0.0
.got 5336 5336 0 0.0
.init 27 27 0 0.0
.init_array 1264 1264 0 0.0
.rodata 312572 312572 0 0.0
.text 4693123 4693123 0 0.0
all-clusters-minimal-app debug (read only) 4954025 4954025 0 0.0
(read/write) 234720 234720 0 0.0
.bss 127856 127856 0 0.0
.data 3776 3776 0 0.0
.data.rel.ro 95992 95992 0 0.0
.dynamic 624 624 0 0.0
.got 5296 5296 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 272781 272781 0 0.0
.text 4448787 4448787 0 0.0
bridge-app debug (read only) 4417809 4417809 0 0.0
(read/write) 215960 215960 0 0.0
.bss 119224 119224 0 0.0
.data 4704 4704 0 0.0
.data.rel.ro 85312 85312 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 219157 219157 0 0.0
.text 3980083 3980083 0 0.0
chip-tool debug (read only) 11725625 11725625 0 0.0
(read/write) 505712 505712 0 0.0
.bss 94200 94200 0 0.0
.data 4994 4994 0 0.0
.data.rel.ro 399264 399264 0 0.0
.dynamic 624 624 0 0.0
.got 5784 5784 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 425897 425897 0 0.0
.text 10607731 10607731 0 0.0
chip-tool-ipv6only arm64 (read only) 11449528 11449528 0 0.0
(read/write) 574016 574016 0 0.0
.bss 103448 103448 0 0.0
.data 4288 4288 0 0.0
.data.rel.ro 438168 438168 0 0.0
.dynamic 512 512 0 0.0
.got 19856 19856 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 346192 346192 0 0.0
.text 10233096 10233096 0 0.0
lighting-app debug+rpc+ui (read only) 5303609 5303609 0 0.0
(read/write) 225032 225032 0 0.0
.bss 119360 119360 0 0.0
.data 4416 4416 0 0.0
.data.rel.ro 93728 93728 0 0.0
.dynamic 672 672 0 0.0
.got 5880 5880 0 0.0
.init 27 27 0 0.0
.init_array 960 960 0 0.0
.rodata 340340 340340 0 0.0
.text 4718483 4718483 0 0.0
lock-app debug (read only) 4502849 4502849 0 0.0
(read/write) 203680 203680 0 0.0
.bss 113760 113760 0 0.0
.data 3648 3648 0 0.0
.data.rel.ro 79544 79544 0 0.0
.dynamic 624 624 0 0.0
.got 5216 5216 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 246997 246997 0 0.0
.text 4045827 4045827 0 0.0
ota-provider-app debug (read only) 4166985 4166985 0 0.0
(read/write) 192728 192728 0 0.0
.bss 113632 113632 0 0.0
.data 3904 3904 0 0.0
.data.rel.ro 69312 69312 0 0.0
.dynamic 624 624 0 0.0
.got 4528 4528 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 201269 201269 0 0.0
.text 3773843 3773843 0 0.0
ota-requestor-app debug (read only) 4256441 4256441 0 0.0
(read/write) 197040 197040 0 0.0
.bss 114656 114656 0 0.0
.data 4176 4176 0 0.0
.data.rel.ro 72320 72320 0 0.0
.dynamic 624 624 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 205077 205077 0 0.0
.text 3855091 3855091 0 0.0
shell debug (read only) 2789433 2789433 0 0.0
(read/write) 152304 152304 0 0.0
.bss 62312 62312 0 0.0
.data 768 768 0 0.0
.data.rel.ro 83432 83432 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 1088 1088 0 0.0
.rodata 181888 181888 0 0.0
.text 2436482 2436482 0 0.0
thermostat-no-ble arm64 (read only) 4406424 4406424 0 0.0
(read/write) 244048 244048 0 0.0
.bss 122232 122232 0 0.0
.data 2784 2784 0 0.0
.data.rel.ro 102384 102384 0 0.0
.dynamic 512 512 0 0.0
.got 12008 12008 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 162276 162276 0 0.0
.text 3903752 3903752 0 0.0
tv-app debug (read only) 5399953 5399953 0 0.0
(read/write) 349312 349312 0 0.0
.bss 244704 244704 0 0.0
.data 4992 4992 0 0.0
.data.rel.ro 92312 92312 0 0.0
.dynamic 624 624 0 0.0
.got 5512 5512 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 273557 273557 0 0.0
.text 4888435 4888435 0 0.0
tv-casting-app debug (read only) 9604305 9604305 0 0.0
(read/write) 339040 339040 0 0.0
.bss 156352 156352 0 0.0
.data 2464 2464 0 0.0
.data.rel.ro 173376 173376 0 0.0
.dynamic 624 624 0 0.0
.got 5064 5064 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 363688 363688 0 0.0
.text 8775107 8775107 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2526192 2526192 0 0.0
.bss 220280 220280 0 0.0
.data 5144 5144 0 0.0
.text 1488876 1488876 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1068176 1068176 0 0.0
bss 129457 129457 0 0.0
rodata 105456 105456 0 0.0
text 785640 785640 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1194236 1194236 0 0.0
bss 121667 121667 0 0.0
rodata 139216 139216 0 0.0
text 783016 783016 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1040524 1040524 0 0.0
bss 129412 129412 0 0.0
rodata 98892 98892 0 0.0
text 764528 764528 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 835800 835800 0 0.0
(read/write) 1751556 1751556 0 0.0
.bss 195068 195068 0 0.0
.data 2472 2472 0 0.0
.text 1545628 1545628 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837848 837848 0 0.0
(read/write) 1706348 1706348 0 0.0
.bss 193020 193020 0 0.0
.data 2472 2472 0 0.0
.text 1502468 1502468 0 0.0
light cy8ckit_062s2_43012 (read only) 844536 844536 0 0.0
(read/write) 1631340 1631340 0 0.0
.bss 186444 186444 0 0.0
.data 2360 2360 0 0.0
.text 1434148 1434148 0 0.0
lock cy8ckit_062s2_43012 (read only) 817416 817416 0 0.0
(read/write) 1658244 1658244 0 0.0
.bss 213540 213540 0 0.0
.data 2384 2384 0 0.0
.text 1433932 1433932 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1116852 1116852 0 0.0
.bss 101280 101280 0 0.0
.data 740 740 0 0.0
.text 629228 629228 0 0.0
lock-app qpg6105+debug (read/write) 1080780 1080780 0 0.0
.bss 97576 97576 0 0.0
.data 784 784 0 0.0
.text 593160 593160 0 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 821658 821658 0 0.0
bss 55096 55096 0 0.0
text 613960 613960 0 0.0
all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1087064 1087064 0 0.0
bss 100468 100468 0 0.0
text 767458 767458 0 0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1084348 1084348 0 0.0
bss 109828 109828 0 0.0
text 753596 753596 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 934988 934988 0 0.0
bss 94336 94336 0 0.0
text 647014 647014 0 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 821894 821894 0 0.0
bss 55140 55140 0 0.0
text 614330 614330 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 4 4 0 0.0
(read/write) 978980 978980 0 0.0
bss 79124 79124 0 0.0
text 694420 694420 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1093336 1093336 0 0.0
bss 99900 99900 0 0.0
text 769906 769906 0 0.0
lock-app-dfu tlsr9528a (read only) 4 4 0 0.0
(read/write) 965612 965612 0 0.0
bss 97388 97388 0 0.0
text 648096 648096 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 948664 948664 0 0.0
bss 92444 92444 0 0.0
text 663122 663122 0 0.0
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 880692 880692 0 0.0
bss 69116 69116 0 0.0
text 622340 622340 0 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 821304 821304 0 0.0
bss 57352 57352 0 0.0
text 589216 589216 0 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 705600 705600 0 0.0
bss 73588 73588 0 0.0
text 462094 462094 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 823630 823630 0 0.0
bss 55276 55276 0 0.0
text 617074 617074 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 878397 878397 0 0.0
bss 60828 60828 0 0.0
text 630956 630956 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 845676 845676 0 0.0
bss 57648 57648 0 0.0
text 607682 607682 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 839952 839952 0 0.0
bss 58000 58000 0 0.0
text 601716 601716 0 0.0

Copy link

github-actions bot commented Jan 12, 2024

PR #31159: Size comparison from eb7a27c to 2f4cd0f

Decreases (1 build for efr32)
platform target config section eb7a27c 2f4cd0f change % change
efr32 window-app BRD4187C (read/write) 1138656 1138648 -8 -0.0
.text 968420 968412 -8 -0.0
Full report (72 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section eb7a27c 2f4cd0f change % change
bl602 lighting-app bl602 (read/write) 1419922 1419922 0 0.0
.bss 85184 85184 0 0.0
.data 9488 9488 0 0.0
.rodata 156980 156980 0 0.0
.text 1087626 1087626 0 0.0
bl602+mfd (read/write) 1434394 1434394 0 0.0
.bss 85352 85352 0 0.0
.data 9456 9456 0 0.0
.rodata 155940 155940 0 0.0
.text 1102994 1102994 0 0.0
bl602+rpc (read/write) 1467698 1467698 0 0.0
.bss 93216 93216 0 0.0
.data 9856 9856 0 0.0
.rodata 164596 164596 0 0.0
.text 1119370 1119370 0 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1184963 1184963 0 0.0
.bss 11133 11133 0 0.0
.data 3656 3656 0 0.0
.rodata 106352 106352 0 0.0
.text 957290 957290 0 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1196095 1196095 0 0.0
.bss 11309 11309 0 0.0
.data 3640 3640 0 0.0
.rodata 105292 105292 0 0.0
.text 969354 969354 0 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1276639 1276639 0 0.0
.bss 19597 19597 0 0.0
.data 4216 4216 0 0.0
.rodata 121772 121772 0 0.0
.text 1032096 1032096 0 0.0
bl706-eth (read/write) 1004081 1004081 0 0.0
.bss 23692 23692 0 0.0
.data 3232 3232 0 0.0
.rodata 99684 99684 0 0.0
.text 749696 749696 0 0.0
bl706-wifi (read/write) 1234966 1234966 0 0.0
.bss 10577 10577 0 0.0
.data 3672 3672 0 0.0
.rodata 120664 120664 0 0.0
.text 977822 977822 0 0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1154604 1154604 0 0.0
.bss 16328 16328 0 0.0
.data 5024 5024 0 0.0
.rodata 100356 100356 0 0.0
.text 950416 950416 0 0.0
bl702l+mfd (read only) 512 512 0 0.0
(read/write) 1165800 1165800 0 0.0
.bss 16504 16504 0 0.0
.data 5000 5000 0 0.0
.rodata 99296 99296 0 0.0
.text 962536 962536 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 778096 778096 0 0.0
(read/write) 168380 168380 0 0.0
.bss 90452 90452 0 0.0
.data 3524 3524 0 0.0
.rodata 88824 88824 0 0.0
.text 689008 689008 0 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 794168 794168 0 0.0
(read/write) 178608 178608 0 0.0
.bss 100628 100628 0 0.0
.data 3552 3552 0 0.0
.rodata 83080 83080 0 0.0
.text 710820 710820 0 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 782416 782416 0 0.0
(read/write) 173064 173064 0 0.0
.bss 95084 95084 0 0.0
.data 3552 3552 0 0.0
.rodata 109688 109688 0 0.0
.text 672460 672460 0 0.0
pump-app LP_EM_CC1354P10_6 (read only) 735040 735040 0 0.0
(read/write) 167384 167384 0 0.0
.bss 89232 89232 0 0.0
.data 3512 3512 0 0.0
.rodata 84416 84416 0 0.0
.text 650360 650360 0 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 720552 720552 0 0.0
(read/write) 167564 167564 0 0.0
.bss 89416 89416 0 0.0
.data 3508 3508 0 0.0
.rodata 80256 80256 0 0.0
.text 640032 640032 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 567938 567938 0 0.0
(read/write) 207744 207744 0 0.0
.bss 201028 201028 0 0.0
.data 1592 1592 0 0.0
.rodata 83962 83962 0 0.0
.text 481852 481852 0 0.0
lock CC3235SF_LAUNCHXL (read only) 621298 621298 0 0.0
(read/write) 208144 208144 0 0.0
.bss 201504 201504 0 0.0
.data 1520 1520 0 0.0
.rodata 105834 105834 0 0.0
.text 513340 513340 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 562303 562303 0 0.0
.app_xip_area 452457 452457 0 0.0
.bss 64688 64688 0 0.0
.data 732 732 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 544543 544543 0 0.0
.app_xip_area 429961 429961 0 0.0
.bss 69384 69384 0 0.0
.data 772 772 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 563215 563215 0 0.0
.app_xip_area 454825 454825 0 0.0
.bss 63272 63272 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 558823 558823 0 0.0
.app_xip_area 447201 447201 0 0.0
.bss 66392 66392 0 0.0
.data 804 804 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1042240 1042240 0 0.0
.bss 192656 192656 0 0.0
.data 2776 2776 0 0.0
.text 846788 846788 0 0.0
BRD4187C (read/write) 1105288 1105288 0 0.0
.bss 194932 194932 0 0.0
.data 3384 3384 0 0.0
.text 906952 906952 0 0.0
lock-app BRD4161A+wf200 (read/write) 1118204 1118204 0 0.0
.bss 188040 188040 0 0.0
.data 2800 2800 0 0.0
.text 927344 927344 0 0.0
window-app BRD4187C (read/write) 1138656 1138648 -8 -0.0
.bss 166924 166924 0 0.0
.data 3292 3292 0 0.0
.text 968420 968412 -8 -0.0
esp32 all-clusters-app c3devkit (read only) 1153736 1153736 0 0.0
(read/write) 1669232 1669232 0 0.0
.dram0.bss 71640 71640 0 0.0
.dram0.data 13588 13588 0 0.0
.flash.rodata 240000 240000 0 0.0
.flash.text 1153736 1153736 0 0.0
.iram0.text 75530 75530 0 0.0
m5stack (read only) 1199999 1199999 0 0.0
(read/write) 519852 519852 0 0.0
.dram0.bss 78504 78504 0 0.0
.dram0.data 35132 35132 0 0.0
.flash.rodata 270296 270296 0 0.0
.flash.text 1193835 1193835 0 0.0
.iram0.text 125403 125403 0 0.0
k32w contact k32w0+release (read only) 606680 606680 0 0.0
(read/write) 81172 81172 0 0.0
.bss 68952 68952 0 0.0
.data 2236 2236 0 0.0
.text 606144 606144 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 691964 691964 0 0.0
.bss 67608 67608 0 0.0
.data 2788 2788 0 0.0
.text 578096 578096 0 0.0
light k32w0+release (read only) 596080 596080 0 0.0
(read/write) 79188 79188 0 0.0
.bss 67016 67016 0 0.0
.data 2188 2188 0 0.0
.text 595544 595544 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 783776 783776 0 0.0
.bss 77284 77284 0 0.0
.data 2000 2000 0 0.0
.text 661040 661040 0 0.0
lock k32w0+release (read only) 577512 577512 0 0.0
(read/write) 78644 78644 0 0.0
.bss 66496 66496 0 0.0
.data 2164 2164 0 0.0
.text 576976 576976 0 0.0
linux air-purifier-app debug (read only) 2535893 2535893 0 0.0
(read/write) 127248 127248 0 0.0
.bss 46272 46272 0 0.0
.data 2144 2144 0 0.0
.data.rel.ro 72856 72856 0 0.0
.dynamic 608 608 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 179752 179752 0 0.0
.text 2180693 2180693 0 0.0
all-clusters-app debug (read only) 5434121 5434121 0 0.0
(read/write) 457920 457920 0 0.0
.bss 131184 131184 0 0.0
.data 4448 4448 0 0.0
.data.rel.ro 315016 315016 0 0.0
.dynamic 624 624 0 0.0
.got 5336 5336 0 0.0
.init 27 27 0 0.0
.init_array 1288 1288 0 0.0
.rodata 314396 314396 0 0.0
.text 4707635 4707635 0 0.0
all-clusters-minimal-app debug (read only) 4963641 4963641 0 0.0
(read/write) 234760 234760 0 0.0
.bss 127280 127280 0 0.0
.data 4384 4384 0 0.0
.data.rel.ro 95976 95976 0 0.0
.dynamic 624 624 0 0.0
.got 5296 5296 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 272973 272973 0 0.0
.text 4458211 4458211 0 0.0
bridge-app debug (read only) 4426753 4426753 0 0.0
(read/write) 216032 216032 0 0.0
.bss 117848 117848 0 0.0
.data 6144 6144 0 0.0
.data.rel.ro 85312 85312 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 219605 219605 0 0.0
.text 3988531 3988531 0 0.0
chip-tool debug (read only) 11770185 11770185 0 0.0
(read/write) 505976 505976 0 0.0
.bss 94200 94200 0 0.0
.data 5058 5058 0 0.0
.data.rel.ro 399472 399472 0 0.0
.dynamic 624 624 0 0.0
.got 5784 5784 0 0.0
.init 27 27 0 0.0
.init_array 792 792 0 0.0
.rodata 429337 429337 0 0.0
.text 10651491 10651491 0 0.0
chip-tool-ipv6only arm64 (read only) 11343488 11343488 0 0.0
(read/write) 573520 573520 0 0.0
.bss 103256 103256 0 0.0
.data 4472 4472 0 0.0
.data.rel.ro 438704 438704 0 0.0
.dynamic 512 512 0 0.0
.got 20032 20032 0 0.0
.init 24 24 0 0.0
.init_array 240 240 0 0.0
.rodata 340044 340044 0 0.0
.text 10133804 10133804 0 0.0
lighting-app debug+rpc+ui (read only) 5312649 5312649 0 0.0
(read/write) 225040 225040 0 0.0
.bss 118912 118912 0 0.0
.data 4864 4864 0 0.0
.data.rel.ro 93728 93728 0 0.0
.dynamic 672 672 0 0.0
.got 5880 5880 0 0.0
.init 27 27 0 0.0
.init_array 968 968 0 0.0
.rodata 340852 340852 0 0.0
.text 4726963 4726963 0 0.0
lock-app debug (read only) 4512049 4512049 0 0.0
(read/write) 203688 203688 0 0.0
.bss 113312 113312 0 0.0
.data 4096 4096 0 0.0
.data.rel.ro 79544 79544 0 0.0
.dynamic 624 624 0 0.0
.got 5216 5216 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 247541 247541 0 0.0
.text 4054435 4054435 0 0.0
ota-provider-app debug (read only) 4176009 4176009 0 0.0
(read/write) 192704 192704 0 0.0
.bss 113248 113248 0 0.0
.data 4256 4256 0 0.0
.data.rel.ro 69312 69312 0 0.0
.dynamic 624 624 0 0.0
.got 4528 4528 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 201749 201749 0 0.0
.text 3782339 3782339 0 0.0
ota-requestor-app debug (read only) 4266969 4266969 0 0.0
(read/write) 196984 196984 0 0.0
.bss 114144 114144 0 0.0
.data 4656 4656 0 0.0
.data.rel.ro 72288 72288 0 0.0
.dynamic 624 624 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 205589 205589 0 0.0
.text 3865155 3865155 0 0.0
shell debug (read only) 2804737 2804737 0 0.0
(read/write) 152672 152672 0 0.0
.bss 61864 61864 0 0.0
.data 1344 1344 0 0.0
.data.rel.ro 83656 83656 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 1104 1104 0 0.0
.rodata 182688 182688 0 0.0
.text 2450674 2450674 0 0.0
thermostat-no-ble arm64 (read only) 4354920 4354920 0 0.0
(read/write) 246296 246296 0 0.0
.bss 121624 121624 0 0.0
.data 3328 3328 0 0.0
.data.rel.ro 102752 102752 0 0.0
.dynamic 512 512 0 0.0
.got 12088 12088 0 0.0
.init 24 24 0 0.0
.init_array 416 416 0 0.0
.rodata 155772 155772 0 0.0
.text 3856636 3856636 0 0.0
tv-app debug (read only) 5413449 5413449 0 0.0
(read/write) 349184 349184 0 0.0
.bss 243168 243168 0 0.0
.data 6464 6464 0 0.0
.data.rel.ro 92248 92248 0 0.0
.dynamic 624 624 0 0.0
.got 5512 5512 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 273685 273685 0 0.0
.text 4902067 4902067 0 0.0
tv-casting-app debug (read only) 9642929 9642929 0 0.0
(read/write) 337904 337904 0 0.0
.bss 155936 155936 0 0.0
.data 2912 2912 0 0.0
.data.rel.ro 172192 172192 0 0.0
.dynamic 624 624 0 0.0
.got 5064 5064 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 365832 365832 0 0.0
.text 8815811 8815811 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2526976 2526976 0 0.0
.bss 220240 220240 0 0.0
.data 5208 5208 0 0.0
.text 1489660 1489660 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1070524 1070524 0 0.0
bss 129376 129376 0 0.0
rodata 105628 105628 0 0.0
text 787800 787800 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1196584 1196584 0 0.0
bss 121586 121586 0 0.0
rodata 139340 139340 0 0.0
text 785184 785184 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1041448 1041448 0 0.0
bss 129300 129300 0 0.0
rodata 98888 98888 0 0.0
text 765448 765448 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 835728 835728 0 0.0
(read/write) 1754532 1754532 0 0.0
.bss 194996 194996 0 0.0
.data 2616 2616 0 0.0
.text 1548532 1548532 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837816 837816 0 0.0
(read/write) 1707380 1707380 0 0.0
.bss 192908 192908 0 0.0
.data 2616 2616 0 0.0
.text 1503468 1503468 0 0.0
light cy8ckit_062s2_43012 (read only) 844504 844504 0 0.0
(read/write) 1632292 1632292 0 0.0
.bss 186404 186404 0 0.0
.data 2432 2432 0 0.0
.text 1435068 1435068 0 0.0
lock cy8ckit_062s2_43012 (read only) 817384 817384 0 0.0
(read/write) 1659196 1659196 0 0.0
.bss 213500 213500 0 0.0
.data 2456 2456 0 0.0
.text 1434852 1434852 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1117832 1117832 0 0.0
.bss 101224 101224 0 0.0
.data 808 808 0 0.0
.text 630212 630212 0 0.0
lock-app qpg6105+debug (read/write) 1081752 1081752 0 0.0
.bss 97520 97520 0 0.0
.data 852 852 0 0.0
.text 594128 594128 0 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 822390 822390 0 0.0
bss 50916 50916 0 0.0
text 614666 614666 0 0.0
all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1089672 1089672 0 0.0
bss 100372 100372 0 0.0
text 769822 769822 0 0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1085340 1085340 0 0.0
bss 109696 109696 0 0.0
text 754544 754544 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 935788 935788 0 0.0
bss 93664 93664 0 0.0
text 647792 647792 0 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 822626 822626 0 0.0
bss 50960 50960 0 0.0
text 615036 615036 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 4 4 0 0.0
(read/write) 980136 980136 0 0.0
bss 79004 79004 0 0.0
text 695520 695520 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1094368 1094368 0 0.0
bss 99840 99840 0 0.0
text 770918 770918 0 0.0
lock-app-dfu tlsr9528a (read only) 4 4 0 0.0
(read/write) 966348 966348 0 0.0
bss 97304 97304 0 0.0
text 648804 648804 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 949724 949724 0 0.0
bss 92348 92348 0 0.0
text 664160 664160 0 0.0
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 881528 881528 0 0.0
bss 69032 69032 0 0.0
text 623152 623152 0 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 822180 822180 0 0.0
bss 57276 57276 0 0.0
text 590076 590076 0 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 705632 705632 0 0.0
bss 73568 73568 0 0.0
text 462136 462136 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 824354 824354 0 0.0
bss 51096 51096 0 0.0
text 617780 617780 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 879405 879405 0 0.0
bss 60744 60744 0 0.0
text 631972 631972 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 846544 846544 0 0.0
bss 57564 57564 0 0.0
text 608542 608542 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 840744 840744 0 0.0
bss 57880 57880 0 0.0
text 602496 602496 0 0.0

@tehampson tehampson enabled auto-merge (squash) January 15, 2024 14:52
@tehampson tehampson merged commit 5f1eb5b into project-chip:master Jan 15, 2024
55 of 57 checks passed
jamesharrow pushed a commit to jamesharrow/connectedhomeip that referenced this pull request Jan 15, 2024
mergify bot pushed a commit that referenced this pull request Jan 18, 2024
… removed 2 attributes (#31406)

* Fix #30665 (EVSE)
- Changed to use amperage_mA, energy_mWh
- removed max on epoch_s
- removed access for operate
- removed side for events

* Fix #30665 updates to try to get further with ZAP and autogen, but still fails with some parts of regen_all

* Added ember-compatibility-functions.cpp which was missing.

* Made all types all lowercase to resolve regen_all issues.

* Fixed lint issue (trailing whitespace).

* Added Device Energy Management server.cpp, added to all-clusters-app.zap and regen_all

* Restyled by whitespace

* Restyled by clang-format

* Fixes based on similar conversations on EVSE review. Made Forecast and PowerAdjustmentCapability Nullable attributes. Added feature support.

* Added delegate class to all-clusters-app

* Changed ChipLogProgress to Error. Better handling of EnumerateCommands

* Aligned EVSE XML to same state as PR#30857 (includes SessionID being Nullable etc and in Fault Event).

* Updated Device Energy Management XML to use power_mw, energy_mwh per spec definition.

* Updated controller-clusters.zap

* regen_all.py

* Restyled by whitespace

* Regen_all after merging in changes for XML

* Fixed types to be signed=true

* Fixed 31032 - revert removal of side="server".

* regen_all.py

* Added Device Energy Management cluster back into all-clusters.zap and regen_all after merging from master.

* Compiles but doesn't work. Needs stub to instantiate class

* Fixed EnumerateCommands to allow optional ModifyForecastRequest and RequestConstraintBasedForecast commands

* Fixed InvokeCommand issues to allow optional commands.

* Improved HandleModifyForecastRequest and HandleRequestConstraintBasedForecast in sdk

* Updates to add DeviceEnergyManagement to all-clusters.

* Compiles and links

* Sync file in energy-management-app

* Updated DEM to support SetPowerAdjustmentCapability and SetForecast methods.

* Updated based on review comments. Changed Epoch to be Matter 2000 based epochs.

* Turned on commands in DEM. Added DEM cluster server to energy-management-app.

* Added more comments to Delegate to describe expected behaviour.

* Updated BUILD.gn to remove duplicated files from all-clusters-common and energy-management-common

* Aim to fix compile issues on other platforms due to logging of %d

* Restyled by gn

* Updated build files to remove duplicate copies from all-clusters-common to energy-management-common

* Fixed ESP32 include path

* Added DEM into energy-management-app - refactored main.cpp.

* Added DEM into EVSEManufacturerImpl.h

* Fix - avoid using global namespace in header file

* Restyled by gn

* Updated CMakeLists.txt to remove duplicate energy-management files.

* Added device-energy-management-server to ESP32 all-clusters CMakeLists.txt

* Removed return at end of void function.

* Added include to all-clusters-minimal in ESP32

* Removed __FUNCTION__ from logs

* Removed stray %s

* Added FeatureMap handling in sdk (not in ember)

* Removed extra chip::

* Used CHIP_ERROR_FORMAT, err.Format() mechanism

* Refactored StartTimeAdjust based on review comments.

* Removed unnecessary Write Attributes function

* Beginnings of Session handling

* Added beginnings of EVConnected,EVNotDetected,EnergyTransferStarted,EnergyTransferStopped handling. State machine is not finished. Callback to read Energy Meter added

* Added framework for EVSE Test Event triggers

* Added EnergyEvseTestEventTrigger delegates

* Restyled by whitespace

* Restyled by gn

* Added :energy-evse-test-event-trigger to public_deps to see if it resolves build errors

* Restyled by gn

* Fixed Darwin compile error - do not use else after return

* Refactored code so that the EvseManufacturer instance could be retrieved for Test Event triggers

* Started adding TC_EEVSE_2_2.py

* Updated TC_EEVSE_2_2.py to support test events. Still needs to handle reading of Logged Events and verifying they are correct.

* Refactored Handling of TestEvents to allow clear, and better error handling.

* Refactored state handling by decomposing into state machine events where similar functions are performed based on state transition. Fixed TC chargingEnabledUntil cast to int. Note gets to step 6e

* Fixed step 6e caused by not setting the cable limit / maxHardwareCurrentLimit in test events

* Added comment to clarify purpose and definition of test eventtrigger field values.

* Fixed several bugs in test script

* Made SetChargingEnabledUntil take a nullable type.

* Removed Reference to step 5c, and moved reading of SessionID to step 4b.
More TC_EEVSE_2_2 bug fixes. Added event checking. Still fails at step 14.
Does not have enable timeout timer implemented

* Fixed issue with not detecting 2nd plug in event, and session ID not incrementing. Now test case passes all the way.

* Restyled by isort

* Made some attributes persisted per spec.

* Added attributes to zcl.json to mark them as implemented in attributeAccessInterfaceAttributes

* Ran regen_all.py after changing zcl.json

* Fixed incorrect type - not picked up by all compilers.

* Re-ran bootstrap, and then regen-all - to pick up more zap generated fixes

* Added provisional handling for Faults

* Added new test event triggers to help test Fault and Diagnostics

* Added TC_EEVSE_2_4

* Fix lint issue - unused datetime modules.

* Committed suggested change to comment

* Added TC_EEVSE_2_5.py to support DiagnosticsCommand testing. Also changed the SupplyState reverting to Disabled once diagnostics is complete to match the spec.

* Created a helper EEVSE base class to avoid repetition in the different test cases.

* Restyled by isort

* Fixed Lint issues

* Revamped TC_EEVSE_2_5 to match spec behaviour (cannot start diagnostics unless Disabled). Also removed hard-coded endpoint ids in Utils

* Implemented timer to disable the EVSE automatically.

* Added documentation to cover concern about long-lived bytespan in enableKey

* Fixed Lint and build issues on other platforms

* Restyled by isort

* Implemented some of the feedback on PR

* Refactored HwSetState to use nested switch statements to be clear that all enums are caught.

* Fixed error messages

* Test scripts: Removed hardcoded endpoint 1 (use --endpoint 1 in args), allowed the enableKey to be passed in using --hex-arg enableKey:000102030405060708090a0b0c0d0e0f

* Made enum class for callbacks and improved documentation comments based on feedback.

* Fixed another python lint issue.

* Updated README.md with help on how to build for test event triggers, using chip-repl and python testing.

* Tweaks to README.md to avoid Myst syntax highlighting issues.

* Improved error logging around GetEpochTS()

* Made main use std::unique_ptr instead of using new/delete per PR comments. Also moved GetEVSEManufacturer declaration to header file.

* Fixing MISSPELL issues in README.md

* Small change missed in main.cpp missed in unique_ptr change.

* Changed all-clusters app stubs to use unique_ptr style instead of new/delete.

* Removed unhelpful comment

* Restyled by whitespace

* Fixes #31061 Updated DEVICE_TYPE to 0x050C now this has been allocated

* Fixes #31061 Updated DEVICE_TYPE to 0x050C now this has been allocated

* Updated energy-evse-cluster.xml to use latest EnergyEVSE.adoc which removes numberOfWeeklyTargets, numberOfDailyTargets, and adds new ChargingTargetScheduleStruct in Get/Set/Clear Target commands

* Removed min/max for Randomisation window due to ZAP bug that doesn't allow more than 2 bytes.

* Added missing new Java files

* Changed DayOfWeekforSequence -> DayOfWeekForSequence in XML. Regen-all

* Python testing: Add helper functions for marking steps as skipped in the TH (#31373)

* Add two new helper functions for marking steps skipped

* python testing: Add helper functions for skipped steps

* Do not use gen_config.h directly. (#31401)

* Do not use gen_config.h directly.

Apparently the right file is config.h, which includes the gen file.

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>

* Bump third_party/ot-br-posix/repo from `657e775` to `58822dc` (#31420)

Bumps [third_party/ot-br-posix/repo](https://github.com/openthread/ot-br-posix) from `657e775` to `58822dc`.
- [Release notes](https://github.com/openthread/ot-br-posix/releases)
- [Commits](openthread/ot-br-posix@657e775...58822dc)

---
updated-dependencies:
- dependency-name: third_party/ot-br-posix/repo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump third_party/imgui/repo from `240ab58` to `6228c2e` (#31418)

Bumps [third_party/imgui/repo](https://github.com/ocornut/imgui) from `240ab58` to `6228c2e`.
- [Release notes](https://github.com/ocornut/imgui/releases)
- [Commits](ocornut/imgui@240ab58...6228c2e)

---
updated-dependencies:
- dependency-name: third_party/imgui/repo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump third_party/pigweed/repo from `cbbc73d` to `9640cde` (#31414)

Bumps [third_party/pigweed/repo](https://github.com/google/pigweed) from `cbbc73d` to `9640cde`.
- [Commits](google/pigweed@cbbc73d...9640cde)

---
updated-dependencies:
- dependency-name: third_party/pigweed/repo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [Chef] Fix variable may be used without initialization (#31413)

* Fix variable may be used without initialization

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>

* Bump third_party/nanopb/repo from `cf26d28` to `423c03b` (#31421)

Bumps [third_party/nanopb/repo](https://github.com/nanopb/nanopb) from `cf26d28` to `423c03b`.
- [Commits](nanopb/nanopb@cf26d28...423c03b)

---
updated-dependencies:
- dependency-name: third_party/nanopb/repo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Test_TC_DGWIFI_2_1 WiFiVersion enum8 maxValue should be 6 (#31364)

* WiFiVersion enum8 maxValue should be 6

Matter Spec 1.2 Section 11.14.5.2. WiFiVersionEnum Type
ranges from 0 (802.11a) to 6 (802.11ah)

* Update command.h darwin zap-genersated WiFiVersion

* Handle energy type naming in data model xml handlers (#31344)

* Correct case names for enerty types in data model handlers.

* Add unit test

* restyle

* [nrfconnect] Switch unit tests to PSA crypto (#31408)

* [nrfconnect] Switch unit tests to PSA crypto

Switch nRF Connect unit tests to PSA crypto backend since
legacy mbedTLS is already tested on many platforms.

Additionally, clean the configuration of nRF Connect test
runner by removing some redundant configurations and better
grouping the items.

* Restyled by gn

---------

Co-authored-by: Restyled.io <[email protected]>

* Bump third_party/libwebsockets/repo from `f18fc23` to `49bfef2` (#31417)

Bumps [third_party/libwebsockets/repo](https://github.com/warmcat/libwebsockets) from `f18fc23` to `49bfef2`.
- [Commits](warmcat/libwebsockets@f18fc23...49bfef2)

---
updated-dependencies:
- dependency-name: third_party/libwebsockets/repo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add initial valve cluster implementation (#30562)

* added first version of valve configuration and control cluster

* added first version of boolean sensor configuration cluster XML and
 updated event descriptions for valve config and control cluster

* fixed wrong attribute name

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

* fixed typo

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

* removed StartUpLevel attribute and added optional OpenDuration command args

* use allocated cluster ID

* added code generating bits

* added new device types

* restyle

* added BooleanSensorConfiguration and ValveConfigurationAndControl clusters
 to all-clusters-app

* - fixed wrong attribute name caused by copy paste
- min/max is not allowed for attributes with size larger than 2 bytes

* regenerate all

* added initial implementation for the new clusters

* apply provisional property to new clusters

* fixed typo

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

* removed empty implementation, removed clusters from all-clusters-app

* added a skeleton implementation

* fixed typo

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

* fixed typos and regen all

* fixes based on PR comments

* added descriptor cluster to valve device type

* updated zap and idl files to fixed typo in command name

* close to final implementation, needs careful going through

* activate alarms if enabled, added API for sensor fault event, clean-up

* WIP

* Implemented open command

* finalize initial implementation

* added all-clusters-app example for valve device

* added null checking

* added attribute changed callback and fixed some bugs after testing

* did a regen and fixed rebase issue

* restyle

* added missed generated code by previous commits

* attempt to fix failing CI

* restyle

* add a missed zap gen output

* removed redundant return

* update valve configuration and control cluster according to latest spec

* remove boolean sensor config cluster implementation and into a separate PR

* DefaultOpenDuration is writable and updated device type name to Water Valve

* updated code to latest spec

* changed RemainingDuration to be handled by AttributeAccessInterface

* WIP RemainingDuration

* moved domain to be the first element

* update to the latest spec changes, removed attribute changed callback,
 handle remainingduration in AAI

* added LevelStep attribute in all-clusters-app

* removed unused code

* set default null values in ZAP

* Added transition handling in Delegate

* Reworked AutoTimeClose handling in SetValveLevel

* Changed include

* added mechanism to signal UTCTime change in timesync cluster

---------

Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: fessehat <[email protected]>
Co-authored-by: René Josefsen <[email protected]>
Co-authored-by: René Josefsen <[email protected]>

* Bump third_party/mbedtls/repo from `ffb18d2` to `56fd26c` (#31422)

Bumps [third_party/mbedtls/repo](https://github.com/ARMmbed/mbedtls) from `ffb18d2` to `56fd26c`.
- [Release notes](https://github.com/ARMmbed/mbedtls/releases)
- [Commits](Mbed-TLS/mbedtls@ffb18d2...56fd26c)

---
updated-dependencies:
- dependency-name: third_party/mbedtls/repo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [K32W0] SDK 2.6.13 additional changes (#31382)

* [K32W] Fix a corner case when switching the TLV processors

After the current block is processed, if the block size is 0, it means
that the processed data was a multiple of received BDX block size (e.g.
8 blocks of 1024 bytes were transferred). After state for selecting next
processor is reset, a request for fetching next data must be sent.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W] Make Validate public

Change access modifier of Validate to public, to be used by K32W0
for factory data validation after factory data OTA.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] Add CRC validation during factory data OTA

After factory data is copied into internal flash, call Validate to ensure
the CRC of factory data matches the CRC in the header. If the check fails,
then OTA is aborted and factory data is restored to previous version.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] Add additional check for provider pointer

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] Change root node revision to 2

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W] Expose SearchForId in factory data provider public API

Removed additional checks on tags with the assumption that factory data is
strictly checked at manufacturing time.
Applications can now use the public API to search the factory data section
for an id, e.g. in the case of custom factory data provider, where the app
has additional factory data information besides the default one.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] Refactor custom factory data provider

The example now leverages the actual factory data provider API to
search the factory data section for some custom ids.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W] Add platform support for Product Appearance

Implement GetProductFinish and GetProductPrimaryColor defined in DeviceInstanceInfoProvider.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W] Remove maxLengths array

This array was used to store the maximum length of factory data fields.
It's no longer used, with the assumption that the factory data is strictly
checked in manufacturing.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] Remove usage of maxLength array

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] remove unused code in LowPowerHook.cpp file

* [K32W0] use Encoding::HexToBytes to parse the ota encryption key

* [K32W0] remove extra PWR_DisallowDeviceToSleep() which will cause unsleep after commissioning

* [K32W] Revert removal of disallow to sleep and enclose it in specific tag

Only call disallow to sleep when the platform is K32W1.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] Update reference app readme files

This is a minor improvement to the building instructions.
It aims to clarify the usage of west SDK or package SDK.

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W0] Fix ICD parameters

Name of the ICD parameters were updated according with the latest stack updates.

Signed-off-by: Andrei Menzopol <[email protected]>

* Restyled by clang-format

* Restyled by gn

* Restyled by prettier-markdown

* [K32W0] Fix gn check error

Signed-off-by: marius-alex-tache <[email protected]>

* Restyled by gn

* [K32W1] Fix gn check errors

Signed-off-by: marius-alex-tache <[email protected]>

* Restyled by gn

* [K32W1] Fix another gn error

Signed-off-by: marius-alex-tache <[email protected]>

* Restyled by gn

* [K32W] Send a report before resetting the device during OTA

State-transition event from Downloading to Applying was not successfully sent
to a subscriber during OTA because the device would reset before actually sending
the ReportData message.

Added an explicit call to handle server shutting down, which will sync send all events.

Signed-off-by: marius-alex-tache <[email protected]>

* Restyled by clang-format

* [K32W0] Remove deprecated dependency

Signed-off-by: marius-alex-tache <[email protected]>

* [K32W1] Remove deprecated dependency

Signed-off-by: marius-alex-tache <[email protected]>

* Restyled by gn

---------

Signed-off-by: marius-alex-tache <[email protected]>
Signed-off-by: Andrei Menzopol <[email protected]>
Co-authored-by: Damien Vagner <[email protected]>
Co-authored-by: tanyue518 <[email protected]>
Co-authored-by: Ethan Tan <[email protected]>
Co-authored-by: Andrei Menzopol <[email protected]>
Co-authored-by: Restyled.io <[email protected]>

* For CFFI in chip-repl, remove variadic arguments (#31159)

* Updated energy-evse-cluster.xml to use latest EnergyEVSE.adoc which removes numberOfWeeklyTargets, numberOfDailyTargets, and adds new ChargingTargetScheduleStruct in Get/Set/Clear Target commands

* Removed optional=true in xml for DayOfWeekForSequence & ChargingTargets in ChargingTargetScheduleStruct

* Small correction to description in test case.

* Updated energy-evse-cluster.xml to use latest EnergyEVSE.adoc which removes numberOfWeeklyTargets, numberOfDailyTargets, and adds new ChargingTargetScheduleStruct in Get/Set/Clear Target commands

* Removed min/max for Randomisation window due to ZAP bug that doesn't allow more than 2 bytes.

* Added missing new Java files

* Changed DayOfWeekforSequence -> DayOfWeekForSequence in XML. Regen-all

* Updated energy-evse-cluster.xml to use latest EnergyEVSE.adoc which removes numberOfWeeklyTargets, numberOfDailyTargets, and adds new ChargingTargetScheduleStruct in Get/Set/Clear Target commands

* Removed optional=true in xml for DayOfWeekForSequence & ChargingTargets in ChargingTargetScheduleStruct

* Update examples/energy-management-app/energy-management-common/include/EnergyEvseDelegateImpl.h

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

* Touched file to retrigger restyled job

* Removed whitespace which was added to trigger restyled to rerun

* Removed potentially unsafe code before merging into PR #30957

* Renamed variable and replaced auto with type so it is clearer to reader.

* Restyled by clang-format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: marius-alex-tache <[email protected]>
Signed-off-by: Andrei Menzopol <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: C Freeman <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Erwin Pan <[email protected]>
Co-authored-by: simonhmorris1 <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Damian Królik <[email protected]>
Co-authored-by: fesseha-eve <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: fessehat <[email protected]>
Co-authored-by: René Josefsen <[email protected]>
Co-authored-by: René Josefsen <[email protected]>
Co-authored-by: Marius Tache <[email protected]>
Co-authored-by: Damien Vagner <[email protected]>
Co-authored-by: tanyue518 <[email protected]>
Co-authored-by: Ethan Tan <[email protected]>
Co-authored-by: Andrei Menzopol <[email protected]>
Co-authored-by: Terence Hampson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chip-repl CFFI Remove variadic arguments from python to C
4 participants