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

Add additional commissioning bindings to support BLE/IP auto-commissioning #13427

Merged

Conversation

g-coppock
Copy link
Contributor

  1. Fixes a bug in ApplyNetworkCredentials, where the Wi-Fi objects were
    being referenced instead of the Thread objects. Additionally, added
    an exit block and ensured this method passes successfully before
    continuing on to Commission().

  2. Added a binding for establishPaseSession to support IP commissioning.

  3. Added a binding for Commission, which is in addition to the existing
    PairDevice binding. This is needed when PASE establishment happens
    separately from commissioning initiation.

Testing

Tested bindings manually by establishing a PASE connection to an nRF52840 and running the Commission() step.

@github-actions
Copy link

github-actions bot commented Jan 10, 2022

PR #13427: Size comparison from 19f61eb to cb28386

Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 19f61eb cb28386 change % change
efr32 lighting-app BRD4161A (read only) 828916 828916 0 0.0
(read/write) 126996 126996 0 0.0
.bss 125120 125120 0 0.0
.data 1876 1876 0 0.0
.text 828908 828908 0 0.0
BRD4161A+rpc (read only) 816112 816112 0 0.0
(read/write) 143656 143656 0 0.0
.bss 141680 141680 0 0.0
.data 1976 1976 0 0.0
.text 816104 816104 0 0.0
window-app BRD4161A (read only) 802380 802380 0 0.0
(read/write) 125936 125936 0 0.0
.bss 124104 124104 0 0.0
.data 1832 1832 0 0.0
.text 802372 802372 0 0.0
esp32 all-clusters-app c3devkit (read only) 890494 890494 0 0.0
(read/write) 1313594 1313594 0 0.0
.dram0.bss 69472 69472 0 0.0
.dram0.data 14244 14244 0 0.0
.flash.rodata 176816 176816 0 0.0
.flash.text 890494 890494 0 0.0
.iram0.text 62254 62254 0 0.0
m5stack (read only) 950619 950619 0 0.0
(read/write) 445204 445204 0 0.0
.dram0.bss 73968 73968 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 206164 206164 0 0.0
.flash.text 945235 945235 0 0.0
.iram0.text 122671 122671 0 0.0
k32w light k32w061+release (read/write) 655316 655316 0 0.0
.bss 76776 76776 0 0.0
.data 1848 1848 0 0.0
.text 570892 570892 0 0.0
lock k32w061+release (read/write) 659656 659656 0 0.0
.bss 77072 77072 0 0.0
.data 1868 1868 0 0.0
.text 574916 574916 0 0.0
linux chip-tool-ipv6only arm64 (read only) 7109708 7109708 0 0.0
(read/write) 327041 327041 0 0.0
.bss 54865 54865 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 209264 209264 0 0.0
.dynamic 560 560 0 0.0
.got 58136 58136 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 389860 389860 0 0.0
.text 6022996 6022996 0 0.0
thermostat-no-ble arm64 (read only) 2031916 2031916 0 0.0
(read/write) 145137 145137 0 0.0
.bss 64657 64657 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72656 72656 0 0.0
.dynamic 560 560 0 0.0
.got 4008 4008 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 129004 129004 0 0.0
.text 1689136 1689136 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2346888 2346888 0 0.0
.bss 188716 188716 0 0.0
.data 5312 5312 0 0.0
.text 1309464 1309464 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2330496 2330496 0 0.0
.bss 180544 180544 0 0.0
.data 5552 5552 0 0.0
.text 1293096 1293096 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2303648 2303648 0 0.0
.bss 179592 179592 0 0.0
.data 5544 5544 0 0.0
.text 1266248 1266248 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054432 2054432 0 0.0
.bss 157060 157060 0 0.0
.data 4864 4864 0 0.0
.text 1017032 1017032 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 938287 938287 0 0.0
bss 119232 119232 0 0.0
rodata 108156 108156 0 0.0
text 633348 633348 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 923751 923751 0 0.0
bss 116276 116276 0 0.0
rodata 100604 100604 0 0.0
text 628700 628700 0 0.0
nrf52840dongle_nrf52840 (read/write) 988963 988963 0 0.0
bss 122076 122076 0 0.0
rodata 112908 112908 0 0.0
text 665544 665544 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 848142 848142 0 0.0
bss 116020 116020 0 0.0
rodata 101328 101328 0 0.0
text 550272 550272 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 910431 910431 0 0.0
bss 118420 118420 0 0.0
rodata 103428 103428 0 0.0
text 611212 611212 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 820498 820498 0 0.0
bss 115236 115236 0 0.0
rodata 96652 96652 0 0.0
text 528176 528176 0 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) 911707 911707 0 0.0
bss 118180 118180 0 0.0
rodata 103640 103640 0 0.0
text 612424 612424 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 908511 908511 0 0.0
bss 118208 118208 0 0.0
rodata 102900 102900 0 0.0
text 609960 609960 0 0.0
shell nrf52840dk_nrf52840 (read/write) 798063 798063 0 0.0
bss 109768 109768 0 0.0
rodata 78180 78180 0 0.0
text 533608 533608 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 710882 710882 0 0.0
bss 107656 107656 0 0.0
rodata 72484 72484 0 0.0
text 451288 451288 0 0.0
p6 all-clusters-app default (read/write) 2399760 2399760 0 0.0
.bss 116804 116804 0 0.0
.data 2592 2592 0 0.0
.text 1358024 1358024 0 0.0
light-app default (read/write) 2323744 2323744 0 0.0
.bss 105672 105672 0 0.0
.data 2384 2384 0 0.0
.text 1282008 1282008 0 0.0
lock-app default (read/write) 2295968 2295968 0 0.0
.bss 104552 104552 0 0.0
.data 2336 2336 0 0.0
.text 1254232 1254232 0 0.0
qpg lighting-app qpg6105+debug (read only) 533208 533208 0 0.0
(read/write) 146936 146936 0 0.0
.bss 86624 86624 0 0.0
.data 1004 1004 0 0.0
.text 527888 527888 0 0.0
lock-app qpg6105+debug (read only) 504984 504984 0 0.0
(read/write) 146940 146940 0 0.0
.bss 85760 85760 0 0.0
.data 952 952 0 0.0
.text 499664 499664 0 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) 834566 834566 0 0.0
bss 86924 86924 0 0.0
noinit 37160 37160 0 0.0
text 582774 582774 0 0.0

…oning

1. Fixes a bug in ApplyNetworkCredentials, where the Wi-Fi objects were
   being referenced instead of the Thread objects. Additionally, added
   an exit block and ensured this method passes successfully before
   continuing on to Commission().

2. Added a binding for establishPaseSession to support IP commissioning.

3. Added a binding for Commission, which is in addition to the existing
   PairDevice binding. This is needed when PASE establishment happens
   separately from commissioning initiation.
@g-coppock g-coppock force-pushed the pr/g-coppock/fix_android_bindings branch from cb28386 to 5be008e Compare January 11, 2022 16:03
@andy31415
Copy link
Contributor

fast track: java only change, approved by a domain owner, had sufficient time for cross-platform review.

@github-actions
Copy link

github-actions bot commented Jan 11, 2022

PR #13427: Size comparison from 79530ef to 5be008e

Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 79530ef 5be008e change % change
efr32 lighting-app BRD4161A (read only) 830148 830148 0 0.0
(read/write) 127056 127056 0 0.0
.bss 125176 125176 0 0.0
.data 1880 1880 0 0.0
.text 830140 830140 0 0.0
BRD4161A+rpc (read only) 817344 817344 0 0.0
(read/write) 143720 143720 0 0.0
.bss 141736 141736 0 0.0
.data 1980 1980 0 0.0
.text 817336 817336 0 0.0
window-app BRD4161A (read only) 803612 803612 0 0.0
(read/write) 125996 125996 0 0.0
.bss 124160 124160 0 0.0
.data 1836 1836 0 0.0
.text 803604 803604 0 0.0
esp32 all-clusters-app c3devkit (read only) 898260 898260 0 0.0
(read/write) 1316042 1316042 0 0.0
.dram0.bss 70168 70168 0 0.0
.dram0.data 14212 14212 0 0.0
.flash.rodata 178160 178160 0 0.0
.flash.text 898260 898260 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 959367 959367 0 0.0
(read/write) 448504 448504 0 0.0
.dram0.bss 74656 74656 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 207656 207656 0 0.0
.flash.text 953983 953983 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 656260 656260 0 0.0
.bss 76824 76824 0 0.0
.data 1852 1852 0 0.0
.text 571784 571784 0 0.0
lock k32w061+release (read/write) 660600 660600 0 0.0
.bss 77120 77120 0 0.0
.data 1872 1872 0 0.0
.text 575808 575808 0 0.0
linux chip-tool-ipv6only arm64 (read only) 7113788 7113788 0 0.0
(read/write) 327457 327457 0 0.0
.bss 54865 54865 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 209608 209608 0 0.0
.dynamic 560 560 0 0.0
.got 58200 58200 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 390148 390148 0 0.0
.text 6025828 6025828 0 0.0
thermostat-no-ble arm64 (read only) 2037212 2037212 0 0.0
(read/write) 145489 145489 0 0.0
.bss 64737 64737 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72896 72896 0 0.0
.dynamic 560 560 0 0.0
.got 4032 4032 0 0.0
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129276 129276 0 0.0
.text 1693712 1693712 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2349776 2349776 0 0.0
.bss 189068 189068 0 0.0
.data 5320 5320 0 0.0
.text 1312352 1312352 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2331288 2331288 0 0.0
.bss 180600 180600 0 0.0
.data 5552 5552 0 0.0
.text 1293888 1293888 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304576 2304576 0 0.0
.bss 179648 179648 0 0.0
.data 5544 5544 0 0.0
.text 1267176 1267176 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2055024 2055024 0 0.0
.bss 157068 157068 0 0.0
.data 4864 4864 0 0.0
.text 1017624 1017624 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 939179 939179 0 0.0
bss 119284 119284 0 0.0
rodata 108296 108296 0 0.0
text 634036 634036 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 924659 924659 0 0.0
bss 116328 116328 0 0.0
rodata 100744 100744 0 0.0
text 629392 629392 0 0.0
nrf52840dongle_nrf52840 (read/write) 989855 989855 0 0.0
bss 122128 122128 0 0.0
rodata 113048 113048 0 0.0
text 666236 666236 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 849050 849050 0 0.0
bss 116072 116072 0 0.0
rodata 101468 101468 0 0.0
text 550960 550960 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 911467 911467 0 0.0
bss 118472 118472 0 0.0
rodata 103568 103568 0 0.0
text 612032 612032 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 821502 821502 0 0.0
bss 115288 115288 0 0.0
rodata 96792 96792 0 0.0
text 528996 528996 0 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) 912743 912743 0 0.0
bss 118232 118232 0 0.0
rodata 103780 103780 0 0.0
text 613292 613292 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 909547 909547 0 0.0
bss 118260 118260 0 0.0
rodata 103040 103040 0 0.0
text 610784 610784 0 0.0
shell nrf52840dk_nrf52840 (read/write) 798303 798303 0 0.0
bss 109776 109776 0 0.0
rodata 78244 78244 0 0.0
text 533788 533788 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711122 711122 0 0.0
bss 107664 107664 0 0.0
rodata 72548 72548 0 0.0
text 451464 451464 0 0.0
p6 all-clusters-app default (read/write) 2403088 2403088 0 0.0
.bss 117148 117148 0 0.0
.data 2592 2592 0 0.0
.text 1361352 1361352 0 0.0
light-app default (read/write) 2325000 2325000 0 0.0
.bss 105728 105728 0 0.0
.data 2384 2384 0 0.0
.text 1283264 1283264 0 0.0
lock-app default (read/write) 2297208 2297208 0 0.0
.bss 104608 104608 0 0.0
.data 2344 2344 0 0.0
.text 1255472 1255472 0 0.0
qpg lighting-app qpg6105+debug (read only) 533964 533964 0 0.0
(read/write) 146940 146940 0 0.0
.bss 86672 86672 0 0.0
.data 1008 1008 0 0.0
.text 528644 528644 0 0.0
lock-app qpg6105+debug (read only) 505884 505884 0 0.0
(read/write) 146936 146936 0 0.0
.bss 85808 85808 0 0.0
.data 956 956 0 0.0
.text 500564 500564 0 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) 835790 835790 0 0.0
bss 86976 86976 0 0.0
noinit 37160 37160 0 0.0
text 583698 583698 0 0.0

@andy31415 andy31415 merged commit a40c300 into project-chip:master Jan 11, 2022
selissia pushed a commit to selissia/connectedhomeip that referenced this pull request Jan 28, 2022
…oning (project-chip#13427)

1. Fixes a bug in ApplyNetworkCredentials, where the Wi-Fi objects were
   being referenced instead of the Thread objects. Additionally, added
   an exit block and ensured this method passes successfully before
   continuing on to Commission().

2. Added a binding for establishPaseSession to support IP commissioning.

3. Added a binding for Commission, which is in addition to the existing
   PairDevice binding. This is needed when PASE establishment happens
   separately from commissioning initiation.
step0035 pushed a commit to hank820/connectedhomeip that referenced this pull request Feb 8, 2022
…oning (project-chip#13427)

1. Fixes a bug in ApplyNetworkCredentials, where the Wi-Fi objects were
   being referenced instead of the Thread objects. Additionally, added
   an exit block and ensured this method passes successfully before
   continuing on to Commission().

2. Added a binding for establishPaseSession to support IP commissioning.

3. Added a binding for Commission, which is in addition to the existing
   PairDevice binding. This is needed when PASE establishment happens
   separately from commissioning initiation.
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.

3 participants