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

[shell] Add 'server' command to shell app. #13060

Merged
merged 5 commits into from
Jan 6, 2022

Conversation

turon
Copy link
Contributor

@turon turon commented Dec 15, 2021

Problem

The shell app has limited functionality. It doesn't provide access to core device functionality such as pairing or IM/ZCL command handling.

Change overview

Adds the server command to provide the ability to server start or server stop the equivalent of the all-clusters-app peripheral. Once the server is started, one can pair the device with chip-tool and send commands to it.

One can examine what sessions are active with the server sessions command. The ZCL structure can be inspected with the server endpoints and server clusters commands.

This work is an incremental step towards instrumenting early multi-device topology testing, such as using a chip-tool or chip-repl controller to manage two server nodes where each server is on a different port. This model could provide a flexible basis for scripted functional tests where each node is chip-shell running in a process to serve as a simulated server node, and a collection of such nodes can form a topology for more advanced N-node tests.

The work is also a step toward making the chip-shell capable of being either a client or a server (or potentially both with enough rework of the core).

Testing

Local testing on linux and darwin.
CI for other embedded builds.

@stale
Copy link

stale bot commented Dec 31, 2021

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale bot closed this Dec 31, 2021
@turon turon reopened this Jan 2, 2022
@stale stale bot removed the stale Stale issue or PR label Jan 2, 2022
@turon
Copy link
Contributor Author

turon commented Jan 2, 2022

This has been ready-to-go. Hopefully we can muster enough reviewers to approve and merge it.

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

PR #13060: Size comparison from b006321 to 372a86d

Increases (25 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b006321 372a86d change % change
efr32 lighting-app BRD4161A (read only) 829620 829668 48 0.0
(read/write) 127068 127076 8 0.0
.bss 125192 125200 8 0.0
.text 829612 829660 48 0.0
BRD4161A+rpc (read only) 817248 817312 64 0.0
(read/write) 143736 143744 8 0.0
.bss 141760 141768 8 0.0
.text 817240 817304 64 0.0
window-app BRD4161A (read only) 803068 803116 48 0.0
(read/write) 126008 126016 8 0.0
.bss 124176 124184 8 0.0
.text 803060 803108 48 0.0
esp32 all-clusters-app c3devkit (read only) 889122 889142 20 0.0
.flash.text 889122 889142 20 0.0
k32w light k32w061+release (read/write) 648440 648464 24 0.0
.bss 76216 76224 8 0.0
.text 564520 564536 16 0.0
lock k32w061+release (read/write) 633264 633288 24 0.0
.bss 75928 75936 8 0.0
.text 549676 549692 16 0.0
linux chip-tool-ipv6only arm64 (read/write) 324785 324801 16 0.0
.bss 54209 54225 16 0.0
thermostat-no-ble arm64 (read only) 2023772 2023836 64 0.0
(read/write) 144017 144033 16 0.0
.bss 64001 64017 16 0.0
.text 1682624 1682688 64 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2346224 2346232 8 0.0
.text 1308800 1308808 8 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2329384 2329392 8 0.0
.text 1291984 1291992 8 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2053952 2054264 312 0.0
.text 1016552 1016864 312 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 bss 118188 118196 8 0.0
text 631844 631848 4 0.0
nrf52840dk_nrf52840+rpc (read/write) 921987 922019 32 0.0
bss 115232 115240 8 0.0
text 627156 627160 4 0.0
nrf5340dk_nrf5340_cpuapp bss 116080 116088 8 0.0
text 548780 548784 4 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907827 907875 48 0.0
bss 117376 117384 8 0.0
text 609776 609780 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 818998 819034 36 0.0
bss 115296 115304 8 0.0
rodata 96544 96548 4 0.0
text 526756 526760 4 0.0
pump-app nrf52840dk_nrf52840 (read/write) 909103 909107 4 0.0
bss 117136 117144 8 0.0
rodata 103532 103536 4 0.0
text 610992 610996 4 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 905939 905955 16 0.0
bss 117164 117172 8 0.0
text 608524 608528 4 0.0
shell nrf52840dk_nrf52840 (read/write) 796891 797591 700 0.1
bss 109536 109680 144 0.1
text 532708 533224 516 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 709718 710410 692 0.1
bss 107424 107568 144 0.1
text 450384 450904 520 0.1
p6 all-clusters-app default (read/write) 2401096 2401112 16 0.0
.text 1359360 1359376 16 0.0
lock-app default (read/write) 2296656 2296672 16 0.0
.text 1254920 1254936 16 0.0
qpg lighting-app qpg6105+debug (read only) 531624 531644 20 0.0
.bss 86672 86680 8 0.0
.text 526304 526324 20 0.0
lock-app qpg6105+debug (read only) 503420 503440 20 0.0
.bss 85808 85816 8 0.0
.text 498100 498120 20 0.0
telink lighting-app tlsr9518adk80d (read/write) 832122 832918 796 0.1
bss 86856 87004 148 0.2
text 580562 581196 634 0.1
Decreases (1 build for esp32)
platform target config section b006321 372a86d change % change
esp32 all-clusters-app m5stack (read only) 948991 944619 -4372 -0.5
(read/write) 445352 440512 -4840 -1.1
.dram0.bss 73776 71960 -1816 -2.5
.flash.rodata 206504 203480 -3024 -1.5
.flash.text 943607 939235 -4372 -0.5
Full report (31 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b006321 372a86d change % change
efr32 lighting-app BRD4161A (read only) 829620 829668 48 0.0
(read/write) 127068 127076 8 0.0
.bss 125192 125200 8 0.0
.data 1876 1876 0 0.0
.text 829612 829660 48 0.0
BRD4161A+rpc (read only) 817248 817312 64 0.0
(read/write) 143736 143744 8 0.0
.bss 141760 141768 8 0.0
.data 1976 1976 0 0.0
.text 817240 817304 64 0.0
window-app BRD4161A (read only) 803068 803116 48 0.0
(read/write) 126008 126016 8 0.0
.bss 124176 124184 8 0.0
.data 1832 1832 0 0.0
.text 803060 803108 48 0.0
esp32 all-clusters-app c3devkit (read only) 889122 889142 20 0.0
(read/write) 1313770 1313770 0 0.0
.dram0.bss 69288 69288 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 177184 177184 0 0.0
.flash.text 889122 889142 20 0.0
.iram0.text 62254 62254 0 0.0
m5stack (read only) 948991 944619 -4372 -0.5
(read/write) 445352 440512 -4840 -1.1
.dram0.bss 73776 71960 -1816 -2.5
.dram0.data 34064 34064 0 0.0
.flash.rodata 206504 203480 -3024 -1.5
.flash.text 943607 939235 -4372 -0.5
.iram0.text 122671 122671 0 0.0
k32w light k32w061+release (read/write) 648440 648464 24 0.0
.bss 76216 76224 8 0.0
.data 1904 1904 0 0.0
.text 564520 564536 16 0.0
lock k32w061+release (read/write) 633264 633288 24 0.0
.bss 75928 75936 8 0.0
.data 1860 1860 0 0.0
.text 549676 549692 16 0.0
linux chip-tool-ipv6only arm64 (read only) 7010492 7010492 0 0.0
(read/write) 324785 324801 16 0.0
.bss 54209 54225 16 0.0
.data 1096 1096 0 0.0
.data.rel.ro 208920 208920 0 0.0
.dynamic 560 560 0 0.0
.got 56880 56880 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 383108 383108 0 0.0
.text 5935188 5935188 0 0.0
thermostat-no-ble arm64 (read only) 2023772 2023836 64 0.0
(read/write) 144017 144033 16 0.0
.bss 64001 64017 16 0.0
.data 880 880 0 0.0
.data.rel.ro 72272 72272 0 0.0
.dynamic 560 560 0 0.0
.got 3936 3936 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128508 128508 0 0.0
.text 1682624 1682688 64 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2346224 2346232 8 0.0
.bss 188548 188548 0 0.0
.data 5312 5312 0 0.0
.text 1308800 1308808 8 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2329384 2329392 8 0.0
.bss 180624 180624 0 0.0
.data 5552 5552 0 0.0
.text 1291984 1291992 8 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2302544 2302544 0 0.0
.bss 179672 179672 0 0.0
.data 5544 5544 0 0.0
.text 1265144 1265144 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053952 2054264 312 0.0
.bss 156972 156972 0 0.0
.data 4864 4864 0 0.0
.text 1016552 1016864 312 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 935615 935615 0 0.0
bss 118188 118196 8 0.0
rodata 108012 108012 0 0.0
text 631844 631848 4 0.0
nrf52840dk_nrf52840+rpc (read/write) 921987 922019 32 0.0
bss 115232 115240 8 0.0
rodata 101432 101432 0 0.0
text 627156 627160 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 846578 846578 0 0.0
bss 116080 116088 8 0.0
rodata 101188 101188 0 0.0
text 548780 548784 4 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907827 907875 48 0.0
bss 117376 117384 8 0.0
rodata 103320 103320 0 0.0
text 609776 609780 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 818998 819034 36 0.0
bss 115296 115304 8 0.0
rodata 96544 96548 4 0.0
text 526756 526760 4 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 542351 542351 0 0.0
bss 52588 52588 0 0.0
rodata 50668 50668 0 0.0
text 376892 376892 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 909103 909107 4 0.0
bss 117136 117144 8 0.0
rodata 103532 103536 4 0.0
text 610992 610996 4 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 905939 905955 16 0.0
bss 117164 117172 8 0.0
rodata 102792 102792 0 0.0
text 608524 608528 4 0.0
shell nrf52840dk_nrf52840 (read/write) 796891 797591 700 0.1
bss 109536 109680 144 0.1
rodata 78188 78188 0 0.0
text 532708 533224 516 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 709718 710410 692 0.1
bss 107424 107568 144 0.1
rodata 72492 72492 0 0.0
text 450384 450904 520 0.1
p6 all-clusters-app default (read/write) 2401096 2401112 16 0.0
.bss 116748 116748 0 0.0
.data 2592 2592 0 0.0
.text 1359360 1359376 16 0.0
light-app default (read/write) 2324456 2324456 0 0.0
.bss 105872 105872 0 0.0
.data 2384 2384 0 0.0
.text 1282720 1282720 0 0.0
lock-app default (read/write) 2296656 2296672 16 0.0
.bss 104752 104752 0 0.0
.data 2336 2336 0 0.0
.text 1254920 1254936 16 0.0
qpg lighting-app qpg6105+debug (read only) 531624 531644 20 0.0
(read/write) 146936 146936 0 0.0
.bss 86672 86680 8 0.0
.data 1004 1004 0 0.0
.text 526304 526324 20 0.0
lock-app qpg6105+debug (read only) 503420 503440 20 0.0
(read/write) 146940 146940 0 0.0
.bss 85808 85816 8 0.0
.data 952 952 0 0.0
.text 498100 498120 20 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 832122 832918 796 0.1
bss 86856 87004 148 0.2
noinit 37160 37160 0 0.0
text 580562 581196 634 0.1

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

PR #13060: Size comparison from c7d9ec9 to fa00f57

Increases (25 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section c7d9ec9 fa00f57 change % change
efr32 lighting-app BRD4161A (read only) 829620 829668 48 0.0
(read/write) 127068 127076 8 0.0
.bss 125192 125200 8 0.0
.text 829612 829660 48 0.0
BRD4161A+rpc (read only) 817248 817312 64 0.0
(read/write) 143736 143744 8 0.0
.bss 141760 141768 8 0.0
.text 817240 817304 64 0.0
window-app BRD4161A (read only) 803068 803116 48 0.0
(read/write) 126008 126016 8 0.0
.bss 124176 124184 8 0.0
.text 803060 803108 48 0.0
esp32 all-clusters-app c3devkit (read only) 889122 889142 20 0.0
.flash.text 889122 889142 20 0.0
k32w light k32w061+release (read/write) 648440 648464 24 0.0
.bss 76216 76224 8 0.0
.text 564520 564536 16 0.0
lock k32w061+release (read/write) 633264 633288 24 0.0
.bss 75928 75936 8 0.0
.text 549676 549692 16 0.0
linux chip-tool-ipv6only arm64 (read/write) 324785 324801 16 0.0
.bss 54209 54225 16 0.0
thermostat-no-ble arm64 (read only) 2023772 2023836 64 0.0
(read/write) 144017 144033 16 0.0
.bss 64001 64017 16 0.0
.text 1682624 1682688 64 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2346224 2346232 8 0.0
.text 1308800 1308808 8 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2329384 2329392 8 0.0
.text 1291984 1291992 8 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2053952 2054264 312 0.0
.text 1016552 1016864 312 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 bss 118188 118196 8 0.0
text 631908 631912 4 0.0
nrf52840dk_nrf52840+rpc (read/write) 922083 922119 36 0.0
bss 115232 115240 8 0.0
rodata 101464 101468 4 0.0
text 627220 627224 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 846674 846678 4 0.0
bss 116080 116088 8 0.0
rodata 101220 101224 4 0.0
text 548844 548848 4 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907827 907875 48 0.0
bss 117376 117384 8 0.0
text 609776 609780 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 818998 819034 36 0.0
bss 115296 115304 8 0.0
rodata 96544 96548 4 0.0
text 526756 526760 4 0.0
pump-app nrf52840dk_nrf52840 (read/write) 909103 909107 4 0.0
bss 117136 117144 8 0.0
rodata 103532 103536 4 0.0
text 610992 610996 4 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 905939 905955 16 0.0
bss 117164 117172 8 0.0
text 608524 608528 4 0.0
shell nrf52840dk_nrf52840 (read/write) 796891 797591 700 0.1
bss 109536 109680 144 0.1
text 532708 533224 516 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 709718 710410 692 0.1
bss 107424 107568 144 0.1
text 450384 450904 520 0.1
p6 all-clusters-app default (read/write) 2401096 2401112 16 0.0
.text 1359360 1359376 16 0.0
lock-app default (read/write) 2296656 2296672 16 0.0
.text 1254920 1254936 16 0.0
qpg lighting-app qpg6105+debug (read only) 531624 531644 20 0.0
.bss 86672 86680 8 0.0
.text 526304 526324 20 0.0
lock-app qpg6105+debug (read only) 503420 503440 20 0.0
.bss 85808 85816 8 0.0
.text 498100 498120 20 0.0
telink lighting-app tlsr9518adk80d (read/write) 832122 832918 796 0.1
bss 86856 87004 148 0.2
text 580562 581196 634 0.1
Decreases (1 build for esp32)
platform target config section c7d9ec9 fa00f57 change % change
esp32 all-clusters-app m5stack (read only) 948991 944619 -4372 -0.5
(read/write) 445352 440512 -4840 -1.1
.dram0.bss 73776 71960 -1816 -2.5
.flash.rodata 206504 203480 -3024 -1.5
.flash.text 943607 939235 -4372 -0.5
Full report (31 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section c7d9ec9 fa00f57 change % change
efr32 lighting-app BRD4161A (read only) 829620 829668 48 0.0
(read/write) 127068 127076 8 0.0
.bss 125192 125200 8 0.0
.data 1876 1876 0 0.0
.text 829612 829660 48 0.0
BRD4161A+rpc (read only) 817248 817312 64 0.0
(read/write) 143736 143744 8 0.0
.bss 141760 141768 8 0.0
.data 1976 1976 0 0.0
.text 817240 817304 64 0.0
window-app BRD4161A (read only) 803068 803116 48 0.0
(read/write) 126008 126016 8 0.0
.bss 124176 124184 8 0.0
.data 1832 1832 0 0.0
.text 803060 803108 48 0.0
esp32 all-clusters-app c3devkit (read only) 889122 889142 20 0.0
(read/write) 1313770 1313770 0 0.0
.dram0.bss 69288 69288 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 177184 177184 0 0.0
.flash.text 889122 889142 20 0.0
.iram0.text 62254 62254 0 0.0
m5stack (read only) 948991 944619 -4372 -0.5
(read/write) 445352 440512 -4840 -1.1
.dram0.bss 73776 71960 -1816 -2.5
.dram0.data 34064 34064 0 0.0
.flash.rodata 206504 203480 -3024 -1.5
.flash.text 943607 939235 -4372 -0.5
.iram0.text 122671 122671 0 0.0
k32w light k32w061+release (read/write) 648440 648464 24 0.0
.bss 76216 76224 8 0.0
.data 1904 1904 0 0.0
.text 564520 564536 16 0.0
lock k32w061+release (read/write) 633264 633288 24 0.0
.bss 75928 75936 8 0.0
.data 1860 1860 0 0.0
.text 549676 549692 16 0.0
linux chip-tool-ipv6only arm64 (read only) 7010492 7010492 0 0.0
(read/write) 324785 324801 16 0.0
.bss 54209 54225 16 0.0
.data 1096 1096 0 0.0
.data.rel.ro 208920 208920 0 0.0
.dynamic 560 560 0 0.0
.got 56880 56880 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 383108 383108 0 0.0
.text 5935188 5935188 0 0.0
thermostat-no-ble arm64 (read only) 2023772 2023836 64 0.0
(read/write) 144017 144033 16 0.0
.bss 64001 64017 16 0.0
.data 880 880 0 0.0
.data.rel.ro 72272 72272 0 0.0
.dynamic 560 560 0 0.0
.got 3936 3936 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128508 128508 0 0.0
.text 1682624 1682688 64 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2346224 2346232 8 0.0
.bss 188548 188548 0 0.0
.data 5312 5312 0 0.0
.text 1308800 1308808 8 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2329384 2329392 8 0.0
.bss 180624 180624 0 0.0
.data 5552 5552 0 0.0
.text 1291984 1291992 8 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2302544 2302544 0 0.0
.bss 179672 179672 0 0.0
.data 5544 5544 0 0.0
.text 1265144 1265144 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053952 2054264 312 0.0
.bss 156972 156972 0 0.0
.data 4864 4864 0 0.0
.text 1016552 1016864 312 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 935715 935715 0 0.0
bss 118188 118196 8 0.0
rodata 108048 108048 0 0.0
text 631908 631912 4 0.0
nrf52840dk_nrf52840+rpc (read/write) 922083 922119 36 0.0
bss 115232 115240 8 0.0
rodata 101464 101468 4 0.0
text 627220 627224 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 846674 846678 4 0.0
bss 116080 116088 8 0.0
rodata 101220 101224 4 0.0
text 548844 548848 4 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907827 907875 48 0.0
bss 117376 117384 8 0.0
rodata 103320 103320 0 0.0
text 609776 609780 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 818998 819034 36 0.0
bss 115296 115304 8 0.0
rodata 96544 96548 4 0.0
text 526756 526760 4 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 542351 542351 0 0.0
bss 52588 52588 0 0.0
rodata 50668 50668 0 0.0
text 376892 376892 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 909103 909107 4 0.0
bss 117136 117144 8 0.0
rodata 103532 103536 4 0.0
text 610992 610996 4 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 905939 905955 16 0.0
bss 117164 117172 8 0.0
rodata 102792 102792 0 0.0
text 608524 608528 4 0.0
shell nrf52840dk_nrf52840 (read/write) 796891 797591 700 0.1
bss 109536 109680 144 0.1
rodata 78188 78188 0 0.0
text 532708 533224 516 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 709718 710410 692 0.1
bss 107424 107568 144 0.1
rodata 72492 72492 0 0.0
text 450384 450904 520 0.1
p6 all-clusters-app default (read/write) 2401096 2401112 16 0.0
.bss 116748 116748 0 0.0
.data 2592 2592 0 0.0
.text 1359360 1359376 16 0.0
light-app default (read/write) 2324456 2324456 0 0.0
.bss 105872 105872 0 0.0
.data 2384 2384 0 0.0
.text 1282720 1282720 0 0.0
lock-app default (read/write) 2296656 2296672 16 0.0
.bss 104752 104752 0 0.0
.data 2336 2336 0 0.0
.text 1254920 1254936 16 0.0
qpg lighting-app qpg6105+debug (read only) 531624 531644 20 0.0
(read/write) 146936 146936 0 0.0
.bss 86672 86680 8 0.0
.data 1004 1004 0 0.0
.text 526304 526324 20 0.0
lock-app qpg6105+debug (read only) 503420 503440 20 0.0
(read/write) 146940 146940 0 0.0
.bss 85808 85816 8 0.0
.data 952 952 0 0.0
.text 498100 498120 20 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 832122 832918 796 0.1
bss 86856 87004 148 0.2
noinit 37160 37160 0 0.0
text 580562 581196 634 0.1

examples/shell/shell_common/cmd_server.cpp Outdated Show resolved Hide resolved
examples/shell/shell_common/cmd_server.cpp Outdated Show resolved Hide resolved
turon and others added 5 commits January 6, 2022 08:29
- Add 'server port' and 'server udcport' commands.
- Add 'server sessions' command.
- Add 'server endpoints' and 'server clusters' commands.

- Add docs for the new 'server' command subcommands (README_SERVER.md).
- Add 'server' command to build of linux and mac platforms only initially.

- Improve clean exit paths for 'server' command.
- Update 'ForEachSessionHandle' to use new Loop construct.
- Fix build failure in ota-provider (warning when logs disabled).
@github-actions
Copy link

github-actions bot commented Jan 6, 2022

PR #13060: Size comparison from 89b87f1 to 74f1607

Increases (19 builds for efr32, k32w, linux, nrfconnect, qpg, telink)
platform target config section 89b87f1 74f1607 change % change
efr32 lighting-app BRD4161A (read only) 829396 829444 48 0.0
(read/write) 127068 127076 8 0.0
.bss 125192 125200 8 0.0
.text 829388 829436 48 0.0
BRD4161A+rpc (read only) 816576 816640 64 0.0
(read/write) 143736 143744 8 0.0
.bss 141760 141768 8 0.0
.text 816568 816632 64 0.0
window-app BRD4161A (read only) 802844 802892 48 0.0
(read/write) 126008 126016 8 0.0
.bss 124176 124184 8 0.0
.text 802836 802884 48 0.0
k32w light k32w061+release (read/write) 648472 648496 24 0.0
.bss 76216 76224 8 0.0
.text 564552 564568 16 0.0
lock k32w061+release (read/write) 633296 633320 24 0.0
.bss 75928 75936 8 0.0
.text 549708 549724 16 0.0
linux chip-tool-ipv6only arm64 (read/write) 324849 324865 16 0.0
.bss 54209 54225 16 0.0
thermostat-no-ble arm64 (read only) 2024348 2024428 80 0.0
(read/write) 144049 144065 16 0.0
.bss 64001 64017 16 0.0
.text 1683152 1683232 80 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 bss 118188 118196 8 0.0
text 631948 631952 4 0.0
nrf52840dk_nrf52840+rpc (read/write) 921187 921223 36 0.0
bss 115232 115240 8 0.0
rodata 100488 100492 4 0.0
text 627300 627304 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 846706 846726 20 0.0
bss 116080 116088 8 0.0
rodata 101220 101224 4 0.0
text 548888 548892 4 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907875 907907 32 0.0
bss 117376 117384 8 0.0
text 609820 609824 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 819046 819082 36 0.0
bss 115296 115304 8 0.0
rodata 96544 96548 4 0.0
text 526796 526800 4 0.0
pump-app nrf52840dk_nrf52840 (read/write) 909151 909155 4 0.0
bss 117136 117144 8 0.0
rodata 103532 103536 4 0.0
text 611032 611036 4 0.0
pump-controller-app nrf52840dk_nrf52840 bss 117164 117172 8 0.0
text 608568 608572 4 0.0
shell nrf52840dk_nrf52840 (read/write) 796843 797543 700 0.1
bss 109536 109680 144 0.1
text 532664 533180 516 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 709670 710362 692 0.1
bss 107424 107568 144 0.1
text 450340 450860 520 0.1
qpg lighting-app qpg6105+debug (read only) 531664 531684 20 0.0
.bss 86672 86680 8 0.0
.text 526344 526364 20 0.0
lock-app qpg6105+debug (read only) 503444 503464 20 0.0
.bss 85808 85816 8 0.0
.text 498124 498144 20 0.0
telink lighting-app tlsr9518adk80d (read/write) 832242 833038 796 0.1
bss 86856 87004 148 0.2
text 580682 581316 634 0.1
Full report (24 builds for efr32, k32w, linux, nrfconnect, p6, qpg, telink)
platform target config section 89b87f1 74f1607 change % change
efr32 lighting-app BRD4161A (read only) 829396 829444 48 0.0
(read/write) 127068 127076 8 0.0
.bss 125192 125200 8 0.0
.data 1876 1876 0 0.0
.text 829388 829436 48 0.0
BRD4161A+rpc (read only) 816576 816640 64 0.0
(read/write) 143736 143744 8 0.0
.bss 141760 141768 8 0.0
.data 1976 1976 0 0.0
.text 816568 816632 64 0.0
window-app BRD4161A (read only) 802844 802892 48 0.0
(read/write) 126008 126016 8 0.0
.bss 124176 124184 8 0.0
.data 1832 1832 0 0.0
.text 802836 802884 48 0.0
k32w light k32w061+release (read/write) 648472 648496 24 0.0
.bss 76216 76224 8 0.0
.data 1904 1904 0 0.0
.text 564552 564568 16 0.0
lock k32w061+release (read/write) 633296 633320 24 0.0
.bss 75928 75936 8 0.0
.data 1860 1860 0 0.0
.text 549708 549724 16 0.0
linux chip-tool-ipv6only arm64 (read only) 7011468 7011468 0 0.0
(read/write) 324849 324865 16 0.0
.bss 54209 54225 16 0.0
.data 1096 1096 0 0.0
.data.rel.ro 208968 208968 0 0.0
.dynamic 560 560 0 0.0
.got 56888 56888 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 383108 383108 0 0.0
.text 5936084 5936084 0 0.0
thermostat-no-ble arm64 (read only) 2024348 2024428 80 0.0
(read/write) 144049 144065 16 0.0
.bss 64001 64017 16 0.0
.data 880 880 0 0.0
.data.rel.ro 72296 72296 0 0.0
.dynamic 560 560 0 0.0
.got 3936 3936 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128524 128524 0 0.0
.text 1683152 1683232 80 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 935763 935763 0 0.0
bss 118188 118196 8 0.0
rodata 108048 108048 0 0.0
text 631948 631952 4 0.0
nrf52840dk_nrf52840+rpc (read/write) 921187 921223 36 0.0
bss 115232 115240 8 0.0
rodata 100488 100492 4 0.0
text 627300 627304 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 846706 846726 20 0.0
bss 116080 116088 8 0.0
rodata 101220 101224 4 0.0
text 548888 548892 4 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907875 907907 32 0.0
bss 117376 117384 8 0.0
rodata 103320 103320 0 0.0
text 609820 609824 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 819046 819082 36 0.0
bss 115296 115304 8 0.0
rodata 96544 96548 4 0.0
text 526796 526800 4 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 909151 909155 4 0.0
bss 117136 117144 8 0.0
rodata 103532 103536 4 0.0
text 611032 611036 4 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 905987 905987 0 0.0
bss 117164 117172 8 0.0
rodata 102792 102792 0 0.0
text 608568 608572 4 0.0
shell nrf52840dk_nrf52840 (read/write) 796843 797543 700 0.1
bss 109536 109680 144 0.1
rodata 78188 78188 0 0.0
text 532664 533180 516 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 709670 710362 692 0.1
bss 107424 107568 144 0.1
rodata 72492 72492 0 0.0
text 450340 450860 520 0.1
p6 all-clusters-app default (read/write) 2401288 2401288 0 0.0
.bss 116748 116748 0 0.0
.data 2592 2592 0 0.0
.text 1359552 1359552 0 0.0
light-app default (read/write) 2324568 2324568 0 0.0
.bss 105872 105872 0 0.0
.data 2384 2384 0 0.0
.text 1282832 1282832 0 0.0
lock-app default (read/write) 2296768 2296768 0 0.0
.bss 104752 104752 0 0.0
.data 2336 2336 0 0.0
.text 1255032 1255032 0 0.0
qpg lighting-app qpg6105+debug (read only) 531664 531684 20 0.0
(read/write) 146936 146936 0 0.0
.bss 86672 86680 8 0.0
.data 1004 1004 0 0.0
.text 526344 526364 20 0.0
lock-app qpg6105+debug (read only) 503444 503464 20 0.0
(read/write) 146940 146940 0 0.0
.bss 85808 85816 8 0.0
.data 952 952 0 0.0
.text 498124 498144 20 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 832242 833038 796 0.1
bss 86856 87004 148 0.2
noinit 37160 37160 0 0.0
text 580682 581316 634 0.1

@andy31415 andy31415 merged commit 6bfde31 into project-chip:master Jan 6, 2022
andy31415 added a commit to andy31415/connectedhomeip that referenced this pull request Jan 7, 2022
andy31415 added a commit that referenced this pull request Jan 7, 2022
step0035 pushed a commit to hank820/connectedhomeip that referenced this pull request Feb 8, 2022
* [shell] Add command to start/stop zcl app server.

- Add 'server port' and 'server udcport' commands.
- Add 'server sessions' command.
- Add 'server endpoints' and 'server clusters' commands.

- Add docs for the new 'server' command subcommands (README_SERVER.md).
- Add 'server' command to build of linux and mac platforms only initially.

- Improve clean exit paths for 'server' command.
- Update 'ForEachSessionHandle' to use new Loop construct.
- Fix build failure in ota-provider (warning when logs disabled).

* [shell] Correct order of atexit and shutdown handling.

* [shell] Add OTA stubs.

* Apply suggestions from code review

Co-authored-by: Łukasz Duda <[email protected]>

* [session] Update ForEachSessionHandle to new API.

Co-authored-by: Łukasz Duda <[email protected]>
step0035 pushed a commit to hank820/connectedhomeip that referenced this pull request Feb 8, 2022
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.

4 participants